init.sh: don't let bash aliases interfere with tests
[gnulib.git] / ChangeLog
1 2012-05-08  Jim Meyering  <meyering@redhat.com>
2
3         init.sh: don't let bash aliases interfere with tests
4         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5         is bash.  This avoids problems for those who alias standard commands to
6         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
7         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
8
9 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10
11         stdint: be more consistent with glibc, SunOS libc
12         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
13         (gl_int_fast16_t, gl_uint_fast16_t)
14         (gl_int_fast32_t, gl_uint_fast32_t)
15         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
16         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
17         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
18         Be consistent with glibc by default, and with SunOS 5.10 and later
19         if __sun is defined.  This lessens the likelihood of clashes if
20         code compiled for older hosts is combined with code compiled for
21         newer ones.  Problem reported by Niels Möller in
22         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
23
24 2012-05-07  Eric Blake  <eblake@redhat.com>
25
26         isatty: relax license to LGPLv2+
27         * modules/isatty (License): Relax license.
28
29 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30
31         stat-size: comment fix
32         * lib/stat-size.h: Remove obsolete comment about indenting.
33
34 2012-05-06  Bruno Haible  <bruno@clisp.org>
35
36         Tests for module 'sh-quote'.
37         * modules/sh-quote-tests: New file.
38         * tests/test-sh-quote.c: New file.
39
40 2012-05-06  Bruno Haible  <bruno@clisp.org>
41
42         sh-quote: Improve shell_quote_argv's signature.
43         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
44         * lib/sh-quote.c (shell_quote_argv): Likewise.
45
46 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
47
48         stdint: document issues with int_fast8_t etc.
49         * doc/posix-headers/stdint.texi (stdint.h): Say that other
50         stdint.h substitutes may define these types differently.  See
51         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
52
53 2012-05-05  Bruno Haible  <bruno@clisp.org>
54
55         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
56         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
57         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
58         or 'guessing no (mishandles large arguments)'.
59
60 2012-05-05  Bruno Haible  <bruno@clisp.org>
61
62         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
63         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
64         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
65         set gl_cv_func_link_follows_symlink to "guessing no".
66
67 2012-05-05  Bruno Haible  <bruno@clisp.org>
68
69         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
70         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
71         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
72         "guessing no".
73         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
74
75 2012-05-05  Bruno Haible  <bruno@clisp.org>
76
77         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
78         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
79         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
80         set gl_cv_struct_dirent_d_ino to "guessing yes".
81
82 2012-05-05  Bruno Haible  <bruno@clisp.org>
83
84         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
85         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
86         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
87         "guessing yes".
88
89 2012-05-05  Bruno Haible  <bruno@clisp.org>
90
91         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
92         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
93         compiling to a glibc system, set gl_cv_func_signbit and
94         gl_cv_func_signbit_gcc to "guessing yes".
95
96 2012-05-05  Bruno Haible  <bruno@clisp.org>
97
98         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
99         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
100         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
101         to "guessing yes".
102         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
103         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
104
105 2012-05-05  Bruno Haible  <bruno@clisp.org>
106
107         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
108         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
109         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
110         gl_cv_func_realpath_works to "guessing yes".
111
112 2012-05-05  Bruno Haible  <bruno@clisp.org>
113
114         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
115         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
116         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
117
118 2012-05-04  Bruno Haible  <bruno@clisp.org>
119
120         Tweak last commit.
121         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
122         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
123
124 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
125
126         unistd_h: make it easier to avoid sys_types_h
127         This is useful for Emacs, which has its own method of porting to
128         Windows, and which therefore does not need the sys_types_h module.
129         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
130         code moved here from gl_SYS_TYPES_H.
131         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
132         using the code directly.
133         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
134         gl_SYS_TYPES_H.
135         * modules/sys_types (Files):
136         * modules/unistd (Files): Add m4/off_t.m4.
137
138 2012-05-03  Bruno Haible  <bruno@clisp.org>
139
140         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
141         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
142         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
143         "guessing yes" or "guessing no".
144         (gl_FUNC_LSTAT): Update.
145         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
146         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
147         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
148
149 2012-05-03  Bruno Haible  <bruno@clisp.org>
150
151         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
152         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
153         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
154         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
155         cross-compiling, choose the first alternative on glibc systems.
156         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
157
158 2012-05-03  Bruno Haible  <bruno@clisp.org>
159
160         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
161         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
162         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
163
164 2012-05-03  Bruno Haible  <bruno@clisp.org>
165
166         chown: Avoid "guessing no" when cross-compiling to glibc systems.
167         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
168
169 2012-05-03  Bruno Haible  <bruno@clisp.org>
170
171         Avoid "guessing no" guesses when cross-compiling to glibc systems.
172         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
173         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
174         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
175         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
176         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
177         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
178         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
179         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
180         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
181         compiling to glibc systems, set gl_cv_func_chown_slash_works,
182         gl_cv_func_chown_ctime_works to "guessing yes".
183         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
184         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
185         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
186         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
187         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
189         compiling to glibc systems, set gl_cv_func_open_directory_works to
190         "guessing yes".
191         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
192         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
193         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
194         "guessing yes".
195         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
196         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
197         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
198         compiling to glibc systems, set gl_cv_func_floorf_ieee to
199         "guessing yes".
200         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
201         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
202         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
203         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
204         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
205         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
206         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
207         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
208         "guessing yes".
209         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
210         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
211         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
212         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
213         "guessing yes".
214         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
215         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
216         "guessing yes".
217         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
218         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
219         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
220         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
221         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
222         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
223         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
224         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
225         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
226         compiling to glibc systems, set gl_cv_func_log10f_ieee to
227         "guessing yes".
228         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
229         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
230         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
231         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
232         "guessing yes".
233         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
234         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
235         "guessing yes".
236         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
237         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
238         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
239         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
240         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
241         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
242         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
243         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
244         compiling to glibc systems, set gl_cv_func_mkfifo_works to
245         "guessing yes".
246         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
247         compiling to glibc systems, set gl_cv_func_mknod_works to
248         "guessing yes".
249         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
250         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
251         "guessing yes".
252         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
253         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
254         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
255         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
256         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
257         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
258         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
259         compiling to glibc systems, set gl_cv_func_svid_putenv to
260         "guessing yes".
261         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
262         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
263         "guessing yes".
264         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
265         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
266         "guessing yes".
267         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
268         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
269         to "guessing yes".
270         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
271         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
272         to "guessing yes".
273         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
274         compiling to glibc systems, set gl_cv_func_rmdir_works to
275         "guessing yes".
276         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
277         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
278         gl_cv_func_unlink_parent_fails to "guessing yes".
279         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
280         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
281         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
282         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
283         gl_cv_func_rename_dest_works to "guessing yes".
284         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
285         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
286         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
287         compiling to glibc systems, set gl_cv_func_roundf_ieee to
288         "guessing yes".
289         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
290         compiling to glibc systems, set gl_cv_func_roundl_ieee to
291         "guessing yes".
292         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
293         compiling to glibc systems, set gl_cv_func_setenv_works to
294         "guessing yes".
295         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
296         compiling to glibc systems, set gl_cv_func_unsetenv_works to
297         "guessing yes".
298         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
299         compiling to glibc systems, set gl_cv_func_sleep_works to
300         "guessing yes".
301         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
302         compiling to glibc systems, set gl_cv_func_stat_file_slash to
303         "guessing yes".
304         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
305         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
306         "guessing yes".
307         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
308         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
309         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
310         compiling to glibc systems, set gl_cv_func_truncf_ieee to
311         "guessing yes".
312         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
313         compiling to glibc systems, set gl_cv_func_truncl_ieee to
314         "guessing yes".
315         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
316         compiling to glibc systems, set gl_cv_func_usleep_works to
317         "guessing yes".
318         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
319         compiling to glibc systems, set gl_cv_func_futimesat_works to
320         "guessing yes".
321
322 2012-05-03  Bruno Haible  <bruno@clisp.org>
323
324         Say "guessing yes" or "guessing no" when cross-compiling.
325         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
326         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
327         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
328         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
329         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
330         am_cv_func_working_getline to "guessing yes" or "guessing no".
331         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
332         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
333         (gl_FUNC_MEMMEM): When cross-compiling, set
334         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
336         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
337         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
338         set gl_cv_func_strcasestr_works_always to "guessing yes" or
339         "guessing no".
340         (gl_FUNC_STRCASESTR): When cross-compiling, set
341         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
342         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
343         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
344         (gl_FUNC_STRSTR): When cross-compiling, set
345         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
346         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
347         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
348         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
349         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
350
351 2012-05-01  Bruno Haible  <bruno@clisp.org>
352
353         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
354         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
355         * build-aux/reloc-ldflags: Likewise.
356         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
357
358 2012-05-01  Bruno Haible  <bruno@clisp.org>
359
360         gnulib-tool: Remove transitional code.
361         * gnulib-tool: Don't warn about --import with 0 arguments any more.
362         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
363
364 2012-05-01  Bruno Haible  <bruno@clisp.org>
365
366         getcwd: Fix misindentation.
367         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
368
369 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
370
371         exclude: process exclude and include directives in order
372         This restores the pre-2009 behavior, and is part of a fix of a
373         grep bug reported by Quentin Arce in
374         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
375         * lib/exclude.c (struct exclude): Remove 'tail' member.
376         (new_exclude_segment): Prepend the new segment instead of appending.
377         Return void, since that's now more convenient.
378         (file_pattern_matches): Renamed from excluded_file_pattern_p.
379         (file_name_matches): Renamed from excluded_file_name_p.
380         (file_pattern_matches, file_name_matches):
381         Return true if the pattern matches, not if it excludes.
382         All callers changed.
383         (excluded_file_name): Process the list in reverse order;
384         since the list is now reversed this restores the pre-2009 behavior.
385         (add_exclude): Adjust to new reversed-order list.  Use local var
386         rather than macro, for clarity.
387         * tests/test-exclude7.sh: Adjust to corrected behavior.
388
389         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
390         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
391         it's not possible here.  Handle the case of \ at end of pattern
392         without dumping core.
393         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
394
395         _Noreturn: future-proof non-GNU and non-MSVC compilers
396         * build-aux/snippet/_Noreturn.h (_Noreturn):
397         * m4/gnulib-common.m4 (gl_COMMON_BODY):
398         Do not define _Noreturn if __STDC_VERSION__ indicates this is
399         C11 or later.  This is more likely to work with random future C
400         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
401         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
402
403         exclude: handle wildcards with FNM_EXTMATCH
404         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
405         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
406         comment that "has wildcards" really means "has or may have
407         wildcards".  Simplify by avoiding the need to call strcspn.
408
409 2012-04-29  Bruno Haible  <bruno@clisp.org>
410
411         gnulib-tool: Fix list of authors.
412         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
413
414 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
415
416         bootstrap: support Automake-NG in $buildreq
417         * bootstrap (check_versions): Handle automake and aclocal from
418         Automake-NG specially.  They can be specified as respectively
419         the "automake-ng" and "aclocal-ng" requirements.
420
421 2012-04-25  Eric Blake  <eblake@redhat.com>
422
423         bootstrap: only force latest Makefile.in.in for gettext module
424         * build-aux/bootstrap (with_gettext): Only install latest
425         Makefile.in.in for projects requesting bleeding edge gettext.
426
427 2012-04-22  Bruno Haible  <bruno@clisp.org>
428
429         doc: Mention reason for replacement on glibc/Linux systems.
430         * doc/posix-functions/dprintf.texi: Mention the problem with special
431         'long double' values.
432         * doc/posix-functions/fprintf.texi: Likewise.
433         * doc/posix-functions/printf.texi: Likewise.
434         * doc/posix-functions/snprintf.texi: Likewise.
435         * doc/posix-functions/sprintf.texi: Likewise.
436         * doc/posix-functions/vdprintf.texi: Likewise.
437         * doc/posix-functions/vfprintf.texi: Likewise.
438         * doc/posix-functions/vprintf.texi: Likewise.
439         * doc/posix-functions/vsnprintf.texi: Likewise.
440         * doc/posix-functions/vsprintf.texi: Likewise.
441         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
442         platforms with F_DUPFD_CLOEXEC problems.
443         * doc/posix-functions/glob.texi: Mention which platforms are affected
444         by the problem with symbolic links.
445         * doc/posix-functions/linkat.texi: Mention the problem with
446         AT_SYMLINK_FOLLOW on Linux.
447
448 2012-04-22  Bruno Haible  <bruno@clisp.org>
449
450         pwrite: Don't replace on all platforms.
451         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
452
453 2012-04-22  Bruno Haible  <bruno@clisp.org>
454
455         rint* tests: Avoid gcc warnings.
456         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
457         * tests/test-rintf.c (INFINITY, NAN): Likewise.
458         * tests/test-rintl.c (INFINITY, NAN): Likewise.
459
460 2012-04-21  Bruno Haible  <bruno@clisp.org>
461
462         users.txt: Update.
463         * users.txt: Add freedink, wdiff. Update URLs for projects that have
464         switched from CVS to git, bzr, or svn.
465
466 2012-04-21  Bruno Haible  <bruno@clisp.org>
467
468         Large File Support for native Windows platforms.
469
470         * m4/largefile.m4 (gl_LARGEFILE): New macro.
471         * modules/largefile (configure.ac): Require gl_LARGEFILE.
472
473         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
474         type.
475         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
476         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
477         * doc/posix-headers/sys_types.texi: Mention the effect of the
478         'largefile' module.
479
480         * lib/fcntl.in.h: Add comments about off_t.
481         * modules/fcntl-h (Depends-on): Add sys_types.
482
483         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
484         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
485         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
486         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
487         * modules/unistd (Depends-on): Add sys_types.
488         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
489
490         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
491         instead of lseek.
492         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
493         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
494         * modules/lseek (Depends-on): Add sys_types.
495
496         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
497         msvc-nothrow.h.
498         (SetFileSize): New function.
499         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
500         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
501         if Large File Support is requested.
502         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
503         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
504
505         * lib/stdio.in.h: Add comments about off_t.
506         * modules/stdio (Depends-on): Add sys_types.
507
508         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
509         instead of ftello.
510         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
511         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
512         (gl_PREREQ_FTELLO): New macro.
513         * modules/ftello (Depends-on): Add sys_types.
514         (configure.ac): Incoke gl_PREREQ_FTELLO.
515
516         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
517         instead of fseeko.
518         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
519         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
520         (gl_PREREQ_FSEEKO): New macro.
521         * modules/fseeko (Depends-on): Add sys_types.
522         (configure.ac): Invoke gl_PREREQ_FSEEKO.
523
524         * lib/sys_stat.in.h: Add comments about off_t.
525         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
526         64-bit integer for st_size in 'struct stat'.
527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
528         Define _GL_WINDOWS_64_BIT_ST_SIZE.
529         * modules/sys_stat (Depends-on): Add sys_types.
530         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
531
532         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
533         instead of stat or _stat.
534
535         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
536         'struct _stati64' instead of fstat and 'struct stat'.
537         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
538         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
539
540         Reported by Ray Satiro <raysatiro@yahoo.com>.
541
542 2012-04-19  Eric Blake  <eblake@redhat.com>
543
544         bootstrap: accommodate older libtool
545         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
546         Reported by Daniel P. Berrange.
547
548 2012-04-19  Jim Meyering  <meyering@redhat.com>
549
550         announce-gen: avoid failure due to lack of Digest::SHA1
551         Even with the preferred Digest::SHA available, this script
552         would fail when the backup module, Digest::SHA1, was not installed.
553         * build-aux/announce-gen: Quote the conditional use of "use".
554         Reported by Reuben Thomas in:
555         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
556
557         bootstrap: don't let a user's CDPATH setting affect this script
558         When CDPATH is set, cd will sometimes generate output.
559         When "cd" is run in a subshell whose output matters, that
560         surprising-to-some output can cause malfunction.
561         Unsetting CDPATH turns off this shell "feature."
562         * build-aux/bootstrap (CDPATH): Unset.
563         Reported by Reuben Thomas in:
564         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
565         and inspired by his patch here:
566         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
567
568 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
569         and Jim Meyering  <meyering@redhat.com>
570
571         maint.mk: catch "see @xref{}" and similar
572         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
573         prohibit "See also @xref{", "Also see @pxref{", and similar.
574
575 2012-04-16  Jim Meyering  <meyering@redhat.com>
576
577         bootstrap: really use gnulib's po/Makefile.in.in
578         * build-aux/bootstrap: Correct the source file name in previous change.
579         Reported by Akim Demaille.
580
581         configmake: correct minor inconsistency in Makefile rule
582         * modules/configmake (Makefile.am): All other rules like this one
583         run the final "mv -f ..." in the same backslash-continued command
584         as the one that does everything else.  This one put the mv -f ...
585         command on a separate, non-backslash-continued line.
586         Make it like the others.
587
588         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
589         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
590         the one from gettext.  Reported by Akim Demaille.
591
592 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
593
594         Fix recursion of install-* into po directories.
595         Bison's install-pdf bug reported by Hans Aberg at
596         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
597         * build-aux/po/Makefile.in.in (install-dvi, install-html)
598         (install-info, install-pdf, install-ps): New targets.
599
600 2012-04-16  Jim Meyering  <meyering@redhat.com>
601
602         maint: avoid spurious "make sc_maint" failure
603         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
604         exempt all *.class file names, for lib/javaversion.class.
605
606 2012-04-15  Bruno Haible  <bruno@clisp.org>
607
608         lseek: Make configure test independent of environment.
609         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
610         Windows, we know that lseek() on pipes is broken; skip the runtime
611         test.
612
613 2012-04-14  Bruno Haible  <bruno@clisp.org>
614
615         stat: Bypass buggy override in mingw64.
616         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
617         * lib/stat.c (stat) [mingw64]: Define to _stat.
618         * doc/posix-functions/stat.texi: Mention mingw64 bug.
619
620 2012-04-14  Bruno Haible  <bruno@clisp.org>
621
622         pathmax: Fix compilation error on MSVC 9.
623         * modules/pathmax (Depends-on): Add unistd.
624
625 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
626
627         README: document pointer comparison assumption
628         * README (Portability guidelines): Document assumption about
629         pointer comparisons, in response to a recent bug-gnulib comment by
630         Jeffrey Kegler.
631
632 2012-04-12  Bruno Haible  <bruno@clisp.org>
633
634         Tests for module 'getrusage'.
635         * modules/getrusage-tests: New file.
636         * tests/test-getrusage.c: New file.
637
638         New module 'getrusage'.
639         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
640         warn-on-use.h.
641         (getrusage): New declaration.
642         * lib/getrusage.c: New file.
643         * m4/getrusage.m4: New file.
644         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
645         is declared.
646         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
647         HAVE_GETRUSAGE.
648         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
649         snippet/c++defs, snippet/warn-on-use.
650         (Makefile.am): Update generation of sys/resource.h. Substitute
651         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
652         * modules/getrusage: New file.
653         * doc/posix-functions/getrusage.texi: Mention the new module.
654
655 2012-04-12  Bruno Haible  <bruno@clisp.org>
656
657         Tests for module 'sys_resource'.
658         * modules/sys_resource-tests: New file.
659         * tests/test-sys_resource.c: New file.
660
661         New module 'sys_resource'.
662         * lib/sys_resource.in.h: New file.
663         * m4/sys_resource_h.m4: New file.
664         * modules/sys_resource: New file.
665         * doc/posix-headers/sys_resource.texi: Mention the new module.
666
667 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
668
669         ioctl: Fix compilation error on mingw.
670         * lib/ioctl.c: Include <windows.h>.
671         Also reported by Ray Satiro <raysatiro@yahoo.com>.
672
673 2012-04-04  Jim Meyering  <meyering@redhat.com>
674
675         regex: correct #pragma guard expression
676         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
677         not 4.3.  Correct its cpp guard expression.
678
679 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
680
681         regex: remove unnecessary type punning
682         Problem reported by Vladimir Serbinenko in
683         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
684         * lib/regex.h (struct re_pattern_buffer): Change the type of
685         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
686         Fix comment to match code.
687         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
688         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
689         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
690         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
691         (set_regs):
692         Omit no-longer-necessary casts.
693
694 2012-04-03  Bruno Haible  <bruno@clisp.org>
695
696         Tests for module 'ilogbl'.
697         * modules/ilogbl-tests: New file.
698         * tests/test-ilogbl.c: New file.
699
700         New module 'ilogbl'.
701         * lib/math.in.h (ilogbl): New declaration.
702         * lib/ilogbl.c: New file.
703         * m4/ilogbl.m4: New file.
704         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
706         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
707         Split sed invocation, to avoid the limit of 100 substitutions of
708         HP-UX 'sed'.
709         * modules/ilogbl: New file.
710         * tests/test-math-c++.cc: Check the declaration of ilogbl.
711         * doc/posix-functions/ilogbl.texi: Mention the new module.
712
713 2012-04-03  Bruno Haible  <bruno@clisp.org>
714
715         Tests for module 'ilogbf'.
716         * modules/ilogbf-tests: New file.
717         * tests/test-ilogbf.c: New file.
718
719         New module 'ilogbf'.
720         * lib/math.in.h (ilogbf): New declaration.
721         * lib/ilogbf.c: New file.
722         * m4/ilogbf.m4: New file.
723         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
725         REPLACE_ILOGBF.
726         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
727         REPLACE_ILOGBF.
728         * modules/ilogbf: New file.
729         * tests/test-math-c++.cc: Check the declaration of ilogbf.
730         * doc/posix-functions/ilogbf.texi: Mention the new module.
731
732 2012-04-03  Bruno Haible  <bruno@clisp.org>
733
734         Tests for module 'ilogb'.
735         * modules/ilogb-tests: New file.
736         * tests/test-ilogb.c: New file.
737         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
738         tests/test-logb-ieee.h.
739
740         New module 'ilogb'.
741         * lib/math.in.h (ilogb): New declaration.
742         * lib/ilogb.c: New file.
743         * m4/ilogb.m4: New file.
744         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
746         REPLACE_ILOGB.
747         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
748         REPLACE_ILOGB.
749         * modules/ilogb: New file.
750         * tests/test-math-c++.cc: Check the declaration of ilogb.
751         * doc/posix-functions/ilogb.texi: Mention the new module.
752
753 2012-04-03  Bruno Haible  <bruno@clisp.org>
754
755         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
756         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
757         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
758         (main): Check their values.
759         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
760         problem.
761
762 2012-04-03  Bruno Haible  <bruno@clisp.org>
763
764         Tests for module 'logbl-ieee'.
765         * modules/logbl-ieee-tests: New file.
766         * tests/test-logbl-ieee.c: New file.
767
768         New module 'logbl-ieee'.
769         * modules/logbl-ieee: New file.
770
771         Tests for module 'logb-ieee'.
772         * modules/logb-ieee-tests: New file.
773         * tests/test-logb-ieee.c: New file.
774
775         New module 'logb-ieee'.
776         * modules/logb-ieee: New file.
777
778         Tests for module 'logbf-ieee'.
779         * modules/logbf-ieee-tests: New file.
780         * tests/test-logbf-ieee.c: New file.
781         * tests/test-logb-ieee.h: New file.
782
783         New module 'logbf-ieee'.
784         * modules/logbf-ieee: New file.
785
786 2012-04-03  Bruno Haible  <bruno@clisp.org>
787
788         Tests for module 'logbl'.
789         * modules/logbl-tests: New file.
790         * tests/test-logbl.c: New file.
791
792         New module 'logbl'.
793         * lib/math.in.h (logbl): New declaration.
794         * lib/logbl.c: New file.
795         * m4/logbl.m4: New file.
796         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
798         REPLACE_LOGBL.
799         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
800         REPLACE_LOGBL.
801         * modules/logbl: New file.
802         * tests/test-math-c++.cc: Check the declaration of logbl.
803         * doc/posix-functions/logbl.texi: Mention the new module.
804
805 2012-04-02  Bruno Haible  <bruno@clisp.org>
806
807         Tests for module 'logbf'.
808         * modules/logbf-tests: New file.
809         * tests/test-logbf.c: New file.
810
811         New module 'logbf'.
812         * lib/math.in.h (logbf): New declaration.
813         * lib/logbf.c: New file.
814         * m4/logbf.m4: New file.
815         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
817         REPLACE_LOGBF.
818         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
819         REPLACE_LOGBF.
820         * modules/logbf: New file.
821         * tests/test-math-c++.cc: Check the declaration of logbf.
822         * doc/posix-functions/logbf.texi: Mention the new module.
823
824 2012-04-02  Bruno Haible  <bruno@clisp.org>
825
826         logb tests: More tests.
827         * tests/test-logb.h: New file, based on tests/test-logb.c and
828         tests/test-frexp.h.
829         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
830         (main): Just invoke test_function.
831         * modules/logb-tests (Files): Add tests/test-logb.h,
832         tests/minus-zero.h, tests/randomd.c.
833         (Makefile.am): Add randomd.c to test_logb_SOURCES.
834
835         logb: Provide replacement and workarounds.
836         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
837         is 1.
838         * lib/logb.c: New file.
839         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
840         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
842         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
843         * modules/logb (Files): Add lib/logb.c.
844         (Depends-on): Add isfinite, frexp, isnand.
845         (configure.ac): Compile the replacement code logb.c if needed.
846         * tests/test-math-c++.cc: Check the declaration of logb.
847         * doc/posix-functions/logb.texi: Mention the replacement and the bug
848         with subnormal numbers.
849
850 2012-04-02  Bruno Haible  <bruno@clisp.org>
851
852         log10* tests: Speed up.
853         * tests/test-log10.h (test_function): Reduce amount of random numbers
854         to test.
855
856 2012-04-01  Bruno Haible  <bruno@clisp.org>
857
858         logf-ieee: Fix test whether logf works.
859         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
860
861 2012-04-01  Bruno Haible  <bruno@clisp.org>
862
863         log10l: Work around log10l-ieee test failure on IRIX 6.5.
864         * lib/log10l.c: Include <float.h>
865         (log10l): On IRIX, normalize the +Infinity value.
866         * modules/log10l (Depends-on): Add 'float'.
867         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
868         +Infinity.
869
870         log10f-ieee: Work around test failure on NetBSD 5.1.
871         * m4/log10f-ieee.m4: New file.
872         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
873         test whether log10f works with a negative argument. Replace it if not.
874         * lib/log10f.c (log10f): For negative arguments, return NaN.
875         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
876         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
877         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
878
879         log10f-ieee: Work around test failure on Solaris 9.
880         * modules/log10f-ieee (Depends-on): Add log10-ieee.
881         (configure.ac): Require gl_FUNC_LOG10F.
882
883         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
884         * m4/log10-ieee.m4: New file.
885         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
886         whether log10 works with a negative argument. Replace it if not.
887         * lib/log10.c (log10): For negative arguments, return NaN.
888         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
889         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
890         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
891
892         Tests for module 'log10l-ieee'.
893         * modules/log10l-ieee-tests: New file.
894         * tests/test-log10l-ieee.c: New file.
895
896         New module 'log10l-ieee'.
897         * modules/log10l-ieee: New file.
898
899         Tests for module 'log10-ieee'.
900         * modules/log10-ieee-tests: New file.
901         * tests/test-log10-ieee.c: New file.
902
903         New module 'log10-ieee'.
904         * modules/log10-ieee: New file.
905
906         Tests for module 'log10f-ieee'.
907         * modules/log10f-ieee-tests: New file.
908         * tests/test-log10f-ieee.c: New file.
909         * tests/test-log10-ieee.h: New file.
910
911         New module 'log10f-ieee'.
912         * modules/log10f-ieee: New file.
913
914 2012-04-01  Bruno Haible  <bruno@clisp.org>
915
916         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
917         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
918         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
919         workaround.
920         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
921         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
923         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
924         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
925         (Depends-on): Update conditions.
926         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
927         IRIX 6.5, OSF/1 5.1 problems.
928
929 2012-04-01  Bruno Haible  <bruno@clisp.org>
930
931         log10f: Work around OSF/1 5.1 bug.
932         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
933         * lib/log10f.c (log10f): If logf exists, use it and provide just the
934         workaround.
935         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
936         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
938         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
939         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
940         (Depends-on): Update conditions.
941         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
942
943 2012-04-01  Bruno Haible  <bruno@clisp.org>
944
945         log10: Work around OSF/1 5.1 bug.
946         * lib/math.in.h (log10): New declaration.
947         * lib/log10.c: New file.
948         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
949         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
950         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
952         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
953         * modules/log10 (Files): Add lib/log10.c.
954         (Depends-on): Add math.
955         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
956         * tests/test-math-c++.cc: Check the declaration of log10.
957         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
958
959 2012-03-31  Bruno Haible  <bruno@clisp.org>
960
961         log10l tests: More tests.
962         * modules/log10l-tests (Files): Add tests/test-log10l.h,
963         tests/minus-zero.h, tests/randoml.c.
964         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
965         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
966         (main): Invoke test_function.
967
968         log10f tests: More tests.
969         * modules/log10f-tests (Files): Add tests/test-log10.h,
970         tests/minus-zero.h, tests/randomf.c.
971         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
972         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
973         (main): Invoke test_function.
974
975         log10 tests: More tests.
976         * tests/test-log10.h: New file.
977         * modules/log10-tests (Files): Add tests/test-log10.h,
978         tests/minus-zero.h, tests/randomd.c.
979         (Makefile.am): Add randomd.c to test_log10_SOURCES.
980         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
981         (main): Invoke test_function.
982
983 2012-03-31  Simon Josefsson  <simon@josefsson.org>
984
985         fflush: Fix syntax error.
986         * lib/fflush.c: Include unused-parameter.h, needed for
987         _GL_UNUSED_PARAMETER.
988         * modules/fflush (Depends-on): Add snippet/unused-parameter.
989
990 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
991
992         regex: pacify GCC when compiling GRUB
993         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
994         a diagnostic.  Reported by Vladimir Serbinenko in
995         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
996
997 2012-03-29  Eric Blake  <eblake@redhat.com>
998
999         stdio: don't assume gets any more
1000         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1001         support.
1002         * modules/stdio (Makefile.am): Likewise.
1003         * lib/stdio-read.c (gets): Likewise.
1004         * tests/test-stdio-c++.cc: Likewise.
1005         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1006         * lib/stdio.in.h (gets): Make warning occur in more places.
1007         * doc/posix-functions/gets.texi (gets): Update documentation.
1008         Reported by Christer Solskogen.
1009
1010         maint.mk: fix syntax checks without exclusions
1011         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1012         Reported by Daniel P. Berrange.
1013
1014         strerror_r: avoid compiler warning
1015         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1016         level.
1017
1018         fflush: avoid compiler warning
1019         * lib/fflush.c (update_fpos_cache): Mark variables that are
1020         potentially unused.
1021
1022 2012-03-25  Bruno Haible  <bruno@clisp.org>
1023
1024         Tests for module 'localeconv'.
1025         * modules/localeconv-tests: New file.
1026         * tests/test-localeconv.c: New file.
1027
1028         New module 'localeconv'.
1029         * lib/locale.in.h (localeconv): New declaration.
1030         * lib/localeconv.c: New file.
1031         * m4/localeconv.m4: New file.
1032         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1033         REPLACE_LOCALECONV.
1034         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1035         REPLACE_LOCALECONV.
1036         * modules/localeconv: New file.
1037         * modules/nl_langinfo (Depends-on): Add localeconv.
1038         * modules/human (Depends-on): Likewise.
1039         * doc/posix-functions/localeconv.texi: Mention the new module.
1040
1041 2012-03-25  Bruno Haible  <bruno@clisp.org>
1042
1043         locale: Provide a complete 'struct lconv'.
1044         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1045         'struct lconv' does not contain int_p_cs_precedes.
1046         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1047         * doc/posix-headers/locale.texi: Update.
1048
1049         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1050         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1051         * doc/posix-headers/locale.texi: Update.
1052
1053         locale: Provide a working 'struct lconv'.
1054         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1055         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1056         'struct lconv' does not even contain decimal_point.
1057         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1058         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1059         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1060         * doc/posix-headers/locale.texi: Mention the problems with
1061         'struct lconv'.
1062         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1063
1064 2012-03-24  Bruno Haible  <bruno@clisp.org>
1065
1066         Enable common subexpression optimization in GCC.
1067         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1068         macros.
1069         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1070         GCC attribute 'const'.
1071         (uc_locale_language): Declare with GCC attribute 'pure'.
1072         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1073         with GCC attribute 'const'.
1074         * lib/unictype.in.h (uc_is_general_category_withtable,
1075         uc_combining_class, uc_combining_class_name,
1076         uc_combining_class_long_name, uc_bidi_class_name,
1077         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1078         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1079         uc_decimal_value, uc_digit_value, uc_numeric_value,
1080         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1081         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1082         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1083         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1084         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1085         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1086         Declare with GCC attribute 'const'.
1087         (uc_general_category_name, uc_general_category_long_name,
1088         uc_general_category_byname, uc_general_category,
1089         uc_is_general_category, uc_combining_class_byname,
1090         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1091         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1092         Declare with GCC attribute 'pure'.
1093         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1094         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1095         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1096         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1097         with GCC attribute 'pure'.
1098         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1099         'const'.
1100         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1101         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1102         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1103         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1104         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1105         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1106         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1107         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1108         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1109         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1110         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1111         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1112         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1113         GCC attribute 'pure'.
1114         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1115         'const'.
1116         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1117         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1118         u32_strwidth): Declare with GCC attribute 'pure'.
1119
1120         Enable common subexpression optimization in GCC.
1121         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1122         (alphasort): Declare with GCC attribute 'pure'.
1123         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1124         (atoll): Declare with GCC attribute 'pure'.
1125         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1126         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1127         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1128         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1129         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1130         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1131         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1132
1133 2012-03-24  Bruno Haible  <bruno@clisp.org>
1134
1135         gnulib-tool: Avoid unintended error output from 'cmp'.
1136         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1137         "cmp -s", not "cmp > /dev/null".
1138
1139 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1140
1141         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1142
1143         It's not just Automake versions < 1.9b that creates an empty
1144         pkgdatadir at installation time if pkgdata_DATA is specified
1145         to empty; modern automake versions do this as well, at least
1146         until automake 1.11.4 (not yet released at the moment of writing,
1147         but soon to appear).  That behaviour was generally considered a
1148         feature rather than a bug, at least until this discussion:
1149         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1150
1151         See also automake bugs #10997 and #11030.
1152
1153         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1154         reference to relevant automake bug numbers.
1155         (func_emit_tests_Makefile_am): Likewise.
1156
1157 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1158
1159         announce-gen: use Digest::SHA when possible
1160         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1161         back to Digest::SHA1 if necessary.
1162
1163 2012-03-20  Jim Meyering  <meyering@redhat.com>
1164
1165         tests: avoid gcc warnings about argv vs. const initializers
1166         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1167         warnings about discarding 'const' qualifier from pointer target type.
1168         * tests/test-posix_spawn2.c (main): Likewise.
1169
1170 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1171
1172         README-release: simplify slightly
1173         * top/README-release: Run "git checkout master" only once.
1174
1175 2012-03-15  Mark Wielaard  <mark@klomp.org>
1176
1177         git-merge-changelog: add specific example on how to use with hg.
1178         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1179
1180 2012-03-18  Mark Wielaard  <mark@klomp.org>
1181
1182         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1183
1184 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1185
1186         git-version-gen: don't let "prefix" envvar cause trouble
1187         * build-aux/git-version-gen (prefix): Initialize properly,
1188         so as not to use a value specified via the environment.
1189         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1190
1191 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1192
1193         regex: diagnose too-large repeat counts in EREs
1194         Previously, the code did not diagnose the too-large repeat count
1195         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1196         as if it were 'b\{1000000000}', which is unexpected.
1197         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1198         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1199         is a reasonable one for this problem.  Another option would be to
1200         create a new REG_OVERFLOW error for repeat counts that are too large.
1201         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1202         count is too large, so that the caller can distinguish the two cases.
1203         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1204         "Too large" return code, and that repeat counts are one example of this.
1205
1206 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1207
1208         doc: some glibc x32 integer width issues
1209         * doc/posix-headers/sys_types.texi (sys/types.h):
1210         * doc/posix-headers/time.texi (time.h):
1211         Mention that glibc x32 does not conform to POSIX in a couple of
1212         areas related to integer widths.
1213
1214 2012-03-15  Bruno Haible  <bruno@clisp.org>
1215
1216         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1217         * lib/fma.c (VOLATILE): New macro.
1218         (FUNC): Use it to work around a GCC compiler bug.
1219
1220 2012-03-13  Bruno Haible  <bruno@clisp.org>
1221
1222         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1223         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1224         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1225         REPLACE_HYPOTL to 1.
1226         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1227
1228 2012-03-13  Bruno Haible  <bruno@clisp.org>
1229
1230         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1231         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1232         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1233         REPLACE_REMAINDERL to 1.
1234         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1235         bug.
1236
1237 2012-03-13  Bruno Haible  <bruno@clisp.org>
1238
1239         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1240         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1241         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1242         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1243         too big rounding errors.
1244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1245         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1246         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1247         (Depends-on): Update conditions.
1248         * tests/test-sqrtl.c (my_ldexpl): New function.
1249         (main): Add test of a particular value.
1250         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1251
1252 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1253
1254         doc: Update timer_* platform portability notes.
1255         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1256         that always return ENOSYS.
1257         * doc/posix-functions/timer_delete.texi: Likewise.
1258         * doc/posix-functions/timer_gettime.texi: Likewise.
1259         * doc/posix-functions/timer_settime.texi: Likewise.
1260
1261 2012-03-13  Bruno Haible  <bruno@clisp.org>
1262
1263         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1264         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1265         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1266         REPLACE_CBRTL to 1.
1267         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1268
1269 2012-03-13  Bruno Haible  <bruno@clisp.org>
1270
1271         remainderl: Avoid compilation error on AIX >= 5.2.
1272         * lib/math.in.h (remainderl): Undefine macro from the system header.
1273
1274 2012-03-13  Bruno Haible  <bruno@clisp.org>
1275
1276         Avoid compilation errors with MSVC option -fp:strict.
1277         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1278         * lib/cbrtf.c: Likewise.
1279         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1280
1281 2012-03-12  Bruno Haible  <bruno@clisp.org>
1282
1283         uninorm: Don't crash in out-of-memory conditions.
1284         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1285         gracefully.
1286         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1287         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1288
1289 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1290
1291         quote: fix syntax-check
1292         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1293         also exports quote_quoting_options.
1294
1295 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1296
1297         Collapse list of copyright years to ranges.  See
1298         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1299         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1300         build-aux/csharpexec.sh.in, build-aux/gnupload,
1301         build-aux/install-reloc, build-aux/javacomp.sh.in,
1302         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1303         build-aux/move-if-change, build-aux/reloc-ldflags,
1304         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1305
1306 2012-03-11  Bruno Haible  <bruno@clisp.org>
1307
1308         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1309         * m4/log2f-ieee.m4: New file.
1310         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1311         whether log2f works with a minus zero argument. Replace it if not.
1312         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1313         (Depends-on): Add log2-ieee.
1314         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1315         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1316
1317         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1318         * m4/log2-ieee.m4: New file.
1319         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1320         whether log2 works with a minus zero argument. Replace it if not.
1321         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1322         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1323         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1324
1325         Tests for module 'log2l-ieee'.
1326         * modules/log2l-ieee-tests: New file.
1327         * tests/test-log2l-ieee.c: New file.
1328
1329         New module 'log2l-ieee'.
1330         * modules/log2l-ieee: New file.
1331
1332         Tests for module 'log2-ieee'.
1333         * modules/log2-ieee-tests: New file.
1334         * tests/test-log2-ieee.c: New file.
1335
1336         New module 'log2-ieee'.
1337         * modules/log2-ieee: New file.
1338
1339         Tests for module 'log2f-ieee'.
1340         * modules/log2f-ieee-tests: New file.
1341         * tests/test-log2f-ieee.c: New file.
1342         * tests/test-log2-ieee.h: New file.
1343
1344         New module 'log2f-ieee'.
1345         * modules/log2f-ieee: New file.
1346
1347 2012-03-11  Bruno Haible  <bruno@clisp.org>
1348
1349         Tests for module 'log2l'.
1350         * modules/log2l-tests: New file.
1351         * tests/test-log2l.c: New file.
1352
1353         New module 'log2l'.
1354         * lib/math.in.h (log2l): New declaration.
1355         * lib/log2l.c: New file.
1356         * m4/log2l.m4: New file.
1357         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1359         REPLACE_LOG2L.
1360         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1361         REPLACE_LOG2L.
1362         * modules/log2l: New file.
1363         * tests/test-math-c++.cc: Check the declaration of log2l.
1364         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1365         and OSF/1 problems.
1366
1367 2012-03-11  Bruno Haible  <bruno@clisp.org>
1368
1369         Tests for module 'log2f'.
1370         * modules/log2f-tests: New file.
1371         * tests/test-log2f.c: New file.
1372
1373         New module 'log2f'.
1374         * lib/math.in.h (log2f): New declaration.
1375         * lib/log2f.c: New file.
1376         * m4/log2f.m4: New file.
1377         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1379         REPLACE_LOG2F.
1380         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1381         REPLACE_LOG2F.
1382         * modules/log2f: New file.
1383         * tests/test-math-c++.cc: Check the declaration of log2f.
1384         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1385         and OSF/1 and Cygwin problems.
1386
1387 2012-03-11  Bruno Haible  <bruno@clisp.org>
1388
1389         Tests for module 'log2'.
1390         * modules/log2-tests: New file.
1391         * tests/test-log2.c: New file.
1392         * tests/test-log2.h: New file.
1393
1394         New module 'log2'.
1395         * lib/math.in.h (log2): New declaration.
1396         * lib/log2.c: New file.
1397         * m4/log2.m4: New file.
1398         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1400         REPLACE_LOG2.
1401         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1402         REPLACE_LOG2.
1403         * modules/log2: New file.
1404         * tests/test-math-c++.cc: Check the declaration of log2.
1405         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1406         and OSF/1 and Cygwin problems.
1407
1408 2012-03-11  Bruno Haible  <bruno@clisp.org>
1409
1410         exp2* tests: More tests.
1411         * tests/test-exp2.h (test_function): Test all integral arguments that
1412         don't need to overflow or denormalized numbers.
1413         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1414         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1415         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1416
1417 2012-03-10  Bruno Haible  <bruno@clisp.org>
1418
1419         log1pl-ieee: Work around test failure on AIX 7.1.
1420         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1421
1422         log1pl-ieee: Work around test failure on IRIX 6.5.
1423         * m4/log1pl-ieee.m4: New file.
1424         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1425         test whether log1pl works with a minus zero argument. Replace it if
1426         not.
1427         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1429         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1430         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1431         (Depends-on): Update conditions.
1432         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1433         m4/signbit.m4.
1434         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1435         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1436
1437         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1438         * m4/log1pf-ieee.m4: New file.
1439         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1440         test whether log1pf works with a minus zero argument. Replace it if
1441         not.
1442         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1443         m4/signbit.m4.
1444         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1445         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1446
1447         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1448         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1449         (configure.ac): Require gl_FUNC_LOG1PF.
1450
1451         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1452         * m4/log1p-ieee.m4: New file.
1453         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1454         whether log1p works with a minus zero argument. Replace it if not.
1455         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1457         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1458         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1459         (Depends-on): Update conditions.
1460         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1461         m4/signbit.m4.
1462         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1463         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1464
1465         Tests for module 'log1pl-ieee'.
1466         * modules/log1pl-ieee-tests: New file.
1467         * tests/test-log1pl-ieee.c: New file.
1468
1469         New module 'log1pl-ieee'.
1470         * modules/log1pl-ieee: New file.
1471
1472         Tests for module 'log1p-ieee'.
1473         * modules/log1p-ieee-tests: New file.
1474         * tests/test-log1p-ieee.c: New file.
1475
1476         New module 'log1p-ieee'.
1477         * modules/log1p-ieee: New file.
1478
1479         Tests for module 'log1pf-ieee'.
1480         * modules/log1pf-ieee-tests: New file.
1481         * tests/test-log1pf-ieee.c: New file.
1482         * tests/test-log1p-ieee.h: New file.
1483
1484         New module 'log1pf-ieee'.
1485         * modules/log1pf-ieee: New file.
1486
1487 2012-03-10  Bruno Haible  <bruno@clisp.org>
1488
1489         Tests for module 'log1pl'.
1490         * modules/log1pl-tests: New file.
1491         * tests/test-log1pl.c: New file.
1492
1493         New module 'log1pl'.
1494         * lib/math.in.h (log1pl): New declaration.
1495         * lib/log1pl.c: New file.
1496         * m4/log1pl.m4: New file.
1497         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1499         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1500         * modules/log1pl: New file.
1501         * tests/test-math-c++.cc: Check the declaration of log1pl.
1502         * doc/posix-functions/log1pl.texi: Mention the new module.
1503
1504 2012-03-10  Bruno Haible  <bruno@clisp.org>
1505
1506         Tests for module 'log1pf'.
1507         * modules/log1pf-tests: New file.
1508         * tests/test-log1pf.c: New file.
1509
1510         New module 'log1pf'.
1511         * lib/math.in.h (log1pf): New declaration.
1512         * lib/log1pf.c: New file.
1513         * m4/log1pf.m4: New file.
1514         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1516         REPLACE_LOG1PF.
1517         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1518         REPLACE_LOG1PF.
1519         * modules/log1pf: New file.
1520         * tests/test-math-c++.cc: Check the declaration of log1pf.
1521         * doc/posix-functions/log1pf.texi: Mention the new module.
1522
1523 2012-03-10  Bruno Haible  <bruno@clisp.org>
1524
1525         log1p tests: More tests.
1526         * tests/test-log1p.h: New file.
1527         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1528         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1529         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1530         (main): Invoke test_function.
1531
1532         log1p: Provide replacement for Minix and MSVC.
1533         * lib/math.in.h (log1p): New declaration.
1534         * lib/log1p.c: New file.
1535         * m4/log1p.m4: New file.
1536         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1538         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1539         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1540         (Depends-on): Add math, isnand, log, round.
1541         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1542         HAVE_LOG1P is 0.
1543         * tests/test-math-c++.cc: Check the declaration of log1p.
1544         * doc/posix-functions/log1p.texi: Mention the replacement.
1545
1546 2012-03-10  Bruno Haible  <bruno@clisp.org>
1547
1548         math tests: Small simplification.
1549         * tests/test-exp.h (test_function): Use the same err_bound for
1550         'double' on platforms with sizeof (long double) == sizeof (double)
1551         than on platforms with sizeof (long double) > sizeof (double).
1552         * tests/test-exp2.h (test_function): Likewise.
1553         * tests/test-expm1.h (test_function): Likewise.
1554         * tests/test-log.h (test_function): Likewise.
1555
1556 2012-03-10  Bruno Haible  <bruno@clisp.org>
1557
1558         Fix some comments.
1559         * lib/expl.c: Fix an ambiguous comment.
1560         * lib/expm1.c: Likewise.
1561         * lib/expm1l.c: Likewise.
1562         * lib/exp2.c: Likewise.
1563         * lib/exp2l.c: Likewise.
1564
1565 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1566
1567         regex: allow inclusion of <regex.h> before <limits.h>
1568         Without this patch, portable programs had to include <limits.h> before
1569         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1570         I ran into this problem with a test version of GNU grep on Solaris 8.
1571         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1572         This is done conditionally so that this change can be merged
1573         back to glibc.
1574         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1575         using the included regex.
1576
1577         fts: depend on fdopendir
1578         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1579         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1580         problem was introduced when fdopendir was split out.
1581
1582 2012-03-10  Bruno Haible  <bruno@clisp.org>
1583
1584         Remove unused variables.
1585         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1586         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1587
1588 2012-03-10  Bruno Haible  <bruno@clisp.org>
1589
1590         isnanf-nolibm: Fix last commit.
1591         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1592
1593         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1594         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1595
1596 2012-03-10  Bruno Haible  <bruno@clisp.org>
1597
1598         logf-ieee: Work around test failure on NetBSD 5.1.
1599         * m4/logf-ieee.m4: New file.
1600         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1601         whether logf works with a negative argument. Replace it if not.
1602         * lib/logf.c (logf): For negative arguments, return NaN.
1603         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1604         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1605         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1606
1607         logf-ieee: Work around test failure on Solaris 9.
1608         * modules/logf-ieee (Depends-on): Add log-ieee.
1609         (configure.ac): Require gl_FUNC_LOGF.
1610
1611         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1612         * m4/log-ieee.m4: New file.
1613         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1614         log works with a negative argument. Replace it if not.
1615         * lib/log.c (log): For negative arguments, return NaN.
1616         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1617         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1618         * doc/posix-functions/log.texi: Mention the log-ieee module.
1619
1620         Tests for module 'logl-ieee'.
1621         * modules/logl-ieee-tests: New file.
1622         * tests/test-logl-ieee.c: New file.
1623
1624         New module 'logl-ieee'.
1625         * modules/logl-ieee: New file.
1626
1627         Tests for module 'log-ieee'.
1628         * modules/log-ieee-tests: New file.
1629         * tests/test-log-ieee.c: New file.
1630
1631         New module 'log-ieee'.
1632         * modules/log-ieee: New file.
1633
1634         Tests for module 'logf-ieee'.
1635         * modules/logf-ieee-tests: New file.
1636         * tests/test-logf-ieee.c: New file.
1637         * tests/test-log-ieee.h: New file.
1638
1639         New module 'logf-ieee'.
1640         * modules/logf-ieee: New file.
1641
1642 2012-03-10  Bruno Haible  <bruno@clisp.org>
1643
1644         log: Fix bug introduced on 2012-03-09.
1645         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1646
1647 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1648
1649         timer-time: link explicitly with pthreads on glibc
1650         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1651         to support static linking, when newer glibc is
1652         detected, as that contains pthread emulation of
1653         POSIX timer functions where required.
1654         * modules/timer-time: Depend on threadlib to
1655         pull in the appropriate library to link.
1656
1657 2012-03-10  Bruno Haible  <bruno@clisp.org>
1658
1659         log* tests: More tests.
1660         * tests/test-log.h: New file.
1661         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1662         (main): Invoke test_function.
1663         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1664         (main): Invoke test_function.
1665         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1666         (main): Invoke test_function.
1667         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1668         tests/randomd.c.
1669         (Makefile.am): Add randomd.c to test_log_SOURCES.
1670         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1671         tests/randomf.c.
1672         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1673         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1674         tests/randoml.c.
1675         (Depends-on): Add 'float'.
1676         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1677
1678 2012-03-09  Bruno Haible  <bruno@clisp.org>
1679
1680         logl: Work around OSF/1 5.1 bug.
1681         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1682         * lib/logl.c (logl): If logl exists, use it and provide just the
1683         workaround.
1684         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1685         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1687         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1688         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1689         (Depends-on): Update conditions.
1690         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1691
1692 2012-03-09  Bruno Haible  <bruno@clisp.org>
1693
1694         logf: Work around OSF/1 5.1 bug.
1695         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1696         * lib/logf.c (logf): If logf exists, use it and provide just the
1697         workaround.
1698         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1699         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1701         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1702         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1703         (Depends-on): Update conditions.
1704         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1705
1706 2012-03-09  Bruno Haible  <bruno@clisp.org>
1707
1708         log: Work around OSF/1 5.1 bug.
1709         * lib/math.in.h (log): New declaration.
1710         * lib/log.c: New file.
1711         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1712         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1713         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1715         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1716         * modules/log (Files): Add lib/log.c.
1717         (Depends-on): Add math.
1718         (configure.ac): If REPLACE_LOG is 1, compile an override.
1719         * tests/test-math-c++.cc: Check the declaration of log.
1720         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1721
1722 2012-03-09  Jim Meyering  <meyering@redhat.com>
1723
1724         readtokens.c: adjust wording in a comment
1725         * lib/readtokens.c: Insert omitted "that" in a comment.
1726
1727 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1728
1729         modechange: add notations +40, 00440, etc.
1730         * lib/modechange.c (mode_compile): Support new notations
1731         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1732
1733 2012-03-08  Bruno Haible  <bruno@clisp.org>
1734
1735         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1736         * m4/exp2l-ieee.m4: New file.
1737         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1738         test whether exp2l works with a NaN argument and with a negative
1739         infinity argument. Replace it if not.
1740         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1742         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1743         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1744         (Depends-on): Update conditions.
1745         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1746         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1747         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1748
1749         Tests for module 'exp2l-ieee'.
1750         * modules/exp2l-ieee-tests: New file.
1751         * tests/test-exp2l-ieee.c: New file.
1752
1753         New module 'exp2l-ieee'.
1754         * modules/exp2l-ieee: New file.
1755
1756         Tests for module 'exp2-ieee'.
1757         * modules/exp2-ieee-tests: New file.
1758         * tests/test-exp2-ieee.c: New file.
1759
1760         New module 'exp2-ieee'.
1761         * modules/exp2-ieee: New file.
1762
1763         Tests for module 'exp2f-ieee'.
1764         * modules/exp2f-ieee-tests: New file.
1765         * tests/test-exp2f-ieee.c: New file.
1766         * tests/test-exp2-ieee.h: New file.
1767
1768         New module 'exp2f-ieee'.
1769         * modules/exp2f-ieee: New file.
1770
1771 2012-03-08  Bruno Haible  <bruno@clisp.org>
1772
1773         Tests for module 'exp2l'.
1774         * modules/exp2l-tests: New file.
1775         * tests/test-exp2l.c: New file.
1776
1777         New module 'exp2l'.
1778         * lib/math.in.h (exp2l): New declaration.
1779         * lib/exp2l.c: New file.
1780         * lib/expl-table.c: New file, extracted from lib/expl.c.
1781         * lib/expl.c (gl_expl_table): New declaration.
1782         (expl): Remove expl_table. Update reference.
1783         * m4/exp2l.m4: New file.
1784         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1786         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1787         * modules/exp2l: New file.
1788         * modules/expl (Files): Add lib/expl-table.c.
1789         (configure.ac): Compile also expl-table.c.
1790         * tests/test-math-c++.cc: Check the declaration of exp2l.
1791         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1792         problem.
1793
1794 2012-03-08  Bruno Haible  <bruno@clisp.org>
1795
1796         Tests for module 'exp2f'.
1797         * modules/exp2f-tests: New file.
1798         * tests/test-exp2f.c: New file.
1799
1800         New module 'exp2f'.
1801         * lib/math.in.h (exp2f): New declaration.
1802         * lib/exp2f.c: New file.
1803         * m4/exp2f.m4: New file.
1804         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1806         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1807         * modules/exp2f: New file.
1808         * tests/test-math-c++.cc: Check the declaration of exp2f.
1809         * doc/posix-functions/exp2f.texi: Mention the new module and the
1810         IRIX problem.
1811
1812 2012-03-08  Bruno Haible  <bruno@clisp.org>
1813
1814         Tests for module 'exp2'.
1815         * modules/exp2-tests: New file.
1816         * tests/test-exp2.c: New file.
1817         * tests/test-exp2.h: New file.
1818
1819         New module 'exp2'.
1820         * lib/math.in.h (exp2): New declaration.
1821         * lib/exp2.c: New file.
1822         * m4/exp2.m4: New file.
1823         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1825         REPLACE_EXP2.
1826         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1827         REPLACE_EXP2.
1828         * modules/exp2: New file.
1829         * tests/test-math-c++.cc: Check the declaration of exp2.
1830         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1831         and OpenBSD problems.
1832
1833 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1834
1835         savedir: fix comment typo
1836         * lib/savedir.c (savedirstream): Fix typo in comment.
1837
1838 2012-03-08  Bruno Haible  <bruno@clisp.org>
1839
1840         test-readtokens.c: use const; remove unwarranted cast
1841         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1842
1843 2012-03-08  Bruno Haible  <bruno@clisp.org>
1844
1845         fmal: Avoid compilation error on AIX.
1846         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1847         AIX 5.2..7.1.
1848
1849 2012-03-08  Bruno Haible  <bruno@clisp.org>
1850
1851         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1852         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1853         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1854         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1855         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1856         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1857         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1858
1859 2012-03-08  Bruno Haible  <bruno@clisp.org>
1860
1861         remainderf: Override buggy system function on IRIX 6.5.
1862         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1863         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1864         when it exists.
1865         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1866
1867 2012-03-08  Jim Meyering  <meyering@redhat.com>
1868
1869         test-readtokens.c: avoid const-related compilation warnings
1870         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1871
1872 2012-03-07  Jim Meyering  <meyering@redhat.com>
1873             Bruno Haible  <bruno@clisp.org>
1874
1875         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1876         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1877         tests/randomd.c.
1878         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1879         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1880         tests/randoml.c.
1881         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1882
1883 2012-03-07  Bruno Haible  <bruno@clisp.org>
1884
1885         expm1l: Avoid compilation error on AIX.
1886         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1887         AIX 5.2..7.1.
1888
1889 2012-03-07  Bruno Haible  <bruno@clisp.org>
1890
1891         expm1l: Don't override undeclared system function on IRIX 6.5.
1892         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1893         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1894         it exists. Set HAVE_DECL_EXPM1L.
1895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1896         HAVE_EXPM1L.
1897         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1898         HAVE_EXPM1L.
1899         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1900
1901 2012-03-07  Bruno Haible  <bruno@clisp.org>
1902
1903         remainderl: Don't override undeclared system function on IRIX 6.5.
1904         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1905         HAVE_REMAINDERL.
1906         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1907         declared when it exists. Set HAVE_DECL_REMAINDERL.
1908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1909         not HAVE_REMAINDERL.
1910         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1911         HAVE_REMAINDERL.
1912         * doc/posix-functions/remainderl.texi: Mention missing declaration
1913         problem.
1914
1915 2012-03-07  Bruno Haible  <bruno@clisp.org>
1916
1917         rintf: Don't override undeclared system function on IRIX 6.5.
1918         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1919         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1920         exists. Set HAVE_DECL_RINTF.
1921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1922         HAVE_RINTF.
1923         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1924         HAVE_RINTF.
1925         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1926
1927 2012-03-07  Bruno Haible  <bruno@clisp.org>
1928
1929         roundl: Avoid compilation error on AIX.
1930         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1931         AIX 5.2..7.1.
1932
1933 2012-03-07  Bruno Haible  <bruno@clisp.org>
1934
1935         roundl: Don't override undeclared system function on IRIX 6.5.
1936         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1937         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1938         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1939         * modules/roundl (configure.ac): For replacement code, test
1940         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1941         (Depends-on): Update conditions.
1942         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1943
1944 2012-03-07  Bruno Haible  <bruno@clisp.org>
1945
1946         roundf: Don't override undeclared system function on IRIX 6.5.
1947         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1948         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1949         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1950         * modules/roundf (configure.ac): For replacement code, test
1951         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1952         (Depends-on): Update conditions.
1953         * modules/roundf-ieee (Depends-on): Update conditions.
1954         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1955
1956 2012-03-07  Bruno Haible  <bruno@clisp.org>
1957
1958         round: Don't override undeclared system function on IRIX 6.5.
1959         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1960         argument.
1961         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1962         also when it is not declared. Set HAVE_ROUND. For replacement code,
1963         test HAVE_ROUND, not HAVE_DECL_ROUND.
1964         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1965         not HAVE_DECL_ROUND.
1966         (Depends-on): Update conditions.
1967         * modules/round-ieee (Depends-on): Update conditions.
1968         * doc/posix-functions/round.texi: Mention the IRIX problem.
1969
1970 2012-03-07  Bruno Haible  <bruno@clisp.org>
1971
1972         copysignf: Don't override undeclared system function on IRIX 6.5.
1973         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1974         HAVE_COPYSIGNF.
1975         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1976         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1978         not HAVE_COPYSIGNF.
1979         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1980         HAVE_COPYSIGNF.
1981         * doc/posix-functions/copysignf.texi: Mention missing declaration
1982         problem.
1983
1984 2012-03-07  Jim Meyering  <meyering@redhat.com>
1985
1986         readtokens: add tests
1987         * modules/readtokens-tests: New file.
1988         * tests/test-readtokens.c: New file.
1989
1990 2012-03-07  Jim Meyering  <meyering@redhat.com>
1991
1992         quotearg: the module must now include quote.h
1993         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1994         So must the module.
1995         * modules/quotearg (Files): Add quote.h.
1996
1997 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1998
1999         readtokens: avoid core dumps with unusual calling patterns
2000         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2001         * lib/readtokens.c: Include limits.h.
2002         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2003         (readtoken): Don't cache the delimiters; the cache code was buggy
2004         if !delim && saved_delim, or if the new n_delim differs from the old.
2005         Also, it wasn't thread-safe.
2006
2007 2012-03-07  Bruno Haible  <bruno@clisp.org>
2008
2009         quote: Adhere to common module description layout.
2010         * modules/quote (Makefile.am): Add back empty section.
2011
2012 2012-03-06  Akim Demaille  <demaille@gostai.com>
2013
2014         quote: fuse into quotearg
2015         This patch is made for the benefit of Bison.
2016         quote does not leave the choice of the quoting style to the user.
2017         quoting_style provides poor customizability, yet quoting_options,
2018         which is very rich, is hidden inside quotearg.c.  So in order to
2019         allow quote customization, move its implementation to quotearg.c.
2020         * lib/quote.c: Remove.
2021         * modules/quote: Adjust.
2022         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2023         warning: provide all the members of literal structs.
2024         (quote_quoting_options): New.
2025         (quote, quote_n): Import implementation from quote.c.
2026         * lib/quote.h: Import the comments from quote.c.
2027         (quote_quoting_options): New.
2028
2029 2012-03-06  Bruno Haible  <bruno@clisp.org>
2030
2031         Tests for module 'expm1l-ieee'.
2032         * modules/expm1l-ieee-tests: New file.
2033         * tests/test-expm1l-ieee.c: New file.
2034
2035         New module 'expm1l-ieee'.
2036         * modules/expm1l-ieee: New file.
2037
2038         Tests for module 'expm1f-ieee'.
2039         * modules/expm1f-ieee-tests: New file.
2040         * tests/test-expm1f-ieee.c: New file.
2041
2042         New module 'expm1f-ieee'.
2043         * modules/expm1f-ieee: New file.
2044
2045         Tests for module 'expm1-ieee'.
2046         * modules/expm1-ieee-tests: New file.
2047         * tests/test-expm1-ieee.c: New file.
2048         * tests/test-expm1-ieee.h: New file.
2049
2050         New module 'expm1-ieee'.
2051         * modules/expm1-ieee: New file.
2052         * m4/expm1-ieee.m4: New file.
2053         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2054         whether expm1 works with a minus zero argument. Replace it if not.
2055         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2057         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2058         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2059         (Depends-on): Update conditions.
2060         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2061         AIX problem.
2062
2063 2012-03-06  Bruno Haible  <bruno@clisp.org>
2064
2065         Work around expm1f bug on IRIX 6.5.
2066         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2067         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2068         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2069         not work.
2070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2071         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2072         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2073         (Depends-on): Update conditions.
2074         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2075
2076 2012-03-06  Bruno Haible  <bruno@clisp.org>
2077
2078         Tests for module 'expm1l'.
2079         * modules/expm1l-tests: New file.
2080         * tests/test-expm1l.c: New file.
2081
2082         New module 'expm1l'.
2083         * lib/math.in.h (expm1l): New declaration.
2084         * lib/expm1l.c: New file.
2085         * m4/expm1l.m4: New file.
2086         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2088         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2089         * modules/expm1l: New file.
2090         * tests/test-math-c++.cc: Check the declaration of expm1l.
2091         * doc/posix-functions/expm1l.texi: Mention the new module.
2092
2093 2012-03-06  Bruno Haible  <bruno@clisp.org>
2094
2095         Tests for module 'expm1f'.
2096         * modules/expm1f-tests: New file.
2097         * tests/test-expm1f.c: New file.
2098
2099         New module 'expm1f'.
2100         * lib/math.in.h (expm1f): New declaration.
2101         * lib/expm1f.c: New file.
2102         * m4/expm1f.m4: New file.
2103         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2105         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2106         * modules/expm1f: New file.
2107         * tests/test-math-c++.cc: Check the declaration of expm1f.
2108         * doc/posix-functions/expm1f.texi: Mention the new module.
2109
2110 2012-03-06  Bruno Haible  <bruno@clisp.org>
2111
2112         Tests for module 'expm1'.
2113         * modules/expm1-tests: New file.
2114         * tests/test-expm1.c: New file.
2115         * tests/test-expm1.h: New file.
2116
2117         New module 'expm1'.
2118         * lib/math.in.h (expm1): New declaration.
2119         * lib/expm1.c: New file.
2120         * m4/expm1.m4: New file.
2121         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2123         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2124         * modules/expm1: New file.
2125         * tests/test-math-c++.cc: Check the declaration of expm1.
2126         * doc/posix-functions/expm1.texi: Mention the new module.
2127
2128 2012-03-06  Bruno Haible  <bruno@clisp.org>
2129
2130         math: Ensure declarations of math functions.
2131         * modules/acosf (Depends-on): Add 'extensions'.
2132         * modules/asinf (Depends-on): Likewise.
2133         * modules/atan2f (Depends-on): Likewise.
2134         * modules/atanf (Depends-on): Likewise.
2135         * modules/cbrt (Depends-on): Likewise.
2136         * modules/cbrtf (Depends-on): Likewise.
2137         * modules/cbrtl (Depends-on): Likewise.
2138         * modules/copysignf (Depends-on): Likewise.
2139         * modules/copysignl (Depends-on): Likewise.
2140         * modules/cosf (Depends-on): Likewise.
2141         * modules/coshf (Depends-on): Likewise.
2142         * modules/expf (Depends-on): Likewise.
2143         * modules/fabsf (Depends-on): Likewise.
2144         * modules/fabsl (Depends-on): Likewise.
2145         * modules/fmaf (Depends-on): Likewise.
2146         * modules/fmal (Depends-on): Likewise.
2147         * modules/fmodf (Depends-on): Likewise.
2148         * modules/fmodl (Depends-on): Likewise.
2149         * modules/frexpf (Depends-on): Likewise.
2150         * modules/frexpl (Depends-on): Likewise.
2151         * modules/hypot (Depends-on): Likewise.
2152         * modules/hypotf (Depends-on): Likewise.
2153         * modules/hypotl (Depends-on): Likewise.
2154         * modules/ldexpf (Depends-on): Likewise.
2155         * modules/ldexpl (Depends-on): Likewise.
2156         * modules/log10f (Depends-on): Likewise.
2157         * modules/log10l (Depends-on): Likewise.
2158         * modules/log1p (Depends-on): Likewise.
2159         * modules/logb (Depends-on): Likewise.
2160         * modules/logf (Depends-on): Likewise.
2161         * modules/modff (Depends-on): Likewise.
2162         * modules/modfl (Depends-on): Likewise.
2163         * modules/powf (Depends-on): Likewise.
2164         * modules/remainderf (Depends-on): Likewise.
2165         * modules/remainderl (Depends-on): Likewise.
2166         * modules/rintf (Depends-on): Likewise.
2167         * modules/rintl (Depends-on): Likewise.
2168         * modules/sinf (Depends-on): Likewise.
2169         * modules/sinhf (Depends-on): Likewise.
2170         * modules/sqrtf (Depends-on): Likewise.
2171         * modules/tanf (Depends-on): Likewise.
2172         * modules/tanhf (Depends-on): Likewise.
2173         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2174         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2175         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2176         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2177         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2178         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2179         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2180         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2181         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2182         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2183         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2184         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2185         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2186         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2187         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2188         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2189         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2190         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2191         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2192         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2193         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2194         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2195         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2196         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2197         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2198         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2199         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2200         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2201         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2202         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2203         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2204         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2205         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2206         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2207         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2208         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2209         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2210         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2211         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2212         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2213         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2214
2215 2012-03-06  Bruno Haible  <bruno@clisp.org>
2216
2217         math: Update module names in warnings.
2218         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2219         tanl): Use specific module name in warn-on-use warning.
2220
2221 2012-03-06  Bruno Haible  <bruno@clisp.org>
2222
2223         expl: Simplify computation.
2224         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2225
2226 2012-03-05  Bruno Haible  <bruno@clisp.org>
2227
2228         exp* tests: More tests.
2229         * tests/test-exp.h: New file.
2230         * tests/test-exp.c: Include <float.h> and test-exp.h.
2231         (main): Invoke test_function.
2232         * tests/test-expf.c: Include <float.h> and test-exp.h.
2233         (main): Invoke test_function.
2234         * tests/test-expl.c: Include <float.h> and test-exp.h.
2235         (main): Invoke test_function.
2236         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2237         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2238         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2239         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2240         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2241         (Depends-on): Add 'float'.
2242         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2243
2244         expl: Fix precision of computed result.
2245         * lib/expl.c: Completely rewritten.
2246         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2247         (Maintainer): Add me.
2248         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2249
2250 2012-03-05  Bruno Haible  <bruno@clisp.org>
2251
2252         cbrt* tests: More tests.
2253         * tests/test-cbrt.h: New file.
2254         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2255         (main): Invoke test_function.
2256         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2257         (main): Invoke test_function.
2258         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2259         (main): Invoke test_function.
2260         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2261         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2262         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2263         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2264         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2265         (Depends-on): Add 'float'.
2266         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2267
2268 2012-03-05  Bruno Haible  <bruno@clisp.org>
2269
2270         hypot* tests: More tests.
2271         * tests/test-hypot.h: New file, partially extracted from
2272         tests/test-hypotl.c.
2273         * tests/test-hypot.c: Include test-hypot.h.
2274         (main): Invoke test_function.
2275         * tests/test-hypotf.c: Include test-hypot.h.
2276         (main): Invoke test_function.
2277         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2278         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2279         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2280         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2281         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2282         tests/randomf.c.
2283         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2284         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2285         tests/randoml.c.
2286         (Depends-on): Add 'fpucw', 'float'.
2287         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2288
2289 2012-03-05  Bruno Haible  <bruno@clisp.org>
2290
2291         fpucw: Doc about FreeBSD.
2292         * lib/fpucw.h: Mention FreeBSD in comments.
2293
2294 2012-03-04  Bruno Haible  <bruno@clisp.org>
2295
2296         sqrt* tests: More tests.
2297         * tests/test-sqrt.h: New file.
2298         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2299         (main): Invoke test_function.
2300         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2301         (main): Invoke test_function.
2302         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2303         (main): Invoke test_function.
2304         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2305         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2306         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2307         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2308         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2309         (Depends-on): Add 'float'.
2310         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2311
2312 2012-03-04  Bruno Haible  <bruno@clisp.org>
2313
2314         remainder* tests: More tests.
2315         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2316         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2317         (main): Invoke test_function.
2318         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2319         (main): Invoke test_function.
2320         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2321         (main): Invoke test_function.
2322         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2323         tests/randomd.c.
2324         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2325         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2326         tests/randomf.c.
2327         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2328         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2329         tests/randoml.c.
2330         (Depends-on): Add 'float'.
2331         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2332
2333 2012-03-04  Bruno Haible  <bruno@clisp.org>
2334
2335         remainder, remainderf, remainderl: Fix computation for large quotients.
2336         * lib/remainder.c: Completely rewritten.
2337         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2338         USE_FLOAT.
2339         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2340         USE_LONG_DOUBLE.
2341         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2342         isnand, isinf. Remove round, fma.
2343         * modules/remainderf (Files): Add lib/remainder.c.
2344         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2345         Remove roundf, fmaf.
2346         * modules/remainderl (Files): Add lib/remainder.c.
2347         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2348         isinf. Remove roundl, fmal.
2349         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2350         REMAINDER_LIBM.
2351         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2352         REMAINDERF_LIBM.
2353         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2354         REMAINDERL_LIBM.
2355
2356 2012-03-04  Bruno Haible  <bruno@clisp.org>
2357
2358         fmod* tests: More tests.
2359         * tests/test-fmod.h (my_ldexp): New function.
2360         (test_function): Reduce amount of random numbers to test. Add tests
2361         of very large quotients x / y.
2362         * tests/test-fmod.c (MAX_EXP): New macro.
2363         * tests/test-fmodf.c (MAX_EXP): Likewise.
2364         * tests/test-fmodl.c (MAX_EXP): Likewise.
2365
2366 2012-03-04  Bruno Haible  <bruno@clisp.org>
2367
2368         fmod, fmodl: Fix computation for large quotients x / y.
2369         * lib/fmod.c: Completely rewritten.
2370         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2371         USE_LONG_DOUBLE.
2372         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2373         isnand. Remove fma.
2374         * modules/fmodl (Files): Add lib/fmod.c.
2375         (Depends-on): Add float, isfinite, signbit, fabsl,
2376         frexpl, ldexpl, isnanl. Remove fma.
2377         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2378         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2379
2380 2012-03-03  Bruno Haible  <bruno@clisp.org>
2381
2382         fmod* tests: More tests.
2383         * tests/test-fmod.h: New file.
2384         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2385         (main): Invoke test_function.
2386         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2387         (main): Invoke test_function.
2388         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2389         (main): Invoke test_function.
2390         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2391         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2392         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2393         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2394         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2395         (Depends-on): Add 'float'.
2396         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2397
2398 2012-03-03  Bruno Haible  <bruno@clisp.org>
2399
2400         rint* tests: More tests.
2401         * tests/test-rint.h: New file, partially extracted from
2402         tests/test-rintl.c.
2403         * tests/test-rint.c: Include test-rint.h.
2404         (main): Invoke test_function.
2405         * tests/test-rintf.c: Include test-rint.h.
2406         (main): Invoke test_function.
2407         * tests/test-rintl.c: Include test-rint.h.
2408         (main): Invoke test_function.
2409         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2410         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2411         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2412         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2413         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2414         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2415
2416 2012-03-03  Bruno Haible  <bruno@clisp.org>
2417
2418         modf* tests: More tests.
2419         * tests/test-modf.h: New file.
2420         * tests/test-modf.c: Include <float.h> and test-modf.h.
2421         (main): Invoke test_function.
2422         * tests/test-modff.c: Include <float.h> and test-modf.h.
2423         (main): Invoke test_function.
2424         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2425         (main): Invoke test_function.
2426         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2427         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2428         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2429         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2430         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2431         (Depends-on): Add 'float'.
2432         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2433
2434 2012-03-03  Bruno Haible  <bruno@clisp.org>
2435
2436         fabs* tests: More tests.
2437         * tests/test-fabs.h: New file, partially extracted from
2438         tests/test-fabsl.c.
2439         * tests/test-fabs.c (RANDOM): New macro.
2440         * tests/test-fabsf.c (RANDOM): New macro.
2441         * tests/test-fabsl.c (RANDOM): New macro.
2442         * modules/fabs-tests (Files): Add tests/randomd.c.
2443         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2444         * modules/fabsf-tests (Files): Add tests/randomf.c.
2445         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2446         * modules/fabsl-tests (Files): Add tests/randoml.c.
2447         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2448
2449 2012-03-03  Bruno Haible  <bruno@clisp.org>
2450
2451         ldexp* tests: More tests.
2452         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2453         * tests/test-ldexp.c (RANDOM): New macro.
2454         * tests/test-ldexpf.c (RANDOM): New macro.
2455         * tests/test-ldexpl.c (RANDOM): New macro.
2456         * modules/ldexp-tests (Files): Add tests/randomd.c.
2457         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2458         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2459         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2460         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2461         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2462
2463 2012-03-03  Bruno Haible  <bruno@clisp.org>
2464
2465         frexp* tests: More tests.
2466         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2467         * tests/test-frexp.c (RANDOM): New macro.
2468         * tests/test-frexpf.c (RANDOM): New macro.
2469         * tests/test-frexpl.c (RANDOM): New macro.
2470         * modules/frexp-tests (Files): Add tests/randomd.c.
2471         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2472         * modules/frexpf-tests (Files): Add tests/randomf.c.
2473         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2474         * modules/frexpl-tests (Files): Add tests/randoml.c.
2475         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2476
2477 2012-03-03  Bruno Haible  <bruno@clisp.org>
2478
2479         Support for pseudo-random numbers in tests.
2480         * tests/randomf.c: New file.
2481         * tests/randomd.c: New file.
2482         * tests/randoml.c: New file.
2483         * tests/macros.h (randomf, randomd, randoml): New declarations.
2484
2485 2012-03-03  Bruno Haible  <bruno@clisp.org>
2486
2487         frexp* tests: Refactor.
2488         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2489         * tests/test-frexp.c: Include and use it.
2490         * tests/test-frexpf.c: Likewise.
2491         * tests/test-frexpl.c: Likewise.
2492         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2493         * modules/frexpf-tests (Files): Likewise.
2494         * modules/frexpl-tests (Files): Likewise.
2495
2496 2012-03-02  Jim Meyering  <meyering@redhat.com>
2497
2498         maint: don't specify XZ_OPT=-9ev in dist-related rule
2499         Using xz's -9 option is warranted only if you have a very large
2500         tarball (see xz's documentation for the sizes vs. presets), and
2501         requires 64MiB of memory at decompression time.
2502         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2503         Automake's default of just "-e" is fine.  Override on a
2504         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2505
2506 2012-03-01  Eric Blake  <eblake@redhat.com>
2507
2508         maint.mk: allow announcement for non-gnulib project
2509         * maint.mk (announcement): Skip gnulib version if not used.
2510
2511 2012-03-01  Jim Meyering  <meyering@redhat.com>
2512
2513         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2514         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2515         envvar settings cannot interfere.  Otherwise, setting envvars like
2516         prohibit=foo require=bar, etc. would cause spurious test failures.
2517
2518 2012-03-01  Eric Blake  <eblake@redhat.com>
2519
2520         maint.mk: add per-line exclusions to prohibitions
2521         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2522         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2523         (sc_const_long_option): Use it.
2524
2525 2012-03-01  Bruno Haible  <bruno@clisp.org>
2526
2527         Tests for module 'expl-ieee'.
2528         * modules/expl-ieee-tests: New file.
2529         * tests/test-expl-ieee.c: New file.
2530
2531         New module 'expl-ieee'.
2532         * modules/expl-ieee: New file.
2533
2534         Tests for module 'exp-ieee'.
2535         * modules/exp-ieee-tests: New file.
2536         * tests/test-exp-ieee.c: New file.
2537
2538         New module 'exp-ieee'.
2539         * modules/exp-ieee: New file.
2540
2541         Tests for module 'expf-ieee'.
2542         * modules/expf-ieee-tests: New file.
2543         * tests/test-expf-ieee.c: New file.
2544         * tests/test-exp-ieee.h: New file.
2545
2546         New module 'expf-ieee'.
2547         * modules/expf-ieee: New file.
2548
2549 2012-02-29  Bruno Haible  <bruno@clisp.org>
2550
2551         cbrtl-ieee: Work around test failure on IRIX 6.5.
2552         * m4/cbrtl-ieee.m4: New file.
2553         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2554         test whether cbrtl works with a minus zero argument. Replace it if not.
2555         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2557         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2558         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2559         (Depends-on): Update conditions.
2560         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2561         m4/signbit.m4.
2562         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2563         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2564         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2565
2566         Tests for module 'cbrtl-ieee'.
2567         * modules/cbrtl-ieee-tests: New file.
2568         * tests/test-cbrtl-ieee.c: New file.
2569
2570         New module 'cbrtl-ieee'.
2571         * modules/cbrtl-ieee: New file.
2572
2573         Tests for module 'cbrt-ieee'.
2574         * modules/cbrt-ieee-tests: New file.
2575         * tests/test-cbrt-ieee.c: New file.
2576
2577         New module 'cbrt-ieee'.
2578         * modules/cbrt-ieee: New file.
2579
2580         Tests for module 'cbrtf-ieee'.
2581         * modules/cbrtf-ieee-tests: New file.
2582         * tests/test-cbrtf-ieee.c: New file.
2583         * tests/test-cbrt-ieee.h: New file.
2584
2585         New module 'cbrtf-ieee'.
2586         * modules/cbrtf-ieee: New file.
2587
2588 2012-02-29  Bruno Haible  <bruno@clisp.org>
2589
2590         cbrtf: Work around bug in IRIX 6.5 system function.
2591         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2592         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2593         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2594         work.
2595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2596         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2597         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2598         (Depends-on): Update conditions.
2599         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2600
2601 2012-02-29  Bruno Haible  <bruno@clisp.org>
2602
2603         Tests for module 'cbrtl'.
2604         * modules/cbrtl-tests: New file.
2605         * tests/test-cbrtl.c: New file.
2606
2607         New module 'cbrtl'.
2608         * lib/math.in.h (cbrtl): New declaration.
2609         * lib/cbrtl.c: New file.
2610         * m4/cbrtl.m4: New file.
2611         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2613         HAVE_DECL_CBRTL.
2614         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2615         HAVE_DECL_CBRTL.
2616         * modules/cbrtl: New file.
2617         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2618         * doc/posix-functions/cbrtl.texi: Mention the new module.
2619
2620 2012-02-29  Bruno Haible  <bruno@clisp.org>
2621
2622         Tests for module 'cbrtf'.
2623         * modules/cbrtf-tests: New file.
2624         * tests/test-cbrtf.c: New file.
2625
2626         New module 'cbrtf'.
2627         * lib/math.in.h (cbrtf): New declaration.
2628         * lib/cbrtf.c: New file.
2629         * m4/cbrtf.m4: New file.
2630         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2632         HAVE_DECL_CBRTF.
2633         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2634         HAVE_DECL_CBRTF.
2635         * modules/cbrtf: New file.
2636         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2637         * doc/posix-functions/cbrtf.texi: Mention the new module.
2638
2639 2012-02-29  Bruno Haible  <bruno@clisp.org>
2640
2641         cbrt: Provide replacement on MSVC and Minix.
2642         * lib/math.in.h (cbrt): New declaration.
2643         * lib/cbrt.c: New file.
2644         * m4/cbrt.m4: New file.
2645         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2647         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2648         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2649         (Depends-on): Add dependencies.
2650         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2651         * tests/test-math-c++.cc: Check the declaration of cbrt.
2652         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2653         replacement.
2654
2655 2012-02-29  Bruno Haible  <bruno@clisp.org>
2656
2657         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2658         * m4/hypotl-ieee.m4: New file.
2659         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2660         test whether hypotl works with mixed NaN and Infinity arguments.
2661         Replace it if not.
2662         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2664         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2665         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2666         (Depends-on): Update conditions.
2667         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2668         (Depends-on): Add hypot-ieee.
2669         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2670         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2671
2672         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2673         * m4/hypotf-ieee.m4: New file.
2674         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2675         test whether hypotf works with mixed NaN and Infinity arguments.
2676         Replace it if not.
2677         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2678         (Depends-on): Add hypot-ieee.
2679         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2680         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2681
2682         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2683         * lib/math.in.h (hypot): New declaration.
2684         * lib/hypot.c: New file.
2685         * m4/hypot-ieee.m4: New file.
2686         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2687         whether hypot works with mixed NaN and Infinity arguments. Replace it
2688         if not.
2689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2690         REPLACE_HYPOT.
2691         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2692         * modules/hypot (Files): Add lib/hypot.c.
2693         (Depends-on): Add dependencies.
2694         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2695         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2696         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2697         * tests/test-math-c++.cc: Check the declaration of hypot.
2698         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2699
2700         Tests for module 'hypotl-ieee'.
2701         * modules/hypotl-ieee-tests: New file.
2702         * tests/test-hypotl-ieee.c: New file.
2703
2704         New module 'hypotl-ieee'.
2705         * modules/hypotl-ieee: New file.
2706
2707         Tests for module 'hypot-ieee'.
2708         * modules/hypot-ieee-tests: New file.
2709         * tests/test-hypot-ieee.c: New file.
2710
2711         New module 'hypot-ieee'.
2712         * modules/hypot-ieee: New file.
2713
2714         Tests for module 'hypotf-ieee'.
2715         * modules/hypotf-ieee-tests: New file.
2716         * tests/test-hypotf-ieee.c: New file.
2717         * tests/test-hypot-ieee.h: New file.
2718
2719         New module 'hypotf-ieee'.
2720         * modules/hypotf-ieee: New file.
2721
2722 2012-02-29  Bruno Haible  <bruno@clisp.org>
2723
2724         Remove unused variables.
2725         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2726         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2727         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2728         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2729
2730 2012-02-29  Eric Blake  <eblake@redhat.com>
2731
2732         termios: fix pid_t always, not just for tcgetsid
2733         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2734         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2735         just when building tcgetsid.
2736
2737 2012-02-29  Bruno Haible  <bruno@clisp.org>
2738
2739         Tests for module 'hypotl'.
2740         * modules/hypotl-tests: New file.
2741         * tests/test-hypotl.c: New file.
2742
2743         New module 'hypotl'.
2744         * lib/math.in.h (hypotl): New declaration.
2745         * lib/hypotl.c: New file.
2746         * m4/hypotl.m4: New file.
2747         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2749         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2750         * modules/hypotl: New file.
2751         * tests/test-math-c++.cc: Check the hypotl declaration.
2752         * doc/posix-functions/hypotl.texi: Mention the new module.
2753
2754 2012-02-29  Eric Blake  <eblake@redhat.com>
2755
2756         tcgetsid: fix cygwin header bug
2757         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2758
2759         docs: update cygwin progress
2760         * doc/posix-functions/llround.texi (llround): Added in cygwin
2761         1.7.8.
2762         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2763         * doc/glibc-functions/program_invocation_name.texi
2764         (program_invocation_name): Likewise.
2765         * doc/glibc-functions/program_invocation_short_name.texi
2766         (program_invocation_short_name): Likewise.
2767         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2768         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2769         Likewise.
2770         * doc/posix-functions/pthread_spin_destroy.texi
2771         (pthread_spin_destroy): Added in cygwin 1.7.10.
2772         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2773         Likewise.
2774         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2775         Likewise.
2776         * doc/posix-functions/pthread_spin_trylock.texi
2777         (pthread_spin_trylock): Likewise.
2778         * doc/posix-functions/pthread_spin_unlock.texi
2779         (pthread_spin_unlock): Likewise.
2780         * doc/posix-functions/pthread_setschedprio.texi
2781         (pthread_setschedprio): Likewise.
2782         * doc/posix-functions/pthread_attr_getstack.texi
2783         (pthread_attr_getstack): Likewise.
2784         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2785         (pthread_attr_getstackaddr): Likewise.
2786         * doc/glibc-functions/pthread_getattr_np.texi
2787         (pthread_getattr_np): Likewise.
2788         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2789         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2790         * doc/posix-functions/clock_settime.texi (clock_settime):
2791         Likewise.
2792         * doc/posix-functions/pthread_attr_getguardsize.texi
2793         (pthread_attr_getguardsize): Likewise.
2794         * doc/posix-functions/pthread_attr_setguardsize.texi
2795         (pthread_attr_setguardsize): Likewise.
2796         * doc/posix-functions/pthread_attr_setstack.texi
2797         (pthread_attr_setstack): Likewise.
2798         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2799         (pthread_attr_setstackaddr): Likewise.
2800         * doc/posix-functions/clock_getcpuclockid.texi
2801         (clock_getcpuclockid): Likewise.
2802         * doc/posix-functions/pthread_getcpuclockid.texi
2803         (pthread_getcpuclockid): Likewise.
2804         * doc/glibc-functions/error.texi (error): Likewise.
2805         * doc/glibc-functions/error_at_line.texi (error_at_line):
2806         Likewise.
2807         * doc/glibc-functions/error_message_count.texi
2808         (error_message_count): Likewise.
2809         * doc/glibc-functions/error_one_per_line.texi
2810         (error_one_per_line): Likewise.
2811         * doc/glibc-functions/error_print_progname.texi
2812         (error_print_progname): Likewise.
2813         * doc/posix-functions/pthread_condattr_getclock.texi
2814         (pthread_condattr_getclock): Likewise.
2815         * doc/posix-functions/pthread_condattr_setclock.texi
2816         (pthread_condattr_setclock): Likewise.
2817         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2818         Likewise.
2819         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2820         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2821         * doc/glibc-functions/get_current_dir_name.texi
2822         (get_current_dir_name): Likewise.
2823         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2824         Likewise.
2825         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2826         wrong return type.
2827         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2828         1.7.11.
2829
2830 2012-02-29  Bruno Haible  <bruno@clisp.org>
2831
2832         Tests for module 'hypotf'.
2833         * modules/hypotf-tests: New file.
2834         * tests/test-hypotf.c: New file.
2835
2836         New module 'hypotf'.
2837         * lib/math.in.h (hypotf): New declaration.
2838         * lib/hypotf.c: New file.
2839         * m4/hypotf.m4: New file.
2840         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2842         REPLACE_HYPOTF.
2843         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2844         REPLACE_HYPOTF.
2845         * modules/hypotf: New file.
2846         * tests/test-math-c++.cc: Check the hypotf declaration.
2847         * doc/posix-functions/hypotf.texi: Mention the new module.
2848
2849         hypot: Prepare for hypotf module.
2850         * m4/hypot.m4: New file.
2851         * modules/hypot (Files): Add m4/hypot.m4.
2852         (configure.ac): Invoke gl_FUNC_HYPOT.
2853
2854 2012-02-29  Bruno Haible  <bruno@clisp.org>
2855
2856         hypot tests: More tests.
2857         * tests/test-hypot.c: Include <float.h>.
2858         (main): Add tests about overflow and underflow.
2859
2860 2012-02-29  Bruno Haible  <bruno@clisp.org>
2861
2862         math code: Add comments.
2863         * lib/acosl.c: Add comment about related glibc source files.
2864         * lib/asinl.c: Likewise.
2865         * lib/atanl.c: Likewise.
2866         * lib/expl.c: Likewise.
2867         * lib/logl.c: Likewise.
2868         * lib/sincosl.c: Likewise.
2869         * lib/sinl.c: Likewise.
2870         * lib/tanl.c: Likewise.
2871         * lib/trigl.c: Likewise.
2872         * lib/cosl.c: Likewise. Fix comments.
2873
2874 2012-02-28  Bruno Haible  <bruno@clisp.org>
2875
2876         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2877         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2878         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2879         HUGE_VALL are defined.
2880         (numeric_equald): Renamed from numeric_equal.
2881         (numeric_equalf, numeric_equall): New functions.
2882         (main): Check also HUGE_VALF, HUGE_VALL.
2883         * modules/math-tests (Files): Add tests/macros.h.
2884         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2885         HUGE_VALL.
2886
2887 2012-02-28  Bruno Haible  <bruno@clisp.org>
2888
2889         doc: Move ISO C11 feature notes into POSIX chapters.
2890         * doc/posix-functions/aligned_alloc.texi: Renamed from
2891         doc/glibc-functions/aligned_alloc.texi.
2892         * doc/posix-functions/quick_exit.texi: Renamed from
2893         doc/glibc-functions/quick_exit.texi.
2894         * doc/posix-headers/uchar.texi: Renamed from
2895         doc/glibc-headers/uchar.texi.
2896         * doc/posix-functions/c16rtomb.texi: Renamed from
2897         doc/glibc-functions/c16rtomb.texi.
2898         * doc/posix-functions/c32rtomb.texi: Renamed from
2899         doc/glibc-functions/c32rtomb.texi.
2900         * doc/posix-functions/mbrtoc16.texi: Renamed from
2901         doc/glibc-functions/mbrtoc16.texi.
2902         * doc/posix-functions/mbrtoc32.texi: Renamed from
2903         doc/glibc-functions/mbrtoc32.texi.
2904         * doc/gnulib.texi: Update.
2905         (Glibc uchar.h): Remove section.
2906         Suggested by Eric Blake.
2907
2908 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2909
2910         stdnoreturn: port to MSVC better
2911         MSVC standard headers use __declspec(noreturn), so #define noreturn
2912         to empty on that platform.  Reported by Bruno Haible in
2913         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2914         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2915         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2916
2917 2012-02-28  Bruno Haible  <bruno@clisp.org>
2918
2919         doc: Mention new glibc headers and functions.
2920         * doc/glibc-headers/uchar.texi: New file.
2921         * doc/glibc-functions/aligned_alloc.texi: New file.
2922         * doc/glibc-functions/c16rtomb.texi: New file.
2923         * doc/glibc-functions/c32rtomb.texi: New file.
2924         * doc/glibc-functions/clock_adjtime.texi: New file.
2925         * doc/glibc-functions/fanotify_init.texi: New file.
2926         * doc/glibc-functions/fanotify_mark.texi: New file.
2927         * doc/glibc-functions/inet6_opt_append.texi: New file.
2928         * doc/glibc-functions/inet6_opt_find.texi: New file.
2929         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2930         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2931         * doc/glibc-functions/inet6_opt_init.texi: New file.
2932         * doc/glibc-functions/inet6_opt_next.texi: New file.
2933         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2934         * doc/glibc-functions/inet6_rth_add.texi: New file.
2935         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2936         * doc/glibc-functions/inet6_rth_init.texi: New file.
2937         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2938         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2939         * doc/glibc-functions/inet6_rth_space.texi: New file.
2940         * doc/glibc-functions/login.texi: New file.
2941         * doc/glibc-functions/mbrtoc16.texi: New file.
2942         * doc/glibc-functions/mbrtoc32.texi: New file.
2943         * doc/glibc-functions/name_to_handle_at.texi: New file.
2944         * doc/glibc-functions/ntp_gettimex.texi: New file.
2945         * doc/glibc-functions/open_by_handle_at.texi: New file.
2946         * doc/glibc-functions/prlimit.texi: New file.
2947         * doc/glibc-functions/process_vm_readv.texi: New file.
2948         * doc/glibc-functions/process_vm_writev.texi: New file.
2949         * doc/glibc-functions/recvmmsg.texi: New file.
2950         * doc/glibc-functions/scandirat.texi: New file.
2951         * doc/glibc-functions/sendmmsg.texi: New file.
2952         * doc/glibc-functions/setns.texi: New file.
2953         * doc/glibc-functions/timespec_get.texi: New file.
2954         * doc/gnulib.texi: Include them.
2955         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2956         sections.
2957         Reported by Eric Blake.
2958
2959 2012-02-28  Bruno Haible  <bruno@clisp.org>
2960
2961         Avoid compilation errors with MSVC option -fp:strict.
2962         * lib/floor.c: Use MSVC specific pragma fenv_access.
2963         * lib/ceil.c: Likewise.
2964         * lib/trunc.c: Likewise.
2965         * lib/round.c: Likewise.
2966         * lib/rint.c: Likewise.
2967         * lib/fma.c: Likewise.
2968         * lib/integer_length.c: Likewise.
2969         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2971         * tests/test-floor2.c: Likewise.
2972         * tests/test-floorf2.c: Likewise.
2973         * tests/test-ceil2.c: Likewise.
2974         * tests/test-ceilf2.c: Likewise.
2975         * tests/test-trunc2.c: Likewise.
2976         * tests/test-truncf2.c: Likewise.
2977         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2978
2979 2012-02-27  Bruno Haible  <bruno@clisp.org>
2980
2981         Tests for module 'sqrtl-ieee'.
2982         * modules/sqrtl-ieee-tests: New file.
2983         * tests/test-sqrtl-ieee.c: New file.
2984
2985         New module 'sqrtl-ieee'.
2986         * modules/sqrtl-ieee: New file.
2987
2988         Tests for module 'sqrt-ieee'.
2989         * modules/sqrt-ieee-tests: New file.
2990         * tests/test-sqrt-ieee.c: New file.
2991
2992         New module 'sqrt-ieee'.
2993         * modules/sqrt-ieee: New file.
2994
2995         Tests for module 'sqrtf-ieee'.
2996         * modules/sqrtf-ieee-tests: New file.
2997         * tests/test-sqrtf-ieee.c: New file.
2998         * tests/test-sqrt-ieee.h: New file.
2999
3000         New module 'sqrtf-ieee'.
3001         * modules/sqrtf-ieee: New file.
3002
3003 2012-02-27  Bruno Haible  <bruno@clisp.org>
3004
3005         remainderl-ieee: Work around test failure on OSF/1.
3006         * m4/remainderl-ieee.m4: New file.
3007         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3008         present, test whether remainderl works with a zero second argument.
3009         Replace it if not.
3010         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3012         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3013         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3014         (Depends-on): Update conditions.
3015         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3016         (Depends-on): Add remainder-ieee.
3017         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3018         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3019         module.
3020
3021         remainderf-ieee: Work around test failure on OSF/1.
3022         * m4/remainderf-ieee.m4: New file.
3023         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3024         present, test whether remainderf works with a zero second argument.
3025         Replace it if not.
3026         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3028         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3029         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3030         (Depends-on): Update conditions.
3031         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3032         (Depends-on): Add remainder-ieee.
3033         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3034         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3035         module.
3036
3037         remainder-ieee: Work around test failure on OSF/1.
3038         * m4/remainder-ieee.m4: New file.
3039         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3040         present, test whether remainder works with a zero second argument.
3041         Replace it if not.
3042         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3044         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3045         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3046         (Depends-on): Update dependencies.
3047         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3048         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3049         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3050
3051         Tests for module 'remainderl-ieee'.
3052         * modules/remainderl-ieee-tests: New file.
3053         * tests/test-remainderl-ieee.c: New file.
3054
3055         New module 'remainderl-ieee'.
3056         * modules/remainderl-ieee: New file.
3057
3058         Tests for module 'remainder-ieee'.
3059         * modules/remainder-ieee-tests: New file.
3060         * tests/test-remainder-ieee.c: New file.
3061
3062         New module 'remainder-ieee'.
3063         * modules/remainder-ieee: New file.
3064
3065         Tests for module 'remainderf-ieee'.
3066         * modules/remainderf-ieee-tests: New file.
3067         * tests/test-remainderf-ieee.c: New file.
3068         * tests/test-remainder-ieee.h: New file.
3069
3070         New module 'remainderf-ieee'.
3071         * modules/remainderf-ieee: New file.
3072
3073 2012-02-27  Bruno Haible  <bruno@clisp.org>
3074
3075         modff, modfl: Fix configure syntax error.
3076         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3077         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3078
3079 2012-02-27  Bruno Haible  <bruno@clisp.org>
3080
3081         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3082         * m4/fmodl-ieee.m4: New file.
3083         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3084         whether fmodl works with zero arguments. Replace it if not.
3085         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3086         (Depends-on): Add fmod-ieee.
3087         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3088         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3089
3090         fmodf-ieee: Work around test failure on OSF/1.
3091         * m4/fmodf-ieee.m4: New file.
3092         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3093         whether fmodf works with zero arguments. Replace it if not.
3094         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3096         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3097         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3098         (Depends-on): Update dependencies.
3099         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3100         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3101         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3102
3103         fmodf-ieee: Work around test failure on MSVC 9.
3104         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3105         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3106
3107         fmod-ieee: Work around test failures on OSF/1, mingw.
3108         * m4/fmod-ieee.m4: New file.
3109         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3110         whether fmod works with zero arguments. Replace it if not.
3111         * lib/math.in.h (fmod): New declaration.
3112         * lib/fmod.c: New file.
3113         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3115         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3116         * modules/fmod (Files): Add lib/fmod.c.
3117         (Depends-on): Add math, isinf, trunc, fma.
3118         (configure.ac): Arrange to compile lib/fmod.c if needed.
3119         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3120         m4/signbit.m4.
3121         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3122         * tests/test-math-c++.cc: Check the declaration of fmod.
3123         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3124
3125         fmodl-ieee: Fix test failures.
3126         * lib/fmodl.c (fmodl): Treat Inf specially.
3127         * modules/fmodl (Depends-on): Add isinf.
3128
3129         Tests for module 'fmodl-ieee'.
3130         * modules/fmodl-ieee-tests: New file.
3131         * tests/test-fmodl-ieee.c: New file.
3132
3133         New module 'fmodl-ieee'.
3134         * modules/fmodl-ieee: New file.
3135
3136         Tests for module 'fmod-ieee'.
3137         * modules/fmod-ieee-tests: New file.
3138         * tests/test-fmod-ieee.c: New file.
3139
3140         New module 'fmod-ieee'.
3141         * modules/fmod-ieee: New file.
3142
3143         Tests for module 'fmodf-ieee'.
3144         * modules/fmodf-ieee-tests: New file.
3145         * tests/test-fmodf-ieee.c: New file.
3146         * tests/test-fmod-ieee.h: New file.
3147
3148         New module 'fmodf-ieee'.
3149         * modules/fmodf-ieee: New file.
3150
3151 2012-02-27  Bruno Haible  <bruno@clisp.org>
3152
3153         Tests for module 'rintl-ieee'.
3154         * modules/rintl-ieee-tests: New file.
3155         * tests/test-rintl-ieee.c: New file.
3156
3157         New module 'rintl-ieee'.
3158         * modules/rintl-ieee: New file.
3159
3160         Tests for module 'rint-ieee'.
3161         * modules/rint-ieee-tests: New file.
3162         * tests/test-rint-ieee.c: New file.
3163
3164         New module 'rint-ieee'.
3165         * modules/rint-ieee: New file.
3166
3167         Tests for module 'rintf-ieee'.
3168         * modules/rintf-ieee-tests: New file.
3169         * tests/test-rintf-ieee.c: New file.
3170         * tests/test-rint-ieee.h: New file.
3171
3172         New module 'rintf-ieee'.
3173         * modules/rintf-ieee: New file.
3174
3175 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3176
3177         regex: re_search etc. should return -2 when memory exhausted
3178         This bug was uncovered when testing 'grep'.  Without the fix,
3179         re_search and friends return -1 when memory is exhausted, but -1
3180         means no match, and this causes grep to falsely report no-match
3181         instead of memory-exhaustion.  See
3182         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3183         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3184         trouble; this can occur if re_search_internal ran out of memory.
3185
3186 2012-02-26  Bruno Haible  <bruno@clisp.org>
3187
3188         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3189         * m4/modfl-ieee.m4: New file.
3190         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3191         whether modfl works with Inf. Replace it if not.
3192         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3194         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3195         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3196         (Depends-on): Update dependencies.
3197         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3198         m4/signbit.m4.
3199         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3200         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3201
3202         modfl-ieee: Fix dependencies.
3203         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3204
3205         modfl-ieee: Fix test failures.
3206         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3207         * modules/modfl (Depends-on): Add isfinite, isinf.
3208
3209         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3210         * m4/modff-ieee.m4: New file.
3211         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3212         whether modff works with NaN and Inf. Replace it if not.
3213         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3215         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3216         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3217         (Depends-on): Update dependencies.
3218         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3219         m4/signbit.m4.
3220         (Depends-on): Add modf-ieee.
3221         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3222         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3223
3224         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3225         * m4/modf-ieee.m4: New file.
3226         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3227         whether modf works with NaN and Inf. Replace it if not.
3228         * lib/math.in.h (modf): New declaration.
3229         * lib/modf.c: New file.
3230         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3232         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3233         * modules/modf (Files): Add lib/modf.c.
3234         (Depends-on): Add math, isfinite, trunc, isinf.
3235         (configure.ac): Addrange to compile lib/modf.c if needed.
3236         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3237         m4/signbit.m4.
3238         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3239         * tests/test-math-c++.cc: Check the declaration of modf.
3240         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3241
3242         Tests for module 'modfl-ieee'.
3243         * modules/modfl-ieee-tests: New file.
3244         * tests/test-modfl-ieee.c: New file.
3245
3246         New module 'modfl-ieee'.
3247         * modules/modfl-ieee: New file.
3248
3249         Tests for module 'modf-ieee'.
3250         * modules/modf-ieee-tests: New file.
3251         * tests/test-modf-ieee.c: New file.
3252
3253         New module 'modf-ieee'.
3254         * modules/modf-ieee: New file.
3255
3256         Tests for module 'modff-ieee'.
3257         * modules/modff-ieee-tests: New file.
3258         * tests/test-modff-ieee.c: New file.
3259         * tests/test-modf-ieee.h: New file.
3260
3261         New module 'modff-ieee'.
3262         * modules/modff-ieee: New file.
3263
3264 2012-02-26  Bruno Haible  <bruno@clisp.org>
3265
3266         Tests for module 'fabsl-ieee'.
3267         * modules/fabsl-ieee-tests: New file.
3268         * tests/test-fabsl-ieee.c: New file.
3269
3270         New module 'fabsl-ieee'.
3271         * modules/fabsl-ieee: New file.
3272
3273         Tests for module 'fabs-ieee'.
3274         * modules/fabs-ieee-tests: New file.
3275         * tests/test-fabs-ieee.c: New file.
3276
3277         New module 'fabs-ieee'.
3278         * modules/fabs-ieee: New file.
3279
3280         Tests for module 'fabsf-ieee'.
3281         * modules/fabsf-ieee-tests: New file.
3282         * tests/test-fabsf-ieee.c: New file.
3283         * tests/test-fabs-ieee.h: New file.
3284
3285         New module 'fabsf-ieee'.
3286         * modules/fabsf-ieee: New file.
3287
3288 2012-02-26  Bruno Haible  <bruno@clisp.org>
3289
3290         Tests for module 'fmal-ieee'.
3291         * modules/fmal-ieee-tests: New file.
3292         * tests/test-fmal-ieee.c: New file.
3293
3294         New module 'fmal-ieee'.
3295         * modules/fmal-ieee: New file.
3296
3297         Tests for module 'fma-ieee'.
3298         * modules/fma-ieee-tests: New file.
3299         * tests/test-fma-ieee.c: New file.
3300
3301         New module 'fma-ieee'.
3302         * modules/fma-ieee: New file.
3303
3304         Tests for module 'fmaf-ieee'.
3305         * modules/fmaf-ieee-tests: New file.
3306         * tests/test-fmaf-ieee.c: New file.
3307         * tests/test-fma-ieee.h: New file.
3308
3309         New module 'fmaf-ieee'.
3310         * modules/fmaf-ieee: New file.
3311
3312 2012-02-26  Bruno Haible  <bruno@clisp.org>
3313
3314         Tests for module 'ldexpl-ieee'.
3315         * modules/ldexpl-ieee-tests: New file.
3316         * tests/test-ldexpl-ieee.c: New file.
3317
3318         New module 'ldexpl-ieee'.
3319         * modules/ldexpl-ieee: New file.
3320
3321         Tests for module 'ldexp-ieee'.
3322         * modules/ldexp-ieee-tests: New file.
3323         * tests/test-ldexp-ieee.c: New file.
3324
3325         New module 'ldexp-ieee'.
3326         * modules/ldexp-ieee: New file.
3327
3328         Tests for module 'ldexpf-ieee'.
3329         * modules/ldexpf-ieee-tests: New file.
3330         * tests/test-ldexpf-ieee.c: New file.
3331         * tests/test-ldexp-ieee.h: New file.
3332
3333         New module 'ldexpf-ieee'.
3334         * modules/ldexpf-ieee: New file.
3335
3336 2012-02-26  Bruno Haible  <bruno@clisp.org>
3337
3338         Refactor frexp*-ieee tests.
3339         * tests/test-frexp-ieee.h: New file.
3340         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3341         (main): Just call test_function.
3342         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3343         (main): Just call test_function.
3344         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3345         (main): Just call test_function.
3346         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3347         * modules/frexp-ieee-tests (Files): Likewise.
3348         * modules/frexpl-ieee-tests (Files): Likewise.
3349
3350         Tests for module 'frexpl-ieee'.
3351         * modules/frexpl-ieee-tests: New file.
3352         * tests/test-frexpl-ieee.c: New file.
3353
3354         New module 'frexpl-ieee'.
3355         * modules/frexpl-ieee: New file.
3356
3357         Tests for module 'frexp-ieee'.
3358         * modules/frexp-ieee-tests: New file.
3359         * tests/test-frexp-ieee.c: New file.
3360
3361         New module 'frexp-ieee'.
3362         * modules/frexp-ieee: New file.
3363
3364         Tests for module 'frexpf-ieee'.
3365         * modules/frexpf-ieee-tests: New file.
3366         * tests/test-frexpf-ieee.c: New file.
3367
3368         New module 'frexpf-ieee'.
3369         * modules/frexpf-ieee: New file.
3370
3371 2012-02-26  Bruno Haible  <bruno@clisp.org>
3372
3373         roundl-ieee tests: More tests.
3374         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3375         (main): Add tests for [MX] shaded specification in POSIX.
3376         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3377         (Depends-on): Add isnanl-nolibm.
3378
3379         round-ieee tests: More tests.
3380         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3381         (main): Add tests for [MX] shaded specification in POSIX.
3382         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3383         (Depends-on): Add isnand-nolibm.
3384
3385         roundf-ieee tests: More tests.
3386         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3387         (main): Add tests for [MX] shaded specification in POSIX.
3388         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3389         (Depends-on): Add isnanf-nolibm.
3390
3391         truncl-ieee tests: More tests.
3392         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3393         (main): Add tests for [MX] shaded specification in POSIX.
3394         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3395         (Depends-on): Add isnanl-nolibm.
3396
3397         trunc-ieee tests: More tests.
3398         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3399         (main): Add tests for [MX] shaded specification in POSIX.
3400         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3401         (Depends-on): Add isnand-nolibm.
3402
3403         truncf-ieee tests: More tests.
3404         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3405         (main): Add tests for [MX] shaded specification in POSIX.
3406         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3407         (Depends-on): Add isnanf-nolibm.
3408
3409         ceill-ieee tests: More tests.
3410         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3411         (main): Add tests for [MX] shaded specification in POSIX.
3412         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3413         (Depends-on): Add isnanl-nolibm.
3414
3415         ceil-ieee tests: More tests.
3416         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3417         (main): Add tests for [MX] shaded specification in POSIX.
3418         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3419         (Depends-on): Add isnand-nolibm.
3420
3421         ceilf-ieee tests: More tests.
3422         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3423         (main): Add tests for [MX] shaded specification in POSIX.
3424         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3425         (Depends-on): Add isnanf-nolibm.
3426
3427         floorl-ieee tests: More tests.
3428         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3429         (main): Add tests for [MX] shaded specification in POSIX.
3430         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3431         (Depends-on): Add isnanl-nolibm.
3432
3433         floor-ieee tests: More tests.
3434         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3435         (main): Add tests for [MX] shaded specification in POSIX.
3436         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3437         (Depends-on): Add isnand-nolibm.
3438
3439         floorf-ieee tests: More tests.
3440         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3441         (main): Add tests for [MX] shaded specification in POSIX.
3442         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3443         (Depends-on): Add isnanf-nolibm.
3444
3445 2012-02-26  Bruno Haible  <bruno@clisp.org>
3446
3447         fpieee: More comments.
3448         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3449
3450 2012-02-25  Bruno Haible  <bruno@clisp.org>
3451
3452         Tests for module 'log10l'.
3453         * modules/log10l-tests: New file.
3454         * tests/test-log10l.c: New file.
3455         * tests/test-math-c++.cc: Check the declaration of log10l.
3456
3457         New module 'log10l'.
3458         * lib/math.in.h (log10l): New declaration.
3459         * lib/log10l.c: New file.
3460         * m4/log10l.m4: New file.
3461         * modules/log10l: New file.
3462         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3464         HAVE_DECL_LOG10L.
3465         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3466         HAVE_DECL_LOG10L.
3467         * doc/posix-functions/log10l.texi: Mention the new module.
3468
3469 2012-02-25  Bruno Haible  <bruno@clisp.org>
3470
3471         fmodl, remainder*: Avoid wrong results due to rounding errors.
3472         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3473         expected bounds.
3474         * lib/remainderf.c (remainderf): Likewise.
3475         * lib/remainder.c (remainder): Likewise.
3476         * lib/remainderl.c (remainderl): Likewise.
3477
3478 2012-02-25  Bruno Haible  <bruno@clisp.org>
3479
3480         Tests for module 'remainderl'.
3481         * modules/remainderl-tests: New file.
3482         * tests/test-remainderl.c: New file.
3483         * tests/test-math-c++.cc: Check the declaration of remainderl.
3484
3485         New module 'remainderl'.
3486         * lib/math.in.h (remainderl): New declaration.
3487         * lib/remainderl.c: New file.
3488         * m4/remainderl.m4: New file.
3489         * modules/remainderl: New file.
3490         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3492         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3493         HAVE_REMAINDERL.
3494         * doc/posix-functions/remainderl.texi: Mention the new module.
3495
3496 2012-02-25  Bruno Haible  <bruno@clisp.org>
3497
3498         Tests for module 'remainderf'.
3499         * modules/remainderf-tests: New file.
3500         * tests/test-remainderf.c: New file.
3501         * tests/test-math-c++.cc: Check the declaration of remainderf.
3502
3503         New module 'remainderf'.
3504         * lib/math.in.h (remainderf): New declaration.
3505         * lib/remainderf.c: New file.
3506         * m4/remainderf.m4: New file.
3507         * modules/remainderf: New file.
3508         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3510         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3511         HAVE_REMAINDERF.
3512         * doc/posix-functions/remainderf.texi: Mention the new module.
3513
3514 2012-02-25  Bruno Haible  <bruno@clisp.org>
3515
3516         remainder: Support for MSVC.
3517         * lib/math.in.h (remainder): New declaration.
3518         * lib/remainder.c: New file.
3519         * m4/remainder.m4: New file.
3520         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3521         (Depends-on): Add math, round, fma.
3522         (configure.ac): Use results of gl_FUNC_REMAINDER.
3523         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3525         HAVE_DECL_REMAINDER.
3526         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3527         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3528         * tests/test-math-c++.cc: Check the declaration of remainder.
3529         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3530         problems are fixed.
3531
3532 2012-02-25  Bruno Haible  <bruno@clisp.org>
3533
3534         Tests for module 'fmodl'.
3535         * modules/fmodl-tests: New file.
3536         * tests/test-fmodl.c: New file.
3537         * tests/test-math-c++.cc: Check the declaration of fmodl.
3538
3539         New module 'fmodl'.
3540         * lib/math.in.h (fmodl): New declaration.
3541         * lib/fmodl.c: New file.
3542         * m4/fmodl.m4: New file.
3543         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3545         REPLACE_FMODL.
3546         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3547         REPLACE_FMODL.
3548         * modules/fmodl: New file.
3549         * doc/posix-functions/fmodl.texi: Mention the new module.
3550
3551 2012-02-25  Bruno Haible  <bruno@clisp.org>
3552
3553         Tests for module 'modfl'.
3554         * modules/modfl-tests: New file.
3555         * tests/test-modfl.c: New file.
3556         * tests/test-math-c++.cc: Check the declaration of modfl.
3557
3558         New module 'modfl'.
3559         * lib/math.in.h (modfl): New declaration.
3560         * lib/modfl.c: New file.
3561         * m4/modfl.m4: New file.
3562         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3564         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3565         * modules/modfl: New file.
3566         * doc/posix-functions/modfl.texi: Mention the new module.
3567
3568 2012-02-25  Bruno Haible  <bruno@clisp.org>
3569
3570         Tests for module 'fabsl'.
3571         * modules/fabsl-tests: New file.
3572         * tests/test-fabsl.c: New file.
3573         * tests/test-math-c++.cc: Check the declaration of fabsl.
3574
3575         New module 'fabsl'.
3576         * lib/math.in.h (fabsl): New declaration.
3577         * lib/fabsl.c: New file.
3578         * m4/fabsl.m4: New file.
3579         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3581         REPLACE_FABSL.
3582         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3583         REPLACE_FABSL.
3584         * modules/fabsl: New file.
3585         * doc/posix-functions/fabsl.texi: Mention the new module.
3586
3587 2012-02-25  Bruno Haible  <bruno@clisp.org>
3588
3589         fabs tests: More tests.
3590         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3591         (zero): New variable.
3592         (main): Add tests for signed zero.
3593         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3594
3595         fabsf tests: More tests.
3596         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3597         (zero): New variable.
3598         (main): Add tests for signed zero.
3599         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3600
3601 2012-02-24  Bruno Haible  <bruno@clisp.org>
3602
3603         atanl: Provide function definition on MSVC.
3604         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3605         function pointer.
3606         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3607
3608 2012-02-24  Bruno Haible  <bruno@clisp.org>
3609
3610         acosl: Provide function definition on MSVC.
3611         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3612         function pointer.
3613         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3614
3615 2012-02-24  Bruno Haible  <bruno@clisp.org>
3616
3617         asinl: Provide function definition on MSVC.
3618         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3619         function pointer.
3620         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3621
3622 2012-02-24  Bruno Haible  <bruno@clisp.org>
3623
3624         tanl: Provide function definition on MSVC.
3625         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3626         function pointer.
3627         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3628
3629 2012-02-24  Bruno Haible  <bruno@clisp.org>
3630
3631         cosl: Provide function definition on MSVC.
3632         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3633         function pointer.
3634         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3635
3636 2012-02-24  Bruno Haible  <bruno@clisp.org>
3637
3638         sinl: Provide function definition on MSVC.
3639         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3640         function pointer.
3641         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3642
3643 2012-02-24  Bruno Haible  <bruno@clisp.org>
3644
3645         logl: Provide function definition on MSVC.
3646         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3647         function pointer.
3648         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3649
3650 2012-02-24  Bruno Haible  <bruno@clisp.org>
3651
3652         expl: Provide function definition on MSVC.
3653         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3654         function pointer.
3655         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3656
3657 2012-02-24  Bruno Haible  <bruno@clisp.org>
3658
3659         sqrtl: Provide function definition on MSVC.
3660         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3661         a function pointer.
3662         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3663
3664 2012-02-24  Bruno Haible  <bruno@clisp.org>
3665
3666         ceill: Provide function definition on MSVC.
3667         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3668         used as a function pointer.
3669         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3670
3671 2012-02-24  Bruno Haible  <bruno@clisp.org>
3672
3673         floorl: Provide function definition on MSVC.
3674         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3675         used as a function pointer.
3676         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3677
3678 2012-02-24  Bruno Haible  <bruno@clisp.org>
3679
3680         ceilf: Provide function definition on MSVC.
3681         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3682         used as a function pointer.
3683         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3684
3685 2012-02-24  Bruno Haible  <bruno@clisp.org>
3686
3687         floorf: Provide function definition on MSVC.
3688         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3689         used as a function pointer.
3690         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3691
3692 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         stdnoreturn: new module
3695         This implements a replacement for C11's <stdnoreturn.h>.
3696         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3697         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3698         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3699         * tests/test-stdnoreturn.c: New files.
3700
3701 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3702
3703         regex: fix false multibyte matches in some regular expressions
3704         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3705         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3706         * lib/regex_internal.c (re_string_skip_chars):
3707         Fix miscomputation of remain_len that may cause incomplete
3708         multi-byte character and false match.
3709
3710 2012-02-24  Jim Meyering  <meyering@redhat.com>
3711
3712         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3713         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3714         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3715         Remove now-unnecessary str''cmp obfuscation.
3716         Suggested by Akim Demaille.
3717
3718 2012-02-24  Bruno Haible  <bruno@clisp.org>
3719
3720         streq: Rename macro.
3721         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3722         * NEWS: Mention the change.
3723         * lib/mbrtowc.c (mbrtowc): Update.
3724         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3725         * lib/wcwidth.c (wcwidth): Update.
3726         Suggested by Akim Demaille and Jim Meyering.
3727
3728 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3729
3730         regex: fix typo in definition of MIN
3731         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3732         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3733
3734 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3735             Bruno Haible  <bruno@clisp.org>
3736
3737         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3738         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3739         entries into a stack-allocated buffer directly.
3740         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3741
3742 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3743             Bruno Haible  <bruno@clisp.org>
3744
3745         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3746
3747          - There were several instances of this pattern:
3748
3749              for (;;) {
3750                n = acl (f, GETACLCNT, 0, NULL);
3751                [ allocate an array A of size N ]
3752                if (acl (f, GETACL, n, a) == n)
3753                  break;
3754              }
3755
3756            This loop might never terminate if some other process is constantly
3757            manipulating the file's ACL.  The loop should be rewritten to
3758            terminate.
3759
3760          - The acl (... GETACLNT ...) call is merely an optimization; its value
3761            is merely a hint as to how big to make the array.  A better
3762            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3763            and just guess a reasonably-big size, growing the size and trying
3764            again if it's not large enough.  This guarantees termination, and
3765            saves a system call.
3766
3767         * lib/acl-internal.h: Include <limits.h>.
3768         (MIN, SIZE_MAX): New macros.
3769         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3770         a stack-allocated buffer, and use malloc if it does not fit. Don't
3771         use GETACLCNT.
3772         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3773
3774 2012-02-19  Bruno Haible  <bruno@clisp.org>
3775
3776         acl: Fix endless loop on Solaris with vxfs.
3777         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3778         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3779         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3780         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3781         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3782         Reported by Bill Jones in
3783         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3784
3785 2012-02-19  Bruno Haible  <bruno@clisp.org>
3786
3787         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3788         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3789         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3790         that this function returns 0 in some more cases.
3791
3792 2012-02-19  Bruno Haible  <bruno@clisp.org>
3793
3794         acl: Update doc references.
3795         * doc/acl-resources.txt: Update links to Solaris documentation.
3796
3797 2012-02-19  Bruno Haible  <bruno@clisp.org>
3798
3799         Fix test failure in many locales on Solaris 11.
3800         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3801         'tr' arguments.
3802         * tests/test-pipe-filter-ii1.c (main): Likewise.
3803         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3804         expressions in the C locale.
3805         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3806         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3807
3808 2012-02-19  Bruno Haible  <bruno@clisp.org>
3809
3810         gnulib-tool: Improve usage message.
3811         * gnulib-tool (func_usage): Move doc of --help and --version to the
3812         section "Operation modes".
3813
3814 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3815
3816         README-release: make it easier to execute commands
3817         * top/README-release: break commands out on to separate lines.
3818
3819 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3820
3821         GNUmakefile: simplify detection of unconfigured trees
3822         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3823         whether the tree make is being run from is already configured or
3824         not.  Related simplifications.
3825
3826 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3827
3828         * gnulib-tool (func_usage): Document --help and --version.
3829
3830 2012-02-11  Jim Meyering  <meyering@redhat.com>
3831
3832         bootstrap: don't exit 0 upon gnulib-tool failure
3833         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3834         its exit status, not 0.
3835
3836 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3837
3838         README-release: various improvements
3839         * top/README-release: Give a command to push changes for the
3840         release.  Add "distcheck" to list of other pre-release checks.
3841         Fix instance of "make stable" which should be "make TYPE".
3842
3843 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3844
3845         maint: replace FSF snail-mail addresses with URLs
3846         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3847         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3848         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3849         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3850         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3851         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3852         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3853         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3854         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3855         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3856         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3857         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3858         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3859         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3860         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3861         * lib/glthread/thread.c, lib/glthread/thread.h:
3862         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3863         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3864         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3865         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3866         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3867         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3868         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3869         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3870         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3871         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3872         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3873         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3874         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3875         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3876         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3877         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3878         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3879         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3880         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3881         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3882         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3883         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3884         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3885         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3886         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3887         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3888         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3889         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3890         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3891         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3892         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3893         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3894         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3895         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3896         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3897         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3898         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3899         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3900         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3901         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3902         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3903         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3904         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3905         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3906         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3907         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3908         * tests/test-poll.c, tests/test-quotearg-simple.c:
3909         * tests/test-quotearg.c, tests/test-quotearg.h:
3910         * tests/test-round-ieee.c, tests/test-round1.c:
3911         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3912         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3913         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3914         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3915         * tests/test-strerror.c, tests/test-strerror_r.c:
3916         * tests/test-strsignal.c, tests/test-strverscmp.c:
3917         * tests/test-xmemdup0.c:
3918         Replace FSF snail mail addresses with URLs, as per GNU coding
3919         standards.  See glibc bug
3920         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3921
3922 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3923
3924         README-release: capitalize a word and split a line
3925         * top/README-release: Fix punctuation and spacing.
3926
3927 2012-02-08  Akim Demaille  <demaille@gostai.com>
3928
3929         fatal-signal: use C prototypes (with explicit void).
3930         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3931         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3932
3933 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3934
3935         regex: spelling fix
3936         * lib/regexec.c: spelling fix
3937
3938         regex: rely on stdint.h for SIZE_MAX
3939         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3940
3941 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3942
3943         regex: merge glibc changes
3944
3945         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3946         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3947         (init_word_char): Work even if bitset words are not exactly 32 or
3948         64 bits wide.  Don't assume there are no padding bits.
3949         * lib/regex.c [_LIBC]: Do not include <config.h>.
3950         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3951         and -Wtype-limits.
3952         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3953         needless disagreement with glibc.  All uses changed.  Define it to
3954         1 only if _GNU_SOURCE, to match glibc.
3955         (_REG_RM_NAME): Remove; no longer needed, since the names in
3956         question are now all protected by __USE_GNU.
3957         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3958         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3959         * lib/regex_internal.h (MIN): New macro.
3960
3961         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3962         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3963
3964         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3965         * lib/regex_internal.c (re_string_fetch_byte_case):
3966         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3967         is miscompiled, and it turns out it is because of an incorrect
3968         attribute on re_string_fetch_byte_case.  Unlike
3969         re_string_peek_byte_case, this one is really not pure, it modifies
3970         memory (increments pstr->cur_idx), and with the pure attribute GCC
3971         assumed it doesn't and it cached the presumed value of
3972         regexp->cur_idx in a variable across the
3973          for (;; ++i)
3974            {
3975              if (i >= BRACKET_NAME_BUF_SIZE)
3976                return REG_EBRACK;
3977              if (token->type == OP_OPEN_CHAR_CLASS)
3978                ch = re_string_fetch_byte_case (regexp);
3979              else
3980                ch = re_string_fetch_byte (regexp);
3981              if (re_string_eoi(regexp))
3982                return REG_EBRACK;
3983              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3984                break;
3985              elem->opr.name[i] = ch;
3986            }
3987
3988         2011-11-29 Andreas Schwab <schwab@redhat.com>
3989         * lib/regcomp.c (build_equiv_class):
3990         Fix access after end of search string in regex matcher.
3991
3992         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3993         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3994
3995         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3996         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3997
3998         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3999         * lib/regcomp.c (parse_branch, parse_sub_exp):
4000         More regex memory leak fixes and tests.
4001         (parse_sub_exp, parse_bracket_exp):
4002         Fix memory leak for some invalid regular expressions.
4003
4004         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4005         * lib/regex_internal.c, lib/regexec.c:
4006         Fix unnecessary overallocation due to incomplete character.  When
4007         incomplete characters are found at the end of a string the code
4008         ran amok and allocated lots of memory.  Stricter limits are now in
4009         place.
4010
4011         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4012         * lib/regex.h: Update documentation.
4013
4014         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4015         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4016
4017         2010-05-05 Andreas Schwab <schwab@redhat.com>
4018         * lib/regexec.c (find_collation_sequence_value):
4019         Fix lookup of collation sequence value during regexp matching.
4020
4021         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4022         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4023
4024         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4025         * lib/regex.h: Cleanup namespace.
4026
4027         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4028         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4029
4030         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4031         * lib/regex_internal.h: Prevent some declarations and definitions
4032         to be seen when used in tests.
4033
4034         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4035         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4036         __libc_lock_* macros if not _LIBC.
4037         (struct re_dfa_t): Add lock.
4038
4039 2012-02-07  Eric Blake  <eblake@redhat.com>
4040
4041         maint.mk: also prohibit lower-case @var@
4042         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4043         lower case, like @top_srcdir@.
4044
4045 2012-02-04  Eric Blake  <eblake@redhat.com>
4046
4047         canonicalize: avoid uninitialized memory use
4048         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4049         random '/' left in dest.
4050         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4051
4052 2012-02-04  Bruno Haible  <bruno@clisp.org>
4053
4054         isatty: Fix test failure of ptsname_r on native Windows.
4055         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4056         and don't set errno.
4057         (isatty): Test first whether fd is valid. Set errno when returning 0.
4058
4059 2012-02-04  Bruno Haible  <bruno@clisp.org>
4060
4061         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4062         * tests/test-spawn-pipe-main.c: Include progname.h.
4063         (main): Invoke set_program_name.
4064         * modules/spawn-pipe-tests (Depends-on): Add progname.
4065
4066         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4067         * tests/test-nonblocking-socket-main.c: Include progname.h.
4068         (main): Invoke set_program_name.
4069         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4070
4071         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4072         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4073         (main): Invoke set_program_name.
4074         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4075
4076 2012-02-04  Eric Blake  <eblake@redhat.com>
4077
4078         canonicalize-lgpl: fix // handling
4079         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4080
4081         canonicalize: fix // handling
4082         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4083         /// to //, since only // is special.
4084
4085 2012-02-04  Bruno Haible  <bruno@clisp.org>
4086
4087         ioctl: Fix test failure on native Windows.
4088         * lib/ioctl.c: Include msvc-nothrow.h.
4089         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4090
4091 2012-02-04  Bruno Haible  <bruno@clisp.org>
4092
4093         fsync: Avoid test failure on native Windows.
4094         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4095         read-only.
4096
4097 2012-02-04  Bruno Haible  <bruno@clisp.org>
4098
4099         sys_select: Avoid syntax error on OpenBSD 5.0.
4100         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4101         currently being included, just include the system's <sys/select.h>.
4102
4103 2012-02-04  Bruno Haible  <bruno@clisp.org>
4104
4105         sys_select: Avoid syntax error on OpenBSD 5.0.
4106         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4107         <sys/select.h>, not before.
4108         Reported by Jiri B <jirib@devio.us>.
4109
4110 2012-02-04  Bruno Haible  <bruno@clisp.org>
4111
4112         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4113         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4114         global variables.
4115         * tests/test-get-rusage-data.c (main): Likewise.
4116         Reported by Jim Meyering.
4117
4118 2012-02-04  Bruno Haible  <bruno@clisp.org>
4119
4120         stdioext: Fix last commit.
4121         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4122
4123 2012-02-03  Bruno Haible  <bruno@clisp.org>
4124
4125         stdioext: Add tentative support for Plan9.
4126         * lib/stdio-impl.h: Include <errno.h>.
4127         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4128         * lib/freadable.c (freadable): Likewise.
4129         * lib/fwritable.c (fwritable): Likewise.
4130         * lib/fbufmode.c (fbufmode): Likewise.
4131         * lib/freading.c (freading): Likewise.
4132         * lib/fwriting.c (fwriting): Likewise.
4133         * lib/freadptr.c (freadptr): Likewise.
4134         * lib/freadseek.c (freadptrinc): Likewise.
4135         * lib/freadahead.c (freadahead): Likewise.
4136         * lib/fpurge.c (fpurge): Likewise.
4137         * lib/fseeko.c (rpl_fseeko): Likewise.
4138         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4139         Reported by Jens Staal <staal1978@gmail.com>.
4140
4141 2012-02-02  Jim Meyering  <meyering@redhat.com>
4142
4143         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4144         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4145         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4146         not even to try to add the attribute.  Instead, add a pragma to suppress
4147         the suggestion/warning.
4148
4149 2012-01-31  Karl Berry  <karl@gnu.org>
4150
4151         setstate doc: typo.
4152         * doc/posix-functions/setstate.texi (setstate): { not (.
4153
4154 2012-01-31  Bruno Haible  <bruno@clisp.org>
4155
4156         popen: Make more robust on Windows.
4157         * lib/popen.c: On native Windows, use the _popen based code even if
4158         HAVE_POPEN is set.
4159         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4160         environment variable on native Windows.
4161
4162 2012-01-30  Bruno Haible  <bruno@clisp.org>
4163
4164         pclose: Fix typo.
4165         * lib/stdio.in.h (pclose): Fix typo in warning message.
4166
4167 2012-01-30  Bruno Haible  <bruno@clisp.org>
4168
4169         doc about getlogin_r, setstate.
4170         * doc/posix-functions/getlogin_r.texi: List the incompatible
4171         declaration problem under "not fixed by gnulib".
4172         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4173         problem on Solaris 11 and other platforms.
4174
4175 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4176             Bruno Haible  <bruno@clisp.org>
4177
4178         poll tests: Make test more robust.
4179         * tests/test-poll.c: Include macros.h.
4180         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4181         return value of various I/O operations.
4182         * modules/poll-tests (Files): Add tests/macros.h.
4183
4184 2012-01-30  Bruno Haible  <bruno@clisp.org>
4185
4186         sys_stat: Fix support for mingw64 and MSVC.
4187         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4188         header files already do it.
4189         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4190         stat itself.
4191         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4192
4193 2012-01-30  Bruno Haible  <bruno@clisp.org>
4194
4195         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4197         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4198
4199 2012-01-29  Bruno Haible  <bruno@clisp.org>
4200
4201         quotearg: Fix test failure on MacOS X 10.5.
4202         * tests/test-quotearg-simple.c: Include localcharset.h.
4203         (main): If the locale encoding is not ASCII, bypass the tests of
4204         locale_quoting_style and clocale_quoting_style.
4205         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4206
4207 2012-01-29  Jim Meyering  <meyering@redhat.com>
4208
4209         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4210         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4211         detect uses of canonicalize_file_name.
4212
4213 2012-01-28  Bruno Haible  <bruno@clisp.org>
4214
4215         test-framework-sh: Fix test failure with AIX 7.1 diff.
4216         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4217         in column 1, like 'diff -c' does.
4218         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4219         whether 'diff -u' is used. Instead, test whether the output contains
4220         some '@' character.
4221
4222 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4223
4224         strtoimax: eliminate need for stdint.h, inttypes.h checks
4225         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4226         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4227         the prerequisites for a recently-introduced strtoimax test.
4228         I guess this might cause strtoimax to be replaced when not
4229         strictly necessary on older hosts, but this shouldn't introduce
4230         any bugs and it should make Emacs 'configure' faster on typical
4231         modern hosts.  Problem discovered when importing the latest gnulib
4232         to an Emacs test version.
4233         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4234
4235 2012-01-28  Bruno Haible  <bruno@clisp.org>
4236
4237         sys_time: Override 'struct timeval' on some native Windows platforms.
4238         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4239         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4240         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4241         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4242         needs to be overridden.
4243         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4244         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4245         * tests/test-sys_select.c: Check that the tv_sec member has the same
4246         size as a 'time_t'.
4247         * tests/test-sys_time.c: Likewise.
4248         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4249         is set, set also REPLACE_GETTIMEOFDAY.
4250         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4251         convert the resulting 'struct timeval' before returning.
4252         * lib/select.c: Include <sys/time.h>.
4253         (select, timeval): Undefine at the right place.
4254         * modules/select (Depends-on): Add sys_time.
4255         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4256         some Windows platforms.
4257         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4258
4259 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4260
4261         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4262         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4263         an integer.
4264         * lib/fcntl.c (dupfd): Likewise.
4265         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4266
4267 2012-01-28  Bruno Haible  <bruno@clisp.org>
4268
4269         fcntl: Avoid compilation error on native Windows.
4270         * modules/fcntl (Depends-on): Add 'close'.
4271
4272 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4273
4274         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4275         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4276         pointer to an integer.
4277         * lib/poll.c (IsConsoleHandle): Likewise.
4278         * lib/isatty.c (IsConsoleHandle): Likewise.
4279
4280 2012-01-28  Jim Meyering  <meyering@redhat.com>
4281
4282         doc: clarify README-release
4283         * top/README-release: Clarify: you should make a point to have
4284         the latest stable versions of build tools in your PATH, and the
4285         reference to buildreq is solely for its list of tool names, not
4286         for its minimal-functional version numbers.
4287         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4288
4289         maint.mk: use more readable (yet functionally equivalent) quoting
4290         It is common to quote a single quote in a single quoted string like
4291         this:  '...'\''...'.  Unless you know the idiom, that looks like
4292         gibberish, so prefer to double-quote the string when possible.
4293         Then you can use a more readable, lone single quote: "...'..."
4294         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4295         "don't" is more readable than the equivalent 'don'\''t'.
4296         (sc_cast_of_x_alloc_return_value): Likewise.
4297         (sc_cast_of_alloca_return_value): Likewise.
4298         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4299         rather than '\'':'\''.
4300
4301 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4302
4303         stdalign: relax _Alignof and tighten _Alignas test
4304         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4305         as it was too strict: alignof must divide offsetof, but it need
4306         not equal offsetof.  Inspired by Joseph S. Myers's comment
4307         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4308         Conversely, tighten the _Alignas test a bit, as the resulting
4309         alignment must be exactly 8.
4310
4311 2012-01-27  Bruno Haible  <bruno@clisp.org>
4312
4313         stdalign: Document the last change.
4314         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4315
4316 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4317
4318         stdalign: check that alignof and offsetof are consistent
4319         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4320         Problem reported for gnulib by Richard W.M. Jones in
4321         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4322
4323 2012-01-27  Jim Meyering  <meyering@redhat.com>
4324
4325         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4326         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4327         convert a sequence with gaps to the minimal containing range.
4328         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4329         * tests/test-update-copyright.sh: Test for this.
4330         The FSF confirmed it is ok to do this, assuming there is at
4331         least one significant change per year in the affected range:
4332         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4333
4334 2012-01-26  Bruno Haible  <bruno@clisp.org>
4335
4336         pipe2: refine doc about thread-safety
4337         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4338         multithread-safety problem.
4339         * doc/glibc-functions/accept4.texi: Likewise.
4340
4341 2012-01-26  Bruno Haible  <bruno@clisp.org>
4342
4343         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4344         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4345         In the test program, include <fcntl.h>, for O_RDONLY.
4346
4347 2012-01-26  Eric Blake  <eblake@redhat.com>
4348
4349         pipe2: document lack of thread-safety in replacement
4350         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4351         issue in replacement.
4352         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4353         Based on a report by Eric Wong.
4354
4355 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4356             Bruno Haible  <bruno@clisp.org>
4357
4358         malloca: Avoid warnings on x86_64 mingw64.
4359         * lib/malloca.c: Include <stdint.h>.
4360         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4361         * modules/malloca (Depends-on): Add stdint.
4362         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4363
4364 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4365
4366         obstack: remove __STDC__ conditionals
4367         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4368         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4369         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4370         m4/include_next.m4 as the only gnulib-maintained places that still
4371         refer to __STDC__.
4372
4373 2012-01-24  Bruno Haible  <bruno@clisp.org>
4374
4375         havelib: Modern quoting.
4376         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4377         the recent change to the GNU coding standards.
4378
4379 2012-01-24  Bruno Haible  <bruno@clisp.org>
4380
4381         stdint: Improve support for Android.
4382         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4383         Reported by Simon Josefsson <simon@josefsson.org>.
4384
4385 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4386
4387         doc: omit trailing empty lines from INSTALL etc.
4388         * doc/Makefile (INSTALL): Omit trailing empty lines.
4389         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4390         omit trailing empty lines.  This simplifies the build procedure.
4391
4392 2012-01-23  Jim Meyering  <meyering@redhat.com>
4393
4394         tests: avoid spurious warnings about gl_sockets_startup
4395         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4396         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4397         reporting a "statement with no effect".
4398         * tests/test-accept.c (main): Mark as "(void)".
4399         * tests/test-accept4.c (main): Likewise.
4400         * tests/test-bind.c (main): Likewise.
4401         * tests/test-connect.c (main): Likewise.
4402         * tests/test-getpeername.c (main): Likewise.
4403         * tests/test-getsockname.c (main): Likewise.
4404         * tests/test-getsockopt.c (main): Likewise.
4405         * tests/test-listen.c (main): Likewise.
4406         * tests/test-recv.c (main): Likewise.
4407         * tests/test-recvfrom.c (main): Likewise.
4408         * tests/test-send.c (main): Likewise.
4409         * tests/test-sendto.c (main): Likewise.
4410         * tests/test-setsockopt.c (main): Likewise.
4411         * tests/test-shutdown.c (main): Likewise.
4412
4413 2012-01-21  Bruno Haible  <bruno@clisp.org>
4414
4415         locale-fr.m4: Fix for Android.
4416         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4417         failure of the test program on Bionic libc.
4418
4419 2012-01-21  Jim Meyering  <meyering@redhat.com>
4420
4421         bootstrap: fail when bootstrap_post_import_hook fails
4422         Otherwise, it's far too easy to miss diagnostics emitted
4423         between gnulib-tool's output and that of running configure.
4424         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4425
4426 2012-01-17  Jim Meyering  <meyering@redhat.com>
4427
4428         maint: enable sc_trailing_blank
4429         * build-aux/pmccabe.css: Remove trailing blanks.
4430         * doc/acl-cygwin.txt: Likewise.
4431         * doc/gnu-oids.texi: Likewise
4432         * cfg.mk: Enable sc_trailing_blank.
4433         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4434
4435 2012-01-17  Jim Meyering  <meyering@redhat.com>
4436
4437         maint: enable sc_prohibit_openat_without_use
4438         * cfg.mk: Enable sc_prohibit_openat_without_use.
4439         Exempt lib/selinux-at.c.
4440
4441 2012-01-17  Jim Meyering  <meyering@redhat.com>
4442
4443         maint: enable sc_prohibit_cloexec_without_use
4444         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4445         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4446
4447 2012-01-17  Jim Meyering  <meyering@redhat.com>
4448
4449         maint: enable sc_prohibit_intprops_without_use
4450         * cfg.mk: Enable sc_prohibit_intprops_without_use
4451         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4452
4453 2012-01-17  Jim Meyering  <meyering@redhat.com>
4454
4455         maint: enable sc_prohibit_hash_pjw_without_use
4456         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4457         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4458         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4459         following " (".
4460
4461 2012-01-17  Jim Meyering  <meyering@redhat.com>
4462
4463         maint: enable double-word-prohibiting rule
4464         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4465         Exempt three files.
4466
4467 2012-01-17  Jim Meyering  <meyering@redhat.com>
4468
4469         maint: remove empty lines at EOF, but excluding modules/*
4470         Apply syntax rules at home as well as abroad.  Most changes
4471         were induced by running this:
4472           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4473             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4474             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4475         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4476         Exempt modules/* and two binary files.
4477         Also exempt doc/INSTALL*, per request from Bruno Haible.
4478         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4479         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4480         * doc/Copyright/request-assign.future: Likewise.
4481         * doc/Copyright/request-disclaim.changes: Likewise.
4482         * doc/INSTALL: Likewise.
4483         * doc/INSTALL.ISO: Likewise.
4484         * doc/INSTALL.UTF-8: Likewise.
4485         * doc/acl-cygwin.txt: Likewise.
4486         * doc/acl-resources.txt: Likewise.
4487         * doc/fdl-1.2.texi: Likewise.
4488         * doc/fdl-1.3.texi: Likewise.
4489         * doc/fdl.texi: Likewise.
4490         * lib/argp-pin.c: Likewise.
4491         * lib/round.c: Likewise.
4492         * lib/unicase/u16-totitle.c: Likewise.
4493         * lib/unictype/block_test.c: Likewise.
4494         * lib/uninorm/canonical-decomposition.c: Likewise.
4495         * m4/README: Likewise.
4496         * m4/relocatable-lib.m4: Likewise.
4497         * tests/test-isnand-nolibm.c: Likewise.
4498         * tests/test-isnand.c: Likewise.
4499         * tests/uninorm/NormalizationTest.txt: Likewise.
4500
4501 2012-01-17  Jim Meyering  <meyering@redhat.com>
4502
4503         maint: add framework to run syntax-check rules against gnulib sources
4504         * cfg.mk: New file, to disable all currently-failing tests.
4505         We'll enable them one by one, as they are made to pass.
4506         * Makefile (sc_maint): New rule.
4507
4508 2012-01-21  Bruno Haible  <bruno@clisp.org>
4509
4510         stdint: Add support for Android.
4511         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4512         include the system's <stdint.h>.
4513         Reported by Simon Josefsson <simon@josefsson.org>.
4514
4515 2012-01-19  Jim Meyering  <meyering@redhat.com>
4516
4517         bootstrap: add bootstrap_post_import_hook
4518         Bison does still need something like the gnulib_mk_hook whose
4519         invocation I had to remove along with slurp in commit 767ccd40.
4520         Technically, we could get along without it, but doing so would
4521         have required living with a warning and a mandatory post-bootstrap
4522         automake rerun.
4523         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4524         (bootstrap_post_import_hook): New function.
4525         Invoke it after gnulib-tool --import and before autoreconf.
4526
4527 2012-01-18  Jim Meyering  <meyering@redhat.com>
4528
4529         gitlog-to-changelog: don't use "no_"-prefixed variable name
4530         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4531         to enable both --cluster and --no-cluster.  Change variable name,
4532         s/\$no_cluster/$cluster/, and reverse usage to match.
4533
4534         gitlog-to-changelog: use "||", not "or" in expressions
4535         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4536         expressions.
4537
4538 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4539
4540         gitlog-to-changelog: new option --no-cluster
4541         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4542         clustering of adjacent commit messages.
4543
4544 2012-01-17  Jim Meyering  <meyering@redhat.com>
4545
4546         maint: spell file systems with two words, not one
4547         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4548         two words, not one.
4549
4550 2012-01-16  Jim Meyering  <meyering@redhat.com>
4551
4552         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4553         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4554
4555 2012-01-16  Eric Blake  <eblake@redhat.com>
4556
4557         bootstrap: cater to autoconf 2.59
4558         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4559         is not available.
4560
4561         bootstrap: properly check for libtool
4562         * build-aux/bootstrap (libtoolize): Also run libtool when older
4563         usage is detected.
4564
4565 2012-01-15  Bruno Haible  <bruno@clisp.org>
4566
4567         Improve support for MSVC 9.
4568         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4569         clashes on MSVC.
4570         * lib/fcntl.in.h: Likewise.
4571         * lib/stdlib.in.h: Likewise.
4572         * lib/sys_stat.in.h: Likewise.
4573
4574 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4575
4576         gnupload: we hold the master copy of this script now
4577         For motivation and more information, see:
4578         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4579         * build-aux/gnupload: Make it clear in the heading comments that the
4580         master copy of this file is maintained by gnulib.  Since we are at
4581         it, bump its copyright year and ...
4582         ($scriptversion): ... the date in its version.
4583         ($usage): Patches and bug reports should be sent to the gnulib list,
4584         not the automake one.
4585         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4586         anymore.
4587
4588 2012-01-15  Bruno Haible  <bruno@clisp.org>
4589
4590         Fix module 'random'.
4591         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4592         initstate, setstate are declared.
4593
4594 2012-01-14  Bruno Haible  <bruno@clisp.org>
4595
4596         Tests for module 'random'.
4597         * modules/random-tests: New file.
4598         * tests/test-random.c: New file, based on tests/test-random_r.c.
4599
4600         New module 'random'.
4601         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4602         declarations.
4603         * lib/random.c: New file, based on glibc/stdlib/random.c.
4604         * m4/random.m4: New file.
4605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4606         HAVE_RANDOM.
4607         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4608         * modules/random: New file.
4609         * config/srclist.txt: Add an entry for random.c.
4610         * doc/posix-functions/random.texi: Mention the 'random' module.
4611         * doc/posix-functions/initstate.texi: Likewise.
4612         * doc/posix-functions/setstate.texi: Likewise.
4613         * doc/posix-functions/srandom.texi: Likewise.
4614
4615 2012-01-12  Bruno Haible  <bruno@clisp.org>
4616
4617         random_r: Use common idioms.
4618         * lib/random_r.c: Include <stdlib.h> first.
4619
4620         random_r: Override incompatible API on AIX, OSF/1.
4621         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4622         Override the system function if REPLACE_RANDOM_R is 1.
4623         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4624         and OSF/1, set REPLACE_RANDOM_R.
4625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4626         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4627         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4628         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4629         * doc/glibc-functions/random_r.texi: Likewise.
4630         * doc/glibc-functions/setstate_r.texi: Likewise.
4631
4632         random_r: Support for MSVC 9.
4633         * lib/random_r.c: Include stdint.h, not inttypes.h.
4634
4635 2012-01-12  Eric Blake  <eblake@redhat.com>
4636
4637         inet_ntop: guard extra work by IF_LINT
4638         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4639         better code generation when not checking for warnings.
4640         Suggested by Paul Eggert and Jim Meyering.
4641
4642         strptime: fix regression on mingw
4643         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4644         Fix regression.  Reported by Bruno Haible.
4645
4646 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4647             Bruno Haible  <bruno@clisp.org>
4648
4649         copy-file: add error-code-returning variant.
4650         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4651         (qcopy_file_preserving): New declaration.
4652         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4653         copy_file_preserving. Change return type to 'int'. Don't emit an error
4654         message here.
4655         (copy_file_preserving): New function.
4656         * tests/test-copy-file.c: Include <stdlib.h>.
4657         (main): Test qcopy_file_preserving if the environment variable
4658         NO_STDERR_OUTPUT is set.
4659         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4660         with NO_STDERR_OUTPUT
4661         * tests/test-copy-file-2.sh: Likewise.
4662
4663 2012-01-10  Bruno Haible  <bruno@clisp.org>
4664
4665         copy-file: Use 'quote' module consistently.
4666         * lib/copy-file.c (copy_file_preserving): Use quote().
4667
4668         copy-file: Refactor.
4669         * lib/copy-file.c: Include quote.h.
4670         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4671         message here.
4672         * modules/copy-file (Depends-on): Add quote.
4673
4674         acl: Export qcopy_acl.
4675         * lib/acl.h (qcopy_acl): New declaration.
4676         * lib/copy-acl.c (qcopy_acl): Make non-static.
4677
4678         acl: Rename a local variable.
4679         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4680
4681         acl: Align return values of copy_acl and qcopy_acl.
4682         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4683         maybe < -1.
4684
4685 2012-01-11  Eric Blake  <eblake@redhat.com>
4686
4687         strptime: silence gcc warnings
4688         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4689         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4690         Reported by Daniel P. Berrange.
4691
4692         inet_ntop: silence gcc warning
4693         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4694         Reported by Daniel P. Berrange.
4695
4696 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4697
4698         getloadavg test: skip the test on GNU/Linux without /proc mounted
4699         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4700         file.  When /proc is not mounted, it always fails with ENOENT.
4701         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4702         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4703
4704 2012-01-10  Bruno Haible  <bruno@clisp.org>
4705
4706         regex: Avoid link error on MSVC 9.
4707         * modules/regex (Depends-on): Add wctype.
4708
4709 2012-01-10  Bruno Haible  <bruno@clisp.org>
4710
4711         doc: Mention --with-tests option.
4712         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4713         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4714         --with-tests.
4715         Reported by Reuben Thomas.
4716
4717 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4718
4719         users.txt: order package names lexicographically.
4720         * users.txt: Order package names lexicographically.
4721
4722 2012-01-10  Jim Meyering  <meyering@redhat.com>
4723
4724         maint.mk: fix description in comment
4725         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4726
4727         ignore-value: remove deprecated ignore_ptr function
4728         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4729         * NEWS: Note this.
4730
4731 2012-01-09  Jim Meyering  <meyering@redhat.com>
4732
4733         test-init.sh: avoid a subshell
4734         * tests/test-init.sh: Remove protective subshell.
4735         Suggested by Bernhard Voelker.  While a subshell is normally
4736         required to protect against older shells (Solaris, FreeBSD) that
4737         warn about a missing program before performing redirection, the
4738         shell-selection tests performed by init.sh probably exclude any
4739         offending shell.
4740
4741 2012-01-08  Bruno Haible  <bruno@clisp.org>
4742
4743         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4744         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4745         variable.
4746
4747 2012-01-08  Bruno Haible  <bruno@clisp.org>
4748
4749         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4750         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4751         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4752         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4753         macro.
4754         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4755         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4756         * lib/spawn_faction_addopen.c: Add workaround implementation if
4757         HAVE_WORKING_POSIX_SPAWN.
4758         * modules/spawn (Makefile): Substitute
4759         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4760         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4761         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4762         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4763         (Depends-on): Update conditions.
4764         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4765         the Solaris 11 bug.
4766
4767 2012-01-08  Bruno Haible  <bruno@clisp.org>
4768
4769         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4770         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4771         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4772         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4773         macro.
4774         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4775         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4776         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4777         HAVE_WORKING_POSIX_SPAWN.
4778         * modules/spawn (Makefile): Substitute
4779         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4780         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4781         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4782         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4783         (Depends-on): Update conditions.
4784         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4785         the Solaris 11 bug.
4786
4787 2012-01-08  Bruno Haible  <bruno@clisp.org>
4788
4789         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4790         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4791         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4792         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4793         HAVE_WORKING_POSIX_SPAWN.
4794         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4795         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4796         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4797         * lib/spawn_faction_addclose.c: Add workaround implementation if
4798         HAVE_WORKING_POSIX_SPAWN.
4799         * modules/spawn (Makefile): Substitute
4800         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4801         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4802         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4803         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4804         (Depends-on): Update conditions.
4805         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4806         the Solaris 11 bug.
4807
4808 2012-01-08  Bruno Haible  <bruno@clisp.org>
4809
4810         doc: Update for Solaris 11 2011-11.
4811         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4812         * m4/printf.m4: Update comments.
4813
4814 2012-01-08  Bruno Haible  <bruno@clisp.org>
4815
4816         mktime: Avoid compilation error on Solaris 11.
4817         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4818
4819 2012-01-08  Bruno Haible  <bruno@clisp.org>
4820
4821         doc: Small fix.
4822         * doc/posix-headers/nl_types.texi: Correct platforms list.
4823
4824 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4825
4826         Add lgpl-3.0 module.
4827         * MODULES.html.sh (Support for building documentation): Add
4828         lgpl-3.0.
4829         * modules/lgpl-3.0: New file.
4830
4831 2012-01-08  Jim Meyering  <meyering@redhat.com>
4832
4833         select.c: indent with spaces, not TABs
4834         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4835
4836 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4837
4838         quotearg: do not use grave accent for left quote
4839         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4840         locale_quoting_style.
4841         (quotearg_buffer_restyled): Fix example.
4842         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4843
4844 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4845
4846         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4847         Most programs do not have translation catalogs for English and much
4848         less separate catalogs for British and American English.  Drop the
4849         suggestion to translators about these two, and provide it
4850         automatically for Unicode locales.  Like most programs, even those
4851         using American English, we use single quotation marks.  This conflicts
4852         with the American typographic convention, but works better when you
4853         cite the entire error message within double quotes.  It also tries not
4854         to clash with established practice and with what non-gnulib programs
4855         will usually do.
4856         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4857         using an UTF-8 or GB-18030 locale.  The list of other locales with
4858         quotes was provided by Bruno Haible.
4859         (quotearg_buffer_restyled): Adjust instructions to translators.
4860         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4861         text, since this would be wrong when using Unicode.
4862         * modules/quotearg: Depend on c-strcaseeq.
4863
4864 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4865
4866         quotearg: fix Wikipedia link
4867         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4868
4869 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4870
4871         Fix for mingw with MSVC9.
4872         * m4/ld-version-script.m4: Check that compiler rejects version
4873         scripts with syntax errors.  Reported by Bruno Haible
4874         <bruno@clisp.org>.
4875
4876 2012-01-06  Bruno Haible  <bruno@clisp.org>
4877
4878         Talk about "native Windows API", not "Woe32".
4879         * lib/accept4.c: Update comments to mention native Windows.
4880         * lib/execute.c: Likewise.
4881         * lib/fatal-signal.c: Likewise.
4882         * lib/localcharset.c: Likewise.
4883         * lib/nanosleep.c: Likewise.
4884         * lib/nl_langinfo.c: Likewise.
4885         * lib/pclose.c: Likewise.
4886         * lib/pipe-filter-gi.c: Likewise.
4887         * lib/pipe-filter-ii.c: Likewise.
4888         * lib/pipe.c: Likewise.
4889         * lib/pipe2.c: Likewise.
4890         * lib/popen.c: Likewise.
4891         * lib/progreloc.c: Likewise.
4892         * lib/relocatable.c: Likewise.
4893         * lib/sigaction.c: Likewise.
4894         * lib/sigprocmask.c: Likewise.
4895         * lib/spawn-pipe.h: Likewise.
4896         * lib/spawn-pipe.c: Likewise.
4897         * lib/spawni.c: Likewise.
4898         * lib/stat-time.h: Likewise.
4899         * lib/w32spawn.h: Likewise.
4900         * tests/test-isatty.c: Likewise.
4901         * lib/config.charset: More comments.
4902         * doc/gnulib-intro.texi: Mention native Windows.
4903         * doc/posix-functions/_Exit_C99.texi: Likewise.
4904         * doc/posix-headers/fcntl.texi: Likewise.
4905
4906 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4907
4908         argp: Avoid crash if translator uses % characters in a translation.
4909         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4910         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4911
4912 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4913
4914         doc: C11 and C++11 are now official
4915         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4916         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4917         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4918         * modules/stdalign:
4919         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4920
4921 2012-01-06  Bruno Haible  <bruno@clisp.org>
4922
4923         uc-is-grapheme-break tests: Tweak.
4924         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4925         message.
4926
4927 2012-01-06  Bruno Haible  <bruno@clisp.org>
4928
4929         test-init.sh: correct the test for diff -u
4930         * tests/test-init.sh: Also redirect stdout to /dev/null.
4931
4932 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4933
4934         Use ', not `, for quoting output.
4935         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4936         (print_changelog_deltas, get_tool_versions, main program):
4937         * build-aux/git-version-gen:
4938         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4939         * build-aux/move-if-change (help):
4940         * build-aux/useless-if-before-free (usage, main program):
4941         * check-module (parse_module_file, usage)
4942         (find_included_lib_files, check_module):
4943         * lib/argmatch.c (main) [TEST]:
4944         * lib/argp-help.c (_help):
4945         * lib/getopt1.c (main) [TEST]:
4946         * lib/git-merge-changelog.c (usage):
4947         * lib/xstrtol-error.c (xstrtol_error):
4948         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4949         * m4/argz.m4 (gl_FUNC_ARGZ):
4950         * m4/bison.m4 (gl_BISON):
4951         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4952         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4953         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4954         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4955         * m4/gc-random.m4 (gl_GC_RANDOM):
4956         * m4/intl.m4 (gt_CHECK_DECL):
4957         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4958         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4959         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4960         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4961         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4962         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4963         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4964         * tests/test-dirname.c (main):
4965         * tests/test-getpass.c (main):
4966         * tests/test-iconvme.c (main):
4967         * tests/test-parse-datetime.c (LOG):
4968         * tests/test-xstrtoimax.sh:
4969         * tests/test-xstrtol.sh:
4970         * tests/test-xstrtoll.sh:
4971         * tests/test-xstrtoumax.sh:
4972         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4973         * top/GNUmakefile (abort-due-to-no-makefile):
4974         Quote 'like this', not `like this', as per the recent change to
4975         the GNU coding standards.
4976
4977 2012-01-05  Bruno Haible  <bruno@clisp.org>
4978
4979         strtoimax: Don't force a replacement on systems where intmax_t is int.
4980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4981         'intmax_t' is not larger than 'int'.
4982         Reported by Pádraig Brady <P@draigBrady.com>.
4983
4984 2012-01-05  Bruno Haible  <bruno@clisp.org>
4985
4986         doc: Mention NetBSD bugs.
4987         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4988         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4989
4990 2012-01-05  Bruno Haible  <bruno@clisp.org>
4991
4992         strtoumax tests: Enhance tests.
4993         * tests/test-strtoumax.c (main): Add tests for large values.
4994
4995 2012-01-05  Bruno Haible  <bruno@clisp.org>
4996
4997         strtoimax: Work around AIX 5.1 bug.
4998         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4999         definition.
5000         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5001         Set HAVE_STRTOIMAX.
5002         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5003         REPLACE_STRTOIMAX.
5004         * modules/inttypes-incomplete (Makefile.am): Substitute
5005         REPLACE_STRTOIMAX.
5006         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5007         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5008         (Depends-on): Update conditions.
5009         * tests/test-strtoimax.c (main): Add tests for large values.
5010         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5011
5012 2012-01-05  Bruno Haible  <bruno@clisp.org>
5013
5014         inttypes: Modernize.
5015         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5016         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5017         (Makefile.am): Update inttypes.h rule.
5018
5019 2012-01-05  Jim Meyering  <meyering@redhat.com>
5020
5021         init.sh: don't waste a subshell just to redirect stderr
5022         * tests/init.sh: In testing for diff -u and diff -c, use a
5023         stderr-redirecting exec inside `...` rather than a subshell.
5024
5025         test-init.sh: avoid failure on HP-UX 11.00
5026         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5027         resolves to diff -c or cmp.  Reported by Bruno Haible.
5028
5029 2012-01-05  Bruno Haible  <bruno@clisp.org>
5030
5031         Tests for module 'strtoull'.
5032         * modules/strtoull-tests: New file.
5033         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5034
5035 2012-01-05  Bruno Haible  <bruno@clisp.org>
5036
5037         Tests for module 'strtoll'.
5038         * modules/strtoll-tests: New file.
5039         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5040
5041 2012-01-05  Bruno Haible  <bruno@clisp.org>
5042
5043         Tests for module 'strtoul'.
5044         * modules/strtoul-tests: New file.
5045         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5046
5047 2012-01-05  Bruno Haible  <bruno@clisp.org>
5048
5049         Tests for module 'strtol'.
5050         * modules/strtol-tests: New file.
5051         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5052
5053 2012-01-04  Jim Meyering  <meyering@redhat.com>
5054
5055         test-init.sh: accommodate Solaris 5.10's different diff -u output
5056         * tests/test-init.sh: Also exempt @@ lines from the comparison
5057         of diff output, since Solaris 5.10 and GNU diff formats differ.
5058         Reported by Stefano Lattarini.
5059
5060 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5061
5062         test-posixtm: don't assume signed integer wraparound
5063         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5064         after signed integer overflow.  Inspired by (though it may not
5065         fix) Bruno Haible's bug report in
5066         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5067
5068         Spell out "Windows 9x" and "Windows XP".
5069         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5070         "Windows 9x" and "WinXP" with "Windows XP".
5071
5072 2012-01-04  Jim Meyering  <meyering@redhat.com>
5073
5074         test-vc-list-files-cvs.sh: remove obsolete comment
5075         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5076         double exit.  Now that's all encapsulated via skip_ and Exit.
5077
5078 2012-01-04  Bruno Haible  <bruno@clisp.org>
5079
5080         Talk about "native Windows API", not "Win32".
5081         * lib/classpath.c: Update comments to mention native Windows.
5082         * lib/csharpexec.c: Likewise.
5083         * lib/dup2.c: Likewise.
5084         * lib/error.c: Likewise.
5085         * lib/fcntl.c: Likewise.
5086         * lib/filename.h: Likewise.
5087         * lib/findprog.c: Likewise.
5088         * lib/get-rusage-as.c: Likewise.
5089         * lib/get-rusage-data.c: Likewise.
5090         * lib/getpagesize.c: Likewise.
5091         * lib/javaexec.c: Likewise.
5092         * lib/msvc-inval.c: Likewise.
5093         * lib/msvc-nothrow.c: Likewise.
5094         * lib/nanosleep.c: Likewise.
5095         * lib/nonblocking.c: Likewise.
5096         * lib/printf-parse.c: Likewise.
5097         * lib/setlocale.c: Likewise.
5098         * lib/sigaction.c: Likewise.
5099         * lib/strerror_r.c: Likewise.
5100         * lib/tmpdir.c: Likewise.
5101         * lib/vasnprintf.c: Likewise.
5102         * lib/w32spawn.h: Likewise.
5103         * lib/waitpid.c: Likewise.
5104         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5105         * m4/locale-ar.m4: Likewise.
5106         * m4/locale-fr.m4: Likewise.
5107         * m4/locale-ja.m4: Likewise.
5108         * m4/locale-tr.m4: Likewise.
5109         * m4/locale-zh.m4: Likewise.
5110         * m4/printf.m4: Likewise.
5111         * tests/test-cloexec.c: Likewise.
5112         * tests/test-copy-acl.sh: Likewise.
5113         * tests/test-copy-file.sh: Likewise.
5114         * tests/test-file-has-acl.sh: Likewise.
5115         * tests/test-set-mode-acl.sh: Likewise.
5116         * tests/test-dup-safer.c: Likewise.
5117         * tests/test-dup2.c: Likewise.
5118         * tests/test-dup3.c: Likewise.
5119         * tests/test-fcntl.c: Likewise.
5120         * tests/test-nonblocking-pipe.h: Likewise.
5121         * tests/test-nonblocking-socket.h: Likewise.
5122         * tests/test-pipe.c: Likewise.
5123         * tests/test-pipe2.c: Likewise.
5124         * tests/test-spawn-pipe-child.c: Likewise.
5125         * doc/acl-resources.txt: Likewise.
5126         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5127         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5128         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5129         * lib/localcharset.c: Update comments to mention native Windows.
5130         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5131         * lib/localename.c: Likewise.
5132         * lib/progreloc.c: Likewise.
5133         * lib/relocatable.c: Likewise.
5134         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5135         (windows_compute_revents): Renamed from win32_compute_revents.
5136         (windows_compute_revents_socket): Renamed from
5137         win32_compute_revents_socket.
5138         * lib/select.c: Update comments to mention native Windows.
5139         (windows_poll_handle): Renamed from win32_poll_handle.
5140         * m4/threadlib.m4: Update comments to mention native Windows.
5141         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5142         --enable-threads=windows instead of --enable-threads=win32. Set
5143         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5144         * lib/glthread/lock.h: Update comments to mention native Windows.
5145         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5146         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5147         USE_WIN32_THREADS.
5148         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5149         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5150         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5151         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5152         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5153         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5154         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5155         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5156         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5157         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5158         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5159         * tests/test-tls.c: Likewise.
5160         Rationale:
5161         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5162         on both 32-bit and 64-bit Windows systems.
5163         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5164         line of distinction is between "native Windows" on one side and Unix/
5165         POSIX systems on the other side. More details in
5166         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5167         Suggested by Paul Eggert.
5168
5169 2012-01-03  Bruno Haible  <bruno@clisp.org>
5170
5171         isatty: Support for MSVC 9.
5172         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5173         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5174         (_isatty_nothrow): New function.
5175         (isatty): Use it instead of _isatty.
5176         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5177         * lib/poll.c (IsConsoleHandle): Likewise.
5178         * lib/select.c (IsConsoleHandle): Likewise.
5179         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5180         (gl_PREREQ_ISATTY): New macro.
5181         * modules/isatty (Depends-on): Add msvc-inval.
5182         (configure.ac): Invoke gl_PREREQ_ISATTY.
5183
5184 2012-01-03  Jim Meyering  <meyering@redhat.com>
5185
5186         maint.mk: remove temporary transition aid from over 1.5 years ago
5187         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5188         purpose was to aid in the transition (avoiding silent malfunction)
5189         from that old name to the new _sc_search_regexp.  This shim was
5190         added by commit 219c504b.
5191
5192         init.sh: do not try to accommodate compare arguments starting with "-"
5193         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5194         compare arguments that start with "-".  Besides, we do not worry
5195         about this when invoking diff or cmp; why start now with sed?
5196         Using "--" to separate options from argument would trigger sed
5197         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5198         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5199
5200 2012-01-02  Bruno Haible  <bruno@clisp.org>
5201
5202         Enhance tests for module 'isatty'.
5203         * modules/isatty-tests (Depends-on): Add pipe-posix.
5204         * tests/test-isatty.c: Include <fcntl.h>.
5205         (DEV_NULL): New macro.
5206         (main): Test the resut of isatty() also on regular files, pipes, and
5207         /dev/null.
5208
5209         New module 'isatty'.
5210         * lib/unistd.in.h (isatty): New declaration.
5211         * lib/isatty.c: New file, based on an idea of
5212         Bastien Roucariès <roucaries.bastien@gmail.com>.
5213         * m4/isatty.m4: New file.
5214         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5215         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5216         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5217         REPLACE_ISATTY.
5218         * modules/isatty: New file.
5219         * doc/posix-functions/isatty.texi: Mention the new module.
5220         Suggested by Paolo Bonzini.
5221
5222 2012-01-02  Bruno Haible  <bruno@clisp.org>
5223
5224         canonicalize: Tweak 2011-12-29 commit.
5225         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5226         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5227
5228 2012-01-02  Jim Meyering  <meyering@redhat.com>
5229
5230         gitlog-to-changelog: describe input syntax in --help output
5231         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5232
5233         gitlog-to-changelog: fix typo in --help: show backslash before email @
5234         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5235         in sources, but not in actual output.
5236
5237 2011-12-30  Jim Meyering  <meyering@redhat.com>
5238
5239         gitlog-to-changelog: don't malfunction when name contains %-directive
5240         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5241         in a name string cause trouble.  E.g., with a user name of "%s",
5242         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5243
5244 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5245
5246         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5247         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5248         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5249         the "  (tiny change)" notation that is appended to the standard
5250         ChangeLog "date  name  email" header line.
5251
5252 2012-01-01  Jim Meyering  <meyering@redhat.com>
5253
5254         test-framework-sh: init.sh: fix "make dist" failure
5255         When using gnulib-tool's --with-tests option and any module that
5256         depends on test-framework-sh, "make dist" would fail due to the
5257         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5258         in the gltests directory, and not in the gllib/ directory.
5259         One way to work around that is to move the EXTRA_DIST += init.sh
5260         from the primary module to the -tests one:
5261         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5262         * modules/test-framework-sh (Makefile.am): ...not here.
5263         Reported by Tom G. Christensen in
5264         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5265
5266         version-etc: update copyright year reported by --version
5267         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5268
5269 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5270
5271         canonicalize: only stat() if required
5272         * lib/canonicalize.c (canonicalize_filename_mode):
5273         Avoid calling l?stat() when both CAN_MISSING,
5274         and CAN_NOLINKS are set, as we neither need
5275         to resolve symlinks or test component existence.
5276
5277 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5278
5279         doc: cover st_ino issues once; add OpenVMS etc.
5280         * doc/posix-functions/stat.texi (stat):
5281         * doc/posix-functions/lstat.texi (lstat):
5282         * doc/posix-functions/fstatat.texi (fstatat):
5283         * doc/posix-functions/fstat.texi (fstat):
5284         Move general 'struct stat' stuff to sys_stat.texi,
5285         leaving behind a pointer.
5286         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5287         Merge duplicate info about 'struct stat' problems into here.
5288         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5289         and suggest partial workarounds.
5290
5291         same-inode: port to OpenVMS
5292         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5293         three st_ino values.
5294
5295 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5296
5297         canonicalize: fix references to stat() and lstat()
5298         * lib/canonicalize.c (canonicalize_filename_mode):
5299         Ensure references always resolve to a replacement
5300         function if required (even via a macro).
5301
5302 2011-12-30  Jim Meyering  <meyering@redhat.com>
5303
5304         gitlog-to-changelog: remove a little duplication
5305         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5306         rather than twice.
5307
5308 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5309
5310         canonicalize: add support for not resolving symlinks
5311         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5312         indicate we don't want to follow symlinks.  Also
5313         provide CAN_MODE_MASK to aid setting these existing
5314         mutually exclusive values.
5315         * lib/canonicalize.c (canonicalize_filename_mode):
5316         Extract the flags from can_mode parameter, which
5317         are currently just used to select between stat()
5318         and lstat().  Also ensure that mutually exclusive
5319         values are flagged immediately as invalid.
5320         * tests/test-canonicalize.c: Verify symlinks are
5321         not followed, and that invalid flag combinations
5322         are diagnosed.
5323
5324 2011-12-25  Jim Meyering  <meyering@redhat.com>
5325
5326         gitlog-to-changelog: do not clump multi-paragraph entries
5327         Identical header lines (date,name,email+coauthors) are suppressed,
5328         thus putting all entries with those same characteristics under
5329         a single header.  However, when a log entry consists of two or
5330         more paragraphs, it may not be clear where it starts and ends.
5331         This change makes it so that such an entry is always separated
5332         from others by a header line, even when that header would
5333         otherwise be suppressed.
5334         * build-aux/gitlog-to-changelog: Implement the above.
5335         Inspired by a related request from Stefano Lattarini in
5336         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5337
5338 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5339
5340         announce-gen: fix `cmd' typo in diagnostic
5341         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5342         diagnostic: a missing '$' meant that the command was not output.
5343
5344 2011-12-23  Jim Meyering  <meyering@redhat.com>
5345
5346         test-framework-sh: distribute init.sh
5347         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5348         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5349         fail due to the lack of init.sh.
5350
5351         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5352         * modules/atexit-tests: Rather than listing tests/init.sh,
5353         now that there's a module for it, simply depend on that new module.
5354         * modules/closein-tests: Likewise.
5355         * modules/exclude-tests: Likewise.
5356         * modules/getcwd-tests: Likewise.
5357         * modules/perror-tests: Likewise.
5358         * modules/pread-tests: Likewise.
5359         * modules/pwrite-tests: Likewise.
5360         * modules/vc-list-files-tests: Likewise.
5361         * modules/verify-tests: Likewise.
5362         * modules/xalloc-die-tests: Likewise.
5363         * modules/xstrtoimax-tests: Likewise.
5364         * modules/xstrtol-tests: Likewise.
5365         * modules/xstrtoll-tests: Likewise.
5366         * modules/xstrtoumax-tests: Likewise.
5367         * modules/yesno-tests: Likewise.
5368
5369 2011-12-22  Jim Meyering  <meyering@redhat.com>
5370
5371         test-framework-sh: add minimal tests of init.sh's compare function
5372         * modules/test-framework-sh-tests: New file.
5373         * tests/test-init.sh: New file.
5374
5375         test-framework-sh: new module
5376         * modules/test-framework-sh: New file.
5377         * MODULES.html.sh (Support for maintaining and releasing projects):
5378         List it.
5379
5380         init.sh: do not emit simulated diff output to stderr
5381         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5382
5383 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5384
5385         .gitignore: ignore gnulib.dvi and regex.info
5386         * doc/.gitignore:add gnulib.dvi and regex.info
5387
5388 2011-12-22  Jim Meyering  <meyering@redhat.com>
5389
5390         init.sh: correct previous change
5391         * tests/init.sh (compare): My previous change was wrong.
5392         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5393
5394         init.sh: avoid unwarranted test failure when using "set -e"
5395         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5396         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5397         a use like "compare exp out" would get evoke an unconditional failure.
5398
5399 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5400
5401         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5402         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5403         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5404         autoreconf that did not.
5405         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5406         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5407
5408 2011-12-17  Jim Meyering  <meyering@redhat.com>
5409
5410         bootstrap: remove some now-unneeded code
5411         This script arose back when gnulib-tool was young.
5412         Since then, it has seen improvements that render much of this
5413         script unnecessary.  In particular, it can now make symlinks
5414         to the files it uses.  Also, I no longer see as much value in
5415         marking files as read-only via comments.
5416         If you relied on the symlink-creation feature of the preceding
5417         version of this script, you can get most of that functionality
5418         by adding the --symlink option to the definition of
5419         gnulib_tool_option_extras in your bootstrap.conf file.
5420         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5421         Run autopoint and libtoolize *before* gnulib-tool.
5422         After it, run an abbreviated autoreconf, rather than a loop around
5423         all tools.
5424         (slirp, bt_mark_as_generated): Remove functions.
5425
5426 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5427
5428         ftoastr: fix typo
5429         * lib/ftoastr.h: Fix misspelling in comment.
5430
5431 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5432
5433         * top/README-release: fix punctuation.
5434
5435 2011-12-17  Jim Meyering  <meyering@redhat.com>
5436
5437         bootstrap: correct the recent buildreq change
5438         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5439         had no effect.
5440         * build-aux/bootstrap (buildreq): Bracket each search term with
5441         "*...*", so that the shell "case" statement works as intended.
5442         Add comments.
5443
5444 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5445
5446         build: let bootstrap resort to wget when downloading .po files
5447         * build-aux/bootstrap (download_po_files): Fallback to wget when
5448         downloading the .po files via rsync fails.  This is necessary to
5449         bootstrap from behind a strict firewall.
5450
5451 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5452
5453         stdint: don't assume C++11 when compiling with g++
5454         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5456         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5457         work also in C++ before C++11, as that improperly inhibits
5458         generating a substitute stdint.h for that case.
5459
5460 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5461
5462         alloca: protect comment from gnulib-tool
5463         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5464         that gnulib-tool doesn't think it's a license, and munge it to
5465         say "GCC version 3".
5466
5467 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5468
5469         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5470         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5471         $(abs_top_builddir) instead of $(top_builddir).
5472
5473 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5474
5475         strftime-tests: also test nanoseconds
5476         * tests/test-strftime.c (T): Add a test of %N.
5477
5478 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5479
5480         inttypes, stdint: add C++11 support
5481         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5482         when including inttypes.h and stdint.h.  Support this change to
5483         the standard.
5484         * doc/posix-headers/inttypes.texi (inttypes.h):
5485         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5486         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5487         Define if not defined already, for the benefit of pre-C++11 hosts.
5488         Define the standard format macros (e.g., PRId8) always.
5489         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5490         Likewise, if __cpluspus.  Define the standard constant and limit
5491         macros (e.g., INT8_C, INT8_MAX) always.
5492         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5493         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5494         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5495         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5496         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5497         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5498         Likewise.
5499
5500 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5501
5502         nonblocking tests: Fix test failure on Linux/PPC.
5503         Suggested by Prerna Saxena in
5504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5505         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5506         Set to 1100000.
5507
5508 2011-12-12  Jim Meyering  <meyering@redhat.com>
5509
5510         argmatch: don't hard-code `' when listing valid option arguments
5511         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5512         use the quote function to add quotes.  Use fputs rather than
5513         fprintf for the format string with no format directive.
5514
5515 2011-12-07  Eric Blake  <eblake@redhat.com>
5516
5517         bootstrap: detect tools required by gnulib-tool
5518         * build-aux/bootstrap (buildreq): Provide minimum implicit
5519         dependencies.
5520         * DEPENDENCIES: Mention patch as a prereq.
5521
5522 2011-12-04  Bruno Haible  <bruno@clisp.org>
5523
5524         sethostname: Port to Windows platforms.
5525         * lib/sethostname.c: Provide an alternate implementation for Windows
5526         platforms.
5527         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5528         (main): Skip the test if sethostname() fails with EPERM. On Windows
5529         platforms, don't check the result of gethostname().
5530
5531 2011-12-04  Bruno Haible  <bruno@clisp.org>
5532             Jim Meyering  <meyering@redhat.com>
5533
5534         tests: Avoid spurious error message on platforms without mktemp program.
5535         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5536
5537 2011-12-04  Bruno Haible  <bruno@clisp.org>
5538
5539         sethostname: Fix documentation.
5540         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5541         "not fixed" section.
5542
5543 2011-12-03  Bruno Haible  <bruno@clisp.org>
5544
5545         gnulib-tool: Verify that the License field is present and non-empty.
5546         * gnulib-tool (func_get_license_raw): New function, extracted from
5547         func_get_license.
5548         (func_get_license): Use it. Warn if the module is not a test module and
5549         has no license.
5550         Suggested by Jim Meyering.
5551
5552 2011-12-03  Bruno Haible  <bruno@clisp.org>
5553
5554         sethostname tests: Fix link error on mingw.
5555         * tests/test-sethostname1.c: New file, extracted from
5556         tests/test-sethostname.c.
5557         * tests/test-sethostname2.c: New file, extracted from
5558         tests/test-sethostname.c.
5559         * tests/test-sethostname.c: Remove file.
5560         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5561         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5562         (Depends-on): Add gethostname.
5563         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5564         Link the latter with $(GETHOSTNAME_LIB).
5565
5566         sethostname tests: Fix compilation error on mingw.
5567         * tests/test-sethostname.c: Don't include <sys/types.h>.
5568         (geteuid): Use a dummy value without uid_t.
5569         * modules/sethostname-tests (Depends-on): Remove sys_types.
5570
5571         sethostname tests: Avoid a gcc warning.
5572         * tests/test-sethostname.c (main): Remove an unused variable.
5573
5574         Tweak last commit.
5575         * modules/sethostname-tests (Files): Sort by decreasing importance.
5576         (configure.ac): Check for geteuid.
5577         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5578         the test when there's nothing to test. Drop an unnecessary cast.
5579         Improve an error message. Verify that the final sethostname() call
5580         succeeds.
5581
5582 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5583
5584         Add a test suite for the sethostname module.
5585         * modules/sethostname-tests: New file.  A test program
5586         for the sethostname module.
5587         * tests/test-sethostname.c: Likewise.
5588
5589 2011-12-03  Bruno Haible  <bruno@clisp.org>
5590
5591         Tweak last commit.
5592         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5593         Fix preprocessor directives indentation. Fix typos.
5594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5595         * modules/unistd (Makefile): Likewise.
5596
5597 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5598
5599         Integrate the sethostname module into unistd.
5600         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5601         into the unistd.h header.
5602         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5603         preprocessor directives.
5604         * modules/unistd: Setup the Makefile substitutions of the
5605         SETHOSTNAME preprocessor directives.
5606
5607 2011-12-03  Bruno Haible  <bruno@clisp.org>
5608
5609         Tweak last commit.
5610         * lib/sethostname.c: Don't include <string.h>.
5611         (sethostname): No need to copy the argument string to the stack. Don't
5612         call clearerr. Preserve errno when fprintf failed.
5613         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5614         Don't invoke AC_REPLACE_FUNCS.
5615         * modules/sethostname (Link): Remove empty section.
5616         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5617         failure problem.
5618
5619 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5620
5621         New module 'sethostname'.
5622         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5623         for systems that lack it.
5624         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5625         sethostname declaration and function.
5626         * modules/sethostname: New file.  Define the sethostname module.
5627
5628 2011-12-03  Bruno Haible  <bruno@clisp.org>
5629
5630         Tweak last commit.
5631         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5632
5633 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5634
5635         Split the HOST_NAME_MAX detection into a separate m4 macro.
5636         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5637         macro so it can be used by the pending sethostname module.
5638
5639 2011-12-03  Bruno Haible  <bruno@clisp.org>
5640
5641         Fix module descriptions syntax.
5642         * modules/argv-iter (License): Fix syntax.
5643         * modules/di-set (License): Likewise.
5644         * modules/ino-map (License): Likewise.
5645         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5646
5647 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5648
5649         stdalign: port to Clang 3.0
5650         Problem reported by Simon Josefsson in
5651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5652         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5653         which has <stdalign.h> but which does not define alignof.
5654         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5655
5656 2011-12-01  Eric Blake  <eblake@redhat.com>
5657
5658         mktempd: silence dd usage
5659         * build-aux/mktempd (rand_bytes): Silence dd.
5660
5661 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5662
5663         manywarnings: Don't mention gcc version in docstring.
5664         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5665         Jim Meyering <meyering@redhat.com>.
5666
5667 2011-11-30  Jim Meyering  <meyering@redhat.com>
5668
5669         hash: mark a few floating point constants with "f" suffix
5670         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5671         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5672         floating point constants with "f", since they're destined to be
5673         saved/used as "float"s.
5674
5675 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5676
5677         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5678         * tests/test-float.c (test_long_double): Correct and re-enable the
5679         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5680
5681 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5682
5683         Avoid subtracting two pointers that don't point into the same block.
5684         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5685         only pointers into the same memory block are subtracted. We cannot
5686         assume that sizeof (ptrdiff_t) == sizeof (void *).
5687
5688 2011-11-29  Eric Blake  <eblake@redhat.com>
5689
5690         maint.mk: add syntax check for use of compare from init.sh
5691         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5692         moved here from coreutils.
5693
5694         manywarnings: drop -Wunsuffixed-float-constants
5695         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5696         '1.0D', which is the only way to silence this warning for 'double'.
5697
5698 2011-11-29  Jim Meyering  <meyering@redhat.com>
5699
5700         hash: mark compute_bucket_size with the pure attribute
5701         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5702
5703         quotearg, propername: correct pragma guard expression
5704         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5705         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5706
5707 2011-11-28  Jim Meyering  <meyering@redhat.com>
5708
5709         propername: do not mark proper_name with the const attribute
5710         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5711         since it examines data pointed to by its parameter.
5712         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5713         the suggestion from -Wsuggest-attribute=const.
5714
5715         propername: mark one more function as const
5716         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5717
5718 2011-11-27  Jim Meyering  <meyering@redhat.com>
5719
5720         mark functions with const and pure attributes
5721
5722         Mark functions per suggestions from gcc-4.6 when using these options:
5723         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5724         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5725         Follow these guidelines: when possible, apply the attribute to
5726         an extern declaration, not to its definition.  Apply it to the
5727         definition only when the definition is static.
5728         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5729         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5730         * lib/base64.h (isbase64): Likewise.
5731         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5732         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5733         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5734         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5735         (c_tolower, c_toupper): Likewise.
5736         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5737         * lib/chdir-long.c (find_non_slash): Likewise.
5738         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5739         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5740         * lib/file-type.h (file_type): Likewise.
5741         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5742         * lib/filevercmp.c (verrevcmp): Likewise.
5743         * lib/freadahead.h (freadahead): Likewise.
5744         * lib/fts.c (fts_maxarglen): Likewise.
5745         * lib/hash-pjw.h (hash_pjw): Likewise.
5746         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5747         * lib/hash.c (is_prime, next_prime): Likewise.
5748         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5749         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5750         (hash_table_ok, hash_get_first, hash_string): Likewise.
5751         (compute_bucket_size): Likewise.
5752         * lib/i-ring.h (i_ring_empty): Likewise.
5753         * lib/isnan.c (isnanl): Likewise.
5754         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5755         * lib/memcasecmp.h (memcasecmp): Likewise.
5756         * lib/memchr2.h (memchr2): Likewise.
5757         * lib/memcmp2.h (memcmp2): Likewise.
5758         * lib/parse-datetime.y (lookup_zone): Likewise.
5759         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5760         [!WINDOWS_SOCKETS]: Likewise.
5761         * lib/strnlen1.h (strnlen1): Likewise.
5762         * lib/uniwidth.in.h (uc_width): Likewise.
5763         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5764         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5765         (quoting_options_from_style): Add a comment.
5766         * lib/propername.h (proper_name): Add a comment.
5767
5768 2011-11-27  Bruno Haible  <bruno@clisp.org>
5769
5770         Remove unused macros from !_LIBC code in glibc-borrowed files.
5771         * lib/fnmatch.c (STRCOLL): Remove macro.
5772         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5773         * lib/glob.c (__stat, __readdir64): Remove macros.
5774         * lib/tempname.c (__open64, __xstat64): Remove macros.
5775         Suggested by Paul Eggert.
5776
5777 2011-11-27  Bruno Haible  <bruno@clisp.org>
5778
5779         getcwd: Fix link error on MSVC 9.
5780         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5781
5782 2011-11-27  Bruno Haible  <bruno@clisp.org>
5783
5784         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5785         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5786         HAVE_OPENDIR is 0.
5787         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5788         HAVE_CLOSEDIR is 0.
5789         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5790         is 0.
5791         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5792
5793 2011-11-27  Bruno Haible  <bruno@clisp.org>
5794
5795         getcwd: Fix bug from 2011-08-17.
5796         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5797         platforms that need it.
5798         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5799         code of 4 to be a failure, not a success. This ensures that
5800         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5801
5802 2011-11-27  Bruno Haible  <bruno@clisp.org>
5803
5804         binary-io tests: Avoid test failure on mingw when libtool is used.
5805         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5806         Don't verify the size of t-bin-out1.tmp here.
5807         * tests/test-binary-io.sh: Verify it here.
5808         Reported by Simon Josefsson.
5809
5810 2011-11-26  Bruno Haible  <bruno@clisp.org>
5811
5812         Fix conflict between two instantiations of module 'unistd'.
5813         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5814         ${include_guard_prefix} also in the autoconf snippet.
5815         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5817         GNULIB_UNISTD_H_GETOPT.
5818         * modules/getopt-posix (configure.ac): Set the
5819         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5820         * modules/getopt-gnu (configure.ac): Likewise.
5821         * modules/unistd (Makefile.am): Change the substitution value of
5822         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5823         Reported by Simon Josefsson.
5824
5825 2011-11-25  Bruno Haible  <bruno@clisp.org>
5826
5827         pagealign_alloc: Doc and comments.
5828         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5829         module.
5830         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5831
5832 2011-11-25  Jim Meyering  <meyering@redhat.com>
5833
5834         test-update-copyright.sh: avoid false-positive failure
5835         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5836         around false positive failure on Cygwin/Windows.  The latter was
5837         matching erroneously-created files with names like
5838         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5839
5840 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5841
5842         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5843         * m4/valgrind-tests.m4: Check that the parameters that will be
5844         used works, not just a subset of them.  Reported by Bruno Haible
5845         <bruno@clisp.org>.
5846
5847 2011-11-24  Jim Meyering  <meyering@redhat.com>
5848
5849         test-stdalign.c: comment out long double tests
5850         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5851         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5852         error: '_Alignas' specifiers cannot reduce alignment of \
5853         'static_longdouble_alignas'.
5854
5855 2011-11-22  Jim Meyering  <meyering@redhat.com>
5856
5857         init.sh: make "compare /dev/null FILE" output more readable
5858         * tests/init.sh (compare_): Document the preferred order of arguments.
5859         (emit_diff_u_header_): New function.
5860         (compare_dev_null_): Emit a simulated diff, rather than just the
5861         contents of the unexpected file.  Suggestion from Bruno Haible.
5862
5863 2011-11-21  Jim Meyering  <meyering@redhat.com>
5864             Eric Blake  <eblake@redhat.com>
5865
5866         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5867         * tests/init.sh: Make our compare function slightly more portable.
5868         Reported by Bruno Haible in
5869         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5870
5871 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5872
5873         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5874         before using it, in code that ends up in config.h.
5875
5876 2011-11-20  Bruno Haible  <bruno@clisp.org>
5877
5878         getcwd: Work around getcwd bug on AIX 5..7.
5879         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5880         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5881         Use a different value for gl_cv_func_getcwd_path_max. Move the
5882         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5883         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5884         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5885         Define HAVE_MINIMALLY_WORKING_GETCWD.
5886         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5887         where it is not even minimally working, that is, on AIX.
5888         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5889         m4/getcwd-path-max.m4.
5890         (main): Update exit code computation.
5891         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5892         getcwd does not handle long file names.
5893
5894 2011-11-20  Bruno Haible  <bruno@clisp.org>
5895
5896         getcwd: Fix bug from 2009-09-10.
5897         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5898         like "no".
5899
5900 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5901
5902         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5903
5904 2011-11-20  Bruno Haible  <bruno@clisp.org>
5905
5906         fma tests: Avoid shadowing local variables.
5907         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5908         expected.
5909
5910 2011-11-20  Bruno Haible  <bruno@clisp.org>
5911
5912         copysignf tests: Fix.
5913         * tests/test-copysignf.c: Fix signature check.
5914
5915 2011-11-20  Bruno Haible  <bruno@clisp.org>
5916
5917         fma: Remove unused code.
5918         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5919         unused macros.
5920
5921 2011-11-20  Bruno Haible  <bruno@clisp.org>
5922
5923         sethostname: Fix doc about AIX.
5924         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5925         sethostname; it has it.
5926
5927         sethostname: Mention more portability problems.
5928         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5929         problem.
5930         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5931
5932 2011-11-19  Bruno Haible  <bruno@clisp.org>
5933
5934         Depend on module fcntl-h when AT_FDCWD is used.
5935         * modules/utimens (Depends-on): Add fcntl-h.
5936         * modules/areadlinkat (Depends-on): Likewise.
5937         * modules/areadlinkat-with-size (Depends-on): Likewise.
5938         * modules/faccessat (Depends-on): Likewise.
5939         * modules/fchmodat (Depends-on): Likewise.
5940         * modules/fchownat (Depends-on): Likewise.
5941         * modules/getcwd (Depends-on): Likewise.
5942         * modules/mkdirat (Depends-on): Likewise.
5943         * modules/mkfifoat (Depends-on): Likewise.
5944         * modules/readlinkat (Depends-on): Likewise.
5945         * modules/symlinkat (Depends-on): Likewise.
5946         * modules/dup2-tests (Depends-on): Likewise.
5947         * modules/fdutimensat-tests (Depends-on): Likewise.
5948         * modules/futimens-tests (Depends-on): Likewise.
5949
5950 2011-11-19  Bruno Haible  <bruno@clisp.org>
5951
5952         euidaccess: Update a comment.
5953         * lib/euidaccess.c: Update comment about platforms with faccessat.
5954
5955 2011-11-19  Bruno Haible  <bruno@clisp.org>
5956
5957         openat: Fix file list.
5958         * modules/openat (Files): Remove lib/at-func.c.
5959
5960 2011-11-19  Bruno Haible  <bruno@clisp.org>
5961
5962         fstatat: Simplify.
5963         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5964         gnulib should define rpl_fstatat, there is a
5965         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5966
5967 2011-11-19  Bruno Haible  <bruno@clisp.org>
5968
5969         Ensure 'inline' can be used in tests/test-utimens-common.h.
5970         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5971         * modules/futimens-tests (configure.ac): Likewise.
5972         * modules/utimens-tests (configure.ac): Likewise.
5973         * modules/utimensat-tests (configure.ac): Likewise.
5974
5975 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5976
5977         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5978         not hash_insert0.
5979         (hash_insert_if_absent): Doc fix.
5980
5981 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5982
5983         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5984
5985 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5986
5987         test-getcwd: disambiguate exit status
5988         * tests/test-getcwd.c (test_long_name): Return 0..7.
5989         (main): Exit with an unambiguous exit status.  The old
5990         code yielded a mysterious mixture of two failure codes.
5991
5992         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5993         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5994         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5995         rpl_fstatat or fstatat.  This should fix the other problem
5996         reported by Kai Habel in
5997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5998         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6000         and I reproduced it on a Solaris 8 host we still have in production.
6001
6002 2011-11-18  Jim Meyering  <meyering@redhat.com>
6003
6004         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6005         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6006         Add a sentence to the comment.
6007         (hash_insert0): New function that simply calls hash_insert_if_absent.
6008         * lib/hash.h (hash_insert_if_absent): Declare it.
6009         (hash_insert0): Add deprecation attribute.
6010         (_GL_ATTRIBUTE_DEPRECATED): Define.
6011         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6012         not hash_insert0.
6013         * NEWS: Mention it, even though it's not really an incompatible change.
6014
6015 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6016
6017         openat: avoid compilation failure due to lack of <errno.h> inclusion
6018         * lib/openat.c: Include <errno.h>.
6019
6020 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6021
6022         * modules/getcwd (Depends-on): Add fdopendir.
6023         This fixes one of the two problems reported by Kai Habel in
6024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6025
6026         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6027         stdalign problem reported by Ian Beckwith in
6028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6029         * modules/crypto/gc-arcfour (Depends-on):
6030         Depend conditionally on crypto/arcfour.
6031         * modules/crypto/gc-arctwo (Depends-on):
6032         Depend conditionally on crypto/arctwo.
6033         * modules/crypto/gc-des (Depends-on):
6034         Depend conditionally on crypto/des.
6035         * modules/crypto/gc-hmac-md5 (Depends-on):
6036         Depend conditionally on crypto/hmac-md5.
6037         * modules/crypto/gc-hmac-sha1 (Depends-on):
6038         Depend conditionally on crypto/hmac-sha1.
6039         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6040         * modules/crypto/gc-md4 (Depends-on):
6041         Depend conditionally on crypto/md4.
6042         * modules/crypto/gc-md5 (Depends-on):
6043         Depend conditionally on crypto/md5.
6044         * modules/crypto/gc-rijndael (Depends-on):
6045         Depend conditionally on crypto/rijndael.
6046         * modules/crypto/gc-sha1 (Depends-on):
6047         Depend conditionally on crypto/sha1.
6048         * modules/crypto/gc-arcfour:
6049         * modules/crypto/gc-arctwo:
6050         * modules/crypto/gc-des:
6051         * modules/crypto/gc-hmac-md5:
6052         * modules/crypto/gc-hmac-sha1:
6053         * modules/crypto/gc-md2:
6054         * modules/crypto/gc-md4:
6055         * modules/crypto/gc-md5:
6056         * modules/crypto/gc-rijndael:
6057         * modules/crypto/gc-sha1:
6058         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6059         now that the conditional dependencies do the work for us.
6060
6061 2011-11-17  Jim Meyering  <meyering@redhat.com>
6062
6063         tests: factor st_ctime-comparison out of two headers
6064         * tests/test-utimens-common.h (ctime_compare): Define.
6065         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6066         * tests/test-lutimens.h (test_lutimens): Likewise.
6067         * tests/test-utimens.h (test_utimens): Likewise.
6068
6069         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6070         Invoke the test program via an init.sh-using wrapper.
6071         * tests/test-getcwd.sh: New file.
6072         * modules/getcwd-tests (Files): Add it.
6073         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6074
6075 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6076
6077         gitlog-to-changelog: support multi-author commits.
6078         The FSF cares about keeping track of all authors of patches to its
6079         projects, but Git doesn't provide obvious support for multi-author
6080         changesets. Consensus seems to be forming around the use of extra
6081         Signed-off-by inspired lines in the log message formatted as
6082         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6083         multi-author commits between version control systems.
6084         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6085         log message and output in standard ChangeLog multi-author format.
6086         Reported by Peter Rosin <peda@lysator.liu.se>
6087
6088 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6089             Bruno Haible  <bruno@clisp.org>
6090
6091         Fix some modules' file list.
6092         * modules/fstatat (Files): Add m4/lstat.m4.
6093         * modules/openat (Files): Likewise.
6094         * modules/unlinkat (Files): Likewise.
6095
6096 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6097
6098         maint.mk: fix tight-scope.mk generation in VPATH builds.
6099         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6100         reference with $(srcdir) so that the file is found correctly even
6101         when running `make syntax-check' in a VPATH build.
6102
6103 2011-11-13  Bruno Haible  <bruno@clisp.org>
6104             Jim Meyering  <meyering@redhat.com>
6105
6106         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6107         * tests/init.sh (compare): Remove "No differences encountered" or
6108         synonymous output from the 'diff' program.
6109
6110 2011-11-13  Bruno Haible  <bruno@clisp.org>
6111
6112         Makefile: Tweak indentation.
6113         * Makefile: Use tab as first character in every line that contains rule
6114         commands.
6115
6116 2011-11-13  Bruno Haible  <bruno@clisp.org>
6117
6118         Syntax check for copyright statements.
6119         * check-copyright: New file.
6120         * Makefile (sc_check_copyright): New rule.
6121
6122 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6123
6124         * build-aux/git-version-gen: Add --prefix to configure the tag
6125         match string.
6126
6127 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6128
6129         * build-aux/git-version-gen: Add --help and --version.
6130
6131 2011-11-12  Jim Meyering  <meyering@redhat.com>
6132
6133         revamp the other test-exclude?.sh scripts to use init.sh, too
6134         * tests/test-exclude1.sh: Use init.sh.
6135         * tests/test-exclude2.sh: Likewise.
6136         * tests/test-exclude3.sh: Likewise.
6137         * tests/test-exclude4.sh: Likewise.
6138         * tests/test-exclude5.sh: Likewise.
6139         * tests/test-exclude6.sh: Likewise.
6140         * tests/test-exclude7.sh: Likewise.
6141         * tests/test-exclude8.sh: Likewise.
6142         * modules/exclude-tests (Files): List init.sh.
6143
6144         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6145         These shell scripts ignored failure of the binary test-exclude,
6146         so making the latter return 77 didn't cause them to be skipped.
6147         * tests/test-exclude5.sh: Exit with test-exclude's error status
6148         when that program fails.  Revamp to use init.sh.
6149         * tests/test-exclude2.sh: Likewise.
6150
6151         test-exclude: fix a typo
6152         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6153
6154 2011-11-11  Bruno Haible  <bruno@clisp.org>
6155
6156         obstack: Fix compilation error on MSVC 9.
6157         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6158
6159 2011-11-11  Jim Meyering  <meyering@redhat.com>
6160
6161         test-exclude: skip tests rather than failing on deficient systems
6162         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6163         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6164         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6165         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6166
6167 2011-11-10  Bruno Haible  <bruno@clisp.org>
6168
6169         ptsname_r test: Avoid gcc warning on glibc systems.
6170         * tests/test-ptsname_r.c (null_ptr): New function.
6171         (test_errors): Use it.
6172
6173 2011-11-10  Bruno Haible  <bruno@clisp.org>
6174
6175         ptsname_r: Avoid compilation error on OSF/1 5.1.
6176         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6178         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6179         function is not declared or incompatibly declared.
6180         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6181         * modules/ptsname_r (Depends-on, configure.ac): Update.
6182         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6183
6184 2011-11-10  Bruno Haible  <bruno@clisp.org>
6185
6186         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6187         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6188         When cross-compiling, guess yes on all platforms except AIX.
6189         Reported by Ludovic Courtès <ludo@gnu.org>.
6190
6191 2011-11-09  Bruno Haible  <bruno@clisp.org>
6192
6193         ptsname_r tests: Fix bugs.
6194         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6195         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6196
6197 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6198
6199         fstatat: work with cross-compilation
6200         Problem reported by Ludovic Courtès in
6201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6202         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6203         "cross-compiling" and assume the bug is present.  Replace
6204         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6205         an inverted sense, to be more conservative about our assumptions.
6206         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6207
6208 2011-11-09  Bruno Haible  <bruno@clisp.org>
6209
6210         Improve MODULES.html output.
6211         * modules/mkfifoat (Description): Use the word "function".
6212         * modules/readlinkat (Description): Likewise.
6213         * modules/symlinkat (Description): Likewise.
6214
6215 2011-11-09  Eric Blake  <eblake@redhat.com>
6216
6217         ptsname_r-tests: new test module
6218         * modules/ptsname_r-tests: New module.
6219         * tests/test-ptsname_r.c: New file.
6220
6221         ptsname_r: new module
6222         * modules/ptsname_r: New module.
6223         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6224         * lib/ptsname.c (__ptsname_r): Split...
6225         * lib/ptsname_r.c: ...into new file.
6226         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6227         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6228         * modules/stdlib (Makefile.am): Substitute witnesses.
6229         * lib/stdlib.in.h (ptsname_r): Declare it.
6230         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6231         * MODULES.html.sh (Misc): Likewise.
6232         * modules/ptsname (Depends-on): Alter dependency.
6233         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6234
6235 2011-11-09  Jim Meyering  <meyering@redhat.com>
6236
6237         announce-gen: be more concise when there's only one URL+tarball
6238         * build-aux/announce-gen (get_tool_versions): When you distribute
6239         only one type of tarball, combine the first two "Here are..."
6240         sections and make the key-checking grammar independent of
6241         how many tarballs there are.
6242
6243 2011-11-09  Eric Blake  <eblake@redhat.com>
6244
6245         openpty: provide a stub on mingw
6246         * lib/pty.in.h (includes): Provide forward declarations.
6247         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6248
6249         raise: fix mingw handling of SIGPIPE
6250         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6251
6252 2011-11-08  Bruno Haible  <bruno@clisp.org>
6253
6254         More conditional dependencies.
6255         * modules/faccessat (Depends-on): Add conditions.
6256         * modules/fchmodat (Depends-on): Likewise.
6257         * modules/fchownat (Depends-on): Likewise.
6258         * modules/fstatat (Depends-on): Likewise.
6259         * modules/mkfifoat (Depends-on): Likewise.
6260         * modules/readlinkat (Depends-on): Likewise.
6261         * modules/symlinkat (Depends-on): Likewise.
6262         * modules/unlinkat (Depends-on): Likewise.
6263         * modules/utimensat (Depends-on): Likewise.
6264         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6265         * modules/linkat (Depends-on): Refine the conditions.
6266         * modules/renameat (Depends-on): Likewise.
6267
6268 2011-11-08  Bruno Haible  <bruno@clisp.org>
6269
6270         faccessat: Move AC_LIBOBJ invocation to module description.
6271         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6272         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6273         invocation from here...
6274         * modules/faccessat (configure.ac): ... to here. Invoke
6275         gl_PREREQ_FACCESSAT.
6276
6277 2011-11-08  Bruno Haible  <bruno@clisp.org>
6278
6279         faccessat: Simplify autoconf macro.
6280         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6281         gl_FUNC_EUIDACCESS.
6282
6283 2011-11-08  Bruno Haible  <bruno@clisp.org>
6284
6285         renameat: Fix dependencies.
6286         * modules/renameat (Depends-on): Add stdbool.
6287
6288 2011-11-08  Bruno Haible  <bruno@clisp.org>
6289
6290         mkfifoat: Fix module description.
6291         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6292         not gl_UNISTD_MODULE_INDICATOR.
6293
6294 2011-11-08  Bruno Haible  <bruno@clisp.org>
6295
6296         fstatat: Remove unused dependency.
6297         * modules/fstatat (Depends-on): Remove fstat.
6298
6299 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6300
6301         GNUmakefile: behave when Makefile is missing.
6302         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6303
6304 2011-11-08  Bruno Haible  <bruno@clisp.org>
6305
6306         openat: Conditionalize dependencies.
6307         * lib/openat.c: Reduce the scope of some #includes.
6308         * modules/openat (Depends-on): Add conditions.
6309
6310 2011-11-07  Jim Meyering  <meyering@redhat.com>
6311
6312         maint.mk: extract GPG key ID without using a temporary file
6313         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6314         without using a temporary file.  Based on a suggestion from Werner Koch
6315         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6316
6317 2011-11-07  Eric Blake  <eblake@redhat.com>
6318
6319         grantpt: fix typo
6320         * lib/stdlib.in.h (grantpt): Check correct function.
6321
6322         maint.mk: silence new syntax check
6323         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6324
6325 2011-11-06  Bruno Haible  <bruno@clisp.org>
6326
6327         Doc about floating-point and math API.
6328         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6329         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6330
6331 2011-11-06  Bruno Haible  <bruno@clisp.org>
6332
6333         stdalign tests: Skip the test when compiled by Sun C.
6334         * tests/test-stdalign.c (main): Skip the test on Sun C.
6335
6336 2011-11-06  Bruno Haible  <bruno@clisp.org>
6337
6338         ansi-c++-opt: Complete the 2011-06-05 change.
6339         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6340         does not support namespaces, set the variable to "no", not to ":".
6341
6342 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6343
6344         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6345
6346 2011-11-06  Bruno Haible  <bruno@clisp.org>
6347
6348         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6349         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6350         (minus_zerol) [HP-UX]: New macro.
6351         (unary_minus) [HP-UX]: New function.
6352         (copysignl) [HP-UX]: Use unary_minus function.
6353
6354 2011-11-06  Bruno Haible  <bruno@clisp.org>
6355
6356         ldexp, ldexpf, ldexpl: Enhance tests.
6357         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6358         and tests/test-ldexpl.c.
6359         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6360         LDEXP, MIN_EXP, MAX_EXP): New macros.
6361         Include test-ldexp.h.
6362         (main): Just call test_function.
6363         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6364         infinity.h, nan.h.
6365         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6366         MAX_EXP): New macros.
6367         Include test-ldexp.h.
6368         (x, y): Remove variables.
6369         (main): Just call test_function.
6370         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6371         infinity.h, nan.h.
6372         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6373         MAX_EXP): New macros.
6374         Include test-ldexp.h.
6375         (x, y): Remove variables.
6376         (main): Just call test_function.
6377         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6378         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6379         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6380         (Depends-on): Add isnand-nolibm, signbit, float.
6381         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6382         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6383         (Depends-on): Add isnanf-nolibm, signbit, float.
6384
6385 2011-11-06  Bruno Haible  <bruno@clisp.org>
6386
6387         math tests: Cosmetics.
6388         * tests/test-math-c++.cc: Reorder declarations.
6389
6390 2011-11-05  Bruno Haible  <bruno@clisp.org>
6391
6392         fma*: Simplify test.
6393         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6394         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6395
6396         Tests for module 'fmal'.
6397         * modules/fmal-tests: New file.
6398         * tests/test-fmal1.c: New file.
6399         * tests/test-fmal2.c: New file.
6400
6401         New module 'fmal'.
6402         * lib/math.in.h (fmal): New declaration.
6403         * lib/fmal.c: New file.
6404         * m4/fmal.m4: New file.
6405         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6407         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6408         REPLACE_FMAL.
6409         * modules/fmal: New file.
6410         * doc/posix-functions/fmal.texi: Mention the new module and the various
6411         bugs.
6412
6413         Tests for module 'fmaf'.
6414         * modules/fmaf-tests: New file.
6415         * tests/test-fmaf1.c: New file.
6416         * tests/test-fmaf2.c: New file.
6417
6418         New module 'fmaf'.
6419         * lib/math.in.h (fmaf): New declaration.
6420         * lib/fmaf.c: New file.
6421         * m4/fmaf.m4: New file.
6422         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6424         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6425         REPLACE_FMAF.
6426         * modules/fmaf: New file.
6427         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6428         bugs.
6429
6430         Tests for module 'fma'.
6431         * modules/fma-tests: New file.
6432         * tests/test-fma1.c: New file.
6433         * tests/test-fma1.h: New file.
6434         * tests/test-fma2.c: New file.
6435         * tests/test-fma2.h: New file.
6436
6437         New module 'fma'.
6438         * lib/math.in.h (fma): New declaration.
6439         * lib/fma.c: New file.
6440         * m4/fma.m4: New file.
6441         * m4/fegetround.m4: New file.
6442         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6444         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6445         REPLACE_FMA.
6446         * modules/fma: New file.
6447         * doc/posix-functions/fma.texi: Mention the new module and the various
6448         bugs.
6449
6450         Extend gl_MATHFUNC.
6451         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6452         Support 'void' as argument type.
6453         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6454
6455 2011-11-05  Jim Meyering  <meyering@redhat.com>
6456
6457         maint.mk: also prohibit inclusion of dirent.h without use
6458         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6459
6460 2011-11-05  Bruno Haible  <bruno@clisp.org>
6461
6462         ldexpl tests: Avoid test failure on MSVC 9.
6463         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6464         value. Needed in order to enforce the conversion from a value greater
6465         than LDBL_MAX to Infinity.
6466
6467 2011-11-05  Bruno Haible  <bruno@clisp.org>
6468
6469         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6470         * modules/at-internal: New file, extracted from modules/openat.
6471         * modules/openat-h: New file.
6472         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6473         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6474         * modules/openat (Description): Add reference to POSIX function.
6475         (Files): Remove lib/openat.h, lib/openat-proc.c.
6476         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6477         intprops, unistd.
6478         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6479         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6480         gl_FCNTL_MODULE_INDICATOR.
6481         (Include): Remove unistd.h, openat.h.
6482         * modules/areadlinkat (Files): Add lib/at-func.c.
6483         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6484         openat-die, openat-h, save-cwd.
6485         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6486         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6487         openat-die, openat-h, save-cwd, unistd.
6488         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6489         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6490         openat-h, save-cwd. Remove fcntl-h, openat.
6491         * modules/fchmodat (Files): Remove lib/openat.h.
6492         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6493         openat, stdbool, unistd.
6494         * modules/fchownat (Files): Remove lib/openat.h.
6495         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6496         openat, stdbool, sys_stat.
6497         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6498         lib/openat-proc.c.
6499         (Depends-on): Add at-internal.
6500         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6501         * modules/fstatat (Files): Remove lib/openat.h.
6502         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6503         stdbool, unistd.
6504         * modules/fts (Depends-on): Add openat-h.
6505         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6506         openat.
6507         * modules/mkdirat (Files): Remove lib/openat.h.
6508         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6509         openat, stdbool, sys_stat.
6510         * modules/mkfifoat (Files): Add lib/at-func.c.
6511         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6512         openat-h, save-cwd. Remove fcntl-h, openat.
6513         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6514         * modules/readlinkat (Files): Add lib/at-func.c.
6515         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6516         openat-h, save-cwd. Remove fcntl-h, openat.
6517         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6518         openat.
6519         * modules/selinux-at (Files): Add lib/at-func.c.
6520         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6521         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6522         * modules/symlinkat (Files): Add lib/at-func.c.
6523         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6524         openat-h, save-cwd. Remove fcntl-h, openat.
6525         * modules/unlinkat (Files): Remove lib/openat.h.
6526         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6527         stdbool.
6528         * modules/utimensat (Files): Add lib/at-func.c.
6529         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6530         openat-die, openat-h, save-cwd.
6531         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6532         * modules/fdutimensat-tests (Depends-on): Add openat.
6533         * modules/fstatat-tests (Depends-on): Add openat-h.
6534         * modules/readlinkat-tests (Depends-on): Add openat.
6535         * modules/symlinkat-tests (Depends-on): Add openat.
6536
6537 2011-11-05  Bruno Haible  <bruno@clisp.org>
6538
6539         openat: Include <stdbool.h>.
6540         * lib/openat.c: Include <stdbool.h>.
6541
6542 2011-11-04  Bruno Haible  <bruno@clisp.org>
6543
6544         fchownat, renameat, unlinkat: Fix dependencies.
6545         * modules/fchownat (Depends-on): Add fstatat.
6546         * modules/renameat (Depends-on): Likewise.
6547         * modules/unlinkat (Depends-on): Likewise.
6548
6549 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6550
6551         openat: remove direct dependency on dirent
6552         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6553         and hasn't been needed ever since fdopendir was split into its own
6554         module on 2009-08-31.
6555         * modules/openat (Depends-on): Remove dirent.
6556
6557 2011-11-04  Bruno Haible  <bruno@clisp.org>
6558
6559         renameat: Optimize code size.
6560         * modules/renameat (configure.ac): Don't compile at-func2.c if
6561         REPLACE_RENAMEAT is 1.
6562
6563 2011-11-04  Bruno Haible  <bruno@clisp.org>
6564
6565         openat tests: Fix file list.
6566         * modules/openat-tests (Files): Add tests/test-open.h.
6567
6568 2011-11-04  Bruno Haible  <bruno@clisp.org>
6569
6570         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6571         * modules/fchmodat (Depends-on): Add openat-die.
6572         * modules/fchownat (Depends-on): Likewise.
6573         * modules/linkat (Depends-on): Likewise.
6574         * modules/renameat (Depends-on): Likewise.
6575         * modules/openat (Depends-on): Add dirent.
6576
6577 2011-11-04  Jim Meyering  <meyering@redhat.com>
6578
6579         at-func*.c: fix comments
6580         * lib/at-func2.c: Correct/improve first-line comment.
6581         * lib/at-func.c: Correct grammar in first-line comment.
6582
6583 2011-11-04  Bruno Haible  <bruno@clisp.org>
6584
6585         New module 'mkdirat', split off from module 'openat'.
6586         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6587         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6588         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6589         * modules/mkdirat: New file, extracted from modules/openat.
6590         * modules/openat (Files): Remove lib/mkdirat.c.
6591         (Depends-on): Remove mkdir.
6592         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6593         (Include): Remove <sys/stat.h>.
6594         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6595         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6596         tests/test-mkdir.h.
6597         (Depends-on): Remove ignore-value.
6598         (Makefile.am): Remove rules for test-mkdirat.
6599         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6600         of module 'openat'.
6601         * NEWS: Mention the change.
6602
6603 2011-11-04  Bruno Haible  <bruno@clisp.org>
6604
6605         closedir: Avoid warning on mingw.
6606         * lib/closedir.c: Include <unistd.h>.
6607
6608 2011-11-04  Bruno Haible  <bruno@clisp.org>
6609
6610         New module 'fstatat', split off from module 'openat'.
6611         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6612         defined.
6613         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6614         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6615         gl_FUNC_FSTATAT.
6616         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6617         * modules/fstatat: New file, extracted from modules/openat.
6618         * modules/openat (Files): Remove lib/fstatat.c.
6619         (Depends-on): Remove lstat.
6620         (configure.ac): Remove AC_LIBOBJ of fstatat.
6621         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6622         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6623         tests/test-lstat.h, tests/test-stat.h.
6624         (Depends-on): Remove getcwd-lgpl.
6625         (Makefile.am): Remove rules for test-fstatat.
6626         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6627         of module 'openat'.
6628         * NEWS: Mention the change.
6629         * modules/getcwd (Depends-on): Add fstatat.
6630         * modules/linkat (Depends-on): Likewise.
6631         * modules/mkfifoat-tests (Depends-on): Likewise.
6632         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6633
6634 2011-11-03  Bruno Haible  <bruno@clisp.org>
6635
6636         New module 'unlinkat', split off from module 'openat'.
6637         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6638         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6639         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6640         * modules/unlinkat: New file, extracted from modules/openat. Correct
6641         the dependency conditions.
6642         * modules/openat (Files): Remove lib/unlinkat.c.
6643         (Depends-on): Remove rmdir, unlink.
6644         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6645         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6646         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6647         tests/test-rmdir.h, tests/test-unlink.h.
6648         (Depends-on): Remove unlinkdir.
6649         (Makefile.am): Remove rules for test-unlinkat.
6650         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6651         of module 'openat'.
6652         * NEWS: Mention the change.
6653         * modules/linkat-tests (Depends-on): Add unlinkat.
6654         * modules/mkfifoat-tests (Depends-on): Likewise.
6655         * modules/readlinkat-tests (Depends-on): Likewise.
6656
6657 2011-11-02  Bruno Haible  <bruno@clisp.org>
6658
6659         New module 'fchmodat', split off from module 'openat'.
6660         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6661         defined.
6662         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6663         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6664         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6665         * modules/fchmodat: New file, extracted from modules/openat.
6666         * modules/openat (Files): Remove lib/fchmodat.c.
6667         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6668         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6669         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6670         (Makefile.am): Remove rules for test-fchmodat.
6671         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6672         of module 'openat'.
6673         * NEWS: Mention the change.
6674
6675 2011-11-02  Jim Meyering  <meyering@redhat.com>
6676
6677         putenv: indent #definition of "environ" to placate cppi
6678         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6679
6680         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6681         Git logs are often treated as immutable, because editing them
6682         changes the SHA1 checksums of all descendants.  Thus, errors in
6683         git logs tend to stay there forever.  However, when we generate
6684         a ChangeLog file -- typically for distribution -- from that git log,
6685         we can actually make corrections in the generated file.  The key
6686         lies in recording in machine-readable/applicable form the desired
6687         corrections.  See --help for description and an example.
6688         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6689         (usage): Describe it; alphabetize option descriptions.
6690         (main): Honor the new option, carefully.
6691
6692 2011-11-01  Jim Meyering  <meyering@redhat.com>
6693
6694         gitlog-to-changelog: avoid an infloop
6695         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6696         that ends up being empty.
6697
6698 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6699
6700         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6701         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6702         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6703         contains (possibly-quoted) backslashes.  This should avoid
6704         all-too-common shell bugs if COMPLICATED contains backslashes in
6705         the "wrong" places.  Reported by David Evans in
6706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6707         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6708         because we want ASCII ranges.  Is there some reason we don't use
6709         the C locale everywhere in this script?
6710         (func_module, top level): Avoid unwanted pathname expansion when
6711         $repo_url_prefix or $repo_url_suffix_repl contain shell
6712         metacharacters like '?' and '*'.
6713
6714 2011-11-01  Bruno Haible  <bruno@clisp.org>
6715
6716         fchownat: Improve description.
6717         * modules/fchownat (Description): Add link to function.
6718
6719 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6720
6721         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6722         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6724         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6725
6726 2011-11-01  Bruno Haible  <bruno@clisp.org>
6727
6728         alignof: Avoid collision with stdalign module.
6729         * lib/alignof.h (alignof): Remove macro.
6730         * NEWS: Mention the change.
6731         Reported by Paul Eggert.
6732
6733 2011-11-01  Bruno Haible  <bruno@clisp.org>
6734
6735         New module 'fchownat', split off from module 'openat'.
6736         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6737         defined.
6738         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6739         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6740         invoke gl_FUNC_FCHOWNAT.
6741         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6742         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6743         * modules/fchownat: New file, extracted from modules/openat.
6744         * modules/openat (Files): Remove lib/fchownat.c.
6745         (Depends-on): Remove lchown.
6746         (configure.ac): Remove AC_LIBOBJ of fchownat.
6747         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6748         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6749         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6750         (Depends-on): Remove mgetgroups, usleep, stat-time.
6751         (configure.ac): Remove test for getegid.
6752         (Makefile.am): Remove rules for test-fchownat.
6753         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6754         of module 'openat'.
6755         * NEWS: Mention the change.
6756
6757 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6758
6759         stdalign: port better to MSVC and to Sun C 5.11
6760         This fixes some of the problems reported by Bruno Haible in
6761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6762         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6763         shortcomings of MSVC and of Sun C 5.11.
6764         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6765         around __declspec arg.
6766         * modules/stdalign-tests (Files): Add tests/macros.h.
6767         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6768         Include macros.h, for ASSERT.
6769         (DECLARE_ALIGNED): Remove.
6770         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6771         to catch bug), and to 1 if not (simplifies the rest of the code).
6772         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6773         (CHECK_AUTO): Remove.
6774         (CHECK_ALIGNED): Check only the alignment of the static vars,
6775         since auto var alignment isn't supported by Sun C 5.11.
6776         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6777         ASSERT failures are easier to diagnose.
6778
6779 2011-10-31  Bruno Haible  <bruno@clisp.org>
6780
6781         doc about some IRIX 5.3 problems.
6782         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6783         on IRIX 5.3.
6784         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6785         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6786         5.3.
6787         * doc/posix-functions/grantpt.texi: Likewise.
6788         * doc/posix-functions/unlockpt.texi: Likewise.
6789         * doc/posix-functions/lgamma.texi: Likewise.
6790         * doc/posix-functions/nextafter.texi: Likewise.
6791         * doc/posix-functions/remainder.texi: Likewise.
6792         * doc/posix-functions/select.texi: Mention misplaced declaration on
6793         IRIX 5.3.
6794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6795
6796 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6797
6798         gitlog-to-changelog: fix git-log invocation.
6799         git-log mishandles date strings before 1970-01-01 UTC, and there is
6800         no use to specify --since=1970-01-01 by default anyway.
6801         * build-aux/gitlog-to-changelog: By default, when no --since option
6802         was given, do not specify explicit --since option to git-log.
6803
6804 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6805
6806         gitlog-to-changelog: new option --append-dot.
6807         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6808         first non-blank line of each commit message terminated with a dot.
6809
6810 2011-10-30  Bruno Haible  <bruno@clisp.org>
6811
6812         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6813         * lib/ffsl.h: Include <config.h>.
6814         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6815
6816 2011-10-30  Jim Meyering  <meyering@redhat.com>
6817
6818         GNUmakefile: reenable "make syntax-check" for most projects
6819         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6820         build-aux variable", "syntax-check" would do nothing but succeed with
6821         the "No version control files detected..." diagnostic (unless you
6822         happened to override _build-aux via cfg.mk).
6823         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6824         to precede inclusion of maint.mk.  Otherwise, these variables would
6825         be used undefined in any project that does not override the default.
6826
6827 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6828
6829         gitlog-to-changelog: treat a message with only blank lines as empty.
6830         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6831         trailing blank lines before the code that issues a warning about an
6832         empty commit message.
6833
6834 2011-10-30  Jim Meyering  <meyering@redhat.com>
6835
6836         test-parse-datetime.c: avoid new DST-related false positive test failure
6837         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6838         based on the time/date we'll convert, not the current time.
6839         Otherwise, the moment we cross a DST boundary like today's in
6840         Europe, (CEST to CET), that offset ends up being one hour off.
6841
6842 2011-10-27  Bruno Haible  <bruno@clisp.org>
6843
6844         fstat: Tweak documentation.
6845         * modules/fstat (Description): More precise description.
6846
6847 2011-10-27  Bruno Haible  <bruno@clisp.org>
6848
6849         Update documentation regarding 'largefile' module.
6850         * doc/posix-functions/fstat.texi: Tweak wording.
6851         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6852         problems with huge directories and/or small ino_t types.
6853         * doc/posix-functions/readdir.texi: Likewise.
6854         * doc/posix-functions/rewinddir.texi: Likewise.
6855
6856 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6857
6858         maint.mk: don't maintain a second build-aux variable.
6859         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6860         depends on GNUmakefile, which already maintains a cfg.mk
6861         overridable $(_build-aux) for projects with a non-standard
6862         build-aux directory location, although without the $(srcdir)
6863         prefix.  Use that variable consistently instead of introducing a
6864         second one.  Adjust all call sites.
6865
6866 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6867
6868         Add stdalign module and use it in other modules.
6869         This is based on a previous proposal by Bruno Haible
6870         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6871
6872         stdalign: new module
6873         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6874         * modules/stdalign: New files.
6875         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6876         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6877
6878         stdalign-tests: new module
6879         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6880
6881         argp: use stdalign
6882         * lib/argp-parse.c: Include <stdalign.h>.
6883         (alignof): Remove.
6884         * modules/argp (Depends-on): Add stdalign.
6885
6886         crypto libraries: use stdalign
6887         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6888         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6889         Do not include <stdlib.h> twice, in md4.c.
6890         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6891         because we are accessing a pointer's bit-pattern, not a size.
6892         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6893         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6894         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6895         * modules/crypto/sha512: Likewise.
6896
6897         sys_socket: use stdalign, not alignof
6898         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6899         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6900
6901 2011-10-27  Bruno Haible  <bruno@clisp.org>
6902
6903         raise test: Avoid a test failure on Linux/MIPS.
6904         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6905         because 99 is a valid signal on Linux/MIPS.
6906
6907 2011-10-27  Bruno Haible  <bruno@clisp.org>
6908
6909         nonblocking tests: Fix test failure on Linux/MIPS.
6910         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6911         Set to 270000.
6912
6913 2011-10-27  Bruno Haible  <bruno@clisp.org>
6914
6915         utimensat: Work around problem on Linux/hppa.
6916         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6917         values.
6918         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6919
6920 2011-10-25  Jim Meyering  <meyering@redhat.com>
6921
6922         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6923         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6924         after symbols like NULL, size_t, etc.
6925         Reported by Alfred M. Szmidt.
6926
6927         maint.mk: exempt ENODATA from a syntax-check rule
6928         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6929         from the sc_prohibit_always-defined_macros syntax-check rule.
6930         Add a comment.  See this for more details:
6931         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6932
6933 2011-10-23  Jim Meyering  <meyering@redhat.com>
6934
6935         fts: close parent dir FD before returning from post-traversal fts_read
6936         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6937         unlink A, even though an FD open on A remained.  This is suboptimal
6938         (holding a file descriptor open longer than needed), but otherwise not
6939         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6940         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6941         that represents a real problem: it causes the removal of A to fail
6942         with e.g., "rm: cannot remove `A': Device or resource busy"
6943
6944         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6945         directory file descriptors.  After completing the final, FTS_DP,
6946         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6947         cache, but then proceeded to add a new FD to it via the subsequent
6948         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6949         final file descriptor would be closed only via fts_close's call to
6950         fd_ring_clear.  Now, it is usually closed earlier, via the final
6951         FTS_DP-returning fts_read call.
6952         * lib/fts.c (restore_initial_cwd): New function, converted from
6953         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6954         Update callers.
6955         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6956         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6957
6958 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6959             Bruno Haible  <bruno@clisp.org>
6960             Jim Meyering  <jim@meyering.net>
6961
6962         readme-release: improve safety of release prep instructions.
6963         * README-release: Don't git pull all branches when only master
6964         is needed for the release process.
6965         Run make maintainer-clean before changing trees and merging.
6966         Don't try to run ./configure right after git pull in case files
6967         that influence the bootstrap process have changed, move the
6968         ./configure step to after running ./bootstrap.
6969         Don't bootstrap "one last time"... it's the first time!
6970
6971 2011-10-22  Bruno Haible  <bruno@clisp.org>
6972
6973         errno, strerror-override: Support for MSVC 10.
6974         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6975         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6976         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6977         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6978         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6979         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6980         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6981         Assign values compatible with MSVC 10.
6982         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6983         New macros.
6984         (GNULIB_defined_EWINSOCK): New macro.
6985         * lib/strerror-override.c (strerror_override): Update accordingly.
6986         * lib/strerror-override.h: Likewise.
6987         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6988         longer equal to the corresponding errno value.
6989         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6990
6991 2011-10-22  Bruno Haible  <bruno@clisp.org>
6992
6993         perror: Recognize when test program crashes.
6994         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6995         strerror, set gl_cv_func_perror_works to no.
6996         Reported by Daniel Richard G. <skunk@iskunk.org>.
6997
6998         perror: Fix indentation.
6999         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7000
7001 2011-10-22  Bruno Haible  <bruno@clisp.org>
7002
7003         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7004         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7005         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7006         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7007         functions, not as a macro.
7008         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7009         macros.
7010         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7011         absence of macro.
7012         Suggested by Eric Blake.
7013         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7014
7015 2011-10-21  Bruno Haible  <bruno@clisp.org>
7016
7017         relocatable-prog-wrapper: Don't leave object files behind.
7018         * build-aux/install-reloc: Re-synchronize list of .o files to be
7019         removed with list of compilation units.
7020
7021 2011-10-20  Bruno Haible  <bruno@clisp.org>
7022
7023         openpty, posix_openpt: Remove code duplication.
7024         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7025         * lib/openpty.c: Include <stdlib.h>.
7026         (openpty): Use posix_openpt on all platforms except IRIX.
7027         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7028
7029 2011-10-20  Bruno Haible  <bruno@clisp.org>
7030
7031         unlockpt: Detect invalid argument.
7032         * lib/unlockpt.c: Include <fcntl.h>.
7033         (unlockpt): Check whether fd is valid, using fcntl().
7034         * modules/unlockpt (Depends-on): Add fcntl-h.
7035
7036 2011-10-20  Bruno Haible  <bruno@clisp.org>
7037
7038         openpty: Avoid compilation error on AIX 6.1.
7039         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7040
7041 2011-10-20  Bruno Haible  <bruno@clisp.org>
7042
7043         posix_openpt: Support for OpenBSD.
7044         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7045         (posix_openpt) [OpenBSD]: New code.
7046         * lib/grantpt.c: Include <fcntl.h>.
7047         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7048         * modules/grantpt (Depends-on): Add fcntl-h.
7049
7050 2011-10-20  Bruno Haible  <bruno@clisp.org>
7051
7052         posix_openpt test: Coding style.
7053         * tests/test-posix_openpt.c: Use GNU coding style.
7054
7055 2011-10-20  Bruno Haible  <bruno@clisp.org>
7056
7057         grantpt: Support --avoid=pt_chown.
7058         * modules/grantpt (Files): Add lib/pty-private.h.
7059
7060 2011-10-20  Bruno Haible  <bruno@clisp.org>
7061
7062         posix_openpt: Fix autoconf macro.
7063         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7064         unneeded check for _getpty.
7065
7066 2011-10-20  Bruno Haible  <bruno@clisp.org>
7067
7068         openpty: Update comments.
7069         * lib/openpty.c: Add comments about Minix.
7070
7071 2011-10-19  Eric Blake  <eblake@redhat.com>
7072
7073         openpty: relax license
7074         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7075
7076         pt_chown: use configmake to simplify build
7077         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7078
7079         ptsname and others: relax license
7080         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7081         * modules/unlockpt (License): Likewise.
7082         * modules/pt_chown (License): Likewise.
7083         * modules/ptsname (License): Likewise.
7084         * modules/ttyname_r (License): Likewise.
7085
7086 2011-10-19  Jim Meyering  <meyering@redhat.com>
7087
7088         posix_openpt: remove spurious #endif
7089         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7090
7091 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7092
7093         maint.mk: Respect $(build_aux) in web-manual rule.
7094         * top/maint.mk (web-manual): Find gen-announce script in user's
7095         $(build_aux) directory instead of hard-coding 'build-aux'.
7096
7097 2011-10-19  Bruno Haible  <bruno@clisp.org>
7098
7099         posix_openpt: Fix compilation error.
7100         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7101         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7102         Mention the openpty module as an alternative.
7103
7104 2011-10-19  Bruno Haible  <bruno@clisp.org>
7105
7106         Support for old NeXTstep 3.3 frexp().
7107         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7108         execution time of the test to 5 seconds.
7109         Reported by Daniel Richard G. <skunk@iskunk.org>.
7110
7111 2011-10-19  Bruno Haible  <bruno@clisp.org>
7112
7113         Support for old NeXTstep 3.3 sed.
7114         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7115         part, use /.../, not \|...|. Escape periods in the header file name.
7116         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7117         Reported by Daniel Richard G. <skunk@iskunk.org>.
7118
7119 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7120
7121         Support for old NeXTstep 3.3 gcc.
7122         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7123         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7124         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7125         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7126         * lib/regex.h (_Restrict_arr_): Likewise.
7127         * lib/regex_internal.h (re_token_t): Likewise.
7128         * lib/regexec.c (check_node_accept_bytes): Likewise.
7129         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7130
7131 2011-10-18  Eric Blake  <eblake@redhat.com>
7132
7133         posix_openpt: new module
7134         * modules/posix_openpt: New module.
7135         * m4/posix_openpt.m4: New file.
7136         * lib/posix_openpt.c: Likewise.
7137         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7138         (gl_STDLIB_H_DEFAULTS): Set defaults.
7139         * modules/stdlib (Makefile.am): Substitute macros.
7140         * lib/stdlib.in.h (posix_openpt): Declare.
7141         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7142         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7143         * modules/posix_openpt-tests: New test module.
7144         * tests/test-posix_openpt.c: New test.
7145
7146 2011-10-15  Bruno Haible  <bruno@clisp.org>
7147
7148         xstrtoll: Fix compilation failure.
7149         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7150         from lib/strtol.c.
7151         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7152         some platforms.
7153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7154
7155 2011-10-15  Bruno Haible  <bruno@clisp.org>
7156
7157         vasnprintf: Optimize bit search operation.
7158         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7160         gl_DOUBLE_EXPONENT_LOCATION.
7161         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7162         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7163         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7164         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7165         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7166         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7167         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7168         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7169         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7170
7171 2011-10-15  Bruno Haible  <bruno@clisp.org>
7172
7173         vasnprintf: Fix comments.
7174         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7175
7176 2011-10-14  Bruno Haible  <bruno@clisp.org>
7177
7178         Tests for module 'integer_length_ll'.
7179         * modules/integer_length_ll-tests: New file.
7180         * tests/test-integer_length_ll.c: New file.
7181
7182         New module 'integer_length_ll'.
7183         * lib/integer_length_ll.c: New file.
7184         * modules/integer_length_ll: New file.
7185
7186 2011-10-14  Bruno Haible  <bruno@clisp.org>
7187
7188         Tests for module 'integer_length_l'.
7189         * modules/integer_length_l-tests: New file.
7190         * tests/test-integer_length_l.c: New file.
7191
7192         New module 'integer_length_l'.
7193         * lib/integer_length_l.c: New file.
7194         * modules/integer_length_l: New file.
7195
7196 2011-10-14  Bruno Haible  <bruno@clisp.org>
7197
7198         Tests for module 'integer_length'.
7199         * modules/integer_length-tests: New file.
7200         * tests/test-integer_length.c: New file.
7201
7202         New module 'integer_length'.
7203         * lib/integer_length.h: New file.
7204         * lib/integer_length.c: New file.
7205         * modules/integer_length: New file.
7206
7207 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7208
7209         popen: Fix dependency conditions.
7210         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7211
7212 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7213
7214         perror: Fix autoconf test.
7215         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7216         <stdlib.h> and <string.h>.
7217
7218 2011-10-14  Bruno Haible  <bruno@clisp.org>
7219
7220         ffsl: Optimize on 64-bit platforms.
7221         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7222         unrolling.
7223
7224 2011-10-13  Bruno Haible  <bruno@clisp.org>
7225
7226         ffsl: Optimize on 32-bit platforms.
7227         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7228         use ffs() without a loop.
7229
7230         ffsl, ffsll: Optimize for GCC.
7231         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7232         * lib/ffsl.c (GCC_BUILTIN): New macro.
7233         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7234
7235 2011-10-13  Bruno Haible  <bruno@clisp.org>
7236
7237         ffs, bcopy, memset: Support symbol renaming via config.h.
7238         * lib/ffs.c: Include <config.h>.
7239         * lib/bcopy.c: Likewise.
7240         * lib/memset.c: Likewise.
7241
7242 2011-10-10  Bruno Haible  <bruno@clisp.org>
7243
7244         atanl: Simplify for platforms where 'long double' == 'double'.
7245         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7246         alternative implementation.
7247         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7248         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7249         * modules/atanl (Depends-on): Add atan. Update conditions.
7250
7251 2011-10-10  Bruno Haible  <bruno@clisp.org>
7252
7253         acosl: Simplify for platforms where 'long double' == 'double'.
7254         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7255         alternative implementation.
7256         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7257         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7258         * modules/acosl (Depends-on): Add acos. Update conditions.
7259
7260 2011-10-10  Bruno Haible  <bruno@clisp.org>
7261
7262         asinl: Simplify for platforms where 'long double' == 'double'.
7263         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7264         alternative implementation.
7265         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7266         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7267         * modules/asinl (Depends-on): Add asin. Update conditions.
7268
7269 2011-10-10  Bruno Haible  <bruno@clisp.org>
7270
7271         tanl: Simplify for platforms where 'long double' == 'double'.
7272         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7273         implementation.
7274         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7275         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7276         * modules/tanl (Depends-on): Add tan. Update conditions.
7277         (configure.ac): Don't compile trigl.c if
7278         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7279
7280 2011-10-10  Bruno Haible  <bruno@clisp.org>
7281
7282         cosl: Simplify for platforms where 'long double' == 'double'.
7283         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7284         implementation.
7285         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7286         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7287         * modules/cosl (Depends-on): Add cos. Update conditions.
7288         (configure.ac): Don't compile sincosl.c and trigl.c if
7289         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7290
7291 2011-10-10  Bruno Haible  <bruno@clisp.org>
7292
7293         sinl: Simplify for platforms where 'long double' == 'double'.
7294         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7295         implementation.
7296         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7297         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7298         * modules/sinl (Depends-on): Add sin. Update conditions.
7299         (configure.ac): Don't compile sincosl.c and trigl.c if
7300         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7301
7302 2011-10-10  Bruno Haible  <bruno@clisp.org>
7303
7304         logl: Simplify for platforms where 'long double' == 'double'.
7305         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7306         implementation.
7307         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7308         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7309         * modules/logl (Depends-on): Add log. Update conditions.
7310
7311 2011-10-10  Bruno Haible  <bruno@clisp.org>
7312
7313         expl: Simplify for platforms where 'long double' == 'double'.
7314         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7315         implementation.
7316         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7317         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7318         * modules/expl (Depends-on): Add exp. Update conditions.
7319
7320 2011-10-10  Bruno Haible  <bruno@clisp.org>
7321
7322         sqrtl: Simplify for platforms where 'long double' == 'double'.
7323         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7324         alternative implementation.
7325         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7326         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7327         * modules/sqrtl (Depends-on): Update conditions.
7328
7329 2011-10-10  Bruno Haible  <bruno@clisp.org>
7330
7331         ldexpl: Simplify for platforms where 'long double' == 'double'.
7332         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7333         alternative implementation.
7334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7335         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7336         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7337
7338 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7339
7340         ffsll: set correct witness
7341         * modules/ffsll (configure.ac): Fix typo.
7342
7343 2011-10-10  Bruno Haible  <bruno@clisp.org>
7344
7345         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7346         * lib/printf-frexpl.c: Include <config.h>.
7347         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7348         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7349         second time.
7350         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7351         gl_LONG_DOUBLE_VS_DOUBLE.
7352         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7353         conditions.
7354
7355 2011-10-10  Bruno Haible  <bruno@clisp.org>
7356
7357         frexpl: Simplify for platforms where 'long double' == 'double'.
7358         * lib/frexpl.c: Include <config.h>.
7359         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7360         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7361         time.
7362         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7363         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7364         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7365         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7366         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7367         conditions.
7368
7369 2011-10-10  Jim Meyering  <meyering@redhat.com>
7370
7371         test-renameat: don't leave behind a temporary file
7372         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7373           ERROR: files left in build directory after distclean:
7374           ./gltests/test-renameat.too
7375           make[1]: *** [distcleancheck] Error 1
7376         Reported by Tom G. Christensen.
7377
7378 2011-10-09  Bruno Haible  <bruno@clisp.org>
7379
7380         rint: Determine RINT_LIBM correctly on AIX 7.
7381         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7382         directly, not only through a function pointer. Also accept an optional
7383         4th argument with extra code.
7384         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7385         rintf() call by gcc when optimizing.
7386
7387         mathfunc.m4: Refactor.
7388         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7389         m4 variable.
7390
7391 2011-10-09  Bruno Haible  <bruno@clisp.org>
7392
7393         rintl: Simplify for platforms where 'long double' == 'double'.
7394         * lib/rintl.c: Include <config.h>.
7395         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7396         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7397         time.
7398         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7399         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7400         * modules/rintl (Depends-on): Add rint. Update conditions.
7401
7402 2011-10-09  Bruno Haible  <bruno@clisp.org>
7403
7404         roundl: Simplify for platforms where 'long double' == 'double'.
7405         * lib/roundl.c: Include <config.h>.
7406         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7407         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7408         time.
7409         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7410         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7411         * modules/roundl (Depends-on): Add round. Update conditions.
7412
7413 2011-10-09  Bruno Haible  <bruno@clisp.org>
7414
7415         truncl: Simplify for platforms where 'long double' == 'double'.
7416         * lib/truncl.c: Include <config.h>.
7417         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7418         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7419         time.
7420         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7421         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7422         * modules/truncl (Depends-on): Add trunc. Update conditions.
7423
7424 2011-10-09  Bruno Haible  <bruno@clisp.org>
7425
7426         ceill: Simplify for platforms where 'long double' == 'double'.
7427         * lib/ceill.c: Include <config.h>.
7428         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7429         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7430         time.
7431         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7432         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7433         * modules/ceill (Depends-on): Add ceil. Update conditions.
7434
7435 2011-10-09  Bruno Haible  <bruno@clisp.org>
7436
7437         floorl: Simplify for platforms where 'long double' == 'double'.
7438         * lib/floorl.c: Include <config.h>.
7439         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7440         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7441         time.
7442         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7443         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7444         * modules/floorl (Depends-on): Add floor. Update conditions.
7445
7446 2011-10-09  Bruno Haible  <bruno@clisp.org>
7447
7448         rint: Fix ordering constraints.
7449         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7450         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7451         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7452
7453 2011-10-09  Bruno Haible  <bruno@clisp.org>
7454
7455         copysignl: Simplify for platforms where 'long double' == 'double'.
7456         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7457         alternative.
7458         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7459         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7460         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7461
7462 2011-10-09  Bruno Haible  <bruno@clisp.org>
7463
7464         Tests for module 'rintl'.
7465         * modules/rintl-tests: New file.
7466         * tests/test-rintl.c: New file.
7467
7468         New module 'rintl'.
7469         * lib/math.in.h (rintl): New declaration.
7470         * lib/rintl.c: New file.
7471         * m4/rintl.m4: New file.
7472         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7474         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7475         * modules/rintl: New file.
7476         * tests/test-math-c++.cc: Check the declaration of rintl.
7477         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7478         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7479         * doc/posix-functions/rintl.texi: Mention the new module.
7480
7481 2011-10-09  Bruno Haible  <bruno@clisp.org>
7482
7483         Tests for module 'rintf'.
7484         * modules/rintf-tests: New file.
7485         * tests/test-rintf.c: New file.
7486
7487         New module 'rintf'.
7488         * lib/math.in.h (rintf): New declaration.
7489         * lib/rintf.c: New file.
7490         * m4/rintf.m4: New file.
7491         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7493         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7494         * modules/rintf: New file.
7495         * tests/test-math-c++.cc: Check the declaration of rintf.
7496         * doc/posix-functions/rintf.texi: Mention the new module.
7497
7498 2011-10-09  Bruno Haible  <bruno@clisp.org>
7499
7500         rint: Support for MSVC.
7501         * lib/math.in.h (rint): New declaration.
7502         * lib/rint.c: New file.
7503         * m4/rint.m4: New file.
7504         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7506         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7507         * modules/rint (Description): Fix.
7508         (Files): Add lib/rint.c, m4/rint.m4.
7509         (Depends-on): Add math.
7510         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7511         gl_MATH_MODULE_INDICATOR.
7512         * tests/test-math-c++.cc: Check the declaration of rint.
7513         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7514         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7515         * doc/posix-functions/rint.texi: Mention the replacement provided by
7516         the module.
7517
7518         rint tests: More tests.
7519         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7520         minus-zero.h, infinity.h, nan.h.
7521         (main): Skip the test if the current rounding mode is not standard. Add
7522         tests for negative numbers, minus zero, infinity, NaN.
7523         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7524         tests/nan.h.
7525         (Depends-on): Add isnand-nolibm.
7526
7527 2011-10-09  Bruno Haible  <bruno@clisp.org>
7528
7529         Tests for module 'copysignl'.
7530         * modules/copysignl-tests: New file.
7531         * tests/test-copysignl.c: New file.
7532
7533         New module 'copysignl'.
7534         * lib/math.in.h (copysignl): New declaration.
7535         * lib/copysignl.c: New file.
7536         * m4/copysignl.m4: New file.
7537         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7539         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7540         HAVE_COPYSIGNL.
7541         * modules/copysignl: New file.
7542         * tests/test-math-c++.cc: Check the declaration of copysignl.
7543         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7544         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7545         * doc/posix-functions/copysignl.texi: Mention the new module.
7546
7547 2011-10-09  Bruno Haible  <bruno@clisp.org>
7548
7549         Tests for module 'copysignf'.
7550         * modules/copysignf-tests: New file.
7551         * tests/test-copysignf.c: New file.
7552
7553         New module 'copysignf'.
7554         * lib/math.in.h (copysignf): New declaration.
7555         * lib/copysignf.c: New file.
7556         * m4/copysignf.m4: New file.
7557         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7559         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7560         HAVE_COPYSIGNF.
7561         * modules/copysignf: New file.
7562         * tests/test-math-c++.cc: Check the declaration of copysignf.
7563         * doc/posix-functions/copysignf.texi: Mention the new module.
7564
7565 2011-10-09  Bruno Haible  <bruno@clisp.org>
7566
7567         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7568         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7569         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7570         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7571         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7572         gl_SIGNAL_H_DEFAULTS.
7573
7574 2011-10-09  Bruno Haible  <bruno@clisp.org>
7575
7576         poll: Make macro safer.
7577         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7578         ac_cv_header_poll_h is not set.
7579
7580 2011-10-09  Bruno Haible  <bruno@clisp.org>
7581
7582         copysign: Provide replacement.
7583         * lib/math.in.h (copysign): New declaration.
7584         * lib/copysign.c: New file.
7585         * m4/copysign.m4: New file.
7586         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7588         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7589         HAVE_COPYSIGN.
7590         * modules/copysign (Description): Clarify.
7591         (Files): Add lib/copysign.c, m4/copysign.m4.
7592         (Depends-on): Add math, signbit.
7593         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7594         gl_MATH_MODULE_INDICATOR.
7595         * tests/test-math-c++.cc: Check the declaration of copysign.
7596         * doc/posix-functions/copysign.texi: Mention the effects of the module
7597         on Minix and MSVC.
7598
7599 2011-10-09  Bruno Haible  <bruno@clisp.org>
7600
7601         isinf: Ensure macro on AIX 5.1.
7602         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7603         macro.
7604         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7605
7606 2011-10-09  Bruno Haible  <bruno@clisp.org>
7607
7608         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7609         * modules/snprintf-posix-tests (configure.ac): Require
7610         gl_LONG_DOUBLE_VS_DOUBLE.
7611         * modules/sprintf-posix-tests (configure.ac): Likewise.
7612         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7613         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7614         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7615         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7616         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7617         tests on platforms where 'long double' is the same as 'double'.
7618         * tests/test-sprintf-posix.h (test_function): Likewise.
7619         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7620         * tests/test-vasprintf-posix.c (test_function): Likewise.
7621
7622         *printf: Fix for platforms where 'long double' == 'double'.
7623         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7624         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7625         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7626         * modules/fprintf-posix (Files): Likewise.
7627         * modules/obstack-printf-posix (Files): Likewise.
7628         * modules/snprintf-posix (Files): Likewise.
7629         * modules/sprintf-posix (Files): Likewise.
7630         * modules/vasnprintf (Files): Likewise.
7631         * modules/vasnprintf-posix (Files): Likewise.
7632         * modules/vasprintf-posix (Files): Likewise.
7633         * modules/vdprintf-posix (Files): Likewise.
7634         * modules/vfprintf-posix (Files): Likewise.
7635         * modules/vsnprintf-posix (Files): Likewise.
7636         * modules/vsprintf-posix (Files): Likewise.
7637         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7638         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7639         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7640         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7641         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7642         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7643         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7644
7645         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7646         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7647         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7648         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7649         'long double'.
7650         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7651
7652         isinf: Fix for platforms where 'long double' == 'double'.
7653         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7654         Don't blindly assume 80-bit 'long double'.
7655
7656         isfinite: Fix for platforms where 'long double' == 'double'.
7657         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7658         Don't blindly assume 80-bit 'long double'.
7659
7660         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7661         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7662         * modules/isfinite-tests (configure.ac): Require
7663         gl_LONG_DOUBLE_VS_DOUBLE.
7664         * modules/isinf-tests (configure.ac): Likewise.
7665         * modules/isnan-tests (configure.ac): Likewise.
7666         * modules/isnanl-tests (configure.ac): Likewise.
7667         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7668         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7669         tests on platforms where 'long double' is the same as 'double'.
7670         * tests/test-isinf.c (test_isinfl): Likewise.
7671         * tests/test-isnan.c (test_long_double): Likewise.
7672         * tests/test-isnanl.h (main): Likewise.
7673
7674 2011-10-08  Bruno Haible  <bruno@clisp.org>
7675
7676         Tests for module 'tanhf'.
7677         * modules/tanhf-tests: New file.
7678         * tests/test-tanhf.c: New file.
7679
7680         New module 'tanhf'.
7681         * lib/math.in.h (tanhf): New declaration.
7682         * lib/tanhf.c: New file.
7683         * m4/tanhf.m4: New file.
7684         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7686         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7687         * modules/tanhf: New file.
7688         * tests/test-math-c++.cc: Check the declaration of tanhf.
7689         * doc/posix-functions/tanhf.texi: Mention the new module.
7690
7691         tanh: Use a .m4 file.
7692         * m4/tanh.m4: New file.
7693         * modules/tanh (Files): Add it.
7694         (configure.ac): Just invoke gl_FUNC_TANH.
7695
7696 2011-10-08  Bruno Haible  <bruno@clisp.org>
7697
7698         Tests for module 'coshf'.
7699         * modules/coshf-tests: New file.
7700         * tests/test-coshf.c: New file.
7701
7702         New module 'coshf'.
7703         * lib/math.in.h (coshf): New declaration.
7704         * lib/coshf.c: New file.
7705         * m4/coshf.m4: New file.
7706         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7708         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7709         * modules/coshf: New file.
7710         * tests/test-math-c++.cc: Check the declaration of coshf.
7711         * doc/posix-functions/coshf.texi: Mention the new module.
7712
7713         cosh: Use a .m4 file.
7714         * m4/cosh.m4: New file.
7715         * modules/cosh (Files): Add it.
7716         (configure.ac): Just invoke gl_FUNC_COSH.
7717
7718 2011-10-08  Bruno Haible  <bruno@clisp.org>
7719
7720         Tests for module 'sinhf'.
7721         * modules/sinhf-tests: New file.
7722         * tests/test-sinhf.c: New file.
7723
7724         New module 'sinhf'.
7725         * lib/math.in.h (sinhf): New declaration.
7726         * lib/sinhf.c: New file.
7727         * m4/sinhf.m4: New file.
7728         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7730         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7731         * modules/sinhf: New file.
7732         * tests/test-math-c++.cc: Check the declaration of sinhf.
7733         * doc/posix-functions/sinhf.texi: Mention the new module.
7734
7735         sinh: Use a .m4 file.
7736         * m4/sinh.m4: New file.
7737         * modules/sinh (Files): Add it.
7738         (configure.ac): Just invoke gl_FUNC_SINH.
7739
7740 2011-10-08  Bruno Haible  <bruno@clisp.org>
7741
7742         Tests for module 'atan2f'.
7743         * modules/atan2f-tests: New file.
7744         * tests/test-atan2f.c: New file.
7745
7746         New module 'atan2f'.
7747         * lib/math.in.h (atan2f): New declaration.
7748         * lib/atan2f.c: New file.
7749         * m4/atan2f.m4: New file.
7750         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7752         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7753         * modules/atan2f: New file.
7754         * tests/test-math-c++.cc: Check the declaration of atan2f.
7755         * doc/posix-functions/atan2f.texi: Mention the new module.
7756
7757         atan2: Use a .m4 file.
7758         * m4/atan2.m4: New file.
7759         * modules/atan2 (Files): Add it.
7760         (configure.ac): Just invoke gl_FUNC_ATAN2.
7761
7762 2011-10-08  Bruno Haible  <bruno@clisp.org>
7763
7764         Tests for module 'atanf'.
7765         * modules/atanf-tests: New file.
7766         * tests/test-atanf.c: New file.
7767
7768         New module 'atanf'.
7769         * lib/math.in.h (atanf): New declaration.
7770         * lib/atanf.c: New file.
7771         * m4/atanf.m4: New file.
7772         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7774         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7775         * modules/atanf: New file.
7776         * tests/test-math-c++.cc: Check the declaration of atanf.
7777         * doc/posix-functions/atanf.texi: Mention the new module.
7778
7779         atan: Use a .m4 file.
7780         * m4/atan.m4: New file.
7781         * modules/atan (Files): Add it.
7782         (configure.ac): Just invoke gl_FUNC_ATAN.
7783
7784 2011-10-08  Bruno Haible  <bruno@clisp.org>
7785
7786         Tests for module 'acosf'.
7787         * modules/acosf-tests: New file.
7788         * tests/test-acosf.c: New file.
7789
7790         New module 'acosf'.
7791         * lib/math.in.h (acosf): New declaration.
7792         * lib/acosf.c: New file.
7793         * m4/acosf.m4: New file.
7794         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7796         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7797         * modules/acosf: New file.
7798         * tests/test-math-c++.cc: Check the declaration of acosf.
7799         * doc/posix-functions/acosf.texi: Mention the new module.
7800
7801         acos: Use a .m4 file.
7802         * m4/acos.m4: New file.
7803         * modules/acos (Files): Add it.
7804         (configure.ac): Just invoke gl_FUNC_ACOS.
7805
7806 2011-10-08  Bruno Haible  <bruno@clisp.org>
7807
7808         Tests for module 'asinf'.
7809         * modules/asinf-tests: New file.
7810         * tests/test-asinf.c: New file.
7811
7812         New module 'asinf'.
7813         * lib/math.in.h (asinf): New declaration.
7814         * lib/asinf.c: New file.
7815         * m4/asinf.m4: New file.
7816         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7818         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7819         * modules/asinf: New file.
7820         * tests/test-math-c++.cc: Check the declaration of asinf.
7821         * doc/posix-functions/asinf.texi: Mention the new module.
7822
7823         asin: Use a .m4 file.
7824         * m4/asin.m4: New file.
7825         * modules/asin (Files): Add it.
7826         (configure.ac): Just invoke gl_FUNC_ASIN.
7827
7828 2011-10-08  Bruno Haible  <bruno@clisp.org>
7829
7830         Tests for module 'tanf'.
7831         * modules/tanf-tests: New file.
7832         * tests/test-tanf.c: New file.
7833
7834         New module 'tanf'.
7835         * lib/math.in.h (tanf): New declaration.
7836         * lib/tanf.c: New file.
7837         * m4/tanf.m4: New file.
7838         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7840         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7841         * modules/tanf: New file.
7842         * tests/test-math-c++.cc: Check the declaration of tanf.
7843         * doc/posix-functions/tanf.texi: Mention the new module.
7844
7845         tan: Use a .m4 file.
7846         * m4/tan.m4: New file.
7847         * modules/tan (Files): Add it.
7848         (configure.ac): Just invoke gl_FUNC_TAN.
7849
7850 2011-10-08  Bruno Haible  <bruno@clisp.org>
7851
7852         Tests for module 'cosf'.
7853         * modules/cosf-tests: New file.
7854         * tests/test-cosf.c: New file.
7855
7856         New module 'cosf'.
7857         * lib/math.in.h (cosf): New declaration.
7858         * lib/cosf.c: New file.
7859         * m4/cosf.m4: New file.
7860         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7862         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7863         * modules/cosf: New file.
7864         * tests/test-math-c++.cc: Check the declaration of cosf.
7865         * doc/posix-functions/cosf.texi: Mention the new module.
7866
7867         cos: Use a .m4 file.
7868         * m4/cos.m4: New file.
7869         * modules/cos (Files): Add it.
7870         (configure.ac): Just invoke gl_FUNC_COS.
7871
7872 2011-10-08  Bruno Haible  <bruno@clisp.org>
7873
7874         Tests for module 'sinf'.
7875         * modules/sinf-tests: New file.
7876         * tests/test-sinf.c: New file.
7877
7878         New module 'sinf'.
7879         * lib/math.in.h (sinf): New declaration.
7880         * lib/sinf.c: New file.
7881         * m4/sinf.m4: New file.
7882         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7884         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7885         * modules/sinf: New file.
7886         * tests/test-math-c++.cc: Check the declaration of sinf.
7887         * doc/posix-functions/sinf.texi: Mention the new module.
7888
7889         sin: Use a .m4 file.
7890         * m4/sin.m4: New file.
7891         * modules/sin (Files): Add it.
7892         (configure.ac): Just invoke gl_FUNC_SIN.
7893
7894 2011-10-08  Bruno Haible  <bruno@clisp.org>
7895
7896         Tests for module 'powf'.
7897         * modules/powf-tests: New file.
7898         * tests/test-powf.c: New file.
7899
7900         New module 'powf'.
7901         * lib/math.in.h (powf): New declaration.
7902         * lib/powf.c: New file.
7903         * m4/powf.m4: New file.
7904         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7906         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7907         * modules/powf: New file.
7908         * tests/test-math-c++.cc: Check the declaration of powf.
7909         * doc/posix-functions/powf.texi: Mention the new module.
7910
7911         pow: Use a .m4 file.
7912         * m4/pow.m4: New file.
7913         * modules/pow (Files): Add it.
7914         (configure.ac): Just invoke gl_FUNC_POW.
7915
7916 2011-10-08  Bruno Haible  <bruno@clisp.org>
7917
7918         Tests for module 'log10f'.
7919         * modules/log10f-tests: New file.
7920         * tests/test-log10f.c: New file.
7921
7922         New module 'log10f'.
7923         * lib/math.in.h (log10f): New declaration.
7924         * lib/log10f.c: New file.
7925         * m4/log10f.m4: New file.
7926         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7928         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7929         * modules/log10f: New file.
7930         * tests/test-math-c++.cc: Check the declaration of log10f.
7931         * doc/posix-functions/log10f.texi: Mention the new module.
7932
7933         log10: Use a .m4 file.
7934         * m4/log10.m4: New file.
7935         * modules/log10 (Files): Add it.
7936         (configure.ac): Just invoke gl_FUNC_LOG10.
7937
7938 2011-10-08  Bruno Haible  <bruno@clisp.org>
7939
7940         Tests for module 'logf'.
7941         * modules/logf-tests: New file.
7942         * tests/test-logf.c: New file.
7943
7944         New module 'logf'.
7945         * lib/math.in.h (logf): New declaration.
7946         * lib/logf.c: New file.
7947         * m4/logf.m4: New file.
7948         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7950         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7951         * modules/logf: New file.
7952         * tests/test-math-c++.cc: Check the declaration of logf.
7953         * doc/posix-functions/logf.texi: Mention the new module.
7954
7955         log: Use a .m4 file.
7956         * m4/log.m4: New file.
7957         * modules/log (Files): Add it.
7958         (configure.ac): Just invoke gl_FUNC_LOG.
7959
7960 2011-10-08  Bruno Haible  <bruno@clisp.org>
7961
7962         Tests for module 'expf'.
7963         * modules/expf-tests: New file.
7964         * tests/test-expf.c: New file.
7965
7966         New module 'expf'.
7967         * lib/math.in.h (expf): New declaration.
7968         * lib/expf.c: New file.
7969         * m4/expf.m4: New file.
7970         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7972         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7973         * modules/expf: New file.
7974         * tests/test-math-c++.cc: Check the declaration of expf.
7975         * doc/posix-functions/expf.texi: Mention the new module.
7976
7977         exp: Use a .m4 file.
7978         * m4/exp.m4: New file.
7979         * modules/exp (Files): Add it.
7980         (configure.ac): Just invoke gl_FUNC_EXP.
7981
7982 2011-10-08  Bruno Haible  <bruno@clisp.org>
7983
7984         Tests for module 'sqrtf'.
7985         * modules/sqrtf-tests: New file.
7986         * tests/test-sqrtf.c: New file.
7987
7988         New module 'sqrtf'.
7989         * lib/math.in.h (sqrtf): New declaration.
7990         * lib/sqrtf.c: New file.
7991         * m4/sqrtf.m4: New file.
7992         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7994         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7995         * modules/sqrtf: New file.
7996         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7997         * doc/posix-functions/sqrtf.texi: Mention the new module.
7998
7999 2011-10-08  Bruno Haible  <bruno@clisp.org>
8000
8001         Tests: Avoid link failures w.r.t. libintl.
8002         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8003         $(LIBINTL).
8004         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8005         $(LIBINTL).
8006         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8007         against $(LIBINTL).
8008         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8009         $(LIBINTL).
8010         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8011         $(LIBINTL).
8012         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8013
8014 2011-10-08  Bruno Haible  <bruno@clisp.org>
8015
8016         pow tests: Defeat compiler optimizations.
8017         * tests/test-pow.c (main): Assign arguments to x and y before use.
8018
8019 2011-10-08  Bruno Haible  <bruno@clisp.org>
8020
8021         gnulib-tool: Improve last commit.
8022         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8023         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8024         ignore dependencies that are not among the modules list.
8025
8026 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8027
8028         gnulib-tool: don't follow dependencies to avoided modules
8029         This fixes a bug that is related to the previous one.
8030         * gnulib-tool (func_modules_transitive_closure)
8031         (func_emit_autoconf_snippets):
8032         Check whether a dependency is acceptable before using it.
8033         (--extract-dependencies): Report an error if --avoid is also used,
8034         since this combination of options is not yet supported.
8035
8036         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8037         Problem reported by Peter Dyballa in
8038         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8039         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8040         when echoing "$condition".
8041
8042 2011-10-07  Bruno Haible  <bruno@clisp.org>
8043
8044         Fix documentation about math functions on MacOS X.
8045         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8046         MacOS X 10.5.
8047         * doc/posix-functions/fdim.texi: Likewise.
8048         * doc/posix-functions/feclearexcept.texi: Likewise.
8049         * doc/posix-functions/fegetenv.texi: Likewise.
8050         * doc/posix-functions/fegetround.texi: Likewise.
8051         * doc/posix-functions/feholdexcept.texi: Likewise.
8052         * doc/posix-functions/feraiseexcept.texi: Likewise.
8053         * doc/posix-functions/fesetenv.texi: Likewise.
8054         * doc/posix-functions/fesetround.texi: Likewise.
8055         * doc/posix-functions/fetestexcept.texi: Likewise.
8056         * doc/posix-functions/feupdateenv.texi: Likewise.
8057         * doc/posix-functions/fmax.texi: Likewise.
8058         * doc/posix-functions/fmin.texi: Likewise.
8059         * doc/posix-functions/log2.texi: Likewise.
8060         * doc/posix-functions/modff.texi: Likewise.
8061         * doc/posix-functions/nan.texi: Likewise.
8062         * doc/posix-functions/nanf.texi: Likewise.
8063         * doc/posix-functions/nextafterf.texi: Likewise.
8064         * doc/posix-functions/remquo.texi: Likewise.
8065
8066 2011-10-07  Bruno Haible  <bruno@clisp.org>
8067
8068         modff: Drop assumption about library that defines modff.
8069         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8070         AC_CHECK_FUNCS.
8071         * modules/modff (Files): Add m4/mathfunc.m4.
8072
8073 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8074
8075         raise tests: Avoid a GCC warning.
8076         * tests/test-raise.c (handler): Use _Noreturn.
8077
8078 2011-10-07  Bruno Haible  <bruno@clisp.org>
8079
8080         Tests for module 'ldexpf'.
8081         * modules/ldexpf-tests: New file.
8082         * tests/test-ldexpf.c: New file.
8083
8084         New module 'ldexpf'.
8085         * lib/math.in.h (ldexpf): New declaration.
8086         * lib/ldexpf.c: New file.
8087         * m4/ldexpf.m4: New file.
8088         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8090         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8091         * modules/ldexpf: New file.
8092         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8093         * doc/posix-functions/ldexpf.texi: Mention the new module.
8094
8095 2011-10-06  Bruno Haible  <bruno@clisp.org>
8096
8097         frexpf: Work around problems on IRIX and mingw.
8098         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8100         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8101         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8102         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8103         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8104         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8105
8106 2011-10-06  Bruno Haible  <bruno@clisp.org>
8107
8108         fabsf: Drop assumption about library that defines fabsf.
8109         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8110         AC_CHECK_FUNCS.
8111         * modules/fabsf (Files): Add m4/mathfunc.m4.
8112
8113 2011-10-06  Bruno Haible  <bruno@clisp.org>
8114
8115         frexpf: Drop assumption about library that defines frexpf.
8116         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8117         'int *', 'float *', 'long double *', 'float', 'long double'.
8118         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8119         AC_CHECK_FUNCS.
8120         * modules/frexpf (Files): Add m4/mathfunc.m4.
8121
8122         Tests for module 'frexpf'.
8123         * modules/frexpf-tests: New file.
8124         * tests/test-frexpf.c: New file.
8125
8126         New module 'frexpf'.
8127         * lib/math.in.h (frexpf): New declaration.
8128         * lib/frexpf.c: New file.
8129         * m4/frexpf.m4: New file.
8130         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8132         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8133         * modules/frexpf: New file.
8134         * tests/test-math-c++.cc: Check the declaration of frexpf.
8135         * doc/posix-functions/frexpf.texi: Mention the new module.
8136
8137 2011-10-06  Bruno Haible  <bruno@clisp.org>
8138
8139         math: Sort function declarations of math.in.h.
8140         * lib/math.in.h (frexp, logb): Move declarations.
8141
8142 2011-10-05  Bruno Haible  <bruno@clisp.org>
8143
8144         Tests for module 'modff'.
8145         * modules/modff-tests: New file.
8146         * tests/test-modff.c: New file.
8147
8148         New module 'modff'.
8149         * lib/math.in.h (modff): New declaration.
8150         * lib/modff.c: New file.
8151         * m4/modff.m4: New file.
8152         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8154         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8155         * modules/modff: New file.
8156         * tests/test-math-c++.cc: Check the declaration of modff.
8157         * doc/posix-functions/modff.texi: Mention the new module.
8158
8159         modf tests: Make test sharper.
8160         * tests/test-modf.c (main): Strengthen upper bound.
8161
8162         modf: Use a .m4 file.
8163         * m4/modf.m4: New file.
8164         * modules/modf (Files): Add it.
8165         (configure.ac): Just invoke gl_FUNC_MODF.
8166
8167 2011-10-05  Bruno Haible  <bruno@clisp.org>
8168
8169         Tests for module 'fmodf'.
8170         * modules/fmodf-tests: New file.
8171         * tests/test-fmodf.c: New file.
8172
8173         New module 'fmodf'.
8174         * lib/math.in.h (fmodf): New declaration.
8175         * lib/fmodf.c: New file.
8176         * m4/fmodf.m4: New file.
8177         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8179         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8180         * modules/fmodf: New file.
8181         * tests/test-math-c++.cc: Check the declaration of fmodf.
8182         * doc/posix-functions/fmodf.texi: Mention the new module.
8183
8184         fmod: Use a .m4 file.
8185         * m4/fmod.m4: New file.
8186         * modules/fmod (Files): Add it.
8187         (configure.ac): Just invoke gl_FUNC_FMOD.
8188
8189 2011-10-05  Bruno Haible  <bruno@clisp.org>
8190
8191         Tests for module 'fabsf'.
8192         * modules/fabsf-tests: New file.
8193         * tests/test-fabsf.c: New file.
8194
8195         New module 'fabsf'.
8196         * lib/math.in.h (fabsf): New declaration.
8197         * lib/fabsf.c: New file.
8198         * m4/fabsf.m4: New file.
8199         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8201         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8202         * modules/fabsf: New file.
8203         * tests/test-math-c++.cc: Check the declaration of fabsf.
8204         * doc/posix-functions/fabsf.texi: Mention the new module.
8205
8206         fabs: Use a .m4 file.
8207         * m4/fabs.m4: New file.
8208         * modules/fabs (Files): Add it.
8209         (configure.ac): Just invoke gl_FUNC_FABS.
8210
8211 2011-10-05  Jim Meyering  <meyering@redhat.com>
8212
8213         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8214         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8215         ls -lL regression introduced in coreutils-8.12, it does so at the
8216         cost of an additional stat call in the common case.  Besides, now
8217         that the kernel change that prompted commit 95f7c57f has been reverted
8218         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8219         we have no use for commit 95f7c57f, "file-has-acl: use
8220         acl_extended_file_nofollow if available".
8221
8222 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8223
8224         file-has-acl: revert unintended change in behavior of ls -L
8225         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8226         derived from...
8227         (file_has_acl): ...code here.  Call it.
8228         This problem was introduced with 2011-07-22 commit 95f7c57f,
8229         "file-has-acl: use acl_extended_file_nofollow if available".
8230         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8231
8232 2011-10-03  Bruno Haible  <bruno@clisp.org>
8233
8234         poll: Avoid link errors on MSVC.
8235         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8236         * modules/poll (Depends-on): Add sockets.
8237         (Link): New section.
8238         * NEWS: Mention the change.
8239         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8240         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8241         $(LIB_POLL) instead of $(LIBSOCKET).
8242
8243 2011-10-03  Bruno Haible  <bruno@clisp.org>
8244
8245         sys_select tests: Fix link error on MSVC 9.
8246         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8247         with $(LIB_SELECT) instead of $(LIBSOCKET).
8248
8249 2011-10-03  Bruno Haible  <bruno@clisp.org>
8250
8251         sys_select: Fix compilation error on mingw.
8252         * lib/sys_select.in.h: On native Windows, include <io.h>.
8253
8254 2011-10-03  Bruno Haible  <bruno@clisp.org>
8255
8256         wmemset: Support for MSVC.
8257         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8258         whether wmemset() exists.
8259
8260 2011-10-03  Bruno Haible  <bruno@clisp.org>
8261
8262         wmemmove: Support for MSVC.
8263         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8264         whether wmemmove() exists.
8265
8266 2011-10-03  Bruno Haible  <bruno@clisp.org>
8267
8268         wmemcpy: Support for MSVC.
8269         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8270         whether wmemcpy() exists.
8271
8272 2011-10-03  Bruno Haible  <bruno@clisp.org>
8273
8274         wmemcmp: Support for MSVC.
8275         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8276         whether wmemcmp() exists.
8277
8278 2011-10-03  Bruno Haible  <bruno@clisp.org>
8279
8280         wmemchr: Support for MSVC.
8281         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8282         whether wmemchr() exists.
8283
8284 2011-10-03  Bruno Haible  <bruno@clisp.org>
8285
8286         glthread/*, strsignal: Support for MSVC.
8287         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8288         including <winsock.h> on MSVC 9.
8289         * lib/glthread/lock.h: Likewise.
8290         * lib/glthread/thread.h: Likewise.
8291         * lib/glthread/tls.h: Likewise.
8292         * lib/glthread/yield.h: Likewise.
8293         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8294         if HAVE_UNISTD_H is false.
8295         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8296
8297 2011-10-03  Bruno Haible  <bruno@clisp.org>
8298
8299         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8300         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8301         Set to 100000.
8302
8303 2011-10-03  Bruno Haible  <bruno@clisp.org>
8304
8305         acl: Fix specification.
8306         * lib/file-has-acl.c (file_has_acl): Fix specification.
8307
8308 2011-10-03  Bruno Haible  <bruno@clisp.org>
8309
8310         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8311         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8312         (compute_curr_prefix, shared_library_fullname,
8313         find_shared_library_fullname, get_shared_library_fullname, relocate):
8314         Use it together with PIC && INSTALLDIR.
8315         Reported by <jojelino@gmail.com>
8316         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8317
8318 2011-10-01  Jim Meyering  <meyering@redhat.com>
8319
8320         maint.mk: adjust a release-related rule not to require use of gzip
8321         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8322         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8323         projects that build only .tar.xz files.  Also fix an erroneous test.
8324
8325         test-linkat: don't leave behind a temporary file
8326         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8327         Otherwise, coreutils' "make distcheck" would fail with this:
8328           Only in /c/cu/tests/torture/coreutils/test/\
8329             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8330           make[2]: *** [my-distcheck] Error 1
8331
8332         float, math: add omitted file
8333         * lib/itold.c: Add file, required for yesterday's float change.
8334
8335 2011-10-01  Bruno Haible  <bruno@clisp.org>
8336
8337         isinf: Fix for OpenBSD/x86.
8338         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8339         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8340         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8341
8342 2011-10-01  Bruno Haible  <bruno@clisp.org>
8343
8344         isfinite: Fix syntax error in configure test.
8345         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8346
8347         isfinite: Fix typo.
8348         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8349         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8350
8351 2011-10-01  Bruno Haible  <bruno@clisp.org>
8352
8353         nonblocking tests: Fix test failure on Linux/IA-64.
8354         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8355         Set to 270000.
8356
8357 2011-10-01  Bruno Haible  <bruno@clisp.org>
8358
8359         mkfifoat tests: Fix a test failure on mingw.
8360         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8361         with error ENOSYS.
8362
8363 2011-09-30  Bruno Haible  <bruno@clisp.org>
8364
8365         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8366         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8367         'long double'. Set REPLACE_ITOLD.
8368         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8369         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8370         * lib/itold.c: New file.
8371         * modules/float (Files): Add lib/itold.c.
8372         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8373         (Makefile.am): Substitute REPLACE_ITOLD.
8374         * modules/math (Depends-on): Add float.
8375         (Makefile.am): Substitute REPLACE_ITOLD.
8376         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8377         * doc/posix-headers/math.texi: Likewise.
8378         * doc/posix-functions/logl.texi: Likewise.
8379
8380 2011-09-30  Bruno Haible  <bruno@clisp.org>
8381
8382         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8383         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8384         Set to 140000.
8385
8386 2011-09-30  Bruno Haible  <bruno@clisp.org>
8387
8388         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8389         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8390         invocation, say "right after AC_PROG_CC_STDC", not "right after
8391         AC_PROG_CC".
8392         Reported by Gary V. Vaughan <gary@gnu.org>.
8393
8394 2011-09-30  Bruno Haible  <bruno@clisp.org>
8395
8396         Centralize C99 requirement.
8397         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8398         * modules/stdarg (configure.ac-early): Invoke it instead of
8399         AC_PROG_CC_STDC.
8400         Reported by Gary V. Vaughan and Paul Eggert.
8401
8402 2011-09-29  Bruno Haible  <bruno@clisp.org>
8403
8404         float: Fix LDBL_MAX value on Linux/PowerPC.
8405         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8406         on Linux/PowerPC.
8407         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8408         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8409         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8410         platform.
8411         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8412
8413 2011-09-29  Bruno Haible  <bruno@clisp.org>
8414
8415         doc: Improve doc about gl_EARLY.
8416         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8417         AC_PROG_CC_STDC invocation.
8418         Reported by Gary V. Vaughan <gary@gnu.org>.
8419
8420 2011-09-28  Bruno Haible  <bruno@clisp.org>
8421
8422         fgetc, fputc, fread, fwrite tests: Fix link error.
8423         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8424         on non-MSVC platforms.
8425         * tests/test-fputc.c (main): Likewise.
8426         * tests/test-fread.c (main): Likewise.
8427         * tests/test-fwrite.c (main): Likewise.
8428         Reported by Jim Meyering.
8429
8430 2011-09-27  Bruno Haible  <bruno@clisp.org>
8431
8432         fputc, fwrite tests: Avoid test failure on MSVC.
8433         * tests/test-fgetc.c: Include msvc-inval.h.
8434         (main): Invoke gl_msvc_inval_ensure_handler.
8435         * tests/test-fputc.c: Include msvc-inval.h.
8436         (main): Invoke gl_msvc_inval_ensure_handler.
8437         * tests/test-fread.c: Include msvc-inval.h.
8438         (main): Invoke gl_msvc_inval_ensure_handler.
8439         * tests/test-fwrite.c: Include msvc-inval.h.
8440         (main): Invoke gl_msvc_inval_ensure_handler.
8441         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8442         * modules/fputc-tests (Depends-on): Likewise.
8443         * modules/fread-tests (Depends-on): Likewise.
8444         * modules/fwrite-tests (Depends-on): Likewise.
8445
8446 2011-09-27  Bruno Haible  <bruno@clisp.org>
8447
8448         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8449         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8450         (raise): Remove older, duplicated declaration.
8451         (_gl_raise_SIGPIPE): New declaration.
8452         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8453         (rpl_raise): Remove function.
8454         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8455         a gnulib-defined SIGPIPE here.
8456         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8457         'sigprocmask' has detected missing signal-blocking and the module
8458         'sigpipe' is enabled.
8459         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8460
8461 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8462
8463         base64-tests: avoid memory leak
8464         * tests/test-base64.c (main): Plug memory leak.
8465
8466         base32: new module
8467         * modules/base32: New module.
8468         * lib/base32.c: New file.
8469         * lib/base32.h: Likewise.
8470         * m4/base32.m4: Likewise.
8471         * modules/base32-tests: New test.
8472         * tests/test-base32.c: Likewise.
8473         * MODULES.html.sh (Misc): Mention it.
8474
8475 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8476
8477         gnulib: use more-standard license notice wording
8478         * gnulib-tool (func_emit_copyright_notice): When emitting a
8479         license notice into a file, use the standard wording as suggested
8480         by the current information for GNU maintainers, except say "file"
8481         rather than "program".  The new wording gives a license version
8482         number, which addresses an issue raised by Glenn Morris in
8483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8484         * m4/onceonly.m4: Use that same wording here, too.
8485
8486         dup2: minor simplification
8487         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8488         as lib/dup2.c no longer uses 'inline'.
8489
8490 2011-09-25  Bruno Haible  <bruno@clisp.org>
8491
8492         strings: Fix compilation error on MSVC.
8493         * lib/strings.in.h: Include <stddef.h> for size_t.
8494
8495 2011-09-25  Bruno Haible  <bruno@clisp.org>
8496
8497         fflush et al.: Document limitation on MSVC.
8498         * doc/posix-functions/fflush.texi: Document possible crash in handling
8499         mode other than DEFAULT_HANDLING.
8500         * doc/posix-functions/fgetc.texi: Likewise.
8501         * doc/posix-functions/fputc.texi: Likewise.
8502         * doc/posix-functions/fread.texi: Likewise.
8503         * doc/posix-functions/fwrite.texi: Likewise.
8504
8505 2011-09-25  Bruno Haible  <bruno@clisp.org>
8506
8507         msvc-inval: Allow three invalid parameter handling modes.
8508         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8509         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8510         macros.
8511         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8512         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8513         SANE_LIBRARY_HANDLING as a no-op.
8514         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8515         <stdlib.h>.
8516         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8517
8518 2011-09-25  Bruno Haible  <bruno@clisp.org>
8519
8520         msvc-inval: Make handler multithread-safe.
8521         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8522         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8523         declarations.
8524         (gl_msvc_inval_current): New declaration.
8525         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8526         Operate on the structure returned by gl_msvc_inval_current().
8527         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8528         Remove varaiables.
8529         (tls_index, tls_initialized): New variables.
8530         (not_per_thread): New variable.
8531         (gl_msvc_inval_current): New function.
8532         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8533         returned by gl_msvc_inval_current().
8534
8535 2011-09-25  Bruno Haible  <bruno@clisp.org>
8536
8537         msvc-inval: Install handler globally.
8538         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8539         !_MSC_VER.
8540         (gl_msvc_invalid_parameter_handler): Remove declaration.
8541         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8542         declarations.
8543         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8544         Install the handler globally, don't uninstall it.
8545         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8546         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8547         currently valid, call RaiseException instead.
8548         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8549         for !_MSC_VER.
8550
8551 2011-09-25  Bruno Haible  <bruno@clisp.org>
8552
8553         strerror_r-posix: Fix for MSVC 9.
8554         * lib/strerror_r.c (local_snprintf): New function.
8555         (snprintf): Define to local_snprintf, not to _snprintf.
8556
8557 2011-09-25  Bruno Haible  <bruno@clisp.org>
8558
8559         ftruncate: Support for MSVC 9.
8560         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8561         (chsize_nothrow): New function.
8562         (chsize): Redefine as a macro.
8563         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8564         * modules/ftruncate (Depends-on): Add msvc-inval.
8565
8566 2011-09-25  Bruno Haible  <bruno@clisp.org>
8567
8568         New module 'fstat'.
8569         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8570         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8571         * lib/fchdir.c (rpl_fstat): Remove function.
8572         * m4/fstat.m4: New file.
8573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8574         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8575         declared.
8576         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8577         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8578         * modules/fstat: New file.
8579         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8580         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8581         is set.
8582         * doc/posix-functions/fstat.texi: Mention the new module and the
8583         problem on MSVC.
8584         * NEWS: Mention the change.
8585         * modules/acl (Depends-on): Add fstat.
8586         * modules/chdir-safer (Depends-on): Likewise.
8587         * modules/chown (Depends-on): Likewise.
8588         * modules/copy-file (Depends-on): Likewise.
8589         * modules/fchdir (Depends-on): Likewise.
8590         * modules/fdopendir (Depends-on): Likewise.
8591         * modules/fopen (Depends-on): Likewise.
8592         * modules/fts (Depends-on): Likewise.
8593         * modules/getcwd (Depends-on): Likewise.
8594         * modules/isapipe (Depends-on): Likewise.
8595         * modules/linkat (Depends-on): Likewise.
8596         * modules/lseek (Depends-on): Likewise.
8597         * modules/mkdir-p (Depends-on): Likewise.
8598         * modules/open (Depends-on): Likewise.
8599         * modules/openat (Depends-on): Likewise.
8600         * modules/read-file (Depends-on): Likewise.
8601         * modules/renameat (Depends-on): Likewise.
8602         * modules/utimens (Depends-on): Likewise.
8603
8604 2011-09-25  Bruno Haible  <bruno@clisp.org>
8605
8606         linkat: Fix compilation on MSVC 9.
8607         * lib/linkat.c: Don't include <stdint.h>.
8608
8609 2011-09-25  Bruno Haible  <bruno@clisp.org>
8610
8611         fclose: Support for MSVC 9.
8612         * lib/fclose.c: Include msvc-inval.h.
8613         (fclose_nothrow): New function.
8614         (rpl_fclose): Use it.
8615         * modules/fclose (Depends-on): Add msvc-inval.
8616         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8617
8618 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8619
8620         dup2: minor simplifications
8621         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8622         that it's a performance win.
8623         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8624         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8625
8626 2011-09-24  Jim Meyering  <meyering@redhat.com>
8627
8628         test-futimens: avoid a warning from gcc -Wshadow
8629         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8630         to avoid a shadowing warning.
8631
8632 2011-09-24  Bruno Haible  <bruno@clisp.org>
8633
8634         fdopen: Support for MSVC 9.
8635         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8636         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8637         * lib/fdopen.c: Include msvc-inval.h.
8638         (fdopen_nothrow): New function.
8639         (rpl_fdopen): Use it.
8640         * modules/fdopen (Depends-on): Add msvc-inval.
8641         * modules/fclose-tests (Depends-on): Add fdopen.
8642         * modules/fflush-tests (Depends-on): Likewise.
8643         * modules/fgetc-tests (Depends-on): Likewise.
8644         * modules/fputc-tests (Depends-on): Likewise.
8645         * modules/fread-tests (Depends-on): Likewise.
8646         * modules/freopen-tests (Depends-on): Likewise.
8647         * modules/fseeko-tests (Depends-on): Likewise.
8648         * modules/ftello-tests (Depends-on): Likewise.
8649         * modules/fwrite-tests  (Depends-on): Likewise.
8650         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8651
8652 2011-09-24  Bruno Haible  <bruno@clisp.org>
8653
8654         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8655         * modules/fgetc-tests (Depends-on): Add unistd.
8656         * modules/fputc-tests (Depends-on): Likewise.
8657         * modules/fread-tests (Depends-on): Likewise.
8658         * modules/fwrite-tests (Depends-on): Likewise.
8659
8660 2011-09-24  Bruno Haible  <bruno@clisp.org>
8661
8662         dup: Simplify autoconf test.
8663         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8664         on gl_MSVC_INVAL's result.
8665
8666 2011-09-24  Bruno Haible  <bruno@clisp.org>
8667
8668         Tests for function fwrite().
8669         * modules/fwrite-tests: New file.
8670         * tests/test-fwrite.c: New file.
8671         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8672
8673         Tests for function fread().
8674         * modules/fread-tests: New file.
8675         * tests/test-fread.c: New file.
8676         * modules/stdio-tests (Depends-on): Add fread-tests.
8677
8678         Activate fputc tests.
8679         * modules/stdio-tests (Depends-on): Add fputc-tests.
8680
8681         Enhance fgetc, fputc tests.
8682         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8683         * tests/test-fputc.c (main): Likewise.
8684
8685 2011-09-24  Bruno Haible  <bruno@clisp.org>
8686
8687         write: Support for MSVC 9.
8688         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8689         is not 1.
8690         * lib/write.c (write_nothrow): New function.
8691         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8692         not 1. Use write_nothrow.
8693         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8694         invalid parameter handler.
8695         (gl_PREREQ_WRITE): New macro.
8696         * modules/write (Depends-on): Add msvc-inval.
8697         (configure.ac): Invoke gl_PREREQ_WRITE.
8698         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8699
8700 2011-09-24  Bruno Haible  <bruno@clisp.org>
8701
8702         read: Fix last commit.
8703         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8704
8705 2011-09-24  Bruno Haible  <bruno@clisp.org>
8706
8707         dup2: Fix last commit.
8708         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8709         (rpl_dup2): Disable fcntl workaround on native Windows.
8710
8711         sigprocmask: Make code safer.
8712         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8713         section that changes macro definitions for this compilation unit.
8714
8715 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8716
8717         dup2: clarify by coalescing Windows-specific material
8718         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8719         "msvc-nothrow.h"' to the Windows-specific section, so that the
8720         Emacs source need not contain these include files.
8721         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8722         Windows-specific fixes into this function rather than just the
8723         nothrow fix, as this shortens and clarifies the code.  Always
8724         define as a function, as that's a bit cleaner than having it be
8725         sometimes a function and sometimes a macro.
8726         (rpl_dup2): Move the Windows-specific stuff out of here and into
8727         ms_windows_dup2.  Don't protect the Haiku-related fix with
8728         "#if !defined __linux__", as the same code also works around
8729         a Linux kernel bug, and it doesn't add any system calls on any
8730         platform.  Add comment about FreeBSD 6.1.
8731
8732         sigprocmask: move #include directive
8733         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8734         Windows-specific section, so that the Emacs source need not
8735         contain msvc-inval.h.
8736
8737 2011-09-23  Bruno Haible  <bruno@clisp.org>
8738
8739         read: Support for MSVC 9.
8740         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8741         is not 1.
8742         * lib/read.c (read_nothrow): New function.
8743         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8744         read_nothrow.
8745         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8746         invalid parameter handler.
8747         (gl_PREREQ_READ): New macro.
8748         * modules/read (Depends-on): Add msvc-inval.
8749         (configure.ac): Invoke gl_PREREQ_READ.
8750         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8751
8752 2011-09-23  Bruno Haible  <bruno@clisp.org>
8753
8754         close: Support for MSVC 9.
8755         * lib/close.c: Include <errno.h>, msvc-inval.h.
8756         (close_nothrow): New function.
8757         (rpl_close): Use it.
8758         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8759         invalid parameter handler.
8760         * modules/close (Depends-on): Add msvc-inval.
8761         * modules/dup2-tests (Depends-on): Add close.
8762         * modules/dup3-tests (Depends-on): Likewise.
8763         * modules/fcntl-tests (Depends-on): Likewise.
8764         * modules/spawn-pipe-tests (Depends-on): Likewise.
8765         * modules/unistd-safer-tests (Depends-on): Likewise.
8766         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8767
8768 2011-09-23  Bruno Haible  <bruno@clisp.org>
8769
8770         New module 'dup'.
8771         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8772         Allow replacement.
8773         * lib/dup.c: New file.
8774         * lib/fchdir.c (rpl_dup): Remove function.
8775         * m4/dup.m4: New file.
8776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8777         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8778         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8779         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8780         * modules/dup: New file.
8781         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8782         'dup' module is in use.
8783         * modules/fdopendir (Depends-on): Add dup.
8784         * modules/fdutimensat-tests (Depends-on): Likewise.
8785         * modules/fts (Depends-on): Likewise.
8786         * modules/futimens-tests (Depends-on): Likewise.
8787         * modules/posix_spawnp-tests (Depends-on): Likewise.
8788         * modules/unistd-safer-tests (Depends-on): Likewise.
8789         * modules/utimens-tests (Depends-on): Likewise.
8790         * doc/posix-functions/dup.texi: Mention the new module and the problem
8791         on MSVC.
8792
8793 2011-09-23  Bruno Haible  <bruno@clisp.org>
8794
8795         getdtablesize: Support for MSVC 9.
8796         * lib/getdtablesize.c: Include msvc-inval.h.
8797         (_setmaxstdio_nothrow): New function.
8798         (_setmaxstdio): Redefine it.
8799         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8800         * modules/getdtablesize (Depends-on): Add msvc-inval.
8801         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8802
8803 2011-09-23  Bruno Haible  <bruno@clisp.org>
8804
8805         signal-h: Rename from signal.
8806         * modules/signal-h: Renamed from modules/signal.
8807         * modules/pthread_sigmask (Depends-on): Update.
8808         * modules/raise (Depends-on): Likewise.
8809         * modules/sigaction (Depends-on): Likewise.
8810         * modules/sigpipe (Depends-on): Likewise.
8811         * modules/sigprocmask (Depends-on): Likewise.
8812         * modules/sys_select (Depends-on): Likewise.
8813         * modules/signal-h-tests: Renamed from modules/signal-tests.
8814         (Files, Depends-on, Makefile.am): Update.
8815         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8816         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8817         (Files, Makefile.am): Update.
8818         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8819         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8820         * modules/signal: New placeholder file.
8821         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8822         * doc/posix-headers/signal.texi: Update.
8823         * NEWS: Mention the change.
8824
8825 2011-09-23  Bruno Haible  <bruno@clisp.org>
8826
8827         sigprocmask: Avoid crashes through signal() on MSVC 9.
8828         * lib/sigprocmask.c: Include msvc-inval.h.
8829         (signal_nothrow): New function.
8830         (signal): Redefine it.
8831         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8832         * modules/sigprocmask (Depends-on): Add msvc-inval.
8833         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8834
8835 2011-09-23  Bruno Haible  <bruno@clisp.org>
8836
8837         Tests for module 'raise'.
8838         * modules/raise-tests: New file.
8839         * tests/test-raise.c: New file.
8840
8841         raise: Support for MSVC.
8842         * lib/signal.in.h (raise): New declaration.
8843         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8844         for native Windows platforms.
8845         * m4/raise.m4: New file.
8846         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8847         HAVE_RAISE, REPLACE_RAISE.
8848         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8849         REPLACE_RAISE.
8850         * modules/raise (Status, Notice): Remove fields.
8851         (Files): Add m4/raise.m4.
8852         (Depends-on): Add signal, msvc-inval.
8853         (configure.ac): Use the common idioms.
8854         (Maintainer): Add me.
8855         * tests/test-signal-c++.cc: Check the signature of raise.
8856         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8857
8858 2011-09-23  Bruno Haible  <bruno@clisp.org>
8859
8860         pipe2: Fix compilation on pre-C99 compilers.
8861         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8862
8863 2011-09-23  Bruno Haible  <bruno@clisp.org>
8864
8865         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8866         * lib/msvc-nothrow.h: New file.
8867         * lib/msvc-nothrow.c: New file.
8868         * m4/msvc-nothrow.m4: New file.
8869         * modules/msvc-nothrow: New file.
8870         * lib/dup2.c: Include msvc-nothrow.h.
8871         (rpl_dup2): No need to protect _get_osfhandle call here.
8872         * lib/accept4.c: Include msvc-nothrow.h.
8873         * lib/error.c: Likewise.
8874         * lib/fcntl.c: Likewise.
8875         * lib/lseek.c: Likewise.
8876         * lib/nonblocking.c: Likewise.
8877         * lib/poll.c: Likewise.
8878         * lib/read.c: Likewise.
8879         * lib/select.c: Likewise.
8880         * lib/sockets.h: Likewise.
8881         * lib/sockets.c: Likewise.
8882         * lib/stdio-read.c: Likewise.
8883         * lib/stdio-write.c: Likewise.
8884         * lib/write.c: Likewise.
8885         * lib/w32sock.h: Likewise.
8886         * lib/w32spawn.h: Likewise.
8887         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8888         * lib/fsync.c: Likewise.
8889         * lib/isapipe.c: Likewise.
8890         * modules/dup2 (Depends-on): Add msvc-nothrow.
8891         * modules/accept4 (Depends-on): Likewise.
8892         * modules/error (Depends-on): Likewise.
8893         * modules/fcntl (Depends-on): Likewise.
8894         * modules/lseek (Depends-on): Likewise.
8895         * modules/nonblocking (Depends-on): Likewise.
8896         * modules/poll (Depends-on): Likewise.
8897         * modules/read (Depends-on): Likewise.
8898         * modules/select (Depends-on): Likewise.
8899         * modules/sockets (Depends-on): Likewise.
8900         * modules/sigpipe (Depends-on): Likewise.
8901         * modules/write (Depends-on): Likewise.
8902         * modules/accept (Depends-on): Likewise.
8903         * modules/bind (Depends-on): Likewise.
8904         * modules/connect (Depends-on): Likewise.
8905         * modules/gethostname (Depends-on): Likewise.
8906         * modules/getpeername (Depends-on): Likewise.
8907         * modules/getsockname (Depends-on): Likewise.
8908         * modules/getsockopt (Depends-on): Likewise.
8909         * modules/ioctl (Depends-on): Likewise.
8910         * modules/listen (Depends-on): Likewise.
8911         * modules/recv (Depends-on): Likewise.
8912         * modules/recvfrom (Depends-on): Likewise.
8913         * modules/send (Depends-on): Likewise.
8914         * modules/sendto (Depends-on): Likewise.
8915         * modules/setsockopt (Depends-on): Likewise.
8916         * modules/shutdown (Depends-on): Likewise.
8917         * modules/socket (Depends-on): Likewise.
8918         * modules/execute (Depends-on): Likewise.
8919         * modules/spawn-pipe (Depends-on): Likewise.
8920         * modules/flock (Depends-on): Likewise.
8921         * modules/fsync (Depends-on): Likewise.
8922         * modules/isapipe (Depends-on): Likewise.
8923         * tests/test-cloexec.c: Include msvc-nothrow.h.
8924         * tests/test-dup-safer.c: Likewise.
8925         * tests/test-dup2.c: Likewise.
8926         * tests/test-dup3.c: Likewise.
8927         * tests/test-fcntl.c: Likewise.
8928         * tests/test-pipe.c: Likewise.
8929         * tests/test-pipe2.c: Likewise.
8930         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8931         * modules/unistd-safer-tests (Depends-on): Likewise.
8932         * modules/dup2-tests (Depends-on): Likewise.
8933         * modules/dup3-tests (Depends-on): Likewise.
8934         * modules/fcntl-tests (Depends-on): Likewise.
8935         * modules/pipe-posix-tests (Depends-on): Likewise.
8936         * modules/pipe2-tests (Depends-on): Likewise.
8937
8938 2011-09-23  Bruno Haible  <bruno@clisp.org>
8939
8940         dup2: Make code more maintainable.
8941         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8942         (rpl_dup2): Use it.
8943         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8944         * modules/dup2 (configure.ac): Invoke it.
8945         Reported by Paul Eggert.
8946
8947 2011-09-23  Bruno Haible  <bruno@clisp.org>
8948
8949         msvc-inval: Fix compilation error.
8950         * lib/msvc-inval.h: Include <excpt.h>.
8951
8952 2011-09-23  Bruno Haible  <bruno@clisp.org>
8953
8954         mkdir: Tweak for MSVC 9.
8955         * lib/sys_stat.in.h: Update comments.
8956         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8957
8958         Tests for module 'chdir'.
8959         * modules/chdir-tests: New file.
8960         * tests/test-chdir.c: New file.
8961
8962         New module 'chdir'.
8963         * modules/chdir: New file.
8964         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8965         (chdir): New declaration.
8966         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8967         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8968         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8969         * tests/test-unistd-c++.cc: Check signature of chdir.
8970         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8971         * modules/chdir-long (Depends-on): Add chdir.
8972         * modules/fchdir (Depends-on): Likewise.
8973         * modules/rename (Depends-on): Likewise.
8974         * modules/savewd (Depends-on): Likewise.
8975
8976         rmdir: Support for mingw, MSVC 9.
8977         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8978         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8979
8980         getcwd: Tweak for MSVC 9.
8981         * lib/unistd.in.h: Update comments.
8982         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8983
8984 2011-09-22  Bruno Haible  <bruno@clisp.org>
8985
8986         strerror_r-posix: Avoid a link error on MSVC.
8987         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8988         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8989
8990 2011-09-22  Bruno Haible  <bruno@clisp.org>
8991
8992         select: Avoid link errors on MSVC.
8993         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8994         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8995         * modules/pselect (Link): Likewise.
8996         * NEWS: Mention the change.
8997         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8998         test-select-stdin against $(LIB_SELECT).
8999         * modules/pselect-tests (Makefile.am): Link test-pselect against
9000         $(LIB_SELECT).
9001
9002 2011-09-22  Bruno Haible  <bruno@clisp.org>
9003
9004         select: Avoid compilation error on MSVC.
9005         * lib/select.c: Don't include <stdbool.h>.
9006
9007 2011-09-21  Bruno Haible  <bruno@clisp.org>
9008
9009         Consolidate all uses of PATH_MAX in *.m4 files.
9010         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9011         macros.
9012         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9013         and gl_PATHMAX_SNIPPET.
9014         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9016         * modules/chdir-long (Files): Add m4/pathmax.m4.
9017         * modules/getcwd (Files): Likewise.
9018
9019 2011-09-21  Bruno Haible  <bruno@clisp.org>
9020
9021         ftruncate: Un-deprecate, concentrate on Win32 support.
9022         * modules/ftruncate (Status, Notice): Remove sections.
9023         (Depends-on): Add largefile.
9024         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9025         non-mingw platforms.
9026         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9027         include <io.h>.
9028         * modules/perror-tests (Depends-on): Add ftruncate.
9029         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9030         'ftruncate' module.
9031
9032 2011-09-21  Bruno Haible  <bruno@clisp.org>
9033
9034         Add dependencies to new dirent related modules.
9035         * modules/opendir (Depends-on): Add closedir.
9036         * modules/getcwd (Depends-on): Add opendir, closedir.
9037         * modules/dirent-safer-tests (Depends-on): Likewise.
9038         * modules/fdopendir-tests (Depends-on): Likewise.
9039         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9040         * modules/renameat-tests (Depends-on): Likewise.
9041
9042 2011-09-21  Bruno Haible  <bruno@clisp.org>
9043
9044         opendir: Avoid compilation error on mingw.
9045         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9046         * modules/opendir (Depends-on): Add unistd.
9047
9048 2011-09-21  Bruno Haible  <bruno@clisp.org>
9049
9050         ftruncate tests: Avoid a test failure on mingw.
9051         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9052
9053 2011-09-21  Bruno Haible  <bruno@clisp.org>
9054
9055         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9056         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9057         native Windows.
9058
9059 2011-09-21  Bruno Haible  <bruno@clisp.org>
9060
9061         New module 'fdopen'.
9062         * lib/stdio.in.h (fdopen): New declaration.
9063         * lib/fdopen.c: New file.
9064         * m4/fdopen.m4: New file.
9065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9066         REPLACE_FDOPEN.
9067         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9068         REPLACE_FDOPEN.
9069         * modules/fdopen: New file.
9070         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9071         * tests/test-stdio-c++.cc: Check signature of fdopen.
9072         * doc/posix-functions/fdopen.texi: Mention the new module.
9073
9074 2011-09-21  Bruno Haible  <bruno@clisp.org>
9075
9076         unlockpt tests: Avoid test failure on NetBSD 5.1.
9077         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9078         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9079
9080 2011-09-21  Bruno Haible  <bruno@clisp.org>
9081
9082         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9083         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9084         * tests/test-getlogin_r.c (main): Likewise.
9085
9086 2011-09-20  Bruno Haible  <bruno@clisp.org>
9087
9088         time tests: Don't require pid_t.
9089         * doc/posix-headers/time.texi: Revert last change.
9090         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9091         * tests/test-time.c: Comment out the check for pid_t.
9092
9093 2011-09-20  Bruno Haible  <bruno@clisp.org>
9094
9095         fsync tests: Avoid a test failure on mingw.
9096         * tests/test-fsync.c (main): Allow a failure with EIO.
9097
9098 2011-09-20  Bruno Haible  <bruno@clisp.org>
9099
9100         euidaccess: Update comments.
9101         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9102
9103 2011-09-20  Bruno Haible  <bruno@clisp.org>
9104
9105         Ensure EBADF returns for socket functions on mingw.
9106         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9107         descriptor is invalid.
9108         * lib/bind.c (rpl_bind): Likewise.
9109         * lib/connect.c (rpl_connect): Likewise.
9110         * lib/getpeername.c (rpl_getpeername): Likewise.
9111         * lib/getsockname.c (rpl_getsockname): Likewise.
9112         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9113         * lib/listen.c (rpl_listen): Likewise.
9114         * lib/recv.c (rpl_recv): Likewise.
9115         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9116         * lib/send.c (rpl_send): Likewise.
9117         * lib/sendto.c (rpl_sendto): Likewise.
9118         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9119         * lib/shutdown.c (rpl_shutdown): Likewise.
9120
9121 2011-09-20  Bruno Haible  <bruno@clisp.org>
9122
9123         select tests: EBADF tests.
9124         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9125         test_bad_fd): New functions.
9126         (test_function): Invoke also test_bad_fd.
9127
9128 2011-09-20  Bruno Haible  <bruno@clisp.org>
9129
9130         Tests for module 'posix_spawn_file_actions_addopen.
9131         * modules/posix_spawn_file_actions_addopen-tests: New file.
9132         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9133
9134         Tests for module 'posix_spawn_file_actions_adddup2'.
9135         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9136         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9137
9138         Tests for module 'posix_spawn_file_actions_addclose'.
9139         * modules/posix_spawn_file_actions_addclose-tests: New file.
9140         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9141
9142 2011-09-20  Bruno Haible  <bruno@clisp.org>
9143
9144         Tests for module 'unlockpt'.
9145         * modules/unlockpt-tests: New file.
9146         * tests/test-unlockpt.c: New file.
9147         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9148
9149         Tests for module 'grantpt'.
9150         * modules/grantpt-tests: New file.
9151         * tests/test-grantpt.c: New file.
9152         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9153
9154 2011-09-20  Bruno Haible  <bruno@clisp.org>
9155
9156         freopen tests: EBADF tests.
9157         * tests/test-freopen.c: Include errno.h, unistd.h.
9158         (main): Add tests for EBADF, commented out for the moment.
9159
9160         fclose tests: EBADF tests.
9161         * tests/test-fclose.c (main): Add tests for EBADF.
9162
9163         fflush tests: EBADF tests.
9164         * tests/test-fflush.c: Include errno.h, macros.h.
9165         (main): Add tests for EBADF.
9166
9167         ftello tests: EBADF tests.
9168         * tests/test-ftello4.sh: New file.
9169         * tests/test-ftello4.c: New file.
9170         * modules/ftello-tests (Files): Add them.
9171         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9172
9173         fseeko tests: EBADF tests.
9174         * tests/test-fseeko4.sh: New file.
9175         * tests/test-fseeko4.c: New file.
9176         * modules/fseeko-tests (Files): Add them.
9177         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9178
9179         Tests for function fputc().
9180         * modules/fputc-tests: New file.
9181         * tests/test-fputc.c: New file.
9182         * modules/stdio-tests (Depends-on): Add fputc-tests.
9183
9184         Tests for function fgetc().
9185         * modules/fgetc-tests: New file.
9186         * tests/test-fgetc.c: New file.
9187         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9188
9189         Tests for function fdopen().
9190         * modules/fdopen-tests: New file.
9191         * tests/test-fdopen.c: New file.
9192         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9193
9194         Tests for module 'vdprintf'.
9195         * modules/vdprintf-tests: New file.
9196         * tests/test-vdprintf.c: New file.
9197
9198         Tests for module 'dprintf'.
9199         * modules/dprintf-tests: New file.
9200         * tests/test-dprintf.c: New file.
9201
9202 2011-09-20  Bruno Haible  <bruno@clisp.org>
9203
9204         Tests for module 'ioctl'.
9205         * modules/ioctl-tests: New file.
9206         * tests/test-ioctl.c: New file.
9207
9208 2011-09-20  Bruno Haible  <bruno@clisp.org>
9209
9210         fcntl tests: EBADF tests.
9211         * tests/test-fcntl.c (main): Add more tests for EBADF.
9212
9213 2011-09-20  Bruno Haible  <bruno@clisp.org>
9214
9215         utimensat tests: EBADF tests.
9216         * tests/test-utimensat.c (main): Add tests for EBADF.
9217
9218         renameat tests: EBADF tests.
9219         * tests/test-renameat.c (main): Add tests for EBADF.
9220
9221         mkfifoat tests: EBADF tests.
9222         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9223
9224         readlinkat tests: EBADF tests.
9225         * tests/test-readlinkat.c (main): Add tests for EBADF.
9226
9227         symlinkat tests: EBADF tests.
9228         * tests/test-symlinkat.c (main): Add tests for EBADF.
9229
9230         linkat tests: EBADF tests.
9231         * tests/test-linkat.c (main): Add tests for EBADF.
9232
9233         Tests for module 'faccessat'.
9234         * modules/faccessat-tests: New file.
9235         * tests/test-faccessat.c: New file.
9236
9237         fdopendir tests: EBADF tests.
9238         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9239
9240         openat tests: EBADF tests.
9241         * tests/test-fchownat.c (main): Add tests for EBADF.
9242         * tests/test-fstatat.c (main): Likewise.
9243         * tests/test-mkdirat.c (main): Likewise.
9244         * tests/test-openat.c (main): Likewise.
9245         * tests/test-unlinkat.c (main): Likewise.
9246         * tests/test-fchmodat.c: New file.
9247         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9248         (Makefile.am): Also run 'test-fchmodat'.
9249
9250 2011-09-20  Bruno Haible  <bruno@clisp.org>
9251
9252         utimens, futimens, fdutimensat tests: EBADF tests.
9253         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9254
9255         Tests for function fstat().
9256         * modules/fstat-tests: New file.
9257         * tests/test-fstat.c: New file.
9258         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9259
9260 2011-09-20  Bruno Haible  <bruno@clisp.org>
9261
9262         test-ttyname_r tests: EBADF tests.
9263         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9264
9265         Tests for module 'isatty'.
9266         * modules/isatty-tests: New file.
9267         * tests/test-isatty.c: New file.
9268
9269         Tests for module 'write'.
9270         * modules/write-tests: New file.
9271         * tests/test-write.c: New file.
9272
9273         Tests for module 'read'.
9274         * modules/read-tests: New file.
9275         * tests/test-read.c: New file.
9276
9277         pwrite tests: EBADF tests.
9278         * tests/test-pwrite.c (main): Add tests for EBADF.
9279
9280         pread tests: EBADF tests.
9281         * tests/test-pread.c (main): Add tests for EBADF.
9282
9283         lseek tests: EBADF tests.
9284         * tests/test-lseek.c (main): Add more tests for EBADF.
9285
9286         Tests for module 'ftruncate'.
9287         * modules/ftruncate-tests: New file.
9288         * tests/test-ftruncate.sh: New file.
9289         * tests/test-ftruncate.c: New file.
9290
9291         fsync tests: EBADF tests.
9292         * tests/test-fsync.c (main): Add more tests for EBADF.
9293
9294         fdatasync tests: EBADF tests.
9295         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9296
9297         Tests for module 'fchown'.
9298         * modules/fchown-tests: New file.
9299         * tests/test-fchown.c: New file.
9300
9301         Tests for module 'fchmod'.
9302         * modules/fchmod-tests: New file.
9303         * tests/test-fchmod.c: New file.
9304
9305         fchdir tests: EBADF tests.
9306         * tests/test-fchdir.c (main): Add more tests for EBADF.
9307
9308         dup2 tests: EBADF tests.
9309         * tests/test-dup2.c (main): Add more tests for EBADF.
9310
9311         Tests for module 'dup'.
9312         * modules/dup-tests: New file.
9313         * tests/test-dup.c: New file.
9314
9315         Tests for module 'close'.
9316         * modules/close-tests: New file.
9317         * tests/test-close.c: New file.
9318
9319 2011-09-20  Bruno Haible  <bruno@clisp.org>
9320
9321         Tests for module 'shutdown'.
9322         * modules/shutdown-tests: New file.
9323         * tests/test-shutdown.c: New file.
9324
9325         Tests for module 'setsockopt'.
9326         * modules/setsockopt-tests: New file.
9327         * tests/test-setsockopt.c: New file.
9328
9329         Tests for module 'sendto'.
9330         * modules/sendto-tests: New file.
9331         * tests/test-sendto.c: New file.
9332
9333         Tests for module 'send'.
9334         * modules/send-tests: New file.
9335         * tests/test-send.c: New file.
9336
9337         Tests for module 'recvfrom'.
9338         * modules/recvfrom-tests: New file.
9339         * tests/test-recvfrom.c: New file.
9340
9341         Tests for module 'recv'.
9342         * modules/recv-tests: New file.
9343         * tests/test-recv.c: New file.
9344
9345         Tests for module 'listen'.
9346         * modules/listen-tests: New file.
9347         * tests/test-listen.c: New file.
9348
9349         Tests for module 'getsockopt'.
9350         * modules/getsockopt-tests: New file.
9351         * tests/test-getsockopt.c: New file.
9352
9353         Tests for module 'getsockname'.
9354         * modules/getsockname-tests: New file.
9355         * tests/test-getsockname.c: New file.
9356
9357         Tests for module 'getpeername'.
9358         * modules/getpeername-tests: New file.
9359         * tests/test-getpeername.c: New file.
9360
9361         Tests for module 'connect'.
9362         * modules/connect-tests: New file.
9363         * tests/test-connect.c: New file.
9364
9365         Tests for module 'bind'.
9366         * modules/bind-tests: New file.
9367         * tests/test-bind.c: New file.
9368
9369         accept4 tests: Fix for native Windows.
9370         * tests/test-accept4.c: Include sockets.h.
9371         (main): Invoke gl_sockets_startup.
9372         * modules/accept4-tests (Depends-on): Add sockets.
9373
9374         accept tests: Fix for native Windows.
9375         * tests/test-accept.c: Include sockets.h.
9376         (main): Invoke gl_sockets_startup.
9377         * modules/accept-tests (Depends-on): Add sockets.
9378
9379 2011-09-19  Bruno Haible  <bruno@clisp.org>
9380
9381         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9382         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9383         do...while(0).
9384         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9385         Suggested by Paul Eggert.
9386
9387 2011-09-19  Bruno Haible  <bruno@clisp.org>
9388
9389         sched: Ensure pid_t is defined.
9390         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9391         not define pid_t.
9392         * lib/sched.in.h: Include <sys/types.h>.
9393         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9395
9396 2011-09-19  Bruno Haible  <bruno@clisp.org>
9397
9398         msvc-inval: Ensure the entire expansion is a single statement.
9399         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9400         of braces.
9401
9402 2011-09-19  Jim Meyering  <meyering@redhat.com>
9403
9404         tests: use printf, not echo in init.sh's warn_ function
9405         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9406         misbehave when given strings containing a backslash or starting
9407         with e.g., -n.  James Youngman suggested setting IFS.
9408
9409 2011-09-19  Eric Blake  <eblake@redhat.com>
9410
9411         futimens: enhance test
9412         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9413         closed non-negative fd.
9414
9415         date: accept 'hence' as opposite of 'ago'
9416         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9417         * tests/test-parse-datetime.c (main): Enhance test.
9418         Suggested by Jesse Wilson.
9419
9420 2011-09-19  Jim Meyering  <meyering@redhat.com>
9421
9422         getcwd: don't fail in a deep directory on a system without openat
9423         Before this change, getcwd would fail when called from a directory
9424         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9425         the non-openat implementation used "..", "../..", "../../..", etc.
9426         to access ancestor directories.  With too many, that string would
9427         be longer than PATH_MAX.
9428         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9429         using gnulib's openat replacement.
9430         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9431         we're using the replacement function.
9432
9433 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9434
9435         maint.mk: avoid warnings from perl about missing files
9436         * top/maint.mk (def_sym_regex): Ignore files listed in
9437         $(gl_other_headers_) that do not exist, say because a project
9438         does not use a corresponding module.
9439
9440 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9441
9442         stat: use pathmax.h only if needed
9443         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9444         This is better for Emacs, which does not have a mingw port and
9445         therefore can avoid the pathmax module.
9446
9447         utimens: remove dependency on dup2
9448         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9449         to work around the Linux kernel bug.
9450         * modules/utimens (Depends-on): Remove dup2.
9451
9452 2011-09-18  Bruno Haible  <bruno@clisp.org>
9453
9454         inet_ntop, inet_pton: Look for it also in libresolv.
9455         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9456         libnsl, search for it in libresolv.
9457         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9458         Needed on Solaris 7.
9459
9460 2011-09-18  Bruno Haible  <bruno@clisp.org>
9461
9462         accept, accept4 tests: Avoid link error on Solaris.
9463         * modules/accept-tests (Makefile.am): Link test-accept against
9464         $(LIBSOCKET).
9465         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9466         $(LIBSOCKET).
9467
9468         accept4: Avoid link error on Solaris.
9469         * modules/accept4 (Link): New section.
9470
9471         socket functions: Avoid link errors on Solaris.
9472         * modules/accept (Depends-on): Add socketlib.
9473         (Link): New section.
9474         * modules/bind (Depends-on): Add socketlib.
9475         (Link): New section.
9476         * modules/connect (Depends-on): Add socketlib.
9477         (Link): New section.
9478         * modules/getpeername (Depends-on): Add socketlib.
9479         (Link): New section.
9480         * modules/getsockname (Depends-on): Add socketlib.
9481         (Link): New section.
9482         * modules/getsockopt (Depends-on): Add socketlib.
9483         (Link): New section.
9484         * modules/listen (Depends-on): Add socketlib.
9485         (Link): New section.
9486         * modules/recv (Depends-on): Add socketlib.
9487         (Link): New section.
9488         * modules/recvfrom (Depends-on): Add socketlib.
9489         (Link): New section.
9490         * modules/send (Depends-on): Add socketlib.
9491         (Link): New section.
9492         * modules/sendto (Depends-on): Add socketlib.
9493         (Link): New section.
9494         * modules/setsockopt (Depends-on): Add socketlib.
9495         (Link): New section.
9496         * modules/shutdown (Depends-on): Add socketlib.
9497         (Link): New section.
9498         * modules/socket (Depends-on): Add socketlib.
9499         (Link): New section.
9500
9501 2011-09-18  Bruno Haible  <bruno@clisp.org>
9502
9503         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9504         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9505         than 5 seconds.
9506         * modules/ptsname-tests (configure.ac): Test for alarm.
9507
9508 2011-09-18  Bruno Haible  <bruno@clisp.org>
9509
9510         posix_spawn_file_actions_add*: Fix module dependencies.
9511         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9512         posix_spawn_file_actions_init.
9513         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9514         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9515
9516 2011-09-18  Bruno Haible  <bruno@clisp.org>
9517
9518         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9519         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9520         * tests/test-renameat.c (main): Likewise.
9521
9522 2011-09-18  Bruno Haible  <bruno@clisp.org>
9523
9524         Tests for module 'accept4'.
9525         * modules/accept4-tests: New file.
9526         * tests/test-accept4.c: New file.
9527
9528 2011-09-18  Bruno Haible  <bruno@clisp.org>
9529
9530         Tests for module 'accept'.
9531         * modules/accept-tests: New file.
9532         * tests/test-accept.c: New file.
9533
9534 2011-09-18  Bruno Haible  <bruno@clisp.org>
9535
9536         dup2: Support for MSVC.
9537         * lib/dup2.c: Include msvc-inval.h.
9538         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9539         _get_osfhandle calls.
9540         * modules/dup2 (Depends-on): Add msvc-inval.
9541         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9542
9543         New module 'msvc-inval'.
9544         * lib/msvc-inval.h: New file.
9545         * lib/msvc-inval.c: New file.
9546         * m4/msvc-inval.m4: New file.
9547         * modules/msvc-inval: New file.
9548
9549 2011-09-17  Bruno Haible  <bruno@clisp.org>
9550
9551         Tests for module 'pclose'.
9552         * modules/pclose-tests: New file.
9553
9554         New module 'pclose'.
9555         * lib/stdio.in.h (pclose): New declaration.
9556         * lib/pclose.c: New file.
9557         * m4/pclose.m4: New file.
9558         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9559         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9560         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9561         * modules/pclose: New file.
9562         * modules/popen-tests (Depends-on): Add pclose.
9563         * modules/popen-safer-tests (Depends-on): Likewise.
9564         * doc/posix-functions/pclose.texi: Mention the new module.
9565
9566 2011-09-17  Bruno Haible  <bruno@clisp.org>
9567
9568         popen: Support for MSVC.
9569         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9570         * lib/popen.c (popen): Provide alternate definition for native Windows.
9571         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9573         * modules/popen (Depends-on, configure.ac): Update condition.
9574         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9575         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9576         fixed.
9577
9578 2011-09-17  Bruno Haible  <bruno@clisp.org>
9579
9580         isnanl, isnand, isnanf: Work around MSVC bug.
9581         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9582
9583 2011-09-17  Bruno Haible  <bruno@clisp.org>
9584
9585         sys_socket tests: Fix recent mistake.
9586         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9587
9588 2011-09-17  Bruno Haible  <bruno@clisp.org>
9589
9590         putenv: Support for MSVC.
9591         * modules/putenv (Depends-on): Add environ.
9592         * lib/putenv.c (environ): Disable declaration.
9593         * lib/unistd.in.h: Update comment.
9594
9595 2011-09-17  Bruno Haible  <bruno@clisp.org>
9596
9597         math: Avoid macro redefinition warnings on MSVC.
9598         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9599         Undefine before redefining.
9600
9601 2011-09-17  Bruno Haible  <bruno@clisp.org>
9602
9603         doc: Mention functions which are declared as macros.
9604         * doc/posix-functions/*[fl].texi: Mention that some functions are
9605         defined as macros with arguments only.
9606
9607 2011-09-17  Bruno Haible  <bruno@clisp.org>
9608
9609         Add dependencies to new dirent related modules.
9610         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9611         * modules/fts (Depends-on): Likewise.
9612         * modules/glob (Depends-on): Likewise.
9613         * modules/savedir (Depends-on): Likewise.
9614         * modules/scandir (Depends-on): Likewise.
9615         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9616         * modules/fdopendir (Depends-on): Add opendir.
9617
9618 2011-09-17  Bruno Haible  <bruno@clisp.org>
9619
9620         inet_pton: Support for MSVC on Windows Vista or newer.
9621         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9622         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9623         HAVE_DECL_INET_PTON is defined.
9624         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9625         On platforms with <winsock2.h>, test whether inet_pton is declared in
9626         <ws2tcpip.h>. If so, arrange to replace it.
9627         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9628         REPLACE_INET_PTON.
9629         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9630         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9631         (Depends-on, configure.ac): Update condition.
9632         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9633
9634 2011-09-17  Bruno Haible  <bruno@clisp.org>
9635
9636         inet_ntop: Support for MSVC on Windows Vista or newer.
9637         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9638         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9639         HAVE_DECL_INET_NTOP is defined.
9640         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9641         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9642         <ws2tcpip.h>. If so, arrange to replace it.
9643         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9644         REPLACE_INET_NTOP.
9645         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9646         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9647         (Depends-on, configure.ac): Update condition.
9648         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9649
9650 2011-09-16  Eric Blake  <eblake@redhat.com>
9651
9652         test-fsync: yet another enhancement
9653         * tests/test-fsync.c (main): Also test behavior on read-only text
9654         file.
9655
9656 2011-09-16  Bruno Haible  <bruno@clisp.org>
9657
9658         Enhance fsync, fdatasync tests.
9659         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9660         * tests/test-fdatasync.c (main): Likewise.
9661
9662 2011-09-16  Bruno Haible  <bruno@clisp.org>
9663
9664         Support for MSVC compiler: Ensure mode_t gets defined.
9665         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9666         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9667         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9668         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9669         * tests/test-fcntl-h.c: Check that mode_t is defined.
9670         * tests/test-sys_stat.c: Likewise.
9671         * tests/test-sys_types.c: Likewise.
9672         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9673         * doc/posix-headers/sys_stat.texi: Likewise.
9674         * doc/posix-headers/sys_types.texi: Likewise.
9675
9676 2011-09-16  Bruno Haible  <bruno@clisp.org>
9677
9678         sys_stat: Support for MSVC.
9679         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9680         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9681         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9682         MSVC.
9683
9684 2011-09-16  Bruno Haible  <bruno@clisp.org>
9685
9686         Support for MSVC compiler: Ensure off_t gets defined.
9687         * lib/unistd.in.h: Include <sys/types.h>.
9688         * tests/test-fcntl-h.c: Check that off_t is defined.
9689         * tests/test-sys_stat.c: Likewise.
9690         * tests/test-sys_types.c: Likewise.
9691
9692 2011-09-16  Eric Blake  <eblake@redhat.com>
9693
9694         fdatasync: port to Solaris
9695         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9696         * modules/fdatasync (Link): Document it.
9697         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9698
9699         fdatasync: port to MacOS X 10.7
9700         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9701         declared.
9702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9703         * modules/unistd (Makefile.am): Substitute it.
9704         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9705         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9706
9707         fdatasync: minor improvements
9708         * modules/fdatasync (Depends-on): Add condition for fsync.
9709         * lib/fdatasync.c (fdatasync): Add comment.
9710         * tests/test-unistd-c++.cc: Test fdatasync.
9711
9712         unistd: update refs to newer POSIX
9713         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9714         Suggested by Bruno Haible.
9715
9716         fdatasync: new module
9717         * modules/fsync (Description): Document difference to fdatasync.
9718         * modules/fdatasync: New module.
9719         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9720         * lib/fdatasync.c (fdatasync): Likewise.
9721         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9722         defaults.
9723         * modules/unistd (Makefile.am): Set witnesses.
9724         * lib/unistd.in.h (fdatasync): Declare.
9725         * MODULES.html.sh: Document it.
9726         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9727         * modules/fdatasync-tests: New test.
9728         * tests/test-fdatasync.c: Likewise.
9729
9730 2011-09-16  Eric Blake  <eblake@redhat.com>
9731
9732         test-fsync: enhance tests
9733         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9734         * tests/test-fsync.c (main): Enhance test.
9735
9736 2011-09-15  Bruno Haible  <bruno@clisp.org>
9737
9738         Support for MSVC compiler: Ensure ssize_t gets defined.
9739         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9740         * doc/posix-headers/stdio.texi: Likewise.
9741         * modules/stdio (Depends-on): Add ssize_t.
9742         * modules/sys_socket (Depends-on): Likewise.
9743         * modules/sys_types (Depends-on): Likewise.
9744         * modules/sys_uio (Depends-on): Likewise.
9745         * modules/unistd (Depends-on): Likewise.
9746         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9747         * tests/test-sys_types.c: Check that ssize_t is defined.
9748
9749 2011-09-14  Bruno Haible  <bruno@clisp.org>
9750
9751         Avoid using #, the m4 comment starter character, near brackets.
9752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9753         delimiter character in sed expressions.
9754         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9755         Suggested by Eric Blake.
9756
9757         Properly quote AC_CHECK_DECLS' 4th argument.
9758         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9759         argument.
9760         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9761         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9762         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9763         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9764         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9765         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9767         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9768         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9769         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9770         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9771         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9772         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9773         * m4/isinf.m4 (gl_ISINF): Likewise.
9774         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9775         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9776         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9777         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9779         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9780         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9781         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9782         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9783         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9784         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9785         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9787         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9789         Reported by Eric Blake.
9790
9791         Properly quote AC_CHECK_DECL's 4th argument.
9792         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9793         argument.
9794         * m4/argp.m4 (gl_ARGP): Likewise.
9795         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9796         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9797         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9798         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9799         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9800         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9801         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9802         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9803         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9804         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9805         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9806         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9807         Reported by Eric Blake.
9808
9809 2011-09-14  Eric Blake  <eblake@redhat.com>
9810
9811         opendir: avoid compile warning
9812         * lib/opendir.c (includes): Always include errno.h.
9813         Reported by Tatsuro MATSUOKA.
9814
9815 2011-09-14  Jim Meyering  <meyering@redhat.com>
9816
9817         maint.mk: sc_tight_scope: propagate failure from sub-make
9818         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9819         Reported by Martin von Gagern.
9820
9821 2011-09-13  Bruno Haible  <bruno@clisp.org>
9822
9823         tempname: Support for MSVC.
9824         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9825         MSVC.
9826         * modules/tempname (Depends-on): Add fcntl-h.
9827
9828 2011-09-13  Bruno Haible  <bruno@clisp.org>
9829
9830         sys_time: Support for MSVC.
9831         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9832         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9833         include <winsock2.h>.
9834         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9835         function declarations that collide with POSIX.
9836         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9837         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9838
9839 2011-09-13  Bruno Haible  <bruno@clisp.org>
9840
9841         stat: Support for MSVC.
9842         * lib/stat.c: Include pathmax.h.
9843         * modules/stat (Depends-on): Add pathmax.
9844
9845         pathmax: Support for native Windows.
9846         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9847
9848 2011-09-12  Bruno Haible  <bruno@clisp.org>
9849
9850         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9851         * lib/dirent.in.h (struct dirent): New type.
9852         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9853         DT_WHT): New macros.
9854         (DIR): New type.
9855         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9856         (readdir, rewinddir): New declarations.
9857         * lib/dirent-private.h: New file.
9858         * lib/opendir.c: New file.
9859         * lib/readdir.c: New file.
9860         * lib/rewinddir.c: New file.
9861         * lib/closedir.c: New file.
9862         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9863         * m4/opendir.m4: New file.
9864         * m4/readdir.m4: New file.
9865         * m4/rewinddir.m4: New file.
9866         * m4/closedir.m4: New file.
9867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9868         REPLACE_CLOSEDIR here.
9869         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9870         readdir, rewinddir are declared.
9871         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9872         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9873         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9874         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9875         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9876         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9877         * modules/opendir: New file.
9878         * modules/readdir: New file.
9879         * modules/rewinddir: New file.
9880         * modules/closedir: New file.
9881         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9882         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9883         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9884         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9885         * NEWS: Mention the 'fchdir' change.
9886
9887 2011-09-11  Bruno Haible  <bruno@clisp.org>
9888
9889         asm-underscore.m4: Support for MSVC.
9890         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9891         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9892
9893 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9894
9895         Doc about crypt functions.
9896         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9897         needing for _GNU_SOURCE to get crypt.
9898         * doc/posix-functions/encrypt.texi: Likewise.
9899         * doc/posix-functions/setkey.texi: Likewise.
9900
9901 2011-09-11  Bruno Haible  <bruno@clisp.org>
9902
9903         doc: Update regarding MSVC 9.
9904         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9905         tested".
9906         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9907         * doc/posix-headers/*.texi: Likewise.
9908         * doc/pastposix-functions/*.texi: Likewise.
9909         * doc/glibc-functions/*.texi: Likewise.
9910         * doc/glibc-headers/*.texi: Likewise.
9911
9912 2011-09-11  Bruno Haible  <bruno@clisp.org>
9913
9914         unistd et al.: Don't assume <unistd.h> exists.
9915         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9916         does not exist.
9917         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9918         exist. But include <stdlib.h>.
9919         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9920         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9921         symlink() does not exist.
9922         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9923         include <io.h> instead.
9924         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9925         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9926         include <direct.h> instead.
9927         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9929         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9930         <io.h> instead.
9931         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9932         correctly if the system does not have hard links.
9933         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9934         <direct.h> instead.
9935         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9936         it when looking for function declarations.
9937         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9938         <direct.h> and <io.h> instead.
9939         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9940
9941 2011-09-11  Bruno Haible  <bruno@clisp.org>
9942
9943         strcase: Support for MSVC.
9944         * modules/strcase (Status, Notice): Remove obsoletion mark.
9945         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9946         * doc/posix-functions/strncasecmp.texi: Likewise.
9947
9948         strings: Don't assume <strings.h> exists.
9949         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9950         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9951         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9952         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9953
9954 2011-09-11  Bruno Haible  <bruno@clisp.org>
9955
9956         dirent: Don't assume <dirent.h> exists.
9957         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9958         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9959         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9960         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9961
9962 2011-09-11  Bruno Haible  <bruno@clisp.org>
9963
9964         Fix wint_t on MSVC.
9965         * lib/wchar.in.h (wint_t): On MSVC, override it.
9966         * lib/wctype.in.h (wint_t): Likewise.
9967         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9968         MSVC.
9969         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9970         * doc/posix-headers/wctype.texi: Likewise.
9971
9972 2011-09-11  Bruno Haible  <bruno@clisp.org>
9973
9974         sys_types: Fix typo.
9975         * lib/sys_types.in.h: Fix typo in comment.
9976         Reported by Paul Eggert.
9977
9978         Support for MSVC compiler: Ensure size_t gets defined.
9979         * modules/strings (Depends-on): Add 'sys_types'.
9980         * modules/sys_uio (Depends-on): Likewise.
9981         * lib/sys_uio.in.h: Update comment.
9982
9983         C++ tests for module 'sys_types'.
9984         * modules/sys_types-c++-tests: New file.
9985         * tests/test-sys_types-c++.cc: New file.
9986
9987         Tests for module 'sys_types'.
9988         * modules/sys_types-tests: New file.
9989         * tests/test-sys_types.c: New file.
9990
9991         New module 'sys_types'.
9992         * lib/sys_types.in.h: New file.
9993         * m4/sys_types_h.m4: New file.
9994         * modules/sys_types: New file.
9995         * doc/posix-headers/sys_types.texi: Mention the new module and the
9996         size_t problem on MSVC 9.
9997
9998 2011-09-11  Bruno Haible  <bruno@clisp.org>
9999
10000         Support for MSVC compiler: Avoid division by a literal 0.
10001         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10002         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10003         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10004         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10005         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10006         * tests/infinity.h: New file.
10007         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10008         on MSVC.
10009         * tests/test-ceilf1.c: Include infinity.h.
10010         (main): Use Infinityf.
10011         * tests/test-ceil1.c: Include infinity.h.
10012         (main): Use Infinityd.
10013         * tests/test-ceill.c: Include infinity.h.
10014         (main): Use Infinityl.
10015         * tests/test-dprintf-posix.c: Include infinity.h.
10016         (test_function): Use Infinityd.
10017         * tests/test-floorf1.c: Include infinity.h.
10018         (main): Use Infinityf.
10019         * tests/test-floor1.c: Include infinity.h.
10020         (main): Use Infinityd.
10021         * tests/test-floorl.c: Include infinity.h.
10022         (main): Use Infinityl.
10023         * tests/test-fprintf-posix.c: Include infinity.h.
10024         (test_function): Use Infinityd.
10025         * tests/test-frexp.c: Include infinity.h.
10026         (main): Use Infinityd.
10027         * tests/test-frexpl.c: Include infinity.h.
10028         (main): Use Infinityl.
10029         * tests/test-isfinite.c: Include infinity.h.
10030         (test_isfinitef): Use Infinityf.
10031         (test_isfinited): Use Infinityd.
10032         (test_isfinitel): Use Infinityl.
10033         * tests/test-isinf.c: Include infinity.h.
10034         (test_isinff): Use Infinityf.
10035         (test_isinfd): Use Infinityd.
10036         (test_isinfl): Use Infinityl.
10037         * tests/test-isnan.c: Include infinity.h.
10038         (test_float): Use Infinityf.
10039         (test_double): Use Infinityd.
10040         (test_long_double): Use Infinityl.
10041         * tests/test-isnanf.h: Include infinity.h.
10042         (main): Use Infinityf.
10043         * tests/test-isnand.h: Include infinity.h.
10044         (main): Use Infinityd.
10045         * tests/test-isnanl.h: Include infinity.h.
10046         (main): Use Infinityl.
10047         * tests/test-ldexpl.c: Include infinity.h.
10048         (main): Use Infinityl.
10049         * tests/test-printf-posix.h: Include infinity.h.
10050         (test_function): Use Infinityd.
10051         * tests/test-roundf1.c: Include infinity.h.
10052         (main): Use Infinityf.
10053         * tests/test-round1.c: Include infinity.h.
10054         (main): Use Infinityd.
10055         * tests/test-roundl.c: Include infinity.h.
10056         (main): Use Infinityl.
10057         * tests/test-signbit.c: Include infinity.h.
10058         (test_signbitf): Use Infinityf.
10059         (test_signbitd): Use Infinityd.
10060         (test_signbitl): Use Infinityl.
10061         * tests/test-snprintf-posix.h: Include infinity.h.
10062         (test_function): Use Infinityd, Infinityl.
10063         * tests/test-sprintf-posix.h: Include infinity.h.
10064         (test_function): Use Infinityd, Infinityl.
10065         * tests/test-truncf1.c: Include infinity.h.
10066         (main): Use Infinityf.
10067         * tests/test-trunc1.c: Include infinity.h.
10068         (main): Use Infinityd.
10069         * tests/test-truncl.c: Include infinity.h.
10070         (main): Use Infinityl.
10071         * tests/test-vasnprintf-posix.c: Include infinity.h.
10072         (test_function): Use Infinityd, Infinityl.
10073         * tests/test-vasprintf-posix.c: Include infinity.h.
10074         (test_function): Use Infinityd, Infinityl.
10075         * modules/ceilf-tests (Files): Add tests/infinity.h.
10076         * modules/ceil-tests (Files): Likewise.
10077         * modules/ceill-tests (Files): Likewise.
10078         * modules/dprintf-posix-tests (Files): Likewise.
10079         * modules/floorf-tests (Files): Likewise.
10080         * modules/floor-tests (Files): Likewise.
10081         * modules/floorl-tests (Files): Likewise.
10082         * modules/fprintf-posix-tests (Files): Likewise.
10083         * modules/frexp-tests (Files): Likewise.
10084         * modules/frexp-nolibm-tests (Files): Likewise.
10085         * modules/frexpl-tests (Files): Likewise.
10086         * modules/frexpl-nolibm-tests (Files): Likewise.
10087         * modules/isfinite-tests (Files): Likewise.
10088         * modules/isinf-tests (Files): Likewise.
10089         * modules/isnan-tests (Files): Likewise.
10090         * modules/isnanf-tests (Files): Likewise.
10091         * modules/isnanf-nolibm-tests (Files): Likewise.
10092         * modules/isnand-tests (Files): Likewise.
10093         * modules/isnand-nolibm-tests (Files): Likewise.
10094         * modules/isnanl-tests (Files): Likewise.
10095         * modules/isnanl-nolibm-tests (Files): Likewise.
10096         * modules/ldexpl-tests (Files): Likewise.
10097         * modules/printf-posix-tests (Files): Likewise.
10098         * modules/roundf-tests (Files): Likewise.
10099         * modules/round-tests (Files): Likewise.
10100         * modules/roundl-tests (Files): Likewise.
10101         * modules/signbit-tests (Files): Likewise.
10102         * modules/snprintf-posix-tests (Files): Likewise.
10103         * modules/sprintf-posix-tests (Files): Likewise.
10104         * modules/truncf-tests (Files): Likewise.
10105         * modules/trunc-tests (Files): Likewise.
10106         * modules/truncl-tests (Files): Likewise.
10107         * modules/vasnprintf-posix-tests (Files): Likewise.
10108         * modules/vasprintf-posix-tests (Files): Likewise.
10109         * modules/vdprintf-posix-tests (Files): Likewise.
10110         * modules/vfprintf-posix-tests (Files): Likewise.
10111         * modules/vprintf-posix-tests (Files): Likewise.
10112         * modules/vsnprintf-posix-tests (Files): Likewise.
10113         * modules/vsprintf-posix-tests (Files): Likewise.
10114         * modules/xprintf-posix-tests (Files): Likewise.
10115
10116 2011-09-11  Bruno Haible  <bruno@clisp.org>
10117
10118         Ensure pid_t gets defined.
10119         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10120         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10121         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10122         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10123         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10124         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10125         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10126         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10127         * tests/test-fcntl-h.c: Check that pid_t is defined.
10128         * tests/test-sched.c: Likewise.
10129         * tests/test-termios.c: Likewise.
10130         * tests/test-time.c: Likewise.
10131         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10132         * doc/posix-headers/signal.texi: Likewise.
10133         * doc/posix-headers/sys_types.texi: Likewise.
10134         * doc/posix-headers/time.texi: Likewise.
10135
10136 2011-09-11  Bruno Haible  <bruno@clisp.org>
10137
10138         acl: Fix compilation on Solaris 10 (older version).
10139         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10140         of ACE_EVERYONE.
10141         * lib/set-mode-acl.c (qset_acl): Likewise.
10142         Reported by Christian Jullien <eligis@orange.fr>.
10143
10144 2011-09-10  Bruno Haible  <bruno@clisp.org>
10145
10146         iconv, unsetenv: Add support for MSVC compiler.
10147         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10148         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10149
10150 2011-09-10  Bruno Haible  <bruno@clisp.org>
10151
10152         *printf: Add support for MSVC compiler.
10153         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10154         handles the exception caused by the %n directive. When cross-compiling,
10155         guess no on native Windows.
10156         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10157         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10158         emulate it through vsnprintf.
10159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10160         * doc/posix-functions/dprintf.texi: Update documentation regarding
10161         MSVC 9.
10162         * doc/posix-functions/fprintf.texi: Likewise.
10163         * doc/posix-functions/printf.texi: Likewise.
10164         * doc/posix-functions/snprintf.texi: Likewise.
10165         * doc/posix-functions/sprintf.texi: Likewise.
10166         * doc/posix-functions/swprintf.texi: Likewise.
10167         * doc/posix-functions/vdprintf.texi: Likewise.
10168         * doc/posix-functions/vfprintf.texi: Likewise.
10169         * doc/posix-functions/vprintf.texi: Likewise.
10170         * doc/posix-functions/vsnprintf.texi: Likewise.
10171         * doc/posix-functions/vsprintf.texi: Likewise.
10172         * doc/glibc-functions/asprintf.texi: Likewise.
10173         * doc/glibc-functions/obstack_printf.texi: Likewise.
10174         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10175         * doc/glibc-functions/vasprintf.texi: Likewise.
10176
10177 2011-09-10  Bruno Haible  <bruno@clisp.org>
10178
10179         nocrash: Add support for native Windows.
10180         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10181
10182 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10183             Bruno Haible  <bruno@clisp.org>
10184
10185         absolute-header, include-next: Add support for MSVC compiler.
10186         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10187         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10188         directory separator in #line directives.
10189         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10190         recognize also backslash as directory separator in #line directives.
10191
10192 2011-09-08  Jim Meyering  <meyering@redhat.com>
10193
10194         maint.mk: mark the post-release commit log with "maint: " prefix
10195         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10196         one-line commit-log summary.
10197
10198 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10199             Bruno Haible  <bruno@clisp.org>
10200
10201         Doc about crypt functions.
10202         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10203         systems.
10204         * doc/posix-functions/encrypt.texi: Likewise.
10205         * doc/posix-functions/setkey.texi: Likewise.
10206
10207 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10208
10209         * lib/gc.h: Fix copyright header.
10210
10211 2011-09-07  Bruno Haible  <bruno@clisp.org>
10212
10213         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10214         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10215         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10216
10217 2011-09-07  Bruno Haible  <bruno@clisp.org>
10218
10219         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10220         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10221         * lib/freopen.c: Likewise.
10222         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10223         * lib/lstat.c: Likewise.
10224         * lib/stat.c: Likewise.
10225         * lib/open.c: Use different syntax for include of <fcntl.h>.
10226         * lib/openat.c: Include fcntl.h again, explicitly.
10227
10228 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10229
10230         parse-datetime: document the newly accepted format
10231         * doc/parse-datetime.texi (Combined date and time of day items):
10232         New section.
10233
10234 2011-09-06  Bruno Haible  <bruno@clisp.org>
10235
10236         acl: Fix a test failure on newer Solaris 10 with ZFS.
10237         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10238         ENOSYS as no ACL.
10239         Reported by Jim Meyering.
10240
10241 2011-09-06  Bruno Haible  <bruno@clisp.org>
10242
10243         acl: Update for AIX >= 5.3 with NFS.
10244         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10245         ENOSYS as no ACL.
10246
10247         acl: Fix a test failure on AIX >= 5.3 with NFS.
10248         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10249         as no ACL.
10250
10251 2011-09-06  Bruno Haible  <bruno@clisp.org>
10252
10253         acl: Fix a test failure on IRIX 6.5 with NFS.
10254         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10255         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10256         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10257         * lib/copy-acl.c (qcopy_acl): Likewise.
10258
10259 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10260
10261         openat: port to AIX 7.1 with large files
10262         AIX 7.1 does a "#define openat open64at" if large files are in use,
10263         so we can't simply #undef openat.  Use the orig_openat trick (similar
10264         to orig_open in lib/open.c) to work around the problem.  Problem
10265         reported by Kevin Brott for GNU tar, in the thread containing
10266         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10267         * lib/openat.c (__need_system_fcntl_h): Define first.
10268         Include <fcntl.h> and <sys/types.h> before undefining.
10269         (orig_openat) [HAVE_OPENAT]: New inline function.
10270         (openat) [HAVE_OPENAT]: Do not undef.
10271         (rpl_openat): Use orig_openat, not openat.
10272
10273 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10274             Bruno Haible  <bruno@clisp.org>
10275
10276         acl: Avoid errors on NonStop Kernel.
10277         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10278         ENOTSUP errors.
10279
10280 2011-09-05  Bruno Haible  <bruno@clisp.org>
10281
10282         acl: Clean up Solaris code.
10283         * lib/acl-internal.h: Remove no-op #if.
10284         * lib/file-has-acl.c: Likewise.
10285         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10286         * lib/copy-acl.c (qcopy_acl): Likewise.
10287
10288 2011-09-05  Bruno Haible  <bruno@clisp.org>
10289
10290         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10291         binaries built on the original Solaris 10.
10292         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10293         trivial.
10294
10295 2011-09-05  Bruno Haible  <bruno@clisp.org>
10296
10297         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10298         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10299         10.
10300         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10301         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10302         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10303         instead of acl_get, facl_get, acl_set, facl_set.
10304
10305 2011-09-05  Bruno Haible  <bruno@clisp.org>
10306
10307         copy-file: Try unit tests on more file systems.
10308         * tests/test-copy-file-1.sh: New file.
10309         * tests/test-copy-file-2.sh: New file.
10310         * modules/copy-file-tests (Files): Add them.
10311         (Makefile.am): Add them to TESTS.
10312
10313         acl: Try unit tests on more file systems.
10314         * tests/test-file-has-acl-1.sh: New file.
10315         * tests/test-file-has-acl-2.sh: New file.
10316         * tests/test-set-mode-acl-1.sh: New file.
10317         * tests/test-set-mode-acl-2.sh: New file.
10318         * tests/test-copy-acl-1.sh: New file.
10319         * tests/test-copy-acl-2.sh: New file.
10320         * modules/acl-tests (Files): Add them.
10321         (Makefile.am): Add them to TESTS.
10322
10323 2011-09-04  Bruno Haible  <bruno@clisp.org>
10324
10325         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10326         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10327         10.
10328         (OLD_ALLOW, OLD_DENY): New macros.
10329         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10330         ACE_ACCESS_ALLOWED_ACE_TYPE.
10331         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10332         ACE_ACCESS_DENIED_ACE_TYPE.
10333         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10334         (NEW_ACE_EXECUTE): Fix value.
10335         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10336         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10337         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10338         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10339         NEW_ACE_SYNCHRONIZE): New macros.
10340         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10341         instead of acl_fromtext, acl_set, facl_set.
10342         Fixes a coreutils/tests/cp/perm failure.
10343
10344 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10345
10346         openat: test for fstatat (..., 0) bug
10347         Further testing with tar suggests that fstatat (..., 0)
10348         does not work in general, on AIX 7.1; see
10349         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10350         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10351         replacement fstatat (which is what older AIX releases were using
10352         anyway).
10353         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10354         use is now changed to orig_fstatat.  This was probably the right
10355         thing to do anyway.
10356         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10357         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10358         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10359         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10360         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10361         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10362         if the bug is found.
10363
10364         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10365         This tests for another fstatat bug on AIX 7.1:
10366         fstatat (AT_FDCWD, ..., 0) does not work.  See
10367         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10368         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10369         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10370         (rpl_fstatat): Adjust so that it works around either (or both)
10371         bugs if present.
10372         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10373
10374 2011-09-03  Karl Berry  <karl@gnu.org>
10375
10376         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10377         in index entries.
10378
10379 2011-09-02  Bruno Haible  <bruno@clisp.org>
10380
10381         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10382         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10383         values of AR, ARFLAGS, RANLIB.
10384         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10385
10386 2011-09-02  Bruno Haible  <bruno@clisp.org>
10387
10388         Find 'ar' program that fits with --host argument.
10389         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10390
10391 2011-09-02  Bruno Haible  <bruno@clisp.org>
10392
10393         tests: init.sh: Support any non-GNU diff.
10394         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10395         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10396         Solaris 8.
10397
10398 2011-09-02  Bruno Haible  <bruno@clisp.org>
10399
10400         tests: init.sh: work also with any non-GNU diff that supports -u
10401         * tests/init.sh: Relax check for diff -u support.
10402         Rather than checking for GNU diff via --version, simply check
10403         for support for -u itself.  Useful at least on OpenBSD 4.9,
10404         AIX 7.1, IRIX 6.5, and Solaris 10.
10405
10406 2011-09-01  Bruno Haible  <bruno@clisp.org>
10407
10408         strtoimax, strtoumax: Document problem on HP-UX 11.
10409         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10410         * doc/posix-functions/strtoumax.texi: Likewise.
10411
10412 2011-09-01  Bruno Haible  <bruno@clisp.org>
10413
10414         strtoumax: Avoid link error on OSF/1 with DTK cc.
10415         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10416         defined as a function.
10417         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10418         strtoumax is defined, not whether it is declared.
10419
10420 2011-09-01  Bruno Haible  <bruno@clisp.org>
10421
10422         strtoimax: Avoid link error on OSF/1 with DTK cc.
10423         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10424         defined as a function.
10425         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10426         strtoimax is defined, not whether it is declared.
10427
10428 2011-09-01  Bruno Haible  <bruno@clisp.org>
10429
10430         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10431         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10432         as a function.
10433         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10434         whether it is declared.
10435
10436 2011-09-01  Bruno Haible  <bruno@clisp.org>
10437
10438         imaxabs: Avoid link error on OSF/1 with DTK cc.
10439         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10440         as a function.
10441         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10442         whether it is declared.
10443
10444 2011-09-01  Bruno Haible  <bruno@clisp.org>
10445
10446         Tests for module 'strtoumax'.
10447         * modules/strtoumax-tests: New file.
10448         * tests/test-strtoumax.c: New file.
10449
10450         Tests for module 'strtoimax'.
10451         * modules/strtoimax-tests: New file.
10452         * tests/test-strtoimax.c: New file.
10453
10454         Tests for module 'imaxdiv'.
10455         * modules/imaxdiv-tests: New file.
10456         * tests/test-imaxdiv.c: New file.
10457
10458         Tests for module 'imaxabs'.
10459         * modules/imaxabs-tests: New file.
10460         * tests/test-imaxabs.c: New file.
10461
10462 2011-09-01  Bruno Haible  <bruno@clisp.org>
10463
10464         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10465         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10466         pthread_create.
10467
10468 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10469
10470         openat: work around AIX 7.1 fstatat issue
10471         This should fix the problem that was not properly fixed
10472         in the previous change, dated 2011-08-30.
10473         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10474         __need_system_stat_h defined.
10475         (orig_fstatat) [HAVE_FSTATAT]: New function.
10476         (rpl_fstatat): Go back to the old way of doing things,
10477         except call orig_fstatat instead of fstatat.
10478         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10479         Remove unnecessary check whether fstatat fills in st_size etc.
10480
10481 2011-09-01  Bruno Haible  <bruno@clisp.org>
10482
10483         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10484         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10485         just include the system's header.
10486
10487 2011-08-31  Jim Meyering  <meyering@redhat.com>
10488
10489         tests: avoid spurious assertion failure in test-float.c on ppc64
10490         * tests/test-float.c (test_long_double): Comment out an assertion,
10491         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10492         with gcc-4.4.4.
10493
10494         maint: indent with spaces, not TABs
10495         I need to get in the habit of running gnulib's "make check".
10496         Both of these would have been caught.
10497         * m4/largefile.m4: Indent with spaces, not TABs.
10498         * lib/parse-datetime.y (iso_8601_time): Likewise.
10499         Spotted by Pádraig Brady.
10500
10501         test-parse-datetime.c: accommodate a relatively strict gcc warning
10502         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10503         to avoid a warning from gcc's -Werror=missing-declarations.
10504         Insert a few spaces-before-funcall-parenthesis.
10505
10506 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10507
10508         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10509         The parser now accepts ISO 8601 date-time strings with "T" as the
10510         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10511         with a space between the date and time strings.  Now it also parses
10512         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10513         variants like "2004-02-29T16:21:42.333-07:00"
10514         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10515         of day representation using the 'T' separator character.
10516         * doc/parse-datetime.texi (General date syntax): replace use of
10517         deprecated --iso-8601 option with --rfc-3339 in example of date
10518         command output formats that can be parsed.
10519         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10520         lib/parse-datetime.y.
10521         (gmt_offset): New function.
10522         (main): Add additional test cases to validate ISO8601 extended
10523         date and time of day parsing.
10524
10525 2011-08-31  Bruno Haible  <bruno@clisp.org>
10526
10527         freopen: Documentation.
10528         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10529         name.
10530         Reported by Claudio Bley <claudio.bley@gmail.com>.
10531
10532 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10533
10534         freopen: Don't crash if the filename argument is NULL.
10535         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10536         NULL.
10537
10538 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10539
10540         openat: work around AIX 7.1 fstatat bug
10541         Problem reported by Kevin Brott for GNU tar, in the thread containing
10542         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10543         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10544         FSTATAT_ST_SIZE_ETC_BROKEN.
10545         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10546         rpl_fstatat.
10547         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10548         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10549         AC_CHECK_FUNCS_ONCE for fstatat.
10550         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10551         fchmodat, mkdirat, openat and unlinkat.
10552
10553 2011-08-30  Bruno Haible  <bruno@clisp.org>
10554
10555         Avoid endless recursions if config.h includes some header files.
10556         * lib/fopen.c (__need_FILE): Define already before including config.h.
10557         * lib/freopen.c (__need_FILE): Likewise.
10558         * lib/open.c (__need_system_fcntl_h): Likewise.
10559         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10560         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10561         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10562
10563 2011-08-25  Karl Berry  <karl@gnu.org>
10564
10565         * config/srclist.txt (ylwrap): new try.
10566         * build-aux/ylwrap: new file.
10567
10568 2011-08-23  Bruno Haible  <bruno@clisp.org>
10569
10570         tmpdir: Use a good default directory on native Windows.
10571         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10572         (P_tmpdir): Default to _P_tmpdir on native Windows.
10573         (path_search): On native Windows, try the value returned by GetTempPath
10574         before trying P_tmpdir.
10575         * modules/tmpdir (Depends-on): Add pathmax.
10576         Suggested by John Darrington <john@darrington.wattle.id.au>.
10577
10578 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10579
10580         doc: fix typo in README-release
10581         * top/README-release: Capitalize first word of a sentence.
10582
10583 2011-08-19  Jim Meyering  <meyering@redhat.com>
10584
10585         fts: do not exhaust memory when processing million-entry directories
10586         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10587         directory would require about 256*N bytes of memory.  Thus, it was
10588         easy to construct a directory too large to be processed by any of
10589         those tools.  With this change, fts' maximum memory utilization is
10590         now limited to around 30MB.
10591         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10592         (fts_read): When we've processed the final entry (i.e., when
10593         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10594         using the parent entry to read any remaining entries.  Dispatch
10595         depending on what fts_build returns:
10596         - NULL+stop, aka failure: stop
10597         - NULL otherwise: move up in the dir hierarchy
10598         - non-NULL: handle this new entry
10599         (fts_build): Declare and use new local, continue_readdir.
10600         Prepare to be called from fts_read, when the entries
10601         from a partially-read directory have just been exhausted.
10602         In that case, we'll skip the opendir and instead use the parent's
10603         fts_dirp and derive dir_fd from that.
10604         Finally, in the readdir loop, if we read max_entries entries,
10605         exit the loop ensuring *not* to call closedir.  This is required
10606         so that fts_dirp can be reused on a subsequent call.
10607         Prompted by Ben England's report of memory exhaustion in find
10608         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10609
10610         maint: fts: move decl of `dp' down into while loop; split a long line
10611         * lib/fts.c (fts_build): No semantic change.
10612
10613         fts: add/use new struct member, fts_dirp
10614         We are about to use this to manage any directory with
10615         too many entries to read all of them into memory at once.
10616         To do that, we'll need to save the DIR* pointer in each
10617         affected FTSENT struct.
10618         * lib/fts_.h: Include <dirent.h>.
10619         (struct FTSENT) [fts_dirp]: New member.
10620         * lib/fts.c (closedir_and_clear): Define.
10621         Use it in place of closedir so that we are sure to
10622         clear the new fts_dirp member when done with it.
10623         (fts_alloc): Initialize the new member.
10624         (fts_lfree): Free, if needed.
10625
10626         maint: fts: give __opendir2 a new parameter and rename
10627         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10628         than surreptitiously using sole caller's "dir_fd".
10629         (fts_opendir): Rename from __opendir2.
10630
10631         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10632         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10633
10634         maint: fts.c: correct off-by-one indentation
10635         * lib/fts.c (fts_build): Correct indentation, change style
10636         of a couple of block comments, and bracing style.
10637
10638         maint: fts.c: move __opendir2 #define "up" out of function body
10639         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10640
10641         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10642         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10643         out for a long time and besides was useful only on BSD systems.
10644
10645 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10646
10647         regex: port to Stratus OpenVOS
10648         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10649         define to empty, rather than attempting nonportable optimizations.
10650         Problem reported by Paul Green in:
10651         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10652         and fix suggested by Eric Blake in:
10653         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10654
10655 2011-08-17  Eric Blake  <eblake@redhat.com>
10656
10657         getcwd: fix test failures on mingw
10658         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10659         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10660         test if long directory cannot be created, and allow mingw errno.
10661
10662         getcwd-lgpl: fix m4 to match relaxed test for BSD
10663         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10664         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10665         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10666         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10667         signature problem.
10668
10669         getcwd: fix compilation on mingw64
10670         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10671         getcwd.
10672         Reported by Marc-André Lureau.
10673
10674         pipe2: silence compiler warning
10675         * lib/pipe2.c (pipe2): Hide label if it is not used.
10676
10677 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10678
10679         relocatable-prog: fix link error
10680         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10681         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10682         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10683         into modules/relocatable-lib without noticing that
10684         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10685         also needs to build relocatable.c.
10686
10687 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10688
10689         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10690         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10691         shell code: it contained a 'break' that was not in a loop.
10692         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10693         via a shell-language loop; this may have been true in old Autoconf
10694         versions, but it's not true in Autoconf 2.68.  I found this bug
10695         when testing coreutils git on Solaris 8, whose shell complains
10696         about the syntax error.
10697
10698 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10699
10700         * lib/base64.c: Fix comment to reference RFC 4648.
10701         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10702         <gvtulder@gmail.com>.
10703
10704 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10705
10706         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10707
10708         po/Makefile.in.in: fix make -q problem
10709         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10710         rule, since there's no file named 'check-macro-version' and its
10711         use as a file breaks make -q.
10712         (all): Don't depend on check-macro-version.
10713         (CHECK_MACRO_VERSION): New macro.
10714         (stamp-po): Use it.
10715
10716         configmake: fix make -q problem
10717         * modules/configmake (configmake.h): Update configmake.h's time stamp
10718         even if the file does not change.  Otherwise, 'make -q' fails.
10719         Problem reported by Simon Josefsson in
10720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10721
10722 2011-08-11  Jim Meyering  <meyering@redhat.com>
10723
10724         git-version-gen: correct the advice in a comment
10725         * build-aux/git-version-gen: Correct comment.
10726         Don't recommend to list .tarball-version in .gitignore.
10727
10728 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10729
10730         base64: fix off-by-one buffer size bug
10731         Problem and (trivial) fix reported by Gijs van Tulder in
10732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10733         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10734         * tests/test-base64.c (main): Catch the bug.
10735
10736 2011-08-10  Eric Blake  <eblake@redhat.com>
10737
10738         closein: correct comments
10739         * lib/closein.c (close_stdin): Improve comments.
10740
10741 2011-08-09  Bruno Haible  <bruno@clisp.org>
10742
10743         More tests for 'fseeko'.
10744         * tests/test-fseeko3.c: New file, from Eric Blake.
10745         * tests/test-fseeko3.sh: New file.
10746         * modules/fseeko-tests (Files): Add them.
10747         (TESTS): Add test-fseeko3.sh.
10748         (check_PROGRAMS): Add test-fseeko3.
10749
10750 2011-08-09  Eric Blake  <eblake@redhat.com>
10751
10752         fseeko: remove unneeded hack
10753         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10754
10755         fseeko: fix bug on glibc
10756         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10757         Reported by John W. Eaton.
10758
10759 2011-08-08  Bruno Haible  <bruno@clisp.org>
10760
10761         unictype/base: Fix interoperability with preinstalled libunistring.
10762         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10763         Reported by Simon Josefsson.
10764
10765 2011-08-08  Bruno Haible  <bruno@clisp.org>
10766
10767         iswblank: Detect declaration correctly.
10768         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10769         AC_CHECK_DECLS invocation.
10770
10771 2011-08-08  Bruno Haible  <bruno@clisp.org>
10772
10773         tcgetsid: Detect declaration correctly.
10774         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10775         AC_CHECK_DECLS invocation.
10776         Reported by Simon Josefsson.
10777
10778 2011-08-08  Eric Blake  <eblake@redhat.com>
10779
10780         largefile: fix typo that regressed large file support
10781         * modules/largefile (configure.ac-early): Fix section name.
10782
10783 2011-08-06  Karl Berry  <karl@gnu.org>
10784
10785         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10786         a separate module.
10787
10788 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10789
10790         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10791         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10792         get prototype for free.
10793
10794 2011-08-04  Bruno Haible  <bruno@clisp.org>
10795
10796         Tests for module 'pathmax'.
10797         * modules/pathmax-tests: New file.
10798         * tests/test-pathmax.c: New file.
10799
10800         canonicalize-lgpl: Support larger filenames on the Hurd.
10801         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10802         Reported by Paul Eggert.
10803
10804         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10805         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10806         * lib/chdir-long.h: Include pathmax.h.
10807         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10808         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10809         (PATH_MAX): Remove code that is done by pathmax.h.
10810         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10811         * lib/tmpfile.c: Add a comment.
10812         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10813         * modules/chdir-long (Depends-on): Add pathmax.
10814         * modules/getcwd (Depends-on): Add pathmax.
10815         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10816         is not defined.
10817         * doc/posix-headers/limits.texi: Mention the pathmax module.
10818         * NEWS: Mention the change.
10819
10820 2011-08-02  Bruno Haible  <bruno@clisp.org>
10821
10822         pthread_sigmask: Actually use results of gl_THREADLIB.
10823         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10824         gl_THREADLIB, not gl_[]THREADLIB.
10825         Reported by Eric Blake.
10826
10827 2011-08-02  Jim Meyering  <meyering@redhat.com>
10828
10829         maint.mk: relax the default _gl_TS_function_match regexp
10830         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10831         space between function name and "(" in an "extern" declaration.
10832         That would fail to match a decl with no space there: extern void foo();
10833
10834 2011-07-31  Iain Nicol  <iain@thenicols.net>
10835
10836         git-version-gen: document that EXTRA_DIST must include .version
10837         * build-aux/git-version-gen: In the how-to-use comment, document
10838         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10839         will fail when run from an unpacked distribution tarball.
10840
10841 2011-08-01  Bruno Haible  <bruno@clisp.org>
10842
10843         wctype-h: Fix last change.
10844         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10845         REPLACE_TOWLOWER to 0.
10846         Reported by Sam Steingold <sds@gnu.org>.
10847
10848 2011-07-31  Bruno Haible  <bruno@clisp.org>
10849
10850         frexpl: Update autoconf test.
10851         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10852         according to changes of 2011-06-20.
10853
10854 2011-07-31  Bruno Haible  <bruno@clisp.org>
10855
10856         sys_utsname: Add support for Minix.
10857         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10858         <sys/utsname.h>.
10859         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10860         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10861
10862 2011-07-31  Bruno Haible  <bruno@clisp.org>
10863
10864         strings: Add support for Minix.
10865         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10866         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10867         * doc/posix-headers/strings.texi: Document the Minix problem.
10868
10869 2011-07-31  Bruno Haible  <bruno@clisp.org>
10870
10871         wctype-h: Add support for Minix.
10872         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10873         REPLACE_TOWLOWER.
10874         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10875         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10876         REPLACE_ISWCNTRL.
10877
10878 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10879
10880         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10881         This is a performance improvement for 64-bit hosts: it causes the
10882         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10883
10884 2011-07-31  Bruno Haible  <bruno@clisp.org>
10885
10886         stdioext: Add support for Minix.
10887         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10888         * lib/fpurge.c (fpurge): Likewise.
10889         * lib/freadahead.c (freadahead): Likewise.
10890         * lib/freadable.c (freadable): Likewise.
10891         * lib/freading.c (freading): Likewise.
10892         * lib/freadptr.c (freadptr): Likewise.
10893         * lib/freadseek.c (freadptrinc): Likewise.
10894         * lib/fseeko.c (rpl_fseeko): Likewise.
10895         * lib/fseterr.c (fseterr): Likewise.
10896         * lib/fwritable.c (fwritable): Likewise.
10897         * lib/fwriting.c (fwriting): Likewise.
10898         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10899         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10900
10901 2011-07-31  Bruno Haible  <bruno@clisp.org>
10902
10903         errno: Port to Minix.
10904         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10905         ECONNABORTED are defined.
10906         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10907         GNULIB_defined_ECONNABORTED): New macros.
10908         * lib/strerror-override.h (strerror_override): Test also
10909         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10910         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10911         ECONNABORTED.
10912         * doc/posix-headers/errno.texi: Mention the Minix problem.
10913
10914 2011-07-31  Bruno Haible  <bruno@clisp.org>
10915
10916         Work around declaration collisions on Minix.
10917         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10918         defined, set REPLACE_MBSINIT.
10919         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10920         defined, set REPLACE_MBRTOWC.
10921         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10922         set REPLACE_MBRLEN.
10923         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10924         defined, set REPLACE_MBSRTOWCS.
10925         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10926         defined, set REPLACE_WCRTOMB.
10927         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10928         defined, set REPLACE_WCSRTOMBS.
10929
10930 2011-07-31  Bruno Haible  <bruno@clisp.org>
10931
10932         Add support for Minix with ACK compiler.
10933         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10934         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10935         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10936
10937 2011-07-31  Bruno Haible  <bruno@clisp.org>
10938
10939         Documentation about Minix.
10940         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10941         * doc/glibc-headers/*.texi: Likewise.
10942         * doc/posix-functions/*.texi: Likewise.
10943         * doc/glibc-functions/*.texi: Likewise.
10944
10945 2011-07-31  Bruno Haible  <bruno@clisp.org>
10946
10947         snippet/warn-on-use: Fix indentation.
10948         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10949
10950 2011-07-25  Jim Meyering  <meyering@redhat.com>
10951
10952         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10953         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10954         commands.
10955
10956 2011-07-27  Jim Meyering  <meyering@redhat.com>
10957
10958         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10959         * top/maint.mk (gl_extract_significant_defines_): Now that
10960         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10961         gnulib/lib/signal.in.h, and now that we recommend to
10962         define-if-undefined those two symbols in application code,
10963         we must filter them out of the "significant" list.
10964         This avoids a "make syntax-check" failure in coreutils.
10965
10966 2011-07-26  Eric Blake  <eblake@redhat.com>
10967
10968         warnings: add comments about previous patch
10969         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10970         * m4/include_next.m4: Likewise.
10971         * m4/warn-on-use.m4: Likewise.
10972         * m4/warnings.m4: Likewise, and simplify use.
10973         Suggested by Stefano Lattarini.
10974
10975         include-next, warnings: support older autoconf
10976         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10977         AS_VAR_PUSHDEF in a way that works with older autoconf.
10978         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10979         Reported by Daniel P. Berrange.
10980
10981 2011-07-25  Bruno Haible  <bruno@clisp.org>
10982
10983         fseek, ftell: Fix doc.
10984         * doc/posix-functions/fseek.texi: Reword statement about
10985         AC_SYS_LARGEFILE.
10986         * doc/posix-functions/ftell.texi: Likewise.
10987
10988 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10989             Bruno Haible  <bruno@clisp.org>
10990
10991         Add dependencies to the 'largefile' module.
10992         * modules/fopen (Depends-on): Add 'largefile'.
10993         * modules/freopen (Depends-on): Likewise.
10994         * modules/fseeko (Depends-on): Likewise.
10995         * modules/ftello (Depends-on): Likewise.
10996         * modules/glob (Depends-on): Likewise.
10997         * modules/lseek (Depends-on): Likewise.
10998         * modules/lstat (Depends-on): Likewise.
10999         * modules/mkostemp (Depends-on): Likewise.
11000         * modules/mkostemps (Depends-on): Likewise.
11001         * modules/mkstemp (Depends-on): Likewise.
11002         * modules/mkstemps (Depends-on): Likewise.
11003         * modules/open (Depends-on): Likewise.
11004         * modules/openat (Depends-on): Likewise.
11005         * modules/pread (Depends-on): Likewise.
11006         * modules/pwrite (Depends-on): Likewise.
11007         * modules/scandir (Depends-on): Likewise.
11008         * modules/stat (Depends-on): Likewise.
11009         * modules/tmpfile (Depends-on): Likewise.
11010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11011         since the containing module now depends on the largefile module.
11012         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11013         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11014         off_t is fixed by gnulib.
11015         * doc/posix-functions/freopen.texi: Likewise.
11016         * doc/posix-functions/fseeko.texi: Likewise.
11017         * doc/posix-functions/fstatat.texi: Likewise.
11018         * doc/posix-functions/ftello.texi: Likewise.
11019         * doc/posix-functions/glob.texi: Likewise.
11020         * doc/posix-functions/lseek.texi: Likewise.
11021         * doc/posix-functions/lstat.texi: Likewise.
11022         * doc/posix-functions/mkstemp.texi: Likewise.
11023         * doc/posix-functions/open.texi: Likewise.
11024         * doc/posix-functions/openat.texi: Likewise.
11025         * doc/posix-functions/pread.texi: Likewise.
11026         * doc/posix-functions/pwrite.texi: Likewise.
11027         * doc/posix-functions/scandir.texi: Likewise.
11028         * doc/posix-functions/stat.texi: Likewise.
11029         * doc/posix-functions/tmpfile.texi: Likewise.
11030         * doc/glibc-functions/mkostemp.texi: Likewise.
11031         * doc/glibc-functions/mkostemps.texi: Likewise.
11032         * doc/glibc-functions/mkstemps.texi: Likewise.
11033
11034 2011-07-25  Bruno Haible  <bruno@clisp.org>
11035
11036         fcntl: Move AC_LIBOBJ invocation to module description.
11037         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11038         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11039
11040         fcntl: Remove call-in from fchdir.m4.
11041         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11042         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11043
11044         dup3: Remove potential call-in from fchdir.m4.
11045         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11047
11048         dup2: Move AC_LIBOBJ invocation to module description.
11049         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11050         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11051         Don't invoke AC_LIBOBJ.
11052         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11053
11054         dup2: Remove call-in from fchdir.m4.
11055         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11057
11058         fclose: Move AC_LIBOBJ invocation to module description.
11059         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11060         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11061         to 1.
11062         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11063
11064         fclose: Remove call-in from close.m4.
11065         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11066         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11067
11068         close: Move AC_LIBOBJ invocation to module description.
11069         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11070         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11071         1.
11072         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11073
11074         close: Remove call-in from fchdir.m4.
11075         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11077
11078         open: Move AC_LIBOBJ invocation to module description.
11079         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11080         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11081         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11082
11083         open: Remove call-in from fchdir.m4.
11084         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11086
11087         fchdir: Start to remove gl_REPLACE_* idiom.
11088         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11089         (gl_FUNC_FCHDIR): Invoke it.
11090
11091 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11092
11093         * lib/ftell.c (ftell): Comment out cast.
11094
11095         close: use gl_REPLACE_FCLOSE only if defined
11096         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11097         is defined.  The close module doesn't depend on the fclose module
11098         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11100         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11101
11102 2011-07-24  Jim Meyering  <meyering@redhat.com>
11103
11104         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11105         * tests/test-select.h (test_function): Declare as "static".
11106
11107 2011-07-24  Bruno Haible  <bruno@clisp.org>
11108
11109         doc: Mention the effects of AC_SYS_LARGEFILE.
11110         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11111         on this function.
11112         * doc/posix-functions/aio_error.texi: Likewise.
11113         * doc/posix-functions/aio_fsync.texi: Likewise.
11114         * doc/posix-functions/aio_read.texi: Likewise.
11115         * doc/posix-functions/aio_return.texi: Likewise.
11116         * doc/posix-functions/aio_suspend.texi: Likewise.
11117         * doc/posix-functions/aio_write.texi: Likewise.
11118         * doc/posix-functions/fgetpos.texi: Likewise.
11119         * doc/posix-functions/fopen.texi: Likewise.
11120         * doc/posix-functions/freopen.texi: Likewise.
11121         * doc/posix-functions/fsetpos.texi: Likewise.
11122         * doc/posix-functions/fstatvfs.texi: Likewise.
11123         * doc/posix-functions/ftruncate.texi: Likewise.
11124         * doc/posix-functions/ftw.texi: Likewise.
11125         * doc/posix-functions/getrlimit.texi: Likewise.
11126         * doc/posix-functions/glob.texi: Likewise.
11127         * doc/posix-functions/lio_listio.texi: Likewise.
11128         * doc/posix-functions/lockf.texi: Likewise.
11129         * doc/posix-functions/mkstemp.texi: Likewise.
11130         * doc/posix-functions/mmap.texi: Likewise.
11131         * doc/posix-functions/nftw.texi: Likewise.
11132         * doc/posix-functions/openat.texi: Likewise.
11133         * doc/posix-functions/opendir.texi: Likewise.
11134         * doc/posix-functions/posix_fadvise.texi: Likewise.
11135         * doc/posix-functions/posix_fallocate.texi: Likewise.
11136         * doc/posix-functions/pread.texi: Likewise.
11137         * doc/posix-functions/pwrite.texi: Likewise.
11138         * doc/posix-functions/readdir.texi: Likewise.
11139         * doc/posix-functions/readdir_r.texi: Likewise.
11140         * doc/posix-functions/rewinddir.texi: Likewise.
11141         * doc/posix-functions/scandir.texi: Likewise.
11142         * doc/posix-functions/seekdir.texi: Likewise.
11143         * doc/posix-functions/setrlimit.texi: Likewise.
11144         * doc/posix-functions/statvfs.texi: Likewise.
11145         * doc/posix-functions/telldir.texi: Likewise.
11146         * doc/posix-functions/tmpfile.texi: Likewise.
11147         * doc/posix-functions/truncate.texi: Likewise.
11148         * doc/glibc-functions/fallocate.texi: Likewise.
11149         * doc/glibc-functions/fstatfs.texi: Likewise.
11150         * doc/glibc-functions/fts_children.texi: Likewise.
11151         * doc/glibc-functions/fts_read.texi: Likewise.
11152         * doc/glibc-functions/getdirentries.texi: Likewise.
11153         * doc/glibc-functions/mkostemp.texi: Likewise.
11154         * doc/glibc-functions/mkostemps.texi: Likewise.
11155         * doc/glibc-functions/mkstemps.texi: Likewise.
11156         * doc/glibc-functions/preadv.texi: Likewise.
11157         * doc/glibc-functions/pwritev.texi: Likewise.
11158         * doc/glibc-functions/sendfile.texi: Likewise.
11159         * doc/glibc-functions/statfs.texi: Likewise.
11160
11161 2011-07-24  Bruno Haible  <bruno@clisp.org>
11162
11163         doc: Fix typo.
11164         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11165
11166 2011-07-24  Bruno Haible  <bruno@clisp.org>
11167
11168         doc: Mention fsusage.
11169         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11170
11171 2011-07-24  Bruno Haible  <bruno@clisp.org>
11172
11173         doc: Mention new glibc headers and functions.
11174         * doc/glibc-headers/gshadow.texi: New file.
11175         * doc/glibc-functions/endsgent.texi: New file.
11176         * doc/glibc-functions/fgetsgent.texi: New file.
11177         * doc/glibc-functions/fgetsgent_r.texi: New file.
11178         * doc/glibc-functions/getsgent.texi: New file.
11179         * doc/glibc-functions/getsgent_r.texi: New file.
11180         * doc/glibc-functions/getsgnam.texi: New file.
11181         * doc/glibc-functions/getsgnam_r.texi: New file.
11182         * doc/glibc-functions/putsgent.texi: New file.
11183         * doc/glibc-functions/setsgent.texi: New file.
11184         * doc/glibc-functions/sgetsgent.texi: New file.
11185         * doc/glibc-functions/sgetsgent_r.texi: New file.
11186         * doc/glibc-functions/malloc_info.texi: New file.
11187         * doc/glibc-functions/preadv.texi: New file.
11188         * doc/glibc-functions/pwritev.texi: New file.
11189         * doc/glibc-functions/register_printf_modifier.texi: New file.
11190         * doc/glibc-functions/register_printf_specifier.texi: New file.
11191         * doc/glibc-functions/register_printf_type.texi: New file.
11192         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11193         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11194         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11195         * doc/glibc-functions/pthread_getname_np.texi: New file.
11196         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11197         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11198         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11199         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11200         * doc/glibc-functions/pthread_setname_np.texi: New file.
11201         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11202         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11203         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11204         * doc/glibc-functions/qsort_r.texi: New file.
11205         * doc/glibc-functions/quick_exit.texi: New file.
11206         * doc/glibc-functions/syncfs.texi: New file.
11207         * doc/gnulib.texi: Include them.
11208         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11209         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11210         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11211         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11212         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11213         * doc/glibc-functions/execvpe.texi: Likewise.
11214
11215 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11216
11217         ftell: don't include <unistd.h>
11218         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11219         guaranteed to define off_t, and the ftell module depends on the
11220         stdio module.
11221
11222         ftell: do not assume wraparound signed arithmetic
11223         * lib/ftell.c: Include <limits.h>.
11224         (ftell): Don't assume wraparound signed arithmetic.
11225
11226 2011-07-24  Bruno Haible  <bruno@clisp.org>
11227
11228         close: No longer depend on module 'fclose'.
11229         * modules/close (Depends-on): Remove fclose.
11230         * NEWS: Mention the change.
11231         Suggested by Sam Steingold <sds@gnu.org>.
11232
11233 2011-07-24  Bruno Haible  <bruno@clisp.org>
11234
11235         fsusage: Enable large volume support on AIX >= 5.2.
11236         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11237         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11238         instead of STAT_STATVFS.
11239         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11240
11241         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11242         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11243         f_blocks field only on MacOS X.
11244
11245         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11246         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11247         * modules/fsusage (Depends-on): Add largefile.
11248
11249 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11250
11251         * README: Modernize discussion of signed integers.
11252         Assuming overflow wraparound is no longer safe.
11253         Mention ones' complement and signed magnitude.
11254
11255 2011-07-22  Bruno Haible  <bruno@clisp.org>
11256
11257         select tests, pselect tests: Refactor.
11258         * tests/test-select.h: New file, extracted from tests/test-select.c.
11259         (select_fn): New type.
11260         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11261         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11262         test_pipe): Add my_select argument.
11263         (test_function): Renamed from main. Add my_select argument.
11264         * tests/test-select.c: Move most code to tests/test-select.h. Include
11265         test-select.h.
11266         * modules/select-tests (Files): Add tests/test-select.h.
11267         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11268         (my_select, main): New functions.
11269         * modules/pselect-tests (Files): Add tests/test-select.h,
11270         tests/macros.h, tests/signature.h.
11271         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11272         (configure.ac): Check for <sys/wait.h>.
11273
11274 2011-07-22  Bruno Haible  <bruno@clisp.org>
11275
11276         sys_select tests: Check the signature of FD_*.
11277         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11278         signature tests from here...
11279         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11280         here.
11281         * modules/sys_select-tests (Files): Add tests/signature.h.
11282
11283 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11284
11285         largefile: new module, replacing large-inode
11286         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11287         * MODULES.html.sh: Add largefile, remove large-inode.
11288         * modules/largefile, m4/largefile.m4: New files.
11289         * modules/large-inode, m4/large-inode.m4: Remove.
11290
11291         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11292         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11293         implementations that use only 32 bits to count blocks.
11294         On typical hosts with 1024-byte blocks, this fails with file
11295         systems as small as 4 TiB.  Problem reported by Herb Wartens
11296         <http://debbugs.gnu.org/9140> and this should also fix a similar
11297         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11298
11299         large-inode: New module
11300         * MODULES.html.sh: Add it.
11301         * modules/large-inode, m4/large-inode.m4: New files.
11302
11303         extensions: Enable extensions on MacOS X 10.5 and later.
11304         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11305
11306 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11307
11308         file-has-acl: use acl_extended_file_nofollow if available
11309         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11310         (acl_extended_file): New macro.
11311         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11312         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11313
11314 2011-07-21  Bruno Haible  <bruno@clisp.org>
11315
11316         Declare system functions in a way that works with C++.
11317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11318         declare fdopendir as extern "C".
11319         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11320         declare frexpl as extern "C".
11321         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11322         declare gai_strerror as extern "C".
11323         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11324         programs, declare gai_strerror as extern "C".
11325         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11326         declare getlogin_r as extern "C".
11327         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11328         as extern "C".
11329         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11330         declare ldexpl as extern "C".
11331         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11332         as extern "C".
11333         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11334         program, declare getmntinfo as extern "C".
11335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11336         stpncpy as extern "C".
11337         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11338         program, declare __xpg_strerror_r as extern "C".
11339         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11340         strndup as extern "C".
11341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11342         declare memset and bzero as extern "C".
11343         Reported by Sam Steingold <sds@gnu.org>.
11344
11345 2011-07-12  Jim Meyering  <meyering@redhat.com>
11346
11347         maint.mk: prohibit inclusion of "verify.h" without use
11348         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11349
11350 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11351
11352         timer-time: A new module to check for timer_settime()
11353         * m4/timer_time.m4: Check for the posix function.
11354         * modules/timer-time: Add the new module.
11355         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11356         Mention it.
11357
11358 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11359             Bruno Haible  <bruno@clisp.org>
11360
11361         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11362         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11363         not defined, assume POSIX threads and look for pthread_sigmask in
11364         $LIBS, without changing $CPPFLAGS.
11365
11366 2011-07-19  Bruno Haible  <bruno@clisp.org>
11367
11368         strstr: Update cross-compilation guess.
11369         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11370         CPUs, guess no, in view of glibc
11371         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11372         Suggested by Eric Blake. Reported by Reuben Thomas.
11373
11374 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11375
11376         getopt-gnu: suppress core dumps from detection code
11377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11378         to suppress core dumps that may well occur on glibc systems.
11379         * modules/getopt-gnu: Depend on nocrash.
11380
11381 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11382
11383         pthread_sigmask: ensure usleep is declared
11384         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11385         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11386
11387 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11388
11389         doc: Document NonStop portability issues.
11390         * doc/posix-functions/sigaction.texi (sigaction):
11391         * doc/posix-headers/signal.texi (signal.h):
11392         Document NonStop.  See Joachim Schmitz in
11393         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11394
11395 2011-07-15  Bruno Haible  <bruno@clisp.org>
11396
11397         ffsl, ffsll: Avoid unportable behaviour.
11398         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11399
11400 2011-07-15  Bruno Haible  <bruno@clisp.org>
11401
11402         ffs: More tests.
11403         * tests/test-ffs.c (NBITS): New macro.
11404         (main): Add more tests.
11405         * tests/test-ffsl.c (NBITS): New macro.
11406         (main): Add more tests.
11407         * tests/test-ffsll.c (NBITS): New macro.
11408         (main): Add more tests.
11409
11410 2011-07-15  Eric Blake  <eblake@redhat.com>
11411
11412         ffsl, ffsll: new modules
11413         * modules/ffsl: New file.
11414         * modules/ffsll: Likewise.
11415         * m4/ffsl.m4: Likewise.
11416         * m4/ffsll.m4: Likewise.
11417         * lib/ffsl.c: Likewise.
11418         * lib/ffsl.h: Likewise.
11419         * lib/ffsll.c: Likewise.
11420         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11421         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11422         * modules/string (Makefile.am): Substitute witnesses.
11423         * lib/strings.in.h (ffsl, ffsll): Declare.
11424         * modules/ffsl-tests: New test file.
11425         * modules/ffsll-tests: Likewise.
11426         * tests/test-ffsl.c: Likewise.
11427         * tests/test-ffsll.c: Likewise.
11428         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11429         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11430         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11431
11432         ffs: fix m4 prerequisite
11433         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11434
11435         ffs: avoid undefined behavior
11436         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11437         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11438         Reported by Bruno Haible.
11439
11440 2011-07-12  Bruno Haible  <bruno@clisp.org>
11441
11442         pthread_sigmask: Rely on module 'threadlib'.
11443         * modules/pthread_sigmask (Depends-on): Add threadlib.
11444         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11445         is defined.
11446
11447 2011-07-12  Bruno Haible  <bruno@clisp.org>
11448
11449         regex: Depend on module 'strcase'.
11450         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11451
11452 2011-07-12  Jim Meyering  <meyering@redhat.com>
11453
11454         warn-on-use: fix typo in file name
11455         * modules/snippet/warn-on-use (Files): Correct file name:
11456         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11457
11458 2011-07-12  Bruno Haible  <bruno@clisp.org>
11459
11460         strings: Document module.
11461         * doc/posix-headers/strings.texi: Mention module 'strings'.
11462
11463 2011-07-12  Bruno Haible  <bruno@clisp.org>
11464
11465         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11466         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11467         (Files, Makefile.am): Update.
11468         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11469         * modules/stdlib (Depends-on): Update.
11470
11471 2011-07-12  Bruno Haible  <bruno@clisp.org>
11472
11473         * NEWS: Mention the changes.
11474
11475         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11476         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11477         (Files, Makefile.am): Update.
11478         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11479         * modules/arpa_inet (Depends-on): Update.
11480         * modules/ctype (Depends-on): Update.
11481         * modules/dirent (Depends-on): Update.
11482         * modules/fcntl-h (Depends-on): Update.
11483         * modules/glob (Depends-on): Update.
11484         * modules/iconv-h (Depends-on): Update.
11485         * modules/inttypes-incomplete (Depends-on): Update.
11486         * modules/langinfo (Depends-on): Update.
11487         * modules/locale (Depends-on): Update.
11488         * modules/math (Depends-on): Update.
11489         * modules/netdb (Depends-on): Update.
11490         * modules/poll-h (Depends-on): Update.
11491         * modules/pty (Depends-on): Update.
11492         * modules/search (Depends-on): Update.
11493         * modules/signal (Depends-on): Update.
11494         * modules/spawn (Depends-on): Update.
11495         * modules/stdio (Depends-on): Update.
11496         * modules/stdlib (Depends-on): Update.
11497         * modules/string (Depends-on): Update.
11498         * modules/strings (Depends-on): Update.
11499         * modules/sys_file (Depends-on): Update.
11500         * modules/sys_ioctl (Depends-on): Update.
11501         * modules/sys_select (Depends-on): Update.
11502         * modules/sys_socket (Depends-on): Update.
11503         * modules/sys_stat (Depends-on): Update.
11504         * modules/sys_time (Depends-on): Update.
11505         * modules/sys_times (Depends-on): Update.
11506         * modules/sys_utsname (Depends-on): Update.
11507         * modules/sys_wait (Depends-on): Update.
11508         * modules/termios (Depends-on): Update.
11509         * modules/time (Depends-on): Update.
11510         * modules/unistd (Depends-on): Update.
11511         * modules/wchar (Depends-on): Update.
11512         * modules/wctype-h (Depends-on): Update.
11513         * MODULES.html.sh (Support for building libraries and executables):
11514         Update.
11515
11516         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11517         * modules/snippet/unused-parameter: Renamed from
11518         modules/unused-parameter.
11519         (Files, Makefile.am): Update.
11520         * build-aux/snippet/unused-parameter.h: Renamed from
11521         build-aux/unused-parameter.h.
11522         * modules/selinux-h (Depends-on): Update.
11523         * modules/unistr/base (Depends-on): Update.
11524         * MODULES.html.sh (Core language properties): Update.
11525
11526         Rename module 'link-warning' to 'snippet/link-warning'.
11527         * modules/snippet/link-warning: Renamed from modules/link-warning.
11528         (Files, Makefile.am): Update.
11529         * build-aux/snippet/link-warning.h: Renamed from
11530         build-aux/link-warning.h.
11531         * MODULES.html.sh (Support for building libraries and executables):
11532         Update.
11533
11534         Rename module 'c++defs' to 'snippet/c++defs'.
11535         * modules/snippet/c++defs: Renamed from modules/c++defs.
11536         (Files, Makefile.am): Update.
11537         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11538         * modules/arpa_inet (Depends-on): Update.
11539         * modules/ctype (Depends-on): Update.
11540         * modules/dirent (Depends-on): Update.
11541         * modules/fcntl-h (Depends-on): Update.
11542         * modules/glob (Depends-on): Update.
11543         * modules/iconv-h (Depends-on): Update.
11544         * modules/langinfo (Depends-on): Update.
11545         * modules/locale (Depends-on): Update.
11546         * modules/math (Depends-on): Update.
11547         * modules/netdb (Depends-on): Update.
11548         * modules/poll-h (Depends-on): Update.
11549         * modules/pty (Depends-on): Update.
11550         * modules/search (Depends-on): Update.
11551         * modules/signal (Depends-on): Update.
11552         * modules/spawn (Depends-on): Update.
11553         * modules/stdio (Depends-on): Update.
11554         * modules/stdlib (Depends-on): Update.
11555         * modules/string (Depends-on): Update.
11556         * modules/strings (Depends-on): Update.
11557         * modules/sys_ioctl (Depends-on): Update.
11558         * modules/sys_select (Depends-on): Update.
11559         * modules/sys_socket (Depends-on): Update.
11560         * modules/sys_stat (Depends-on): Update.
11561         * modules/sys_time (Depends-on): Update.
11562         * modules/sys_wait (Depends-on): Update.
11563         * modules/termios (Depends-on): Update.
11564         * modules/time (Depends-on): Update.
11565         * modules/unistd (Depends-on): Update.
11566         * modules/wchar (Depends-on): Update.
11567         * modules/wctype-h (Depends-on): Update.
11568
11569         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11570         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11571         (Files, Makefile.am): Update.
11572         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11573         * modules/argv-iter (Depends-on): Update.
11574         * modules/arpa_inet (Depends-on): Update.
11575         * modules/dirent (Depends-on): Update.
11576         * modules/fcntl-h (Depends-on): Update.
11577         * modules/fnmatch (Depends-on): Update.
11578         * modules/getopt-posix (Depends-on): Update.
11579         * modules/glob (Depends-on): Update.
11580         * modules/iconv-h (Depends-on): Update.
11581         * modules/inttypes-incomplete (Depends-on): Update.
11582         * modules/locale (Depends-on): Update.
11583         * modules/math (Depends-on): Update.
11584         * modules/netdb (Depends-on): Update.
11585         * modules/search (Depends-on): Update.
11586         * modules/signal (Depends-on): Update.
11587         * modules/spawn (Depends-on): Update.
11588         * modules/stdio (Depends-on): Update.
11589         * modules/stdlib (Depends-on): Update.
11590         * modules/string (Depends-on): Update.
11591         * modules/strings (Depends-on): Update.
11592         * modules/sys_socket (Depends-on): Update.
11593         * modules/sys_stat (Depends-on): Update.
11594         * modules/sys_time (Depends-on): Update.
11595         * modules/sys_times (Depends-on): Update.
11596         * modules/sys_utsname (Depends-on): Update.
11597         * modules/time (Depends-on): Update.
11598         * modules/unistd (Depends-on): Update.
11599         * modules/wchar (Depends-on): Update.
11600         * MODULES.html.sh (Support for building libraries and executables):
11601         Update.
11602
11603 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11604
11605         Improvements on _Noreturn and related modules.
11606
11607         modules/_Exit-tests: test _Noreturn too
11608         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11609         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11610         (main): Use them.
11611
11612         stdnoreturn, stdnoreturn-tests: remove modules
11613         They're not needed here and a bit premature for use elsewhere.  See
11614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11615         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11616         * tests/test-stdnoreturn.c: Remove files.
11617         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11618         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11619         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11620         and using noreturn.
11621         * modules/openat, modules/sigpipe-die, modules/xalloc:
11622         * modules/xmemdup0, modules/xstrtol:
11623         Remove dependency on stdnoreturn.
11624
11625         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11626         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11627         Reparenthesize to avoid GCC warning.
11628         Support Microsoft's syntax.
11629         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11630
11631         _Noreturn-tests: remove module
11632         * modules/_Noreturn-tests: Remove.
11633         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11634         * tests/test-_Noreturn.c: Remove.
11635         * tests/test-stdnoreturn.c: Merge from the old
11636         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11637
11638 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11639
11640         _Noreturn, stdnoreturn, and related modules.
11641
11642         * top/maint.mk: Adjust to new noreturn support.
11643         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11644         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11645
11646         xalloc: use stdnoreturn.h
11647         * lib/xalloc.h: Include <stdnoreturn.h>.
11648         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11649         * modules/xalloc (Depends-on): Add stdnoreturn.
11650
11651         xstrtol: use stdnoreturn.h
11652         * lib/xstrtol.h: Include <stdnoreturn.h>.
11653         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11654         * modules/xstrtol (Depends-on): Add stdnoreturn.
11655
11656         xmemdup0: use stdnoreturn.h
11657         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11658         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11659         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11660
11661         sigpipe-die: use stdnoreturn.h
11662         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11663         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11664         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11665
11666         openat: use stdnoreturn.h
11667         * lib/openat.h: Include <stdnoreturn.h>.
11668         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11669         * modules/openat (Depends-on): Add stdnoreturn.
11670
11671         * lib/openat-die.c (openat_save_fail): Modernize comment.
11672
11673         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11674
11675         * lib/glthread/thread.h: Modernize comment.
11676
11677         obstack: use _Noreturn
11678         * lib/obstack.c (__attribute__): Remove macro.
11679         (print_and_abort): Use _Noreturn.
11680
11681         c-stack: use _Noreturn
11682         * lib/c-stack.c (die, overflow_handler, segv_handler):
11683         Use _Noreturn rather than __attribute__((noreturn)).
11684
11685         argmatch-tests, exclude_tests: use _Noreturn
11686         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11687         Remove.
11688         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11689
11690         stdlib: use _Noreturn
11691         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11692         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11693         * modules/stdlib (Depends-on): Add _Noreturn.
11694         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11695
11696         stdnoreturn-tests: new module
11697         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11698
11699         stdnoreturn: new module
11700         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11701         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11702
11703         _Noreturn-tests: new module
11704         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11705
11706         _Noreturn: new module
11707         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11708         New section, mentioning it.
11709         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11710
11711         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11712
11713 2011-07-11  Eric Blake  <eblake@redhat.com>
11714
11715         ffs: new module
11716         * modules/ffs: New file.
11717         * m4/ffs.m4: Likewise.
11718         * lib/ffs.c: Likewise.
11719         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11720         * modules/strings (Makefile.am): Substitute witness.
11721         (Depends-on): Add c++defs.
11722         * lib/strings.in.h (ffs): Declare.
11723         * modules/ffs-tests: New test file.
11724         * tests/test-ffs.c: Test new module.
11725         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11726         * doc/posix-functions/ffs.texi (ffs): Likewise.
11727
11728         regex: avoid compiler warning
11729         * lib/regex.c (includes): Include <strings.h>, for use of
11730         strcasecmp in regcomp.c.
11731         Reported by Joachim Schmitz.
11732
11733 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11734
11735         stdint: respect system's intmax_t if INTMAX_MAX
11736         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11737         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11738         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11739         long but int64_t is long long, and where we will clash with the
11740         system intmax_t if we override it.  See
11741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11742         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11743         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11744         similarly for UINTMAX_C.
11745
11746 2011-07-08  Bruno Haible  <bruno@clisp.org>
11747
11748         pthread_sigmask tests: Avoid a compiler warning.
11749         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11750         non-zero.
11751
11752         sigprocmask tests: A better way to avoid a compiler warning.
11753         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11754         (main): Complain if system() returns non-zero.
11755         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11756
11757 2011-07-08  Bruno Haible  <bruno@clisp.org>
11758
11759         pthread_sigmask: Work around IRIX bug.
11760         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11761         bug.
11762         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11763         there may be unblocked pending signals.
11764         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11765
11766 2011-07-08  Bruno Haible  <bruno@clisp.org>
11767
11768         pthread_sigmask: Work around Cygwin bug.
11769         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11770         bug.
11771         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11772         the system's pthread_sigmask function.
11773         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11774
11775 2011-07-08  Bruno Haible  <bruno@clisp.org>
11776
11777         pthread_sigmask: Work around bug in single-threaded implementation.
11778         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11779         FreeBSD, HP-UX, Solaris bug.
11780         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11781         * lib/pthread_sigmask.c: Include <stddef.h>.
11782         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11783         the system's pthread_sigmask function.
11784         * modules/pthread_sigmask (configure.ac): Invoke
11785         gl_PREREQ_PTHREAD_SIGMASK.
11786         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11787         HP-UX, Solaris.
11788
11789 2011-07-08  Eric Blake  <eblake@redhat.com>
11790
11791         test-sigprocmask: avoid compiler warning
11792         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11793         * tests/test-sigprocmask.c (main): Use it to silence warning.
11794         Reported by Jim Meyering.
11795
11796         test-snprintf: avoid compiler warning
11797         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11798         * tests/test-vsnprintf.c (main): Likewise.
11799         Reported by Jim Meyering.
11800
11801 2011-07-08  Bruno Haible  <bruno@clisp.org>
11802
11803         Tests for module 'pthread_sigmask'.
11804         * modules/pthread_sigmask-tests: New file.
11805         * tests/test-pthread_sigmask1.c: New file, based on
11806         tests/test-sigprocmask.c.
11807         * tests/test-pthread_sigmask2.c: New file.
11808
11809 2011-07-08  Jim Meyering  <meyering@redhat.com>
11810
11811         test-getopt.h: avoid warning about an unused variable
11812         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11813
11814 2011-07-07  Jim Meyering  <meyering@redhat.com>
11815
11816         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11817         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11818         now that it no longer contains leading TABs.
11819         Remove unused "url=FIXME" statement.
11820
11821 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11822
11823         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11824         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11825         When gl_THREADLIB is not in use, assume that the POSIX sematics
11826         are desired.  This is better for Emacs, which uses POSIX semantics
11827         on GNUish and/or POSIXish platforms, and does not use threads at
11828         all otherwise.
11829
11830         pthread_sigmask: fix typo when testing for libraries
11831         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11832         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11833
11834 2011-07-08  Eric Blake  <eblake@redhat.com>
11835
11836         fts: introduce FTS_NOATIME
11837         * lib/fts_.h (FTS_NOATIME): New bit flag.
11838         (FTS_OPTIONMASK): Adjust.
11839         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11840         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11841
11842 2011-07-08  Bruno Haible  <bruno@clisp.org>
11843
11844         Tests for module 'thread'.
11845         * modules/thread-tests: New file.
11846         * tests/test-thread_self.c: New file.
11847         * tests/test-thread_create.cc: New file.
11848
11849 2011-07-08  Bruno Haible  <bruno@clisp.org>
11850
11851         thread: Avoid gcc warnings when using gl_thread_self().
11852         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11853         'void *'.
11854         (gl_thread_self_pointer): Update.
11855
11856 2011-07-07  Bruno Haible  <bruno@clisp.org>
11857
11858         signal-c++-tests: Check declaration of pthread_sigmask.
11859         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11860         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11861         $(LIB_PTHREAD_SIGMASK).
11862
11863 2011-07-07  Bruno Haible  <bruno@clisp.org>
11864
11865         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11866         * lib/signal.in.h (pthread_sigmask): Override if
11867         REPLACE_PTHREAD_SIGMASK is 1.
11868         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11869         REPLACE_PTHREAD_SIGMASK.
11870         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11871         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11872         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11873         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11874         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11875
11876 2011-07-07  Bruno Haible  <bruno@clisp.org>
11877
11878         pthread_sigmask: Ensure declaration in <signal.h>.
11879         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11880         include <pthread.h>.
11881         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11882         problem.
11883
11884 2011-07-07  Bruno Haible  <bruno@clisp.org>
11885
11886         pthread_sigmask: Document the module.
11887         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11888
11889 2011-07-07  Bruno Haible  <bruno@clisp.org>
11890
11891         pthread_sigmask: Follow gnulib conventions.
11892         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11893         gl_PTHREAD_SIGMASK.
11894         * modules/pthread_sigmask (configure.ac): Update.
11895
11896 2011-07-07  Bruno Haible  <bruno@clisp.org>
11897
11898         pthread_sigmask: Make declaration C++ safe.
11899         * lib/signal.in.h: In two special conditions, just do an #include_next.
11900         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11901         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11902         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11903         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11904         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11905         not REPLACE_PTHREAD_MASK.
11906         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11907         not REPLACE_PTHREAD_MASK.
11908         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11909
11910 2011-07-07  Bruno Haible  <bruno@clisp.org>
11911
11912         pthread_sigmask: Fix return value.
11913         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11914         * lib/pthread_sigmask.c: New file.
11915         * modules/pthread_sigmask (Files): Add it.
11916         (configure.ac): Invoke AC_LIBOBJ.
11917
11918 2011-07-07  Eric Blake  <eblake@redhat.com>
11919
11920         getopt: more portable argv creation
11921         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11922         const, use char arrays rather than strings.
11923         Suggested by Paul Eggert.
11924
11925 2011-07-07  Bruno Haible  <bruno@clisp.org>
11926
11927         Tests for module 'sigprocmask'.
11928         * modules/sigprocmask-tests: New file.
11929         * tests/test-sigprocmask.c: New file.
11930
11931 2011-07-07  Bruno Haible  <bruno@clisp.org>
11932
11933         float tests: Tweak.
11934         * tests/test-float.c (main): Tweak skip message.
11935
11936 2011-07-07  Eric Blake  <eblake@redhat.com>
11937
11938         getopt: avoid compiler warning during configure
11939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11940         assigning string literals to non-const pointer.
11941
11942         getopt-gnu: avoid crash in glibc getopt
11943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11944         * tests/test-getopt.h (test_getopt): Enhance test.
11945         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11946         * doc/posix-functions/getopt.texi (getopt): Document it.
11947         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11948         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11949         Likewise.
11950
11951 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11952
11953         getopt: handle W; without long options in getopt [BZ #12922]
11954         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11955         but no long options are defined, just return 'W'.
11956
11957 2011-07-07  Bruno Haible  <bruno@clisp.org>
11958
11959         Avoid literal tabs.
11960         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11961         variable containing a tab instead of a literal tab.
11962         Reported by Jim Meyering.
11963
11964 2011-07-07  Bruno Haible  <bruno@clisp.org>
11965
11966         Comments.
11967         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11968
11969 2011-07-06  Bruno Haible  <bruno@clisp.org>
11970
11971         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11972         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11973         <winsock2.h>.
11974         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11975         lib/sys_socket.in.h.
11976         (close, gethostname): Hide declarations from <winsock2.h>.
11977         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11978         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11979         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11980         (select): Don't override if gnulib's <sys/select.h> was already
11981         included.
11982         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11983         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11984         setsockopt, shutdown, select): Tweak indentation.
11985
11986 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11987
11988         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11989         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11990         in an application that does not use the sys_select module.
11991
11992 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11993
11994         poll: do not return 0 on timeout=-1
11995         * lib/poll.c: Loop with yield if no events occured
11996
11997 2011-07-06  Eric Blake  <eblake@redhat.com>
11998
11999         pthread_sigmask: always replace when not using pthread
12000         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12001         replacement when using some threading other than pthread.  Fix
12002         logic bug.
12003
12004 2011-07-06  Bruno Haible  <bruno@clisp.org>
12005
12006         Comments.
12007         * m4/printf.m4: Update comments about mingw.
12008
12009 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12010
12011         sys_select: define sigset_t more portably
12012         * lib/sys_select.in.h: Always include <sys/types.h>, since
12013         we now need sigset_t and mingw defines it there.
12014         Include <signal.h> before split inclusion guard, to avoid
12015         mishaps on Solaris, whose <signal.h> eventually includes us.
12016         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12017         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12018         which come from ...
12019         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12020         gl_CHECK_TYPE_SIGSET_T.
12021         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12022         does the real work.
12023         * modules/sys_select (Depends-on): Add 'signal'.
12024
12025         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12026         Suggested by Bruno Haible.
12027
12028         pselect: Use pthread_sigmask, not sigprocmask.
12029         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12030         multithreaded apps better than sigprocmask does.
12031         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12032         sigprocmask directly.
12033
12034 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12035
12036         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12037         Don't #undef,  since we don't need any underlying pselect.
12038         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12039         (Depends-on): Add select.
12040         (Link): Add $(LIBSOCKET).
12041         These changes suggested by Bruno Haible.
12042
12043         pselect: document better
12044         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12045         * doc/posix-functions/pselect.texi (pselect): Document new module.
12046
12047         pthread_sigmask: new module
12048         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12049         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12050         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12051         This is done only as a macro; I don't know how well that'll
12052         work for C++.  Move <sys/types.h> include before the include_next,
12053         to avoid mishap on Solaris.
12054         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12055         * modules/signal (Makefile.am): Substitute the check's results.
12056         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12057
12058         test-pselect: new module
12059         * modules/pselect-tests, tests/test-pselect.c: New files.
12060         * tests/test-select.c, tests/test-sys_select-c++.cc:
12061         If TEST_PSELECT is defined, test pselect instead of testing select.
12062
12063         * tests/test-sys_select.c (sigset_t): Test for it, too.
12064         Suggested by Bruno Haible.
12065
12066 2011-07-05  Eric Blake  <eblake@redhat.com>
12067
12068         snprintf: guarantee %1$d, for libintl
12069         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12070         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12071         * doc/posix-functions/snprintf.texi (snprintf): Update.
12072         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12073         * tests/test-snprintf.c (main): Enhance test.
12074         * tests/test-vsnprintf.c (main): Likewise.
12075
12076 2011-07-05  Jim Meyering  <meyering@redhat.com>
12077
12078         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12079         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12080         per Bruno's request, to accommodate this idiom (no space after "#")
12081         even when the function is inside an #if block:
12082         char *
12083         gets (char *s)
12084         #undef gets
12085         {
12086           ...
12087         }
12088
12089 2011-07-04  Jim Meyering  <meyering@redhat.com>
12090
12091         maint: indent with spaces, not TABs, and add a rule to check this
12092         * tests/test-userspec.c: Indent with spaces, not TABs.
12093         * tests/test-argp.c: Likewise.
12094         * tests/test-c-stack2.sh: Likewise.
12095         * tests/test-parse-duration.sh: Likewise
12096         * m4/strtod.m4: Likewise.
12097         * m4/alloca.m4: Likewise.
12098         * m4/pselect.m4: Likewise.
12099         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12100
12101 2011-07-03  Jim Meyering  <meyering@redhat.com>
12102
12103         maint.mk: correct omissions in prohibit_argmatch_without_use check
12104         This rule would mistakenly report that argmatch.h is included without
12105         use even when both the argmatch and invalid_arg macro were used.
12106         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12107         of argmatch and invalid_arg.
12108
12109 2011-07-03  Bruno Haible  <bruno@clisp.org>
12110
12111         Comments about EINTR.
12112         * lib/safe-read.h: Explain the purpose of this module.
12113         * lib/safe-write.h: Likewise.
12114         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12115         module.
12116         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12117         module.
12118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12119
12120 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12121
12122         xnanosleep: Rewrite to use new dtotimespec module.
12123         It has the conversion code that used to be in xnanosleep.
12124         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12125         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12126         (TIME_T_MAX): Remove.
12127         (xnanosleep): Rewrite in terms of dtotimespec.
12128         * modules/xnanosleep (Depends-on): Add dtotimespec.
12129         Remove intprops, stdbool.
12130
12131         timespec-add, timespec-sub: new modules
12132         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12133         * lib/timespec-add.c, lib/timespec-sub.c:
12134         * modules/timespec-add, modules/timespec-sub: New files.
12135
12136         dtotimespec: new module
12137         * lib/timespec.h (dtotimespec): New decl.
12138         * lib/dtotimespec.c, modules/dtotimespec: New files.
12139
12140         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12141
12142         pselect: new module
12143         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12144         (pselect): New decls.
12145         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12146         since the standard pselect decl uses 'restrict'.
12147         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12148         HAVE_PSELECT, REPLACE_PSELECT.
12149         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12150         HAVE_PSELECT, REPLACE_PSELECT.
12151         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12152
12153         sys_select: don't depend on sys_socket
12154         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12156         This fix works on GNU and GNU-like platforms, but has not been tested
12157         on native Windows.
12158         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12160         gl_HEADER_SYS_SOCKET.
12161         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12162         gl_PREREQ_SYS_H_WINSOCK2.
12163
12164 2011-06-29  Eric Blake  <eblake@redhat.com>
12165
12166         pipe2: fix C89 compile problem
12167         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12168         Reported by Bruno Haible.
12169
12170         pipe, pipe2: don't corrupt fd on error
12171         * lib/pipe.c (pipe): Leave fd unchanged on error.
12172         * lib/pipe2.c (pipe2): Likewise.
12173         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12174         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12175
12176 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12177
12178         mmap-anon: do not use regular expressions inadvertently
12179         * m4/mmap-anon.m4: Remove trailing period from strings sought
12180         in the output.
12181
12182 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12183
12184         nanosleep: fix integer overflow problem
12185         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12186         arithmetic wraps around on overflow.
12187
12188         nanosleep: simplify carrying
12189         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12190         first call to the underyling nanosleep, not for the last one.
12191         This doesn't fix any bugs, but it simplifies the computation of
12192         the remaining delay.  Found while auditing integer overflow issues.
12193
12194         dup2: remove test for existence of fcntl
12195         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12196         "#if HAVE_FCNTL", in the configure-time test program.
12197         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12198         and therefore speeds up "configure" a bit.  Found while
12199         adding the dup2 module to Emacs.
12200
12201 2011-06-24  Eric Blake  <eblake@redhat.com>
12202
12203         maint.mk: enhance useless header checks
12204         * top/maint.mk (_sc_header_without_use): Check both include
12205         styles.
12206         (sc_prohibit_assert_without_use)
12207         (sc_prohibit_close_stream_without_use)
12208         (sc_prohibit_getopt_without_use)
12209         (sc_prohibit_quotearg_without_use)
12210         (sc_prohibit_quote_without_use)
12211         (sc_prohibit_long_options_without_use)
12212         (sc_prohibit_inttostr_without_use)
12213         (sc_prohibit_ignore_value_without_use)
12214         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12215         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12216         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12217         (sc_prohibit_hash_pjw_without_use)
12218         (sc_prohibit_safe_read_without_use)
12219         (sc_prohibit_argmatch_without_use)
12220         (sc_prohibit_canonicalize_without_use)
12221         (sc_prohibit_root_dev_ino_without_use)
12222         (sc_prohibit_openat_without_use)
12223         (sc_prohibit_c_ctype_without_use)
12224         (sc_prohibit_signal_without_use)
12225         (sc_prohibit_stdio--_without_use)
12226         (sc_prohibit_stdio-safer_without_use)
12227         (sc_prohibit_strings_without_use)
12228         (sc_prohibit_intprops_without_use)
12229         (sc_prohibit_stddef_without_use)
12230         (sc_prohibit_xfreopen_without_use): Update clients.
12231
12232 2011-06-24  Jim Meyering  <meyering@redhat.com>
12233
12234         syntax-check: keep one maint.mk rule in sync with its header
12235         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12236         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12237         I prefer to avoid temporary files here, so use <(...), but that
12238         is not supported by /bin/sh, so...
12239         (SHELL): Define to /bin/bash.
12240
12241 2011-06-24  Eric Blake  <eblake@redhat.com>
12242
12243         maint.mk: update sc_prohibit_intprops_without_use
12244         * top/maint.mk (_intprops_names): Match recent changes.
12245
12246 2011-06-24  Bruno Haible  <bruno@clisp.org>
12247
12248         strerror-override: No-op tweak.
12249         * lib/strerror-override.h (strerror_override): Reorder conditions,
12250         for consistency with lib/strerror-override.c.
12251
12252 2011-06-23  Eric Blake  <eblake@redhat.com>
12253
12254         maint.mk: test further PATH_MAX issues
12255         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12256         (sc_prohibit_path_max_allocation): ...and also test alloca.
12257         Suggested by Jim Meyering.
12258
12259 2011-06-22  Eric Blake  <eblake@redhat.com>
12260
12261         maint.mk: add syntax-check to avoid char[PATH_MAX]
12262         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12263
12264         stat: be robust to PATH_MAX definition
12265         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12266         * modules/stat (Depends-on): Add verify.
12267
12268         link: work around IRIX bug
12269         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12270         * lib/link.c (rpl_link): Work around it.
12271         * tests/test-link.h (test_link): Enhance test.
12272         * doc/posix-functions/link.texi (link): Document the bug.
12273
12274         getopt: silence clang warning
12275         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12276         dereference.
12277         Reported by Gustavo Martin Domato.
12278
12279 2011-06-22  Jim Meyering  <meyering@redhat.com>
12280
12281         bootstrap: do not insert a blank line into each .gitignore file
12282         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12283
12284 2011-06-21  Eric Blake  <eblake@redhat.com>
12285
12286         perror: test for output mismatch
12287         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12288         perror on IRIX.
12289
12290         strerror_r: fix OpenBSD behavior on out-of-range
12291         * lib/strerror_r.c (strerror_r): Always use maximal string.
12292         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12293
12294         strerror_r: fix OpenBSD behavior on 0
12295         * lib/strerror-override.c (strerror_override): Also override 0
12296         when needed.
12297         * lib/strerror-override.h (strerror_override): Likewise.
12298         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12299         earlier.
12300         * lib/strerror_r.c (strerror_r): Likewise.
12301         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12302         behavior...
12303         (gl_FUNC_STRERROR_0): ...into new macro.
12304         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12305         is overridden.
12306         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12307         * modules/strerror-override (Files): Add strerror.m4.
12308         (configure.ac): Also provide override for 0 when needed.
12309         * doc/posix-functions/strerror.texi (strerror): Document this.
12310         * doc/posix-functions/perror.texi (perror): Likewise.
12311
12312         perror: adjust array size
12313         * modules/perror (Depends-on): Add strerror-override.
12314         * lib/perror.c (perror): Use it to avoid magic number.
12315
12316         strerror-override: reduce size
12317         * lib/strerror-override.c (strerror_override): Use fewer lines.
12318
12319 2011-06-20  Bruno Haible  <bruno@clisp.org>
12320
12321         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12322         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12323
12324 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12325
12326         alloca: port to compilers that can optimize like GCC 4.6.0
12327         * lib/alloca.c (find_stack_direction): New signature, taken from
12328         Autoconf git.  This works with GCC 4.6.0.  This code should never
12329         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12330         be used with other compilers that optimize as well as GCC 4.6.0 does.
12331         (alloca): Adjust to new signature.
12332         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12333         New macro, which patches Autoconf in a similar way.
12334
12335         c-stack: stop worrying about stack direction
12336         * lib/c-stack.c (find_stack_direction): Remove.
12337         (segv_handler): Don't worry about stack direction growth, as it's
12338         too much of a pain to configure this correctly, given how compilers
12339         are optimizing-away our stack-growth detection code.  Instead, assume
12340         that any access to just before or just after the stack is OK.
12341         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12342         Don't require AC_FUNC_ALLOCA; no longer needed.
12343
12344 2011-06-20  Eric Blake  <eblake@redhat.com>
12345
12346         test-stat: don't allocate PATH_MAX bytes
12347         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12348         PATH_MAX-sized buffer.
12349         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12350         * modules/stat-tests (Depends-on): Likewise.
12351         * tests/test-fstatat.c (includes): Drop pathmax.h.
12352         * tests/test-stat.c (includes): Likewise.
12353         Reported by Bruno Haible.
12354
12355 2011-06-20  Bruno Haible  <bruno@clisp.org>
12356
12357         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12358         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12359         * lib/float.c: New file.
12360         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12361         REPLACE_FLOAT_LDBL.
12362         * modules/float (Files): Add lib/float.c.
12363         (configure.ac): Invoke AC_LIBOBJ.
12364         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12365
12366 2011-06-20  Bruno Haible  <bruno@clisp.org>
12367
12368         Tests for module 'float'.
12369         * modules/float-tests: New file.
12370         * tests/test-float.c: New file.
12371
12372 2011-06-19  Bruno Haible  <bruno@clisp.org>
12373
12374         isinf: Coding style.
12375         * lib/isinf.c: Use GNU coding style.
12376
12377 2011-06-19  Bruno Haible  <bruno@clisp.org>
12378
12379         linkat test: Avoid test failure on AIX 7.1.
12380         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12381         * tests/test-link.h (test_link): Likewise.
12382
12383 2011-06-19  Bruno Haible  <bruno@clisp.org>
12384
12385         pread test: Avoid test failure on OpenBSD 4.9.
12386         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12387
12388 2011-06-19  Bruno Haible  <bruno@clisp.org>
12389
12390         sprintf-posix: Fix test failure on AIX 7.1.
12391         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12392         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12393         on AIX.
12394         * doc/posix-functions/fprintf.texi: Likewise.
12395         * doc/posix-functions/printf.texi: Likewise.
12396         * doc/posix-functions/snprintf.texi: Likewise.
12397         * doc/posix-functions/sprintf.texi: Likewise.
12398         * doc/posix-functions/vdprintf.texi: Likewise.
12399         * doc/posix-functions/vfprintf.texi: Likewise.
12400         * doc/posix-functions/vprintf.texi: Likewise.
12401         * doc/posix-functions/vsnprintf.texi: Likewise.
12402         * doc/posix-functions/vsprintf.texi: Likewise.
12403
12404 2011-06-19  Bruno Haible  <bruno@clisp.org>
12405
12406         roundl-ieee: Fix test failure on AIX 7.1.
12407         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12408         * doc/posix-functions/roundl.texi: Mention problem with negative
12409         arguments.
12410
12411 2011-06-19  Bruno Haible  <bruno@clisp.org>
12412
12413         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12414         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12415         * doc/posix-functions/round.texi: Mention problem with negative
12416         arguments.
12417         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12418
12419 2011-06-19  Bruno Haible  <bruno@clisp.org>
12420
12421         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12422         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12423         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12424         * doc/posix-functions/roundf.texi: Mention problem with negative
12425         arguments.
12426         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12427
12428 2011-06-19  Bruno Haible  <bruno@clisp.org>
12429
12430         ceilf-ieee: Work around bug on MacOS X 10.5.
12431         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12432
12433         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12434         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12435         IEEE compliant, avoid compiler optimizations.
12436         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12437         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12438         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12439         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12440         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12441         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12442         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12443         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12444         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12445         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12446
12447 2011-06-19  Bruno Haible  <bruno@clisp.org>
12448
12449         ceilf-ieee: Work around bug on AIX 7.1.
12450         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12451         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12452
12453 2011-06-19  Bruno Haible  <bruno@clisp.org>
12454
12455         ceil-ieee: Work around bug on AIX 7.1.
12456         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12457         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12458
12459 2011-06-18  Bruno Haible  <bruno@clisp.org>
12460
12461         fsync test: Avoid test failure on MacOS X and AIX.
12462         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12463         EINVAL.
12464
12465 2011-06-18  Bruno Haible  <bruno@clisp.org>
12466
12467         openat, fdopendir tests: Fix link errors.
12468         * modules/openat-tests (Depends-on): Add progname.
12469         * modules/fdopendir-tests (Depends-on): Likewise.
12470         * tests/test-fchownat.c: Include progname.h.
12471         (main): Call set_program_name.
12472         * tests/test-fstatat.c: Include progname.h.
12473         (main): Call set_program_name.
12474         * tests/test-mkdirat.c: Include progname.h.
12475         (main): Call set_program_name.
12476         * tests/test-openat.c: Include progname.h.
12477         (main): Call set_program_name.
12478         * tests/test-unlinkat.c: Include progname.h.
12479         (main): Call set_program_name.
12480         * tests/test-fdopendir.c: Include progname.h.
12481         (main): Call set_program_name.
12482
12483 2011-06-18  Bruno Haible  <bruno@clisp.org>
12484
12485         Doc update.
12486         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12487         HP-UX.
12488         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12489
12490 2011-06-18  Bruno Haible  <bruno@clisp.org>
12491
12492         getcwd tests: Avoid compilation error on HP-UX 11.31.
12493         * modules/getcwd-tests (Depends-on): Add pathmax.
12494         * tests/test-getcwd.c: Include pathmax.h.
12495
12496 2011-06-18  Bruno Haible  <bruno@clisp.org>
12497
12498         isfinite, isinf: Fix link error on AIX 6 and 7.
12499         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12500         needed, also test the macro with a 'float' argument.
12501         * m4/isinf.m4 (gl_ISINF): Likewise.
12502
12503 2011-06-18  Bruno Haible  <bruno@clisp.org>
12504
12505         getloadavg: Don't clobber LIBS. Regression from previous commit.
12506         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12507         AC_CHECK_LIB from here...
12508         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12509         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12510         gl_func_getloadavg_done.
12511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12512
12513 2011-06-18  Bruno Haible  <bruno@clisp.org>
12514
12515         clean-temp: Improve documentation.
12516         * lib/clean-temp.h: Explain better how to use this module.
12517         Reported by John Darrington <john@darrington.wattle.id.au>.
12518
12519 2011-06-17  Bruno Haible  <bruno@clisp.org>
12520
12521         pread, pwrite: Avoid cc warning on AIX.
12522         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12523         (pwrite): Likewise.
12524
12525 2011-06-17  Bruno Haible  <bruno@clisp.org>
12526
12527         spawn-pipe tests: Fix link error.
12528         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12530
12531 2011-06-17  Bruno Haible  <bruno@clisp.org>
12532
12533         Tests: Remove unnecessary dependency.
12534         * modules/canonicalize-tests (Depends-on): Remove progname.
12535         * modules/chown-tests (Depends-on): Likewise.
12536         * modules/dirname-tests (Depends-on): Likewise.
12537         * modules/fdopendir-tests (Depends-on): Likewise.
12538         * modules/fdutimensat-tests (Depends-on): Likewise.
12539         * modules/hash-tests (Depends-on): Likewise.
12540         * modules/lchown-tests (Depends-on): Likewise.
12541         * modules/linkat-tests (Depends-on): Likewise.
12542         * modules/renameat-tests (Depends-on): Likewise.
12543         * modules/spawn-pipe-tests (Depends-on): Likewise.
12544         * modules/utimensat-tests (Depends-on): Likewise.
12545
12546 2011-06-17  Bruno Haible  <bruno@clisp.org>
12547
12548         spawn-pipe tests: Fix link error.
12549         * tests/test-spawn-pipe-child.c: Undefine fflush.
12550
12551 2011-06-17  Bruno Haible  <bruno@clisp.org>
12552
12553         Fix tests link errors.
12554         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12555         * modules/chown-tests (Makefile.am): Don't link test-chown with
12556         LIBINTL.
12557         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12558         LIBINTL.
12559         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12560         LIBINTL.
12561         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12562         LIBINTL.
12563
12564 2011-06-16  Bruno Haible  <bruno@clisp.org>
12565
12566         crypto/gc-sha1: Fix recent regression.
12567         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12568         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12569
12570         crypto/gc-md5: Fix recent regression.
12571         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12572
12573         crypto/gc-md4: Fix recent regression.
12574         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12575         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12576
12577         crypto/gc-arctwo: Fix recent regression.
12578         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12579         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12580
12581         crypto/gc-rijndael: Fix recent regression.
12582         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12583         (configure.ac): Invoke AC_LIBOBJ here.
12584         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12586
12587         crypto/gc-hmac-sha1: Fix recent regression.
12588         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12589         (configure.ac): Invoke AC_LIBOBJ here.
12590         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12592
12593         crypto/gc-hmac-md5: Fix recent regression.
12594         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12595         (configure.ac): Invoke AC_LIBOBJ here.
12596         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12598
12599         crypto/gc-des: Fix recent regression.
12600         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12601         (configure.ac): Invoke AC_LIBOBJ here.
12602         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12604
12605         crypto/gc-arcfour: Fix recent regression.
12606         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12607         (configure.ac): Invoke AC_LIBOBJ here.
12608         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12610
12611 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12612
12613         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12614         After the 2011-05-21 change, this macro requires
12615         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12616         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12617
12618 2011-06-16  Bruno Haible  <bruno@clisp.org>
12619
12620         fprintftime: Move AC_LIBOBJ invocations to module description.
12621         * m4/fprintftime.m4: Remove file.
12622         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12623         (configure.ac): Remove gl_FPRINTFTIME call.
12624         (Makefile.am): Augment lib_SOURCES.
12625         Reported by Jim Meyering.
12626
12627 2011-06-16  Bruno Haible  <bruno@clisp.org>
12628
12629         tmpfile-safer: Finish 2011-05-23 commit.
12630         * m4/stdio-safer.m4: Really remove file.
12631         Reported by Jim Meyering.
12632
12633 2011-06-16  Bruno Haible  <bruno@clisp.org>
12634
12635         syntax-check: Fix typo.
12636         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12637         printf-posix.m4.
12638         Reported by Jim Meyering.
12639
12640 2011-06-13  Jim Meyering  <meyering@redhat.com>
12641
12642         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12643         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12644
12645 2011-05-23  Bruno Haible  <bruno@clisp.org>
12646
12647         yesno: Move AC_LIBOBJ invocations to module description.
12648         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12649         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12650
12651 2011-05-23  Bruno Haible  <bruno@clisp.org>
12652
12653         xstrtol: Move AC_LIBOBJ invocations to module description.
12654         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12655         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12656
12657 2011-05-23  Bruno Haible  <bruno@clisp.org>
12658
12659         xstrtold: Move AC_LIBOBJ invocations to module description.
12660         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12661         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12662
12663 2011-05-23  Bruno Haible  <bruno@clisp.org>
12664
12665         xstrtod: Move AC_LIBOBJ invocations to module description.
12666         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12667         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12668
12669 2011-05-23  Bruno Haible  <bruno@clisp.org>
12670
12671         xnanosleep: Move AC_LIBOBJ invocations to module description.
12672         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12673         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12674
12675 2011-05-23  Bruno Haible  <bruno@clisp.org>
12676
12677         xgetcwd: Move AC_LIBOBJ invocations to module description.
12678         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12679         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12680
12681 2011-05-23  Bruno Haible  <bruno@clisp.org>
12682
12683         xalloc: Move AC_LIBOBJ invocations to module description.
12684         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12685         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12686
12687 2011-05-23  Bruno Haible  <bruno@clisp.org>
12688
12689         write-any-file: Move AC_LIBOBJ invocations to module description.
12690         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12691         invocation.
12692         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12693
12694 2011-05-23  Bruno Haible  <bruno@clisp.org>
12695
12696         utimens: Move AC_LIBOBJ invocations to module description.
12697         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12698         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12699
12700 2011-05-23  Bruno Haible  <bruno@clisp.org>
12701
12702         utimecmp: Move AC_LIBOBJ invocations to module description.
12703         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12704         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12705
12706 2011-05-23  Bruno Haible  <bruno@clisp.org>
12707
12708         userspec: Move AC_LIBOBJ invocations to module description.
12709         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12710         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12711
12712 2011-05-23  Bruno Haible  <bruno@clisp.org>
12713
12714         unlinkdir: Move AC_LIBOBJ invocations to module description.
12715         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12716         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12717
12718 2011-05-23  Bruno Haible  <bruno@clisp.org>
12719
12720         unistd-safer: Move AC_LIBOBJ invocations to module description.
12721         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12722         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12723
12724 2011-05-23  Bruno Haible  <bruno@clisp.org>
12725
12726         tempname: Move AC_LIBOBJ invocations to module description.
12727         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12728         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12729
12730 2011-05-23  Bruno Haible  <bruno@clisp.org>
12731
12732         strftime: Move AC_LIBOBJ invocations to module description.
12733         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12734         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12735
12736 2011-05-23  Bruno Haible  <bruno@clisp.org>
12737
12738         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12739         * m4/stdlib-safer.m4: Remove file.
12740         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12741         (configure.ac): Remove gl_STDLIB_SAFER call.
12742         (Makefile.am): Augment lib_SOURCES.
12743
12744 2011-05-23  Bruno Haible  <bruno@clisp.org>
12745
12746         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12747         * m4/stdio-safer.m4: Remove file.
12748         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12749         (configure.ac): Remove gl_TMPFILE_SAFER call.
12750         (Makefile.am): Augment lib_SOURCES.
12751
12752 2011-05-23  Bruno Haible  <bruno@clisp.org>
12753
12754         popen-safer: Move AC_LIBOBJ invocations to module description.
12755         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12756         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12757         (configure.ac): Remove gl_POPEN_SAFER call.
12758         (Makefile.am): Augment lib_SOURCES.
12759
12760 2011-05-23  Bruno Haible  <bruno@clisp.org>
12761
12762         freopen-safer: Move AC_LIBOBJ invocations to module description.
12763         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12764         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12765         (configure.ac): Remove gl_FREOPEN_SAFER call.
12766         (Makefile.am): Augment lib_SOURCES.
12767
12768 2011-05-23  Bruno Haible  <bruno@clisp.org>
12769
12770         fopen-safer: Move AC_LIBOBJ invocations to module description.
12771         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12772         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12773         (configure.ac): Remove gl_FOPEN_SAFER call.
12774         (Makefile.am): Augment lib_SOURCES.
12775
12776 2011-05-23  Bruno Haible  <bruno@clisp.org>
12777
12778         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12779         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12780         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12781
12782 2011-05-23  Bruno Haible  <bruno@clisp.org>
12783
12784         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12785         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12786         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12787
12788 2011-05-23  Bruno Haible  <bruno@clisp.org>
12789
12790         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12791         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12792         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12793
12794 2011-05-23  Bruno Haible  <bruno@clisp.org>
12795
12796         settime: Move AC_LIBOBJ invocations to module description.
12797         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12798         * modules/settime (Makefile.am): Augment lib_SOURCES.
12799
12800 2011-05-23  Bruno Haible  <bruno@clisp.org>
12801
12802         savedir: Move AC_LIBOBJ invocations to module description.
12803         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12804         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12805
12806 2011-05-23  Bruno Haible  <bruno@clisp.org>
12807
12808         save-cwd: Move AC_LIBOBJ invocations to module description.
12809         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12810         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12811
12812 2011-05-23  Bruno Haible  <bruno@clisp.org>
12813
12814         same: Move AC_LIBOBJ invocations to module description.
12815         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12816         * modules/same (Makefile.am): Augment lib_SOURCES.
12817
12818 2011-05-23  Bruno Haible  <bruno@clisp.org>
12819
12820         safe-write: Move AC_LIBOBJ invocations to module description.
12821         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12822         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12823         instead of gl_SAFE_WRITE.
12824         (Makefile.am): Augment lib_SOURCES.
12825
12826 2011-05-23  Bruno Haible  <bruno@clisp.org>
12827
12828         safe-read: Move AC_LIBOBJ invocations to module description.
12829         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12830         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12831         of gl_SAFE_READ.
12832         (Makefile.am): Augment lib_SOURCES.
12833
12834 2011-05-23  Bruno Haible  <bruno@clisp.org>
12835
12836         safe-alloc: Move AC_LIBOBJ invocations to module description.
12837         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12838         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12839
12840 2011-05-23  Bruno Haible  <bruno@clisp.org>
12841
12842         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12843         * m4/rijndael.m4: Remove file.
12844         * modules/crypto/rijndael (Files): Remove it.
12845         (configure.ac): Remove gl_RIJNDAEL call.
12846         (Makefile.am): Augment lib_SOURCES.
12847
12848 2011-05-23  Bruno Haible  <bruno@clisp.org>
12849
12850         readtokens: Move AC_LIBOBJ invocations to module description.
12851         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12852         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12853
12854 2011-05-23  Bruno Haible  <bruno@clisp.org>
12855
12856         read-file: Move AC_LIBOBJ invocations to module description.
12857         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12858         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12859         of gl_FUNC_READ_FILE.
12860         (Makefile.am): Augment lib_SOURCES.
12861
12862 2011-05-23  Bruno Haible  <bruno@clisp.org>
12863
12864         quotearg: Move AC_LIBOBJ invocations to module description.
12865         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12866         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12867
12868 2011-05-23  Bruno Haible  <bruno@clisp.org>
12869
12870         quote: Move AC_LIBOBJ invocations to module description.
12871         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12872         * modules/quote (Makefile.am): Augment lib_SOURCES.
12873
12874 2011-05-23  Bruno Haible  <bruno@clisp.org>
12875
12876         posixver: Move AC_LIBOBJ invocations to module description.
12877         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12878         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12879
12880 2011-05-23  Bruno Haible  <bruno@clisp.org>
12881
12882         posixtm: Move AC_LIBOBJ invocations to module description.
12883         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12884         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12885
12886 2011-05-23  Bruno Haible  <bruno@clisp.org>
12887
12888         physmem: Move AC_LIBOBJ invocations to module description.
12889         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12890         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12891
12892 2011-05-23  Bruno Haible  <bruno@clisp.org>
12893
12894         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12895         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12896         invocation.
12897         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12898
12899 2011-05-23  Bruno Haible  <bruno@clisp.org>
12900
12901         mpsort: Move AC_LIBOBJ invocations to module description.
12902         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12903         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12904
12905 2011-05-23  Bruno Haible  <bruno@clisp.org>
12906
12907         modechange: Move AC_LIBOBJ invocations to module description.
12908         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12909         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12910
12911 2011-05-23  Bruno Haible  <bruno@clisp.org>
12912
12913         mkdir-p: Move AC_LIBOBJ invocations to module description.
12914         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12915         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12916
12917 2011-05-23  Bruno Haible  <bruno@clisp.org>
12918
12919         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12920         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12921         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12922
12923 2011-05-23  Bruno Haible  <bruno@clisp.org>
12924
12925         mgetgroups: Move AC_LIBOBJ invocations to module description.
12926         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12927         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12928
12929 2011-05-23  Bruno Haible  <bruno@clisp.org>
12930
12931         memxor: Move AC_LIBOBJ invocations to module description.
12932         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12933         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12934
12935 2011-05-23  Bruno Haible  <bruno@clisp.org>
12936
12937         memcoll: Move AC_LIBOBJ invocations to module description.
12938         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12939         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12940
12941 2011-05-23  Bruno Haible  <bruno@clisp.org>
12942
12943         memcasecmp: Move AC_LIBOBJ invocations to module description.
12944         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12945         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12946
12947 2011-05-23  Bruno Haible  <bruno@clisp.org>
12948
12949         crypto/md5: Move AC_LIBOBJ invocations to module description.
12950         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12951         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12952
12953 2011-05-23  Bruno Haible  <bruno@clisp.org>
12954
12955         crypto/md4: Move AC_LIBOBJ invocations to module description.
12956         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12957         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12958
12959 2011-05-23  Bruno Haible  <bruno@clisp.org>
12960
12961         crypto/md2: Move AC_LIBOBJ invocations to module description.
12962         * m4/md2.m4: Remove file.
12963         * modules/crypto/md2 (Files): Remove it.
12964         (configure.ac): Remove gl_MD2 call.
12965         (Makefile.am): Augment lib_SOURCES.
12966
12967 2011-05-23  Bruno Haible  <bruno@clisp.org>
12968
12969         long-options: Move AC_LIBOBJ invocations to module description.
12970         * m4/long-options.m4: Remove file.
12971         * modules/long-options (Files): Remove it.
12972         (configure.ac): Remove gl_LONG_OPTIONS call.
12973         (Makefile.am): Augment lib_SOURCES.
12974
12975 2011-05-23  Bruno Haible  <bruno@clisp.org>
12976
12977         i-ring: Move AC_LIBOBJ invocations to module description.
12978         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12979         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12980
12981 2011-05-23  Bruno Haible  <bruno@clisp.org>
12982
12983         idcache: Move AC_LIBOBJ invocations to module description.
12984         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12985         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12986
12987 2011-05-23  Bruno Haible  <bruno@clisp.org>
12988
12989         human: Move AC_LIBOBJ invocations to module description.
12990         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12991         * modules/human (Makefile.am): Augment lib_SOURCES.
12992
12993 2011-05-23  Bruno Haible  <bruno@clisp.org>
12994
12995         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12996         * m4/hmac-sha1.m4: Remove file.
12997         * modules/crypto/hmac-sha1 (Files): Remove it.
12998         (configure.ac): Remove gl_HMAC_SHA1 call.
12999         (Makefile.am): Augment lib_SOURCES.
13000
13001 2011-05-23  Bruno Haible  <bruno@clisp.org>
13002
13003         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13004         * m4/hmac-md5.m4: Remove file.
13005         * modules/crypto/hmac-md5 (Files): Remove it.
13006         (configure.ac): Remove gl_HMAC_MD5 call.
13007         (Makefile.am): Augment lib_SOURCES.
13008
13009 2011-05-23  Bruno Haible  <bruno@clisp.org>
13010
13011         hash: Move AC_LIBOBJ invocations to module description.
13012         * m4/hash.m4: Remove file.
13013         * modules/hash (Files): Remove it.
13014         (configure.ac): Remove gl_HASH call.
13015         (Makefile.am): Augment lib_SOURCES.
13016
13017 2011-05-23  Bruno Haible  <bruno@clisp.org>
13018
13019         hard-locale: Move AC_LIBOBJ invocations to module description.
13020         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13021         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13022
13023 2011-05-23  Bruno Haible  <bruno@clisp.org>
13024
13025         getugroups: Move AC_LIBOBJ invocations to module description.
13026         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13027         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13028
13029 2011-05-23  Bruno Haible  <bruno@clisp.org>
13030
13031         gettime: Move AC_LIBOBJ invocations to module description.
13032         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13033         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13034
13035 2011-05-23  Bruno Haible  <bruno@clisp.org>
13036
13037         getndelim2: Move AC_LIBOBJ invocations to module description.
13038         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13039         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13040
13041 2011-05-23  Bruno Haible  <bruno@clisp.org>
13042
13043         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13044         * m4/gc-pbkdf2-sha1.m4: Remove file.
13045         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13046         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13047         (Makefile.am): Augment lib_SOURCES.
13048
13049 2011-05-23  Bruno Haible  <bruno@clisp.org>
13050
13051         fts: Move AC_LIBOBJ invocations to module description.
13052         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13053         * modules/fts (configure.ac): ... to here.
13054
13055 2011-05-23  Bruno Haible  <bruno@clisp.org>
13056
13057         file-type: Move AC_LIBOBJ invocations to module description.
13058         * m4/file-type.m4: Remove file.
13059         * modules/file-type (Files): Remove it.
13060         (configure.ac): Remove gl_FILE_TYPE call.
13061         (Makefile.am): Augment lib_SOURCES.
13062
13063 2011-05-23  Bruno Haible  <bruno@clisp.org>
13064
13065         filenamecat*: Respect rules for use of AC_LIBOBJ.
13066         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13067         Remove AC_LIBOBJ invocation.
13068         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13069         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13070
13071 2011-05-23  Bruno Haible  <bruno@clisp.org>
13072
13073         filemode: Move AC_LIBOBJ invocations to module description.
13074         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13075         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13076
13077 2011-05-23  Bruno Haible  <bruno@clisp.org>
13078
13079         openat-safer: Move AC_LIBOBJ invocations to module description.
13080         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13081         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13082
13083 2011-05-23  Bruno Haible  <bruno@clisp.org>
13084
13085         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13086         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13087         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13088
13089 2011-05-23  Bruno Haible  <bruno@clisp.org>
13090
13091         exclude: Move AC_LIBOBJ invocations to module description.
13092         * m4/exclude.m4: Remove file.
13093         * modules/exclude (Files): Remove it.
13094         (configure.ac): Remove gl_EXCLUDE call.
13095         (Makefile.am): Augment lib_SOURCES.
13096
13097 2011-05-23  Bruno Haible  <bruno@clisp.org>
13098
13099         dirname*: Respect rules for use of AC_LIBOBJ.
13100         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13101         invocations.
13102         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13103         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13104
13105 2011-05-23  Bruno Haible  <bruno@clisp.org>
13106
13107         dirent-safer: Move AC_LIBOBJ invocations to module description.
13108         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13109         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13110
13111 2011-05-23  Bruno Haible  <bruno@clisp.org>
13112
13113         crypto/des: Move AC_LIBOBJ invocations to module description.
13114         * m4/des.m4: Remove file.
13115         * modules/crypto/des (Files): Remove it.
13116         (configure.ac): Remove gl_DES call.
13117         (Makefile.am): Augment lib_SOURCES.
13118
13119 2011-05-23  Bruno Haible  <bruno@clisp.org>
13120
13121         cycle-check: Move AC_LIBOBJ invocations to module description.
13122         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13123         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13124
13125 2011-05-23  Bruno Haible  <bruno@clisp.org>
13126
13127         c-strtold: Move AC_LIBOBJ invocations to module description.
13128         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13129         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13130
13131 2011-05-23  Bruno Haible  <bruno@clisp.org>
13132
13133         c-strtod: Move AC_LIBOBJ invocations to module description.
13134         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13135         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13136
13137 2011-05-23  Bruno Haible  <bruno@clisp.org>
13138
13139         crc: Move AC_LIBOBJ invocations to module description.
13140         * m4/crc.m4: Remove file.
13141         * modules/crc (Files): Remove it.
13142         (configure.ac): Remove gl_CRC call.
13143         (Makefile.am): Augment lib_SOURCES.
13144
13145 2011-05-23  Bruno Haible  <bruno@clisp.org>
13146
13147         close-stream: Move AC_LIBOBJ invocations to module description.
13148         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13149         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13150
13151 2011-05-23  Bruno Haible  <bruno@clisp.org>
13152
13153         closeout: Move AC_LIBOBJ invocations to module description.
13154         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13155         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13156
13157 2011-05-23  Bruno Haible  <bruno@clisp.org>
13158
13159         closein: Move AC_LIBOBJ invocations to module description.
13160         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13161         * modules/closein (Makefile.am): Augment lib_SOURCES.
13162
13163 2011-05-23  Bruno Haible  <bruno@clisp.org>
13164
13165         cloexec: Move AC_LIBOBJ invocations to module description.
13166         * m4/cloexec.m4: Remove file.
13167         * modules/cloexec (Files): Remove it.
13168         (configure.ac): Remove gl_CLOEXEC call.
13169         (Makefile.am): Augment lib_SOURCES.
13170
13171 2011-05-23  Bruno Haible  <bruno@clisp.org>
13172
13173         check-version: Move AC_LIBOBJ invocations to module description.
13174         * m4/check-version.m4: Remove file.
13175         * modules/check-version (Files): Remove it.
13176         (configure.ac): Remove gl_CHECK_VERSION call.
13177         (Makefile.am): Augment lib_SOURCES.
13178
13179 2011-05-23  Bruno Haible  <bruno@clisp.org>
13180
13181         chdir-safer: Move AC_LIBOBJ invocations to module description.
13182         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13183         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13184
13185 2011-05-23  Bruno Haible  <bruno@clisp.org>
13186
13187         canonicalize: Move AC_LIBOBJ invocations to module description.
13188         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13189         AC_LIBOBJ invocation.
13190         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13191
13192 2011-05-23  Bruno Haible  <bruno@clisp.org>
13193
13194         canon-host: Move AC_LIBOBJ invocations to module description.
13195         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13196         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13197         instead of gl_CANON_HOST.
13198         (Makefile.am): Augment lib_SOURCES.
13199
13200 2011-05-23  Bruno Haible  <bruno@clisp.org>
13201
13202         backupfile: Move AC_LIBOBJ invocations to module description.
13203         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13204         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13205
13206 2011-05-23  Bruno Haible  <bruno@clisp.org>
13207
13208         argmatch: Move AC_LIBOBJ invocations to module description.
13209         * m4/argmatch.m4: Remove file.
13210         * modules/argmatch (Files): Remove it.
13211         (configure.ac): Remove gl_ARGMATCH call.
13212         (Makefile.am): Augment lib_SOURCES.
13213
13214 2011-05-23  Bruno Haible  <bruno@clisp.org>
13215
13216         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13217         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13218         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13219
13220 2011-05-23  Bruno Haible  <bruno@clisp.org>
13221
13222         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13223         * m4/arcfour.m4: Remove file.
13224         * modules/crypto/arcfour (Files): Remove it.
13225         (configure.ac): Remove gl_ARCFOUR call.
13226         (Makefile.am): Augment lib_SOURCES.
13227
13228 2011-05-22  Bruno Haible  <bruno@clisp.org>
13229
13230         write: Move AC_LIBOBJ invocations to module description.
13231         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13232         * modules/write (configure.ac): ... to here.
13233
13234 2011-05-22  Bruno Haible  <bruno@clisp.org>
13235
13236         wmemset: Move AC_LIBOBJ invocations to module description.
13237         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13238         here...
13239         * modules/wmemset (configure.ac): ... to here.
13240
13241 2011-05-22  Bruno Haible  <bruno@clisp.org>
13242
13243         wmemmove: Move AC_LIBOBJ invocations to module description.
13244         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13245         here...
13246         * modules/wmemmove (configure.ac): ... to here.
13247
13248 2011-05-22  Bruno Haible  <bruno@clisp.org>
13249
13250         wmemcpy: Move AC_LIBOBJ invocations to module description.
13251         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13252         here...
13253         * modules/wmemcpy (configure.ac): ... to here.
13254
13255 2011-05-22  Bruno Haible  <bruno@clisp.org>
13256
13257         wmemcmp: Move AC_LIBOBJ invocations to module description.
13258         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13259         here...
13260         * modules/wmemcmp (configure.ac): ... to here.
13261
13262 2011-05-22  Bruno Haible  <bruno@clisp.org>
13263
13264         wmemchr: Move AC_LIBOBJ invocations to module description.
13265         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13266         here...
13267         * modules/wmemchr (configure.ac): ... to here.
13268
13269 2011-05-22  Bruno Haible  <bruno@clisp.org>
13270
13271         wcswidth: Move AC_LIBOBJ invocations to module description.
13272         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13273         here...
13274         * modules/wcswidth (configure.ac): ... to here.
13275
13276 2011-05-22  Bruno Haible  <bruno@clisp.org>
13277
13278         wcwidth: Respect rules for use of AC_LIBOBJ.
13279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13280         invocation from here...
13281         * modules/wcwidth (configure.ac): ... to here.
13282         (Depends-on): Update conditions.
13283
13284 2011-05-22  Bruno Haible  <bruno@clisp.org>
13285
13286         wctype: Move AC_LIBOBJ invocations to module description.
13287         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13288         invocation from here...
13289         * modules/wctype (configure.ac): ... to here.
13290         (Depends-on): Update conditions.
13291
13292 2011-05-22  Bruno Haible  <bruno@clisp.org>
13293
13294         wctrans: Move AC_LIBOBJ invocations to module description.
13295         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13296         invocation from here...
13297         * modules/wctrans (configure.ac): ... to here.
13298
13299 2011-05-22  Bruno Haible  <bruno@clisp.org>
13300
13301         wctomb: Move AC_LIBOBJ invocations to module description.
13302         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13303         invocations from here...
13304         * modules/wctomb (configure.ac): ... to here.
13305
13306 2011-05-22  Bruno Haible  <bruno@clisp.org>
13307
13308         wctob: Move AC_LIBOBJ invocations to module description.
13309         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13310         gl_PREREQ_WCTOB invocations from here...
13311         * modules/wctob (configure.ac): ... to here.
13312         (Depends-on): Update conditions.
13313
13314 2011-05-22  Bruno Haible  <bruno@clisp.org>
13315
13316         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13317         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13318         here...
13319         * modules/wcsxfrm (configure.ac): ... to here.
13320
13321 2011-05-22  Bruno Haible  <bruno@clisp.org>
13322
13323         wcstok: Move AC_LIBOBJ invocations to module description.
13324         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13325         * modules/wcstok (configure.ac): ... to here.
13326
13327 2011-05-22  Bruno Haible  <bruno@clisp.org>
13328
13329         wcsstr: Move AC_LIBOBJ invocations to module description.
13330         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13331         * modules/wcsstr (configure.ac): ... to here.
13332
13333 2011-05-22  Bruno Haible  <bruno@clisp.org>
13334
13335         wcsspn: Move AC_LIBOBJ invocations to module description.
13336         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13337         * modules/wcsspn (configure.ac): ... to here.
13338
13339 2011-05-22  Bruno Haible  <bruno@clisp.org>
13340
13341         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13342         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13343         gl_PREREQ_WCSRTOMBS invocations from here...
13344         * modules/wcsrtombs (configure.ac): ... to here.
13345
13346 2011-05-22  Bruno Haible  <bruno@clisp.org>
13347
13348         wcsrchr: Move AC_LIBOBJ invocations to module description.
13349         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13350         here...
13351         * modules/wcsrchr (configure.ac): ... to here.
13352
13353 2011-05-22  Bruno Haible  <bruno@clisp.org>
13354
13355         wcspbrk: Move AC_LIBOBJ invocations to module description.
13356         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13357         here...
13358         * modules/wcspbrk (configure.ac): ... to here.
13359
13360 2011-05-22  Bruno Haible  <bruno@clisp.org>
13361
13362         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13363         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13364         gl_PREREQ_WCSNRTOMBS invocations from here...
13365         * modules/wcsnrtombs (configure.ac): ... to here.
13366
13367 2011-05-22  Bruno Haible  <bruno@clisp.org>
13368
13369         wcsnlen: Move AC_LIBOBJ invocations to module description.
13370         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13371         here...
13372         * modules/wcsnlen (configure.ac): ... to here.
13373
13374 2011-05-22  Bruno Haible  <bruno@clisp.org>
13375
13376         wcsncpy: Move AC_LIBOBJ invocations to module description.
13377         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13378         here...
13379         * modules/wcsncpy (configure.ac): ... to here.
13380
13381 2011-05-22  Bruno Haible  <bruno@clisp.org>
13382
13383         wcsncmp: Move AC_LIBOBJ invocations to module description.
13384         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13385         here...
13386         * modules/wcsncmp (configure.ac): ... to here.
13387
13388 2011-05-22  Bruno Haible  <bruno@clisp.org>
13389
13390         wcsncat: Move AC_LIBOBJ invocations to module description.
13391         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13392         here...
13393         * modules/wcsncat (configure.ac): ... to here.
13394
13395 2011-05-22  Bruno Haible  <bruno@clisp.org>
13396
13397         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13398         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13399         from here...
13400         * modules/wcsncasecmp (configure.ac): ... to here.
13401
13402 2011-05-22  Bruno Haible  <bruno@clisp.org>
13403
13404         wcslen: Move AC_LIBOBJ invocations to module description.
13405         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13406         * modules/wcslen (configure.ac): ... to here.
13407
13408 2011-05-22  Bruno Haible  <bruno@clisp.org>
13409
13410         wcsdup: Move AC_LIBOBJ invocations to module description.
13411         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13412         * modules/wcsdup (configure.ac): ... to here.
13413
13414 2011-05-22  Bruno Haible  <bruno@clisp.org>
13415
13416         wcscspn: Move AC_LIBOBJ invocations to module description.
13417         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13418         here...
13419         * modules/wcscspn (configure.ac): ... to here.
13420
13421 2011-05-22  Bruno Haible  <bruno@clisp.org>
13422
13423         wcscpy: Move AC_LIBOBJ invocations to module description.
13424         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13425         * modules/wcscpy (configure.ac): ... to here.
13426
13427 2011-05-22  Bruno Haible  <bruno@clisp.org>
13428
13429         wcscoll: Move AC_LIBOBJ invocations to module description.
13430         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13431         here...
13432         * modules/wcscoll (configure.ac): ... to here.
13433
13434 2011-05-22  Bruno Haible  <bruno@clisp.org>
13435
13436         wcscmp: Move AC_LIBOBJ invocations to module description.
13437         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13438         * modules/wcscmp (configure.ac): ... to here.
13439
13440 2011-05-22  Bruno Haible  <bruno@clisp.org>
13441
13442         wcschr: Move AC_LIBOBJ invocations to module description.
13443         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13444         * modules/wcschr (configure.ac): ... to here.
13445
13446 2011-05-22  Bruno Haible  <bruno@clisp.org>
13447
13448         wcscat: Move AC_LIBOBJ invocations to module description.
13449         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13450         * modules/wcscat (configure.ac): ... to here.
13451
13452 2011-05-22  Bruno Haible  <bruno@clisp.org>
13453
13454         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13455         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13456         here...
13457         * modules/wcscasecmp (configure.ac): ... to here.
13458
13459 2011-05-22  Bruno Haible  <bruno@clisp.org>
13460
13461         wcrtomb: Move AC_LIBOBJ invocations to module description.
13462         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13463         invocations from here...
13464         * modules/wcrtomb (configure.ac): ... to here.
13465
13466 2011-05-22  Bruno Haible  <bruno@clisp.org>
13467
13468         wcpncpy: Move AC_LIBOBJ invocations to module description.
13469         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13470         here...
13471         * modules/wcpncpy (configure.ac): ... to here.
13472
13473 2011-05-22  Bruno Haible  <bruno@clisp.org>
13474
13475         wcpcpy: Move AC_LIBOBJ invocations to module description.
13476         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13477         * modules/wcpcpy (configure.ac): ... to here.
13478
13479 2011-05-22  Bruno Haible  <bruno@clisp.org>
13480
13481         waitpid: Move AC_LIBOBJ invocations to module description.
13482         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13483         invocation from here...
13484         * modules/waitpid (configure.ac): ... to here.
13485
13486 2011-05-22  Bruno Haible  <bruno@clisp.org>
13487
13488         utimensat: Move AC_LIBOBJ invocations to module description.
13489         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13490         here...
13491         * modules/utimensat (configure.ac): ... to here.
13492
13493 2011-05-22  Bruno Haible  <bruno@clisp.org>
13494
13495         usleep: Move AC_LIBOBJ invocations to module description.
13496         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13497         here...
13498         * modules/usleep (configure.ac): ... to here.
13499
13500 2011-05-22  Bruno Haible  <bruno@clisp.org>
13501
13502         unlockpt: Move AC_LIBOBJ invocations to module description.
13503         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13504         gl_PREREQ_UNLOCKPT invocations from here...
13505         * modules/unlockpt (configure.ac): ... to here.
13506
13507 2011-05-22  Bruno Haible  <bruno@clisp.org>
13508
13509         unlink: Respect rules for use of AC_LIBOBJ.
13510         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13511         * modules/unlink (configure.ac): ... to here.
13512
13513 2011-05-22  Bruno Haible  <bruno@clisp.org>
13514
13515         uname: Move AC_LIBOBJ invocations to module description.
13516         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13517         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13518         here...
13519         * modules/uname (configure.ac): ... to here.
13520
13521 2011-05-22  Bruno Haible  <bruno@clisp.org>
13522
13523         ttyname_r: Move AC_LIBOBJ invocations to module description.
13524         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13525         gl_PREREQ_TTYNAME_R invocations from here...
13526         * modules/ttyname_r (configure.ac): ... to here.
13527
13528 2011-05-22  Bruno Haible  <bruno@clisp.org>
13529
13530         tsearch: Move AC_LIBOBJ invocations to module description.
13531         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13532         invocations from here...
13533         * modules/tsearch (configure.ac): ... to here.
13534
13535 2011-05-22  Bruno Haible  <bruno@clisp.org>
13536
13537         towctrans: Move AC_LIBOBJ invocations to module description.
13538         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13539         AC_LIBOBJ invocation from here...
13540         * modules/towctrans (configure.ac): ... to here.
13541
13542 2011-05-22  Bruno Haible  <bruno@clisp.org>
13543
13544         tmpfile: Move AC_LIBOBJ invocations to module description.
13545         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13546         invocations from here...
13547         * modules/tmpfile (configure.ac): ... to here.
13548
13549 2011-05-22  Bruno Haible  <bruno@clisp.org>
13550
13551         times: Move AC_LIBOBJ invocations to module description.
13552         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13553         * modules/times (configure.ac): ... to here.
13554
13555 2011-05-22  Bruno Haible  <bruno@clisp.org>
13556
13557         time_r: Move AC_LIBOBJ invocations to module description.
13558         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13559         invocations from here...
13560         * modules/time_r (configure.ac): ... to here.
13561
13562 2011-05-22  Bruno Haible  <bruno@clisp.org>
13563
13564         timegm: Move AC_LIBOBJ invocations to module description.
13565         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13566         invocations from here...
13567         * modules/timegm (configure.ac): ... to here.
13568
13569 2011-05-22  Bruno Haible  <bruno@clisp.org>
13570
13571         tcgetsid: Move AC_LIBOBJ invocations to module description.
13572         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13573         and gl_PREREQ_TCGETSID invocations from here...
13574         * modules/tcgetsid (configure.ac): ... to here.
13575         (Depends-on): Update conditions.
13576
13577 2011-05-22  Bruno Haible  <bruno@clisp.org>
13578
13579         symlinkat: Move AC_LIBOBJ invocations to module description.
13580         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13581         here...
13582         * modules/symlinkat (configure.ac): ... to here.
13583
13584 2011-05-22  Bruno Haible  <bruno@clisp.org>
13585
13586         symlink: Move AC_LIBOBJ invocations to module description.
13587         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13588         here...
13589         * modules/symlink (configure.ac): ... to here.
13590
13591 2011-05-22  Bruno Haible  <bruno@clisp.org>
13592
13593         strverscmp: Move AC_LIBOBJ invocations to module description.
13594         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13595         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13596         from here...
13597         * modules/strverscmp (configure.ac): ... to here.
13598
13599 2011-05-22  Bruno Haible  <bruno@clisp.org>
13600
13601         strtok_r: Move AC_LIBOBJ invocations to module description.
13602         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13603         and gl_PREREQ_STRTOK_R invocations from here...
13604         * modules/strtok_r (configure.ac): ... to here.
13605         (Depends-on): Update conditions.
13606
13607 2011-05-22  Bruno Haible  <bruno@clisp.org>
13608
13609         strtoumax: Move AC_LIBOBJ invocations to module description.
13610         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13611         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13612         from here...
13613         * modules/strtoumax (configure.ac): ... to here.
13614
13615 2011-05-22  Bruno Haible  <bruno@clisp.org>
13616
13617         strtoimax: Move AC_LIBOBJ invocations to module description.
13618         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13619         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13620         from here...
13621         * modules/strtoimax (configure.ac): ... to here.
13622
13623 2011-05-22  Bruno Haible  <bruno@clisp.org>
13624
13625         strtoull: Move AC_LIBOBJ invocations to module description.
13626         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13628         from here...
13629         * modules/strtoull (configure.ac): ... to here.
13630
13631 2011-05-22  Bruno Haible  <bruno@clisp.org>
13632
13633         strtoll: Move AC_LIBOBJ invocations to module description.
13634         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13636         here...
13637         * modules/strtoll (configure.ac): ... to here.
13638
13639 2011-05-22  Bruno Haible  <bruno@clisp.org>
13640
13641         strtoul: Move AC_LIBOBJ invocations to module description.
13642         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13643         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13644         * modules/strtoul (configure.ac): ... to here.
13645
13646 2011-05-22  Bruno Haible  <bruno@clisp.org>
13647
13648         strtol: Move AC_LIBOBJ invocations to module description.
13649         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13650         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13651         * modules/strtol (configure.ac): ... to here.
13652
13653 2011-05-22  Bruno Haible  <bruno@clisp.org>
13654
13655         strtod: Move AC_LIBOBJ invocations to module description.
13656         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13657         invocations from here...
13658         * modules/strtod (configure.ac): ... to here.
13659
13660 2011-05-22  Bruno Haible  <bruno@clisp.org>
13661
13662         strstr*: Move AC_LIBOBJ invocations to module description.
13663         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13664         invocations from here...
13665         * modules/strstr-simple (configure.ac): ... to here.
13666         * modules/strstr (configure.ac): ... and here.
13667
13668 2011-05-22  Bruno Haible  <bruno@clisp.org>
13669
13670         strsignal: Move AC_LIBOBJ invocations to module description.
13671         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13672         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13673         * modules/strsignal (configure.ac): ... to here.
13674         (Depends-on): Update conditions.
13675
13676 2011-05-22  Bruno Haible  <bruno@clisp.org>
13677
13678         strsep: Move AC_LIBOBJ invocations to module description.
13679         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13680         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13681         here...
13682         * modules/strsep (configure.ac): ... to here.
13683
13684 2011-05-22  Bruno Haible  <bruno@clisp.org>
13685
13686         strptime: Move AC_LIBOBJ invocations to module description.
13687         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13688         gl_PREREQ_STRPTIME invocations from here...
13689         * modules/strptime (configure.ac): ... to here.
13690
13691 2011-05-22  Bruno Haible  <bruno@clisp.org>
13692
13693         strpbrk: Move AC_LIBOBJ invocations to module description.
13694         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13696         here...
13697         * modules/strpbrk (configure.ac): ... to here.
13698
13699 2011-05-22  Bruno Haible  <bruno@clisp.org>
13700
13701         strnlen: Move AC_LIBOBJ invocations to module description.
13702         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13703         invocations from here...
13704         * modules/strnlen (configure.ac): ... to here.
13705
13706 2011-05-22  Bruno Haible  <bruno@clisp.org>
13707
13708         strndup: Move AC_LIBOBJ invocations to module description.
13709         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13710         invocations from here...
13711         * modules/strndup (configure.ac): ... to here.
13712         (Depends-on): Update conditions.
13713
13714 2011-05-22  Bruno Haible  <bruno@clisp.org>
13715
13716         strncat: Move AC_LIBOBJ invocations to module description.
13717         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13718         invocations from here...
13719         * modules/strncat (configure.ac): ... to here.
13720
13721 2011-05-22  Bruno Haible  <bruno@clisp.org>
13722
13723         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13724         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13725         invocations from here...
13726         * modules/strdup (configure.ac): ... to here.
13727         * modules/strdup-posix (configure.ac): ... and here.
13728
13729 2011-05-22  Bruno Haible  <bruno@clisp.org>
13730
13731         strcspn: Move AC_LIBOBJ invocations to module description.
13732         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13734         here...
13735         * modules/strcspn (configure.ac): ... to here.
13736
13737 2011-05-22  Bruno Haible  <bruno@clisp.org>
13738
13739         strchrnul: Move AC_LIBOBJ invocations to module description.
13740         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13741         gl_PREREQ_STRCHRNUL invocations from here...
13742         * modules/strchrnul (configure.ac): ... to here.
13743
13744 2011-05-22  Bruno Haible  <bruno@clisp.org>
13745
13746         strcasestr*: Move AC_LIBOBJ invocations to module description.
13747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13748         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13749         * modules/strcasestr-simple (configure.ac): ... to here.
13750         * modules/strcasestr (configure.ac): ... and here.
13751
13752 2011-05-22  Bruno Haible  <bruno@clisp.org>
13753
13754         strcase: Move AC_LIBOBJ invocations to module description.
13755         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13756         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13757         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13758         gl_PREREQ_STRNCASECMP invocations from here...
13759         * modules/strcase (configure.ac): ... to here.
13760
13761 2011-05-22  Bruno Haible  <bruno@clisp.org>
13762
13763         stpncpy: Move AC_LIBOBJ invocations to module description.
13764         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13765         here...
13766         * modules/stpncpy (configure.ac): ... to here.
13767
13768 2011-05-22  Bruno Haible  <bruno@clisp.org>
13769
13770         stpcpy: Move AC_LIBOBJ invocations to module description.
13771         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13773         here...
13774         * modules/stpcpy (configure.ac): ... to here.
13775
13776 2011-05-21  Bruno Haible  <bruno@clisp.org>
13777
13778         stat: Move AC_LIBOBJ invocations to module description.
13779         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13780         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13781         here...
13782         * modules/stat (configure.ac): ... to here.
13783
13784 2011-05-21  Bruno Haible  <bruno@clisp.org>
13785
13786         sleep: Move AC_LIBOBJ invocations to module description.
13787         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13788         * modules/sleep (configure.ac): ... to here.
13789
13790 2011-05-21  Bruno Haible  <bruno@clisp.org>
13791
13792         signbit: Move AC_LIBOBJ invocations to module description.
13793         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13794         * modules/signbit (configure.ac): ... to here.
13795
13796 2011-05-21  Bruno Haible  <bruno@clisp.org>
13797
13798         sigprocmask: Move AC_LIBOBJ invocations to module description.
13799         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13800         gl_PREREQ_SIGPROMASK invocations from here...
13801         * modules/sigprocmask (configure.ac): ... to here.
13802
13803 2011-05-21  Bruno Haible  <bruno@clisp.org>
13804
13805         sigaction: Move AC_LIBOBJ invocations to module description.
13806         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13807         gl_PREREQ_SIGACTION invocations from here...
13808         * modules/sigaction (configure.ac): ... to here.
13809
13810 2011-05-21  Bruno Haible  <bruno@clisp.org>
13811
13812         sig2str: Move AC_LIBOBJ invocations to module description.
13813         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13815         here...
13816         * modules/sig2str (configure.ac): ... to here.
13817
13818 2011-05-21  Bruno Haible  <bruno@clisp.org>
13819
13820         setlocale: Move AC_LIBOBJ invocations to module description.
13821         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13822         gl_PREREQ_SETLOCALE invocations from here...
13823         * modules/setlocale (configure.ac): ... to here.
13824
13825 2011-05-21  Bruno Haible  <bruno@clisp.org>
13826
13827         unsetenv: Move AC_LIBOBJ invocations to module description.
13828         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13829         and gl_PREREQ_UNSETENV invocations from here...
13830         * modules/unsetenv (configure.ac): ... to here.
13831         (Depends-on): Update.
13832
13833 2011-05-21  Bruno Haible  <bruno@clisp.org>
13834
13835         setenv: Move AC_LIBOBJ invocations to module description.
13836         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13837         here...
13838         * modules/setenv (configure.ac): ... to here.
13839
13840 2011-05-21  Bruno Haible  <bruno@clisp.org>
13841
13842         selinux-h: Move AC_LIBOBJ invocations to module description.
13843         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13844         AC_LIBOBJ invocation from here...
13845         * modules/selinux-h (configure.ac): ... to here.
13846
13847 2011-05-21  Bruno Haible  <bruno@clisp.org>
13848
13849         select: Respect rules for use of AC_LIBOBJ.
13850         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13851         here...
13852         * modules/select (configure.ac): ... to here.
13853
13854 2011-05-21  Bruno Haible  <bruno@clisp.org>
13855
13856         scandir: Move AC_LIBOBJ invocations to module description.
13857         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13858         invocations from here...
13859         * modules/scandir (configure.ac): ... to here.
13860
13861 2011-05-21  Bruno Haible  <bruno@clisp.org>
13862
13863         rpmatch: Move AC_LIBOBJ invocations to module description.
13864         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13865         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13866         here...
13867         * modules/rpmatch (configure.ac): ... to here.
13868
13869 2011-05-21  Bruno Haible  <bruno@clisp.org>
13870
13871         rmdir: Respect rules for use of AC_LIBOBJ.
13872         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13873         * modules/rmdir (configure.ac): ... to here.
13874
13875 2011-05-21  Bruno Haible  <bruno@clisp.org>
13876
13877         renameat: Move AC_LIBOBJ invocations to module description.
13878         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13879         here...
13880         * modules/renameat (configure.ac): ... to here.
13881
13882 2011-05-21  Bruno Haible  <bruno@clisp.org>
13883
13884         rename: Respect rules for use of AC_LIBOBJ.
13885         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13886         here...
13887         * modules/rename (configure.ac): ... to here.
13888
13889 2011-05-21  Bruno Haible  <bruno@clisp.org>
13890
13891         remove: Move AC_LIBOBJ invocations to module description.
13892         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13893         here...
13894         * modules/remove (configure.ac): ... to here.
13895
13896 2011-05-21  Bruno Haible  <bruno@clisp.org>
13897
13898         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13899         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13900         macro.
13901         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13902         * modules/relocatable-lib (configure.ac): ... to here.
13903         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13904         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13905
13906 2011-05-21  Bruno Haible  <bruno@clisp.org>
13907
13908         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13909         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13910         here...
13911         * modules/relocatable-prog (configure.ac): ... to here.
13912
13913 2011-05-21  Bruno Haible  <bruno@clisp.org>
13914
13915         regex: Move AC_LIBOBJ invocations to module description.
13916         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13917         invocations from here...
13918         * modules/regex (configure.ac): ... to here.
13919
13920 2011-05-21  Bruno Haible  <bruno@clisp.org>
13921
13922         realloc-*: Move AC_LIBOBJ invocations to module description.
13923         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13924         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13925         AC_LIBOBJ invocations from here...
13926         * modules/realloc-gnu (configure.ac): ... to here.
13927         * modules/realloc-posix (configure.ac): ... and here.
13928
13929 2011-05-21  Bruno Haible  <bruno@clisp.org>
13930
13931         readutmp: Move AC_LIBOBJ invocations to module description.
13932         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13933         * modules/readutmp (configure.ac): ... to here.
13934
13935 2011-05-21  Bruno Haible  <bruno@clisp.org>
13936
13937         readlinkat: Move AC_LIBOBJ invocations to module description.
13938         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13939         here...
13940         * modules/readlinkat (configure.ac): ... to here.
13941
13942 2011-05-21  Bruno Haible  <bruno@clisp.org>
13943
13944         readlink: Move AC_LIBOBJ invocations to module description.
13945         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13946         gl_PREREQ_READLINK invocations from here...
13947         * modules/readlink (configure.ac): ... to here.
13948
13949 2011-05-21  Bruno Haible  <bruno@clisp.org>
13950
13951         readline: Move AC_LIBOBJ invocations to module description.
13952         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13953         gl_PREREQ_READLINE invocations from here...
13954         * modules/readline (configure.ac): ... to here.
13955
13956 2011-05-21  Bruno Haible  <bruno@clisp.org>
13957
13958         read: Move AC_LIBOBJ invocations to module description.
13959         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13960         * modules/read (configure.ac): ... to here.
13961
13962 2011-05-21  Bruno Haible  <bruno@clisp.org>
13963
13964         rawmemchr: Move AC_LIBOBJ invocations to module description.
13965         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13967         from here...
13968         * modules/rawmemchr (configure.ac): ... to here.
13969
13970 2011-05-21  Bruno Haible  <bruno@clisp.org>
13971
13972         random_r: Move AC_LIBOBJ invocations to module description.
13973         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13974         gl_PREREQ_RANDOM_R invocations from here...
13975         * modules/random_r (configure.ac): ... to here.
13976
13977 2011-05-21  Bruno Haible  <bruno@clisp.org>
13978
13979         pwrite: Move AC_LIBOBJ invocations to module description.
13980         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13981         * modules/pwrite (configure.ac): ... to here.
13982
13983 2011-05-21  Bruno Haible  <bruno@clisp.org>
13984
13985         putenv: Move AC_LIBOBJ invocations to module description.
13986         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13987         * modules/putenv (configure.ac): ... to here.
13988
13989 2011-05-21  Bruno Haible  <bruno@clisp.org>
13990
13991         login_tty: Move AC_LIBOBJ invocations to module description.
13992         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13993         * modules/login_tty (configure.ac): ... to here.
13994
13995 2011-05-21  Bruno Haible  <bruno@clisp.org>
13996
13997         openpty: Move AC_LIBOBJ invocations to module description.
13998         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13999         * modules/openpty (configure.ac): ... to here.
14000
14001 2011-05-21  Bruno Haible  <bruno@clisp.org>
14002
14003         forkpty: Move AC_LIBOBJ invocations to module description.
14004         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14005         * modules/forkpty (configure.ac): ... to here.
14006
14007 2011-05-21  Bruno Haible  <bruno@clisp.org>
14008
14009         ptsname: Move AC_LIBOBJ invocations to module description.
14010         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14011         invocations from here...
14012         * modules/ptsname (configure.ac): ... to here.
14013
14014 2011-05-21  Bruno Haible  <bruno@clisp.org>
14015
14016         pread: Move AC_LIBOBJ invocations to module description.
14017         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14018         * modules/pread (configure.ac): ... to here.
14019
14020 2011-05-21  Bruno Haible  <bruno@clisp.org>
14021
14022         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14023         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14024         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14025         * modules/posix_spawn (configure.ac): ... to here.
14026         * modules/posix_spawnp (configure.ac): ... and here.
14027
14028 2011-05-21  Bruno Haible  <bruno@clisp.org>
14029
14030         popen: Move AC_LIBOBJ invocations to module description.
14031         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14032         invocations from here...
14033         * modules/popen (configure.ac): ... to here.
14034
14035 2011-05-21  Bruno Haible  <bruno@clisp.org>
14036
14037         poll: Move AC_LIBOBJ invocations to module description.
14038         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14039         invocations from here...
14040         * modules/poll (configure.ac): ... to here.
14041
14042 2011-05-21  Bruno Haible  <bruno@clisp.org>
14043
14044         pipe-posix: Move AC_LIBOBJ invocations to module description.
14045         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14046         * modules/pipe-posix (configure.ac): ... to here.
14047
14048 2011-05-21  Bruno Haible  <bruno@clisp.org>
14049
14050         openat: Respect rules for use of AC_LIBOBJ.
14051         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14052         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14053         * modules/openat (configure.ac): ... to here.
14054
14055 2011-05-21  Bruno Haible  <bruno@clisp.org>
14056
14057         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14058         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14059         invocation from here...
14060         * modules/obstack-printf (configure.ac): ... to here.
14061         * modules/obstack-printf-posix (configure.ac): ... and here.
14062
14063 2011-05-21  Bruno Haible  <bruno@clisp.org>
14064
14065         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14066         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14067         from here...
14068         * modules/nl_langinfo (configure.ac): ... to here.
14069
14070 2011-05-21  Bruno Haible  <bruno@clisp.org>
14071
14072         nanosleep: Move AC_LIBOBJ invocations to module description.
14073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14074         gl_PREREQ_NANOSLEEP invocations from here...
14075         * modules/nanosleep (configure.ac): ... to here.
14076
14077 2011-05-21  Bruno Haible  <bruno@clisp.org>
14078
14079         mountlist: Move AC_LIBOBJ invocations to module description.
14080         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14081         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14082         * modules/mountlist (configure.ac): ... to here.
14083
14084 2011-05-21  Bruno Haible  <bruno@clisp.org>
14085
14086         mktime: Respect rules for use of AC_LIBOBJ.
14087         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14088         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14089         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14090         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14091         * modules/mktime (configure.ac): ... to here.
14092         * modules/mktime-internal (configure.ac): ... and here.
14093         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14094
14095 2011-05-21  Bruno Haible  <bruno@clisp.org>
14096
14097         mkstemps: Move AC_LIBOBJ invocations to module description.
14098         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14099         here...
14100         * modules/mkstemps (configure.ac): ... to here.
14101
14102 2011-05-21  Bruno Haible  <bruno@clisp.org>
14103
14104         mkstemp: Move AC_LIBOBJ invocations to module description.
14105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14106         gl_PREREQ_MKSTEMP invocations from here...
14107         * modules/mkstemp (configure.ac): ... to here.
14108
14109 2011-05-21  Bruno Haible  <bruno@clisp.org>
14110
14111         mkostemps: Move AC_LIBOBJ invocations to module description.
14112         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14113         here...
14114         * modules/mkostemps (configure.ac): ... to here.
14115
14116 2011-05-21  Bruno Haible  <bruno@clisp.org>
14117
14118         mkostemp: Move AC_LIBOBJ invocations to module description.
14119         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14120         gl_PREREQ_MKOSTEMP invocations from here...
14121         * modules/mkostemp (configure.ac): ... to here.
14122
14123 2011-05-21  Bruno Haible  <bruno@clisp.org>
14124
14125         mknod: Move AC_LIBOBJ invocations to module description.
14126         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14127         * modules/mknod (configure.ac): ... to here.
14128
14129 2011-05-21  Bruno Haible  <bruno@clisp.org>
14130
14131         mkfifoat: Move AC_LIBOBJ invocations to module description.
14132         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14133         here...
14134         * modules/mkfifoat (configure.ac): ... to here.
14135
14136 2011-05-21  Bruno Haible  <bruno@clisp.org>
14137
14138         mkfifo: Respect rules for use of AC_LIBOBJ.
14139         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14140         here...
14141         * modules/mkfifo (configure.ac): ... to here.
14142
14143 2011-05-21  Bruno Haible  <bruno@clisp.org>
14144
14145         mkdtemp: Move AC_LIBOBJ invocations to module description.
14146         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14147         invocations from here...
14148         * modules/mkdtemp (configure.ac): ... to here.
14149
14150 2011-05-21  Bruno Haible  <bruno@clisp.org>
14151
14152         mkdir: Move AC_LIBOBJ invocations to module description.
14153         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14154         * modules/mkdir (configure.ac): ... to here.
14155
14156 2011-05-21  Bruno Haible  <bruno@clisp.org>
14157
14158         memset: Move AC_LIBOBJ invocations to module description.
14159         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14161         here...
14162         * modules/memset (configure.ac): ... to here.
14163
14164 2011-05-21  Bruno Haible  <bruno@clisp.org>
14165
14166         memrchr: Move AC_LIBOBJ invocations to module description.
14167         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14168         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14169         here...
14170         * modules/memrchr (configure.ac): ... to here.
14171
14172 2011-05-21  Bruno Haible  <bruno@clisp.org>
14173
14174         mempcpy: Move AC_LIBOBJ invocations to module description.
14175         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14177         here...
14178         * modules/mempcpy (configure.ac): ... to here.
14179
14180 2011-05-21  Bruno Haible  <bruno@clisp.org>
14181
14182         memmove: Move AC_LIBOBJ invocations to module description.
14183         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14185         here...
14186         * modules/memmove (configure.ac): ... to here.
14187
14188 2011-05-21  Bruno Haible  <bruno@clisp.org>
14189
14190         memmem*: Move AC_LIBOBJ invocations to module description.
14191         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14192         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14193         here...
14194         (gl_FUNC_MEMMEM): ... and here...
14195         * modules/memmem-simple (configure.ac): ... to here.
14196         * modules/memmem (configure.ac): ... and here.
14197
14198 2011-05-21  Bruno Haible  <bruno@clisp.org>
14199
14200         memcpy: Move AC_LIBOBJ invocations to module description.
14201         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14202         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14203         here...
14204         * modules/memcpy (configure.ac): ... to here.
14205
14206 2011-05-21  Bruno Haible  <bruno@clisp.org>
14207
14208         memcmp: Simplify autoconf macro.
14209         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14210         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14211         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14212
14213 2011-05-21  Bruno Haible  <bruno@clisp.org>
14214
14215         memcmp: Move AC_LIBOBJ invocations to module description.
14216         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14217         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14218         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14219         * modules/memcmp (configure.ac): ... to here.
14220         (Depends-on): Update conditions.
14221
14222 2011-05-21  Bruno Haible  <bruno@clisp.org>
14223
14224         memchr: Respect rules for use of AC_LIBOBJ.
14225         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14226         invocations from here...
14227         * modules/memchr (configure.ac): ... to here.
14228
14229 2011-05-21  Bruno Haible  <bruno@clisp.org>
14230
14231         mbtowc: Move AC_LIBOBJ invocations to module description.
14232         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14233         invocations from here...
14234         * modules/mbtowc (configure.ac): ... to here.
14235
14236 2011-05-21  Bruno Haible  <bruno@clisp.org>
14237
14238         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14239         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14240         gl_PREREQ_MBSRTOWCS invocations from here...
14241         * modules/mbsrtowcs (configure.ac): ... to here.
14242
14243 2011-05-21  Bruno Haible  <bruno@clisp.org>
14244
14245         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14246         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14247         gl_PREREQ_MBSNRTOWCS invocations from here...
14248         * modules/mbsnrtowcs (configure.ac): ... to here.
14249
14250 2011-05-21  Bruno Haible  <bruno@clisp.org>
14251
14252         mbsinit: Move AC_LIBOBJ invocations to module description.
14253         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14254         invocations from here...
14255         * modules/mbsinit (configure.ac): ... to here.
14256
14257 2011-05-21  Bruno Haible  <bruno@clisp.org>
14258
14259         mbrlen: Move AC_LIBOBJ invocations to module description.
14260         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14261         invocations from here...
14262         * modules/mbrlen (configure.ac): ... to here.
14263
14264 2011-05-21  Bruno Haible  <bruno@clisp.org>
14265
14266         mbrtowc: Respect rules for use of AC_LIBOBJ.
14267         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14268         invocations from here...
14269         * modules/mbrtowc (configure.ac): ... to here.
14270
14271 2011-05-21  Bruno Haible  <bruno@clisp.org>
14272
14273         malloc-*: Move AC_LIBOBJ invocations to module description.
14274         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14275         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14276         AC_LIBOBJ invocations from here...
14277         * modules/malloc-gnu (configure.ac): ... to here.
14278         * modules/malloc-posix (configure.ac): ... and here.
14279
14280 2011-05-21  Bruno Haible  <bruno@clisp.org>
14281
14282         lstat, openat: Respect rules for use of AC_LIBOBJ.
14283         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14284         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14285         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14286         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14287         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14288         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14289         here.
14290         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14291
14292 2011-05-21  Bruno Haible  <bruno@clisp.org>
14293
14294         lseek: Move AC_LIBOBJ invocations to module description.
14295         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14296         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14297         * modules/lseek (configure.ac): ... to here.
14298
14299 2011-05-21  Bruno Haible  <bruno@clisp.org>
14300
14301         linkat: Move AC_LIBOBJ invocations to module description.
14302         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14303         here...
14304         * modules/linkat (configure.ac): ... to here.
14305
14306 2011-05-21  Bruno Haible  <bruno@clisp.org>
14307
14308         link: Respect rules for use of AC_LIBOBJ.
14309         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14310         * modules/link (configure.ac): ... to here.
14311
14312 2011-05-21  Bruno Haible  <bruno@clisp.org>
14313
14314         lchown: Move AC_LIBOBJ invocations to module description.
14315         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14316         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14317         * modules/lchown (configure.ac): ... to here.
14318
14319 2011-05-21  Bruno Haible  <bruno@clisp.org>
14320
14321         iswctype: Move AC_LIBOBJ invocations to module description.
14322         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14323         here...
14324         * modules/iswctype (configure.ac): ... to here.
14325
14326 2011-05-21  Bruno Haible  <bruno@clisp.org>
14327
14328         iswblank: Move AC_LIBOBJ invocations to module description.
14329         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14330         here...
14331         * modules/iswblank (configure.ac): ... to here.
14332
14333 2011-05-21  Bruno Haible  <bruno@clisp.org>
14334
14335         atanl: Move AC_LIBOBJ invocations to module description.
14336         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14337         * modules/atanl (configure.ac): ... to here.
14338
14339 2011-05-21  Bruno Haible  <bruno@clisp.org>
14340
14341         acosl: Move AC_LIBOBJ invocations to module description.
14342         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14343         * modules/acosl (configure.ac): ... to here.
14344
14345 2011-05-21  Bruno Haible  <bruno@clisp.org>
14346
14347         asinl: Respect rules for use of AC_LIBOBJ.
14348         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14349         * modules/asinl (configure.ac): ... to here.
14350
14351 2011-05-21  Bruno Haible  <bruno@clisp.org>
14352
14353         tanl: Move AC_LIBOBJ invocations to module description.
14354         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14355         * modules/tanl (configure.ac): ... to here.
14356
14357 2011-05-21  Bruno Haible  <bruno@clisp.org>
14358
14359         cosl: Move AC_LIBOBJ invocations to module description.
14360         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14361         * modules/cosl (configure.ac): ... to here.
14362
14363 2011-05-21  Bruno Haible  <bruno@clisp.org>
14364
14365         sinl: Move AC_LIBOBJ invocations to module description.
14366         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14367         * modules/sinl (configure.ac): ... to here.
14368
14369 2011-05-21  Bruno Haible  <bruno@clisp.org>
14370
14371         logl: Move AC_LIBOBJ invocations to module description.
14372         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14373         * modules/logl (configure.ac): ... to here.
14374
14375 2011-05-21  Bruno Haible  <bruno@clisp.org>
14376
14377         expl: Move AC_LIBOBJ invocations to module description.
14378         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14379         * modules/expl (configure.ac): ... to here.
14380
14381 2011-05-21  Bruno Haible  <bruno@clisp.org>
14382
14383         roundl: Move AC_LIBOBJ invocations to module description.
14384         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14385         * modules/roundl (configure.ac): ... to here.
14386
14387 2011-05-21  Bruno Haible  <bruno@clisp.org>
14388
14389         round: Move AC_LIBOBJ invocations to module description.
14390         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14391         * modules/round (configure.ac): ... to here.
14392
14393 2011-05-21  Bruno Haible  <bruno@clisp.org>
14394
14395         roundf: Move AC_LIBOBJ invocations to module description.
14396         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14397         * modules/roundf (configure.ac): ... to here.
14398
14399 2011-05-21  Bruno Haible  <bruno@clisp.org>
14400
14401         truncl: Move AC_LIBOBJ invocations to module description.
14402         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14403         * modules/truncl (configure.ac): ... to here.
14404
14405 2011-05-21  Bruno Haible  <bruno@clisp.org>
14406
14407         trunc: Move AC_LIBOBJ invocations to module description.
14408         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14409         * modules/trunc (configure.ac): ... to here.
14410
14411 2011-05-21  Bruno Haible  <bruno@clisp.org>
14412
14413         truncf: Move AC_LIBOBJ invocations to module description.
14414         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14415         * modules/truncf (configure.ac): ... to here.
14416
14417 2011-05-21  Bruno Haible  <bruno@clisp.org>
14418
14419         ceill: Move AC_LIBOBJ invocations to module description.
14420         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14421         * modules/ceill (configure.ac): ... to here.
14422
14423 2011-05-21  Bruno Haible  <bruno@clisp.org>
14424
14425         ceil: Move AC_LIBOBJ invocations to module description.
14426         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14427         * modules/ceil (configure.ac): ... to here.
14428
14429 2011-05-21  Bruno Haible  <bruno@clisp.org>
14430
14431         ceilf: Move AC_LIBOBJ invocations to module description.
14432         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14433         * modules/ceilf (configure.ac): ... to here.
14434
14435 2011-05-21  Bruno Haible  <bruno@clisp.org>
14436
14437         floorl: Respect rules for use of AC_LIBOBJ.
14438         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14439         * modules/floorl (configure.ac): ... to here.
14440
14441 2011-05-21  Bruno Haible  <bruno@clisp.org>
14442
14443         floor: Respect rules for use of AC_LIBOBJ.
14444         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14445         * modules/floor (configure.ac): ... to here.
14446
14447 2011-05-21  Bruno Haible  <bruno@clisp.org>
14448
14449         floorf: Move AC_LIBOBJ invocations to module description.
14450         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14451         * modules/floorf (configure.ac): ... to here.
14452
14453 2011-05-20  Bruno Haible  <bruno@clisp.org>
14454
14455         sqrtl: Respect rules for use of AC_LIBOBJ.
14456         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14457         * modules/sqrtl (configure.ac): ... to here.
14458
14459 2011-05-20  Bruno Haible  <bruno@clisp.org>
14460
14461         ldexpl: Respect rules for use of AC_LIBOBJ.
14462         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14463         * modules/ldexpl (configure.ac): ... to here.
14464
14465 2011-05-20  Bruno Haible  <bruno@clisp.org>
14466
14467         frexpl*: Respect rules for use of AC_LIBOBJ.
14468         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14469         invocation from here...
14470         * modules/frexpl (configure.ac): ... to here.
14471         * modules/frexpl-nolibm (configure.ac): ... and here.
14472
14473 2011-05-20  Bruno Haible  <bruno@clisp.org>
14474
14475         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14476         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14477         invocation from here...
14478         * modules/frexp (configure.ac): ... to here.
14479         * modules/frexp-nolibm (configure.ac): ... and here.
14480
14481 2011-05-20  Bruno Haible  <bruno@clisp.org>
14482
14483         isnan: Respect rules for use of AC_LIBOBJ.
14484         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14485         invocations here.
14486         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14487         REPLACE_ISNAN.
14488         * modules/isnand (configure.ac): Likewise.
14489         * modules/isnanl (configure.ac): Likewise.
14490
14491 2011-05-20  Bruno Haible  <bruno@clisp.org>
14492
14493         isnanl*: Respect rules for use of AC_LIBOBJ.
14494         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14495         invocation from here...
14496         * modules/isnanl (configure.ac): ... to here.
14497         * modules/isnanl-nolibm (configure.ac): ... and here.
14498
14499 2011-05-20  Bruno Haible  <bruno@clisp.org>
14500
14501         isnand*: Move AC_LIBOBJ invocations to module description.
14502         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14503         invocation from here...
14504         * modules/isnand (configure.ac): ... to here.
14505         * modules/isnand-nolibm (configure.ac): ... and here.
14506
14507 2011-05-20  Bruno Haible  <bruno@clisp.org>
14508
14509         isnanf*: Move AC_LIBOBJ invocations to module description.
14510         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14511         invocation from here...
14512         * modules/isnanf (configure.ac): ... to here.
14513         * modules/isnanf-nolibm (configure.ac): ... and here.
14514
14515 2011-05-20  Bruno Haible  <bruno@clisp.org>
14516
14517         isnan*: Separate the AC_LIBOBJ invocations.
14518         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14519         AC_LIBOBJ invocation.
14520         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14521         here.
14522         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14523         AC_LIBOBJ invocation.
14524         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14525         here.
14526         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14527         AC_LIBOBJ invocation.
14528         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14529         here.
14530         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14531
14532 2011-05-08  Bruno Haible  <bruno@clisp.org>
14533
14534         isinf: Move AC_LIBOBJ invocations to module description.
14535         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14536         * modules/isinf (configure.ac): ... to here.
14537
14538 2011-05-08  Bruno Haible  <bruno@clisp.org>
14539
14540         isfinite: Move AC_LIBOBJ invocations to module description.
14541         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14542         * modules/isfinite (configure.ac): ... to here.
14543
14544 2011-05-08  Bruno Haible  <bruno@clisp.org>
14545
14546         isblank: Move AC_LIBOBJ invocations to module description.
14547         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14548         here...
14549         * modules/isblank (configure.ac): ... to here.
14550
14551 2011-05-08  Bruno Haible  <bruno@clisp.org>
14552
14553         isapipe: Move AC_LIBOBJ invocations to module description.
14554         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14555         gl_PREREQ_ISAPIPE invocations from here...
14556         * modules/isapipe (configure.ac): ... to here.
14557         (Depends-on): Update condition.
14558
14559 2011-05-08  Bruno Haible  <bruno@clisp.org>
14560
14561         ioctl: Move AC_LIBOBJ invocations to module description.
14562         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14563         invocations from here...
14564         * modules/ioctl (configure.ac): ... to here.
14565         (Depends-on): Update condition.
14566
14567 2011-05-08  Bruno Haible  <bruno@clisp.org>
14568
14569         imaxdiv: Move AC_LIBOBJ invocations to module description.
14570         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14571         invocations from here...
14572         * modules/imaxdiv (configure.ac): ... to here.
14573
14574 2011-05-08  Bruno Haible  <bruno@clisp.org>
14575
14576         imaxabs: Move AC_LIBOBJ invocations to module description.
14577         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14578         invocations from here...
14579         * modules/imaxabs (configure.ac): ... to here.
14580
14581 2011-05-08  Bruno Haible  <bruno@clisp.org>
14582
14583         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14584         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14585         AC_LIBOBJ invocations from here...
14586         * modules/getaddrinfo (configure.ac): ... to here.
14587         (Depends-on): Add conditions.
14588
14589 2011-05-08  Bruno Haible  <bruno@clisp.org>
14590
14591         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14592         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14593         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14594         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14595         (gl_PREREQ_INET_PTON): ... from here.
14596         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14597         gl_PREREQ_INET_PTON here.
14598         (Depends-on): Update condition.
14599
14600 2011-05-08  Bruno Haible  <bruno@clisp.org>
14601
14602         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14603         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14604         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14605         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14606         (gl_PREREQ_INET_NTOP): ... from here.
14607         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14608         gl_PREREQ_INET_NTOP here.
14609         (Depends-on): Update condition.
14610
14611 2011-05-08  Bruno Haible  <bruno@clisp.org>
14612
14613         iconv_open: Move AC_LIBOBJ invocations to module description.
14614         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14615         AC_LIBOBJ invocations from here...
14616         * modules/iconv_open (configure.ac): ... to here.
14617
14618 2011-05-08  Bruno Haible  <bruno@clisp.org>
14619
14620         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14621         If module 'iconv_open' is among the main modules and module
14622         'iconv_open-utf' is among the tests dependencies, then
14623         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14624         return the special iconv_t values. Therefore iconv() and iconv_close()
14625         must support these special iconv_t values, already in lib, not only in
14626         tests.
14627         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14628         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14629         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14630         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14631         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14632         (Depends-on): Add the dependencies of iconv_open-utf.
14633         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14634         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14635         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14636
14637 2011-05-08  Bruno Haible  <bruno@clisp.org>
14638
14639         group-member: Move AC_LIBOBJ invocations to module description.
14640         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14641         gl_PREREQ_GROUP_MEMBER invocations from here...
14642         * modules/group-member (configure.ac): ... to here.
14643
14644 2011-05-08  Bruno Haible  <bruno@clisp.org>
14645
14646         grantpt: Move AC_LIBOBJ invocations to module description.
14647         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14648         invocations from here...
14649         * modules/grantpt (configure.ac): ... to here.
14650
14651 2011-05-08  Bruno Haible  <bruno@clisp.org>
14652
14653         glob: Move AC_LIBOBJ invocations to module description.
14654         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14655         from here...
14656         * modules/glob (configure.ac): ... to here.
14657
14658 2011-05-08  Bruno Haible  <bruno@clisp.org>
14659
14660         getusershell: Move AC_LIBOBJ invocations to module description.
14661         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14662         Move AC_LIBOBJ invocation from here...
14663         * modules/getusershell (configure.ac): ... to here.
14664         (Depends-on): Update condition.
14665
14666 2011-05-08  Bruno Haible  <bruno@clisp.org>
14667
14668         gettimeofday: Move AC_LIBOBJ invocations to module description.
14669         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14670         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14671         gl_PREREQ_GETTIMEOFDAY invocations from here...
14672         * modules/gettimeofday (configure.ac): ... to here.
14673
14674 2011-05-08  Bruno Haible  <bruno@clisp.org>
14675
14676         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14677         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14678         just gl_FUNC_TZSET.
14679         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14680         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14681         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14682         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14683
14684 2011-05-08  Bruno Haible  <bruno@clisp.org>
14685
14686         getsubopt: Move AC_LIBOBJ invocations to module description.
14687         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14688         gl_PREREQ_GETSUBOPT invocations from here...
14689         * modules/getsubopt (configure.ac): ... to here.
14690
14691 2011-05-08  Bruno Haible  <bruno@clisp.org>
14692
14693         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14694         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14695         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14696         * modules/getpass-gnu (configure.ac): ... to here.
14697
14698 2011-05-08  Bruno Haible  <bruno@clisp.org>
14699
14700         getpass: Move AC_LIBOBJ invocations to module description.
14701         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14702         gl_PREREQ_GETPASS invocations from here...
14703         * modules/getpass (configure.ac): ... to here.
14704
14705 2011-05-08  Bruno Haible  <bruno@clisp.org>
14706
14707         getpagesize: Move AC_LIBOBJ invocations to module description.
14708         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14709         from here...
14710         * modules/getpagesize (configure.ac): ... to here.
14711
14712 2011-05-08  Bruno Haible  <bruno@clisp.org>
14713
14714         getopt: Move AC_LIBOBJ invocations to module description.
14715         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14716         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14717         invocations from here...
14718         * modules/getopt-gnu (configure.ac): ... to here.
14719         * modules/getopt-posix (configure.ac): ... and here.
14720         (Depends-on): Update condition.
14721
14722 2011-05-08  Bruno Haible  <bruno@clisp.org>
14723
14724         getopt, argp: Respect rules for use of AC_LIBOBJ.
14725         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14726         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14727         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14728         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14729
14730 2011-05-08  Bruno Haible  <bruno@clisp.org>
14731
14732         getlogin_r: Move AC_LIBOBJ invocations to module description.
14733         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14734         gl_PREREQ_GETLOGIN_R invocations from here...
14735         * modules/getlogin_r (configure.ac): ... to here.
14736
14737 2011-05-08  Bruno Haible  <bruno@clisp.org>
14738
14739         getlogin: Move AC_LIBOBJ invocations to module description.
14740         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14741         here...
14742         * modules/getlogin (configure.ac): ... to here.
14743
14744 2011-05-08  Bruno Haible  <bruno@clisp.org>
14745
14746         getloadavg: Move AC_LIBOBJ invocations to module description.
14747         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14748         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14749         * modules/getloadavg (configure.ac): ... to here.
14750
14751 2011-05-08  Bruno Haible  <bruno@clisp.org>
14752
14753         gethrxtime: Move AC_LIBOBJ invocations to module description.
14754         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14755         LIB_GETHRXTIME from here...
14756         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14757         invocations from here...
14758         * modules/gethrxtime (configure.ac): ... to here.
14759
14760 2011-05-08  Bruno Haible  <bruno@clisp.org>
14761
14762         gethostname: Move AC_LIBOBJ invocations to module description.
14763         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14764         gl_PREREQ_GETHOSTNAME invocations from here...
14765         * modules/gethostname (configure.ac): ... to here.
14766
14767 2011-05-08  Bruno Haible  <bruno@clisp.org>
14768
14769         getgroups: Move AC_LIBOBJ invocations to module description.
14770         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14771         here...
14772         * modules/getgroups (configure.ac): ... to here.
14773
14774 2011-05-08  Bruno Haible  <bruno@clisp.org>
14775
14776         getdtablesize: Move AC_LIBOBJ invocations to module description.
14777         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14778         invocation from here...
14779         * modules/getdtablesize (configure.ac): ... to here.
14780
14781 2011-05-08  Bruno Haible  <bruno@clisp.org>
14782
14783         getdomainname: Move AC_LIBOBJ invocations to module description.
14784         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14785         gl_PREREQ_GETDOMAINNAME invocations from here...
14786         * modules/getdomainname (configure.ac): ... to here.
14787
14788 2011-05-08  Bruno Haible  <bruno@clisp.org>
14789
14790         getline: Move AC_LIBOBJ invocations to module description.
14791         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14792         invocations from here...
14793         * modules/getline (configure.ac): ... to here.
14794
14795 2011-05-08  Bruno Haible  <bruno@clisp.org>
14796
14797         getline: Simplify.
14798         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14799         It's already handled through the module dependency.
14800
14801 2011-05-08  Bruno Haible  <bruno@clisp.org>
14802
14803         getdelim: Move AC_LIBOBJ invocations to module description.
14804         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14805         and gl_PREREQ_GETDELIM invocations from here...
14806         * modules/getdelim (configure.ac): ... to here.
14807         (Depends-on): Fix condition.
14808
14809 2011-05-08  Bruno Haible  <bruno@clisp.org>
14810
14811         getcwd: Move AC_LIBOBJ invocations to module description.
14812         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14813         invocations from here...
14814         * modules/getcwd (configure.ac): ... to here.
14815
14816 2011-05-08  Bruno Haible  <bruno@clisp.org>
14817
14818         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14819         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14820         here...
14821         * modules/getcwd-lgpl (configure.ac): ... to here.
14822
14823 2011-05-07  Bruno Haible  <bruno@clisp.org>
14824
14825         crypto/gc: Move AC_LIBOBJ invocations to module description.
14826         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14827         * modules/crypto/gc (configure.ac): ... to here.
14828
14829 2011-05-07  Bruno Haible  <bruno@clisp.org>
14830
14831         fwriting: Move AC_LIBOBJ invocations to module description.
14832         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14833         here...
14834         * modules/fwriting (configure.ac): ... to here.
14835
14836 2011-05-07  Bruno Haible  <bruno@clisp.org>
14837
14838         fwritable: Move AC_LIBOBJ invocations to module description.
14839         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14840         here...
14841         * modules/fwritable (configure.ac): ... to here.
14842
14843 2011-05-07  Bruno Haible  <bruno@clisp.org>
14844
14845         futimens: Move AC_LIBOBJ invocations to module description.
14846         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14847         here...
14848         * modules/futimens (configure.ac): ... to here.
14849
14850 2011-05-07  Bruno Haible  <bruno@clisp.org>
14851
14852         ftruncate: Move AC_LIBOBJ invocations to module description.
14853         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14854         gl_PREREQ_FTRUNCATE invocations from here...
14855         * modules/ftruncate (configure.ac): ... to here.
14856
14857 2011-05-07  Bruno Haible  <bruno@clisp.org>
14858
14859         fsync: Move AC_LIBOBJ invocations to module description.
14860         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14861         invocations from here...
14862         * modules/fsync (configure.ac): ... to here.
14863
14864 2011-05-07  Bruno Haible  <bruno@clisp.org>
14865
14866         fsusage: Move AC_LIBOBJ invocations to module description.
14867         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14868         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14869         * modules/fsusage (configure.ac): ... to here.
14870
14871 2011-05-07  Bruno Haible  <bruno@clisp.org>
14872
14873         freopen: Move AC_LIBOBJ invocations to module description.
14874         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14875         invocations from here...
14876         * modules/freopen (configure.ac): ... to here.
14877
14878 2011-05-07  Bruno Haible  <bruno@clisp.org>
14879
14880         free: Move AC_LIBOBJ invocations to module description.
14881         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14882         invocations from here...
14883         * modules/free (configure.ac): ... to here.
14884
14885 2011-05-07  Bruno Haible  <bruno@clisp.org>
14886
14887         freadable: Move AC_LIBOBJ invocations to module description.
14888         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14889         here...
14890         * modules/freadable (configure.ac): ... to here.
14891
14892 2011-05-07  Bruno Haible  <bruno@clisp.org>
14893
14894         fpurge: Move AC_LIBOBJ invocations to module description.
14895         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14896         invocations from here...
14897         * modules/fpurge (configure.ac): ... to here.
14898
14899 2011-05-07  Bruno Haible  <bruno@clisp.org>
14900
14901         fpending: Move AC_LIBOBJ invocations to module description.
14902         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14903         gl_FUNC_FPENDING.
14904         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14905         invocations from here...
14906         * modules/fpending (configure.ac): ... to here.
14907
14908 2011-05-07  Bruno Haible  <bruno@clisp.org>
14909
14910         fopen: Move AC_LIBOBJ invocations to module description.
14911         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14912         invocations from here...
14913         * modules/fopen (configure.ac): ... to here.
14914
14915 2011-05-07  Bruno Haible  <bruno@clisp.org>
14916
14917         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14918         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14919         gl_FUNC_FNMATCH_POSIX.
14920         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14921         invocations from here...
14922         * modules/fnmatch (configure.ac): ... to here.
14923         * modules/fnmatch-gnu (configure.ac): ... and here.
14924
14925 2011-05-07  Bruno Haible  <bruno@clisp.org>
14926
14927         flock: Move AC_LIBOBJ invocations to module description.
14928         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14929         invocations from here...
14930         * modules/flock (configure.ac): ... to here.
14931
14932 2011-05-07  Bruno Haible  <bruno@clisp.org>
14933
14934         fileblocks: Move AC_LIBOBJ invocations to module description.
14935         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14936         gl_PREREQ_FILEBLOCKS invocations from here...
14937         * modules/fileblocks (configure.ac): ... to here.
14938
14939 2011-05-06  Bruno Haible  <bruno@clisp.org>
14940
14941         fflush: Move AC_LIBOBJ invocations to module description.
14942         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14943         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14944         invocations from here...
14945         * modules/fflush (configure.ac): ... to here.
14946
14947 2011-05-06  Bruno Haible  <bruno@clisp.org>
14948
14949         fdopendir: Move AC_LIBOBJ invocations to module description.
14950         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14951         here...
14952         * modules/fdopendir (configure.ac): ... to here.
14953         (Depends-on): Improve conditions.
14954
14955 2011-05-06  Bruno Haible  <bruno@clisp.org>
14956
14957         _Exit: Move AC_LIBOBJ invocations to module description.
14958         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14959         invocations from here...
14960         * modules/_Exit (configure.ac): ... to here.
14961
14962 2011-05-21  Bruno Haible  <bruno@clisp.org>
14963
14964         euidaccess: Respect rules for use of AC_LIBOBJ.
14965         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14967         from here...
14968         * modules/euidaccess (configure.ac): ... to here.
14969
14970 2011-05-06  Bruno Haible  <bruno@clisp.org>
14971
14972         error: Move AC_LIBOBJ invocations to module description.
14973         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14974         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14975         invocations from here...
14976         * modules/error (configure.ac): ... to here.
14977
14978 2011-05-06  Bruno Haible  <bruno@clisp.org>
14979
14980         duplocale: Move AC_LIBOBJ invocations to module description.
14981         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14982         gl_PREREQ_DUPLOCALE invocations from here...
14983         * modules/duplocale (configure.ac): ... to here.
14984
14985 2011-05-05  Bruno Haible  <bruno@clisp.org>
14986
14987         dirfd: Move AC_LIBOBJ invocations to module description.
14988         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14989         gl_FUNC_DIRFD.
14990         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14991         here...
14992         * modules/dirfd (configure.ac): ... to here.
14993         (Depends-on): Fix condition.
14994
14995 2011-05-05  Bruno Haible  <bruno@clisp.org>
14996
14997         chown: Respect rules for use of AC_LIBOBJ.
14998         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14999         * modules/chown (configure.ac): ... to here.
15000
15001 2011-05-05  Bruno Haible  <bruno@clisp.org>
15002
15003         chdir-long: Move AC_LIBOBJ invocations to module description.
15004         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15005         gl_PREREQ_CHDIR_LONG invocations from here...
15006         * modules/chdir-long (configure.ac): ... to here.
15007
15008 2011-05-05  Bruno Haible  <bruno@clisp.org>
15009
15010         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15011         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15012         from here...
15013         * modules/canonicalize-lgpl (configure.ac): ... to here.
15014
15015 2011-05-05  Bruno Haible  <bruno@clisp.org>
15016
15017         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15018         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15019         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15020         REPLACE_CALLOC.
15021         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15022         * modules/calloc-gnu (configure.ac): Likewise.
15023
15024 2011-05-05  Bruno Haible  <bruno@clisp.org>
15025
15026         btowc: Move AC_LIBOBJ invocations to module description.
15027         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15028         invocations from here...
15029         * modules/btowc (configure.ac): ... to here.
15030
15031 2011-05-21  Bruno Haible  <bruno@clisp.org>
15032
15033         atexit: Move AC_LIBOBJ invocations to module description.
15034         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15036         here...
15037         * modules/atexit (configure.ac): ... to here.
15038
15039 2011-05-05  Bruno Haible  <bruno@clisp.org>
15040
15041         atoll: Move AC_LIBOBJ invocations to module description.
15042         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15043         invocations from here...
15044         * modules/atoll (configure.ac): ... to here.
15045
15046 2011-05-05  Bruno Haible  <bruno@clisp.org>
15047
15048         argz: Move AC_LIBOBJ invocations to module description.
15049         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15050         * modules/argz (configure.ac): ... to here.
15051
15052 2011-05-05  Bruno Haible  <bruno@clisp.org>
15053
15054         alphasort: Move AC_LIBOBJ invocations to module description.
15055         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15056         gl_PREREQ_ALPHASORT invocations from here...
15057         * modules/alphasort (configure.ac): ... to here.
15058
15059 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15060
15061         verify: new macro verify_expr; verify_true deprecated
15062         * NEWS: Mention this.
15063         * doc/verify.texi (Compile-time Assertions): Document this.
15064         * lib/verify.h (verify_true): Deprecate.
15065         (verify_expr): New macro.
15066         * tests/test-verify.c (function): Test verify_expr.
15067
15068 2011-06-14  Jim Meyering  <meyering@redhat.com>
15069
15070         init.sh: give more portable redirection-related advice in a comment
15071         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15072         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15073         for lots of discussion.  Stefano Lattarini suggested the solution
15074         of putting "9>&2" after the command.  Reported by Bruno Haible.
15075
15076 2011-06-13  Bruno Haible  <bruno@clisp.org>
15077
15078         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15079         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15080         'none'.
15081
15082 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15083
15084         ftoastr: use strtof only if HAVE_STRTOF
15085         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15087         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15088         * modules/ftoastr (configure.ac): Check for strtof.
15089
15090 2011-06-13  Bruno Haible  <bruno@clisp.org>
15091
15092         gnulib-tool: Addendum to 2011-06-08 commit.
15093         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15094         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15095
15096 2011-06-13  Bruno Haible  <bruno@clisp.org>
15097
15098         fseeko: Provide a non-inline replacement of fseek().
15099         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15100         * modules/fseeko (Depends-on): Add fseek.
15101         * modules/fseek (License): Change to LGPLv2+.
15102
15103 2011-06-13  Bruno Haible  <bruno@clisp.org>
15104
15105         ftello: Provide a non-inline replacement of ftell().
15106         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15107         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15108         not have ftello() (such as on mingw).
15109         * modules/ftello (Depends-on): Add ftell.
15110         * modules/ftell (License): Change to LGPLv2+.
15111
15112 2011-05-07  Bruno Haible  <bruno@clisp.org>
15113
15114         ftell: Move AC_LIBOBJ invocations to module description.
15115         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15116         * modules/ftell (configure.ac): ... to here.
15117
15118 2011-05-07  Bruno Haible  <bruno@clisp.org>
15119
15120         ftello: Respect rules for use of AC_LIBOBJ.
15121         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15122         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15123         here...
15124         * modules/ftello (configure.ac): ... to here.
15125
15126 2011-05-07  Bruno Haible  <bruno@clisp.org>
15127
15128         fseeko: Simplify.
15129         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15130         (gl_FUNC_FSEEKO): Inline it here.
15131
15132 2011-05-07  Bruno Haible  <bruno@clisp.org>
15133
15134         fseek: Move AC_LIBOBJ invocations to module description.
15135         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15136         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15137         * modules/fseek (configure.ac): ... to here.
15138
15139 2011-05-07  Bruno Haible  <bruno@clisp.org>
15140
15141         fseek: Respect rules for use of AC_LIBOBJ.
15142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15143         here...
15144         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15145
15146 2011-05-07  Bruno Haible  <bruno@clisp.org>
15147
15148         fseeko: Respect rules for use of AC_LIBOBJ.
15149         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15150         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15151         here...
15152         * modules/fseeko (configure.ac): ... to here.
15153
15154 2011-06-13  Bruno Haible  <bruno@clisp.org>
15155
15156         gnulib-tool: Allow comments in the 'Depends-on' section.
15157         * doc/gnulib.texi (Module description): Mention comment syntax in the
15158         Depends-on section.
15159         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15160
15161 2011-06-13  Bruno Haible  <bruno@clisp.org>
15162
15163         file-set.h: guard __attibute__ use, now that it's not always defined
15164         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15165         versions that support it.  This fixes a coreutils build failure with
15166         the vendor cc on HP-UX 11.31.
15167
15168 2011-06-12  Bruno Haible  <bruno@clisp.org>
15169
15170         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15171         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15172         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15173         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15174         (acl, aclsort): New declarations.
15175         (aclv_nontrivial): New declaration.
15176         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15177         (file_has_acl): Read also the second kind of HP-UX ACLs.
15178         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15179         kind of HP-UX ACLs if the first kind fails.
15180         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15181         second kind of HP-UX ACLs.
15182         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15183         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15184         agree.
15185         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15186         hpuxjfs.
15187         Handle hpuxjfs.
15188         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15189         hpuxjfs.
15190         Handle hpuxjfs.
15191         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15192         (func_test_same_acls): Use both lsacl and getacl.
15193         Handle hpuxjfs.
15194         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15195         (func_test_same_acls): Use both lsacl and getacl.
15196         Handle hpuxjfs.
15197
15198 2011-06-12  Bruno Haible  <bruno@clisp.org>
15199
15200         acl: Complete the 2010-08-10 fix.
15201         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15202         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15203         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15204         explicitly.
15205         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15206         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15207
15208 2011-06-12  Bruno Haible  <bruno@clisp.org>
15209
15210         spawn-pipe tests: Comments.
15211         * tests/test-spawn-pipe-child.c (main): Update comment.
15212         Reported by James Youngman <jay@gnu.org>.
15213
15214 2011-06-11  James Youngman  <jay@gnu.org>
15215
15216         New module 'stat-size'.
15217         * modules/stat-size: New module.  Provides macros for accessing
15218         file size information in instances of struct stat.  Depends on the
15219         fileblocks module because it calls st_blocks.
15220         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15221         * doc/gnulib.texi: Include stat-size.texi.
15222         * doc/stat-size.texi: Documentation for this module.
15223         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15224         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15225         AC_STRUCT_ST_BLOCKS.
15226
15227 2011-06-09  Bruno Haible  <bruno@clisp.org>
15228
15229         thread: Support pthreads-win32.
15230         * lib/glthread/thread.h (gl_thread_self): Define differently on
15231         pthreads-win32.
15232         (gl_null_thread): New declaration.
15233         (gl_thread_self_pointer): New macro.
15234         * lib/glthread/thread.c (gl_null_thread): New constant.
15235         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15236         gl_thread_self.
15237         * tests/test-tls.c: Likewise.
15238         Suggested by Paul Eggert. Reported by Eric Blake.
15239
15240 2011-06-09  Bruno Haible  <bruno@clisp.org>
15241
15242         thread: Fix confusion between NULL and 0.
15243         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15244         Reported by Paul Eggert.
15245
15246 2011-06-09  Bruno Haible  <bruno@clisp.org>
15247
15248         spawn-pipe tests: Avoid test failure on HP-UX 11.
15249         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15250         is closed.
15251
15252 2011-06-09  Bruno Haible  <bruno@clisp.org>
15253
15254         acl tests: Fix compilation error on HP-UX 11.
15255         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15256
15257 2011-06-09  Bruno Haible  <bruno@clisp.org>
15258
15259         rmdir: Avoid test failure on HP-UX 10.20.
15260         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15261         EEXIST.
15262
15263 2011-06-08  Eric Blake  <eblake@redhat.com>
15264
15265         perror: fix test on mingw
15266         * modules/perror-tests (Depends-on): Add dup2.
15267
15268         strerror_r-posix: fix on MacOS
15269         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15270         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15271         logic bug.
15272         * lib/strerror_r.c (strerror_r): Fix the bug.
15273         * lib/strerror.c (strerror): Likewise.
15274         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15275         problem.
15276         * doc/posix-functions/strerror.texi (strerror): Likewise.
15277         * doc/posix-functions/perror.texi (perror): Likewise.
15278         * tests/test-strerror.c (main): Enhance test.
15279         * tests/test-strerror_r.c (main): Likewise.
15280
15281 2011-06-08  Bruno Haible  <bruno@clisp.org>
15282
15283         gnulib-tool: Better isolation between different gnulib-tool invocations.
15284         * gnulib-tool: New option --witness-c-macro.
15285         (witness_c_macro): New variable.
15286         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15287         AM_CPPFLAGS define it as a C macro.
15288         (func_emit_tests_Makefile_am): Likewise.
15289         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15290         read it from there.
15291         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15292         m4_define, not AC_DEFUN.
15293         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15294         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15295         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15296         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15297         s|...|...|, to substitute the values of the GNULIB_* module indicator
15298         variables.
15299         * modules/dirent (Makefile.am): Likewise.
15300         * modules/fcntl-h (Makefile.am): Likewise.
15301         * modules/iconv-h (Makefile.am): Likewise.
15302         * modules/langinfo (Makefile.am): Likewise.
15303         * modules/locale (Makefile.am): Likewise.
15304         * modules/math (Makefile.am): Likewise.
15305         * modules/netdb (Makefile.am): Likewise.
15306         * modules/poll-h (Makefile.am): Likewise.
15307         * modules/pty (Makefile.am): Likewise.
15308         * modules/search (Makefile.am): Likewise.
15309         * modules/signal (Makefile.am): Likewise.
15310         * modules/spawn (Makefile.am): Likewise.
15311         * modules/stdio (Makefile.am): Likewise.
15312         * modules/stdlib (Makefile.am): Likewise.
15313         * modules/string (Makefile.am): Likewise.
15314         * modules/sys_ioctl (Makefile.am): Likewise.
15315         * modules/sys_select (Makefile.am): Likewise.
15316         * modules/sys_socket (Makefile.am): Likewise.
15317         * modules/sys_stat (Makefile.am): Likewise.
15318         * modules/sys_times (Makefile.am): Likewise.
15319         * modules/sys_utsname (Makefile.am): Likewise.
15320         * modules/sys_wait (Makefile.am): Likewise.
15321         * modules/termios (Makefile.am): Likewise.
15322         * modules/time (Makefile.am): Likewise.
15323         * modules/unistd (Makefile.am): Likewise.
15324         * modules/wchar (Makefile.am): Likewise.
15325
15326 2011-06-08  Eric Blake  <eblake@redhat.com>
15327
15328         strerror: simplify replacement
15329         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15330         * modules/strerror (configure.ac): No prereqs needed here...
15331         * modules/strerror-override (configure.ac): ...but this needs it.
15332         (Files): Add file for needed prereq macro.
15333
15334 2011-06-08  Bruno Haible  <bruno@clisp.org>
15335
15336         strerror_r-posix: Tweaks.
15337         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15338         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15340         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15341         (gl_FUNC_STRERROR_R): ... to here.
15342         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15343
15344 2011-06-07  Eric Blake  <eblake@redhat.com>
15345
15346         perror: document fixed bugs
15347         * doc/posix-functions/perror.texi (perror): Document recent
15348         patches.
15349
15350 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15351
15352         stat-time: get_stat_birthtime failure is better-defined
15353         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15354         return a timestamp whose tv_sec and tv_nsec values are both -1.
15355         Previously, the spec said only that the tv_nsec value was negative.
15356         This upward-compatible change simplifies GNU tar a bit.
15357
15358 2011-06-07  Eric Blake  <eblake@redhat.com>
15359
15360         strerror_r-posix: work around cygwin 1.7.9
15361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15362         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15363         bug without replacing strerror_r.
15364         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15365         strerror_r is buggy, but without requiring strerror_r compilation.
15366         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15367
15368         test-perror: relax test to ignore cygwin bug
15369         * tests/test-perror2.c (main): Relax test on requiring detection
15370         of stream errors, and use unbuffered stream.
15371         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15372         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15373         * doc/posix-functions/fputc.texi (fputc): Likewise.
15374         * doc/posix-functions/fputs.texi (fputs): Likewise.
15375         * doc/posix-functions/fputws.texi (fputws): Likewise.
15376         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15377         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15378         * doc/posix-functions/getopt.texi (getopt): Likewise.
15379         * doc/posix-functions/perror.texi (perror): Likewise.
15380         * doc/posix-functions/printf.texi (printf): Likewise.
15381         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15382         * doc/posix-functions/psignal.texi (psignal): Likewise.
15383         * doc/posix-functions/putc.texi (putc): Likewise.
15384         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15385         Likewise.
15386         * doc/posix-functions/putchar.texi (putchar): Likewise.
15387         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15388         Likewise.
15389         * doc/posix-functions/puts.texi (puts): Likewise.
15390         * doc/posix-functions/putwc.texi (putwc): Likewise.
15391         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15392         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15393         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15394         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15395         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15396         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15397         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15398         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15399
15400 2011-05-22  Bruno Haible  <bruno@clisp.org>
15401
15402         strerror: Move AC_LIBOBJ invocations to module description.
15403         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15404         gl_PREREQ_STRERROR invocations from here...
15405         * modules/strerror (configure.ac): ... to here.
15406
15407 2011-05-21  Bruno Haible  <bruno@clisp.org>
15408
15409         perror: Use common idiom.
15410         * modules/perror (configure.ac): Reorder statements.
15411
15412 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15413
15414         tests: fix usage message in 'mktempd_'
15415         * tests/init.sh (mktempd_): In the usage message, use literal
15416         'mktempd_', not '$ME' (which is even undefined), as the name of
15417         the subroutine.
15418
15419 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15420
15421         tests init: new function 'fatal_', for hard errors
15422         Before this patch, the only way offered by tests/init.sh to
15423         properly signal a hard error was the `framework_failure_'
15424         function.  But the error message issued by that function,
15425         as its name would suggest, refers to a set-up failure in the
15426         testsuite, while hard errors can obviously also be due to
15427         other reasons.  The best way to fix this inconsistency is to
15428         introduce a new function with a more general error message.
15429         * tests/init.sh (fatal_): New function.
15430
15431 2011-06-06  Eric Blake  <eblake@redhat.com>
15432
15433         canonicalize-lgpl: use common idiom
15434         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15435         over newer POSIX -Rf.
15436         Reported by Bruno Haible.
15437
15438         canonicalize-lgpl: work around AIX realpath bug
15439         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15440         * doc/posix-functions/realpath.texi (realpath): Document it.
15441         Reported by Bruno Haible.
15442
15443         strerror: work around FreeBSD bug
15444         * lib/strerror.c (strerror): Special case 0.
15445         Reported by Bruno Haible.
15446
15447         strerror-override: avoid bloating errno module
15448         * modules/errno (Files, configure.ac): Move replacement strings...
15449         * modules/strerror-override: ...to new module.
15450         * modules/strerror (Depends-on): Add strerror-override.
15451         * modules/strerror_r-posix (Depends-on): Likewise.
15452         * MODULES.html.sh: Document new module.
15453         Reported by Bruno Haible.
15454
15455 2011-06-06  Bruno Haible  <bruno@clisp.org>
15456
15457         spawn-pipe tests: Rename program.
15458         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15459         * tests/test-spawn-pipe-child.c: Update comment.
15460         * tests/test-spawn-pipe.sh: Update.
15461         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15462
15463         spawn-pipe tests: Link the child program only against libc.
15464         * tests/test-spawn-pipe-child.c: New file, extracted from
15465         tests/test-spawn-pipe.c.
15466         (main): Expect only one argument.
15467         (is_open): New function, copied from tests/test-pipe.c.
15468         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15469         (child_main): Remove function.
15470         (test_pipe): Pass only one argument to the child program.
15471         (main): Remove child process code. Expect the child program's name as
15472         first argument.
15473         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15474         argument.
15475         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15476         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15477         test-spawn-pipe-child against no libraries.
15478
15479 2011-06-06  Bruno Haible  <bruno@clisp.org>
15480
15481         careadlinkat: Avoid mismatch between ssize_t and int.
15482         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15483         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15484
15485 2011-06-06  Jim Meyering  <meyering@redhat.com>
15486
15487         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15488         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15489         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15490
15491 2011-06-05  Bruno Haible  <bruno@clisp.org>
15492
15493         ansi-c++-opt: Interoperability with libtool.
15494         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15495         set the variable to "no", not to ":".
15496         * NEWS: Mention the change.
15497
15498 2011-06-05  Bruno Haible  <bruno@clisp.org>
15499
15500         acl: Fix test failure on AIX 7.
15501         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15502         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15503
15504 2011-06-05  Bruno Haible  <bruno@clisp.org>
15505
15506         pipe-filter-ii: Fix test failure on AIX and IRIX.
15507         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15508         with EAGAIN, retry with a smaller buffer size.
15509
15510 2011-06-05  Bruno Haible  <bruno@clisp.org>
15511
15512         localename: Fix link dependencies.
15513         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15514         * modules/localename-tests (Makefile.am): Link test-localename with
15515         $(LIBTHREAD).
15516
15517 2011-06-05  Bruno Haible  <bruno@clisp.org>
15518
15519         error: Avoid gcc warning.
15520         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15521
15522 2011-06-05  Bruno Haible  <bruno@clisp.org>
15523
15524         unsetenv: Avoid gcc warning.
15525         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15526
15527 2011-06-05  Bruno Haible  <bruno@clisp.org>
15528
15529         setenv: Avoid gcc warning.
15530         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15531
15532 2011-06-05  Bruno Haible  <bruno@clisp.org>
15533
15534         sys_select: Ensure memset is declared also on AIX 7.
15535         * lib/sys_select.in.h: Include <string.h> also on AIX.
15536         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15537         self-contained also on AIX 7.1.
15538
15539 2011-06-04  Jim Meyering  <meyering@redhat.com>
15540
15541         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15542         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15543         function name, "error".
15544         (_gl_translatable_diag_func_re): New configurable variable.
15545
15546 2011-06-04  Bruno Haible  <bruno@clisp.org>
15547
15548         getopt: Avoid gcc warning.
15549         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15550
15551 2011-06-04  Bruno Haible  <bruno@clisp.org>
15552
15553         strerror_r: Fix comments.
15554         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15555         commit.
15556
15557 2011-06-04  Bruno Haible  <bruno@clisp.org>
15558
15559         perror: Fix compilation error.
15560         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15561         Undefine fprintf, not sprintf.
15562         * modules/perror (Depends-on): Remove intprops, verify.
15563
15564 2011-06-04  Bruno Haible  <bruno@clisp.org>
15565
15566         setlocale: Enable replacement on Cygwin 1.5.
15567         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15568         Cygwin 1.5.x.
15569         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15570         LC_CTYPE category also exists on Cygwin 1.5.x.
15571
15572 2011-06-04  Bruno Haible  <bruno@clisp.org>
15573
15574         strerror-override: Don't disable symbol renamings.
15575         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15576         * lib/strerror-override.c: Include config.h.
15577         (strerror_override): Don't undefine.
15578
15579 2011-06-03  Bruno Haible  <bruno@clisp.org>
15580
15581         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15582         * lib/localename.h: Update copyright header.
15583         * lib/localename.c: Likewise.
15584         * lib/relocatable.h: Likewise.
15585         * lib/relocatable.c: Likewise.
15586
15587 2011-06-02  Bruno Haible  <bruno@clisp.org>
15588
15589         doc: Fix a module name.
15590         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15591
15592 2011-06-02  Bruno Haible  <bruno@clisp.org>
15593
15594         pipe2: Remove dependency on 'nonblocking' module.
15595         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15596         O_NONBLOCK is defined by gnulib.
15597         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15598         is zero.
15599         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15600         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15601         defined by gnulib.
15602         (get_nonblocking_flag): New function.
15603         (main): Test O_NONBLOCK flag only if it is nonzero.
15604         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15605
15606 2011-06-03  Jim Meyering  <meyering@redhat.com>
15607
15608         maint: three new prohibit-header-without-use rules
15609         Prohibit use of cloexec.h, posixver.h, same.h without use.
15610         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15611         (sc_prohibit_posixver_without_use): Likewise.
15612         (sc_prohibit_same_without_use): Likewise.
15613
15614 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15615
15616         allocator: 'die' routine is now given requested size
15617         * lib/allocator.h (struct allocator.die): New size arg.
15618         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15619         If the actual problem is an ssize_t limitation, not a size_t or
15620         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15621
15622 2011-06-01  Eric Blake  <eblake@redhat.com>
15623
15624         strerror: drop strerror_r dependency
15625         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15626         * lib/strerror-override.c (strerror_override): ...to new file.
15627         * lib/strerror-override.h: Add prototype.
15628         * lib/strerror-impl.h: Delete.
15629         * lib/strerror.c (strerror): New implementation.
15630         * modules/errno (Files): Add new files.
15631         (configure.ac): Compile new file as appropriate.
15632         * modules/strerror (Files): Drop unused file.
15633         (Depends-on): Drop strerror_r-posix.
15634         * MODULES.html.sh: Document strerror_r-posix.
15635         Requested by Sam Steingold.
15636
15637         perror: call strerror_r directly
15638         * modules/perror (Files): Drop strerror-impl.h.
15639         * lib/perror.c (perror): Use our own stack buffer, rather than
15640         calling a wrapper that uses static storage.
15641         * doc/posix-functions/perror.texi (perror): Document a limitation
15642         of our replacement.
15643
15644         strerror_r: fix includes for FreeBSD
15645         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15646         since we use abort on some platforms.
15647         Reported by Matthias Bolte.
15648
15649 2011-05-31  Bruno Haible  <bruno@clisp.org>
15650
15651         Fix link errors in tests: openat-die uses gettext-h.
15652         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15653         against $(LIBINTL).
15654         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15655         against $(LIBINTL).
15656         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15657         $(LIBINTL).
15658         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15659         against $(LIBINTL).
15660         * modules/linkat-tests (Makefile.am): Link test-linkat against
15661         $(LIBINTL).
15662         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15663         $(LIBINTL).
15664         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15665         against $(LIBINTL).
15666         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15667         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15668         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15669         $(LIBINTL).
15670         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15671         $(LIBINTL).
15672         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15673         $(LIBINTL).
15674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15675
15676 2011-05-31  Bruno Haible  <bruno@clisp.org>
15677
15678         Fix link errors in tests: wait-process uses gettext-h.
15679         * modules/nonblocking-pipe-tests (Makefile.am): Set
15680         test_nonblocking_pipe_main_LDADD.
15681         * modules/nonblocking-socket-tests (Makefile.am): Link
15682         test-nonblocking-socket-main against $(LIBINTL).
15683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15684
15685 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15686
15687         assert-h: work around 'verify' incompatibility
15688         * lib/verify.h: Use @...@ directives, not ifdef.
15689         * modules/assert-h (assert.h): Implement the directives.
15690         (assert.h): Substitute the symbol-prefix more consistently.
15691
15692 2011-05-29  Jim Meyering  <meyering@redhat.com>
15693
15694         trim: remove three superfluous assignments
15695         * lib/trim.c (trim2): Remove three superfluous assignments
15696         and correct brace positioning.
15697
15698 2011-05-29  Bruno Haible  <bruno@clisp.org>
15699
15700         wctype-h: Avoid namespace pollution on Solaris 2.6.
15701         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15702         identifiers.
15703         * doc/posix-headers/wctype.texi: Mention the problem.
15704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15705
15706 2011-05-28  Jim Meyering  <meyering@redhat.com>
15707
15708         parse-datetime.y: accommodate -Wstrict-overflow
15709         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15710         placate -Wstrict-overflow.
15711
15712         trim: avoid a warning from -O2 -Wstrict-overflow
15713         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15714
15715 2011-05-29  Bruno Haible  <bruno@clisp.org>
15716
15717         gnulib-tool: Fix bug in yesterday's commit.
15718         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15719         twice.
15720
15721 2011-05-29  Bruno Haible  <bruno@clisp.org>
15722
15723         Allow multiple gnulib generated include files to be combined.
15724         * gnulib-tool (func_compute_include_guard_prefix): New function.
15725         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15726         ${gl_include_guard_prefix} references.
15727         (func_import, func_create_testdir): Invoke
15728         func_compute_include_guard_prefix.
15729         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15730         * lib/ctype.in.h: Likewise.
15731         * lib/dirent.in.h: Likewise.
15732         * lib/errno.in.h: Likewise.
15733         * lib/fcntl.in.h: Likewise.
15734         * lib/float.in.h: Likewise.
15735         * lib/getopt.in.h: Likewise.
15736         * lib/iconv.in.h: Likewise.
15737         * lib/langinfo.in.h: Likewise.
15738         * lib/locale.in.h: Likewise.
15739         * lib/math.in.h: Likewise.
15740         * lib/netdb.in.h: Likewise.
15741         * lib/netinet_in.in.h: Likewise.
15742         * lib/poll.in.h: Likewise.
15743         * lib/pthread.in.h: Likewise.
15744         * lib/pty.in.h: Likewise.
15745         * lib/sched.in.h: Likewise.
15746         * lib/se-selinux.in.h: Likewise.
15747         * lib/search.in.h: Likewise.
15748         * lib/signal.in.h: Likewise.
15749         * lib/spawn.in.h: Likewise.
15750         * lib/stdarg.in.h: Likewise.
15751         * lib/stddef.in.h: Likewise.
15752         * lib/stdint.in.h: Likewise.
15753         * lib/stdio.in.h: Likewise.
15754         * lib/stdlib.in.h: Likewise.
15755         * lib/string.in.h: Likewise.
15756         * lib/strings.in.h: Likewise.
15757         * lib/sys_file.in.h: Likewise.
15758         * lib/sys_ioctl.in.h: Likewise.
15759         * lib/sys_select.in.h: Likewise.
15760         * lib/sys_socket.in.h: Likewise.
15761         * lib/sys_stat.in.h: Likewise.
15762         * lib/sys_time.in.h: Likewise.
15763         * lib/sys_times.in.h: Likewise.
15764         * lib/sys_uio.in.h: Likewise.
15765         * lib/sys_utsname.in.h: Likewise.
15766         * lib/sys_wait.in.h: Likewise.
15767         * lib/sysexits.in.h: Likewise.
15768         * lib/termios.in.h: Likewise.
15769         * lib/time.in.h: Likewise.
15770         * lib/unistd.in.h: Likewise.
15771         * lib/wchar.in.h: Likewise.
15772         * lib/wctype.in.h: Likewise.
15773         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15774         * modules/ctype (Makefile.am): Likewise.
15775         * modules/dirent (Makefile.am): Likewise.
15776         * modules/errno (Makefile.am): Likewise.
15777         * modules/fcntl-h (Makefile.am): Likewise.
15778         * modules/float (Makefile.am): Likewise.
15779         * modules/getopt-posix (Makefile.am): Likewise.
15780         * modules/iconv-h (Makefile.am): Likewise.
15781         * modules/langinfo (Makefile.am): Likewise.
15782         * modules/locale (Makefile.am): Likewise.
15783         * modules/math (Makefile.am): Likewise.
15784         * modules/netdb (Makefile.am): Likewise.
15785         * modules/netinet_in (Makefile.am): Likewise.
15786         * modules/poll-h (Makefile.am): Likewise.
15787         * modules/pthread (Makefile.am): Likewise.
15788         * modules/pty (Makefile.am): Likewise.
15789         * modules/sched (Makefile.am): Likewise.
15790         * modules/search (Makefile.am): Likewise.
15791         * modules/selinux-h (Makefile.am): Likewise.
15792         * modules/signal (Makefile.am): Likewise.
15793         * modules/spawn (Makefile.am): Likewise.
15794         * modules/stdarg (Makefile.am): Likewise.
15795         * modules/stddef (Makefile.am): Likewise.
15796         * modules/stdint (Makefile.am): Likewise.
15797         * modules/stdio (Makefile.am): Likewise.
15798         * modules/stdlib (Makefile.am): Likewise.
15799         * modules/string (Makefile.am): Likewise.
15800         * modules/strings (Makefile.am): Likewise.
15801         * modules/sys_file (Makefile.am): Likewise.
15802         * modules/sys_ioctl (Makefile.am): Likewise.
15803         * modules/sys_select (Makefile.am): Likewise.
15804         * modules/sys_socket (Makefile.am): Likewise.
15805         * modules/sys_stat (Makefile.am): Likewise.
15806         * modules/sys_time (Makefile.am): Likewise.
15807         * modules/sys_times (Makefile.am): Likewise.
15808         * modules/sys_uio (Makefile.am): Likewise.
15809         * modules/sys_utsname (Makefile.am): Likewise.
15810         * modules/sys_wait (Makefile.am): Likewise.
15811         * modules/sysexits (Makefile.am): Likewise.
15812         * modules/termios (Makefile.am): Likewise.
15813         * modules/time (Makefile.am): Likewise.
15814         * modules/unistd (Makefile.am): Likewise.
15815         * modules/wchar (Makefile.am): Likewise.
15816         * modules/wctype-h (Makefile.am): Likewise.
15817         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15818
15819 2011-05-29  Bruno Haible  <bruno@clisp.org>
15820
15821         assert-h: Allow multiple gnulib generated replacements to coexist.
15822         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15823
15824 2011-05-29  Bruno Haible  <bruno@clisp.org>
15825
15826         argp: Allow coexistence with strerror_r-posix module.
15827         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15828         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15829         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15830         not the glibc signature.
15831
15832 2011-05-28  Bruno Haible  <bruno@clisp.org>
15833
15834         gnulib-tool: Alternative structure of testdirs, similar to --import.
15835         * gnulib-tool: New option --single-configure.
15836         (func_usage): Document it.
15837         (single_configure): New variable.
15838         (func_modules_transitive_closure_separately,
15839         func_modules_transitive_closure_separately,
15840         func_determine_use_libtests, func_modules_add_dummy_separately,
15841         func_modules_to_filelist_separately): New functions, extracted from
15842         func_import.
15843         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15844         (func_import): Use the new functions.
15845         (func_create_testdir): Set final_modules. Handle $single_configure =
15846         true case.
15847
15848 2011-05-28  Bruno Haible  <bruno@clisp.org>
15849
15850         getloadavg: Remove an unreliable safety check.
15851         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15852         getloadavg.c is in place.
15853         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15854         Reported by Sam Steingold <sds@gnu.org>.
15855
15856 2011-05-28  Bruno Haible  <bruno@clisp.org>
15857
15858         doc: Cleanup yet another file produced by texinfo.tex.
15859         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15860
15861 2011-05-28  Bruno Haible  <bruno@clisp.org>
15862
15863         Finish the conditional dependencies mechanism.
15864         * gnulib-tool: New option --no-conditional-dependencies.
15865         (func_usage): Document it. Don't mark --conditional-dependencies as
15866         experimental.
15867         (cond_dependencies): The possible values can now be true, false, empty.
15868         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15869         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15870         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15871
15872 2011-05-28  Bruno Haible  <bruno@clisp.org>
15873
15874         doc: Use a recent texinfo.tex.
15875         * doc/Makefile (tex_opts): New variable.
15876         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15877
15878 2011-05-28  Jim Meyering  <meyering@redhat.com>
15879
15880         intprops.h: adjust comment to match code change
15881         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15882         only once, it *may* have side effects.  Also fix an unrelated typo.
15883         (_GL_INT_SIGNED): Likewise.
15884
15885 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15886
15887         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15888
15889 2011-05-26  Bruno Haible  <bruno@clisp.org>
15890
15891         mbsrchr: Avoid collision with system function on Interix.
15892         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15893         Reported by Markus Duft <mduft@gentoo.org>.
15894
15895 2011-05-15  James Youngman  <jay@gnu.org>
15896
15897         getopt: for ambiguous options, enumerate the possibilities.
15898         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15899         the ambiguous options when an ambiguous prefix is given. This was
15900         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15901         glibc change was
15902         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15903
15904 2011-05-25  Eric Blake  <eblake@redhat.com>
15905
15906         getcwd: work around mingw bug
15907         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15908         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15909         Reported by Matthias Bolte.
15910
15911 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15912
15913         test-intprops: disable -Wtype-limits diagnostics
15914         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15915         diagnostics.  Otherwise, the integer overflow macros generate many
15916         diagnostics.  Reported by Jim Meyering in
15917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15918
15919         intprops: shorten, to pacify gcc -Woverlength-strings
15920         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15921         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15922         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15923         likely to run afoul of C compiler limits for string constant lengths.
15924         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15925
15926 2011-05-24  Eric Blake  <eblake@redhat.com>
15927
15928         docs: document recently fixed glibc printf bug
15929         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15930         * doc/posix-functions/printf.texi (printf): Likewise.
15931         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15932         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15933
15934         closein-tests: convert to init.sh
15935         * modules/closein-tests (Files): Add init.sh
15936         * tests/test-closein.sh Use it.
15937
15938         yesno-tests: convert to init.sh
15939         * modules/yesno-tests (Files): Add init.sh.
15940         * tests/test-yesno.sh: Use it.
15941
15942         atexit-tests: ensure reliable exit status
15943         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15944         Reported by Bruno Haible.
15945
15946 2011-05-24  Bruno Haible  <bruno@clisp.org>
15947
15948         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15949         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15950         gl_PREREQ_STRERROR_R invocations from here...
15951         * modules/strerror_r-posix (configure.ac): ... to here.
15952
15953 2011-05-24  Eric Blake  <eblake@redhat.com>
15954
15955         strerror_r: fix missing header
15956         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15957
15958         strerror_r: fix AIX test failures
15959         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15960         ERANGE failure.
15961
15962         strerror_r: fix Solaris test failures
15963         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15964         failures.
15965         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15966
15967         strerror_r: enforce POSIX recommendations
15968         * lib/strerror_r.c (safe_copy): New helper method.
15969         (strerror_r): Guarantee a non-empty string.
15970         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15971         recent POSIX rulings and to match our strerror guarantees.
15972         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15973
15974 2011-05-24  Jim Meyering  <meyering@redhat.com>
15975
15976         test-perror2.c: avoid warning about unused variable
15977         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15978
15979 2011-05-24  Eric Blake  <eblake@redhat.com>
15980
15981         perror: avoid spurious test failure on HP-UX
15982         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15983
15984         tests: fix logic bug in init.sh
15985         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15986         shell.
15987
15988 2011-05-24  Jim Meyering  <meyering@redhat.com>
15989
15990         utimensat: do not reference an out-of-scope buffer
15991         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15992         declared in an inner scope, yet "times" would be dereferenced outside
15993         the scope in which "ts" was valid.
15994         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15995         of ts[2] "out/up", so that the use of aliased "times" (via
15996         "times = ts;") does not end up referencing an out-of-scope "ts"
15997
15998         opendir-safer.c: don't clobber errno; don't close negative FD
15999         * lib/opendir-safer.c (opendir_safer):
16000         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16001         file descriptor, and more importantly, don't clobber the
16002         offending errno value with EINVAL.  Before, upon failure
16003         of dup_safer, we would pass the negative file descriptor to
16004         fdopendir, which would clobber errno.
16005
16006 2011-05-23  Bruno Haible  <bruno@clisp.org>
16007
16008         idcache: Fix module description.
16009         * modules/idcache (Include): Set to "idcache.h".
16010
16011 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16012
16013         gnulib-tool: fix portability problem with MacOS sed
16014         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16015         before the "}".  Problem reported by Leo in
16016         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16017         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16018         sed_extract_condition1, sed_extract_condition2.
16019
16020 2011-05-23  Bruno Haible  <bruno@clisp.org>
16021
16022         hash: Simplify autoconf macro.
16023         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16024
16025 2011-05-23  Bruno Haible  <bruno@clisp.org>
16026
16027         getugroups: Fix module description.
16028         * modules/getugroups (Include): Set to "getugroups.h".
16029
16030 2011-05-23  Bruno Haible  <bruno@clisp.org>
16031
16032         linkat: Simplify autoconf macro.
16033         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16034
16035 2011-05-23  Bruno Haible  <bruno@clisp.org>
16036             Eric Blake  <eblake@redhat.com>
16037
16038         linkat, renameat: Update dependencies.
16039         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16040         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16041         symlinkat.
16042
16043 2011-05-23  Jim Meyering  <meyering@redhat.com>
16044
16045         maint.mk: more tight_scope improvements
16046         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16047         (_gl_TS_headers): Define only in if-0'd block.
16048         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16049         sometimes we must *not* use it.  Adjust uses accordingly.
16050         (sc_tight_scope): Use much simpler grep-based test to determine
16051         whether we skip this rule.
16052
16053         maint.mk: generalize/improve the tight-scope rule
16054         * top/maint.mk: Emit a warning when the test is skipped.
16055         (_gl_TS_dir): Add $(srcdir)/ prefix.
16056         (_gl_TS_function_match): Simplify, rather than trying
16057         to enumerate common types.  Otherwise, it would fail to match an
16058         "extern unsigned char const *" declaration in idutils.
16059         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16060         a way to support use of that type of macro.
16061         (_gl_TS_var_match): Simplify regexp.
16062         (_gl_TS_obj_files): New configurable variable.
16063         (_gl_TS_headers): Likewise.
16064
16065 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16066
16067         verify: fix bug when gnulib <assert.h> is also included
16068         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16069         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16070         Perhaps there's a better way, but this fixes the immediate problem.
16071         Problem reported by Bruno Haible in
16072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16073
16074 2011-05-22  Bruno Haible  <bruno@clisp.org>
16075
16076         xgetcwd: Simplify autoconf macro.
16077         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16078
16079 2011-05-22  Bruno Haible  <bruno@clisp.org>
16080
16081         New module 'mktime-internal'.
16082         * modules/mktime-internal: New file.
16083         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16084         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16085         mktime_internal as a C macro if libc has __mktime_internal.
16086         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16087         conditions.
16088         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16089
16090 2011-05-22  Bruno Haible  <bruno@clisp.org>
16091
16092         timegm: Correct mktime replacement statements.
16093         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16094         defining mktime as a C macro. This completes a 2009-07-28 commit.
16095
16096 2011-05-22  Bruno Haible  <bruno@clisp.org>
16097
16098         timegm: Simplify autoconf macro.
16099         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16100
16101 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16102
16103         clock-time: change to LGPLv2+.
16104         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16105         BSD-like but we have no mark for that; this is good enough for now.
16106
16107 2011-05-21  Bruno Haible  <bruno@clisp.org>
16108
16109         strerror_r: Fix comments.
16110         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16111
16112 2011-05-21  Bruno Haible  <bruno@clisp.org>
16113
16114         relocatable-prog-wrapper: Fix possible link error.
16115         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16116         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16117         (gl_FUNC_SETENV): ... to here.
16118         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16119         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16120
16121 2011-05-21  Bruno Haible  <bruno@clisp.org>
16122
16123         relocatable-prog-wrapper: Assume strerror() exists.
16124         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16125         m4/strerror.m4.
16126         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16127         * lib/relocwrapper.c: Remove mention of strerror module.
16128         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16129         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16130         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16131         C macro.
16132
16133 2011-05-21  Bruno Haible  <bruno@clisp.org>
16134
16135         select: Simplify replacement idiom.
16136         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16137         Win32 platforms.
16138         * lib/sys_select.in.h (select): Simplify accordingly.
16139         * modules/select (Depends-on): Likewise.
16140
16141 2011-05-21  Bruno Haible  <bruno@clisp.org>
16142
16143         mkdir-p: Simplify autoconf macro.
16144         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16145         gl_FUNC_LCHOWN.
16146
16147 2011-05-21  Eric Blake  <eblake@redhat.com>
16148
16149         strerror_r: avoid clobbering strerror on cygwin
16150         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16151         fall back instead to sys_errlist.
16152         * modules/strerror (configure.ac): Add witness.
16153         * tests/test-strerror_r.c (main): Enhance test.
16154         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16155         * tests/test-perror2.c (main): Free memory before exit.
16156
16157 2011-05-21  Bruno Haible  <bruno@clisp.org>
16158
16159         mkdtemp: Use gnulib naming conventions.
16160         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16161         * modules/mkdtemp (configure.ac): Update.
16162
16163 2011-05-20  Eric Blake  <eblake@redhat.com>
16164
16165         strerror_r: avoid corrupting errno on Solaris
16166         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16167         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16168
16169         strerror_r: avoid compiler warning
16170         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16171
16172         strerror_r: simplify AIX code
16173         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16174
16175         test-perror: avoid spurious failure on FreeBSD
16176         * modules/perror-tests (Depends-on): Add strerror, now that
16177         strerror_r no longer pulls it in.
16178
16179 2011-05-20  Bruno Haible  <bruno@clisp.org>
16180
16181         strerror_r-posix: Remove unused dependencies.
16182         * modules/strerror_r-posix (Depends-on): Remove strerror.
16183         Reported by Eric Blake.
16184
16185 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16186
16187         intprops: remove assumption about A|B representation
16188         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16189         is a valid integer if both A and B are.  Although this is true for
16190         all known practical hosts, the C standard doesn't guarantee it,
16191         and the code need not assume it.  Also, this change may work around
16192         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16194
16195 2011-05-20  Eric Blake  <eblake@redhat.com>
16196
16197         perror: work around FreeBSD bug
16198         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16199         is broken.  Move AC_LIBOBJ...
16200         * modules/perror (configure.ac): Here.
16201         * doc/posix-functions/perror.texi (perror): Document this.
16202         * tests/test-perror2.c (main): Enhance test.
16203
16204         test-perror: check for strerror interactions
16205         * tests/macros.h (STREQ): Add macro.
16206         * modules/perror-tests (Files): Add second test.
16207         * tests/test-perror2.c (main): New file.
16208         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16209
16210         test-perror: rewrite to use init script
16211         * modules/perror-tests (Files): Add init.sh.
16212         * tests/test-perror.sh: Use temporary directory.
16213
16214 2011-05-20  Jim Meyering  <meyering@redhat.com>
16215
16216         maint: replace misused "a" with "an"
16217         * doc/intprops.texi: "a integer"
16218         * doc/regex.texi: "a explanation"
16219         * lib/alignof.h: "a object"
16220         * lib/argmatch.h: "a explanation"
16221         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16222         * lib/stdint.in.h: "a integer"
16223         * lib/userspec.c: "a owner"
16224         * doc/gnulib.texi: Fix "a idea", and reword.
16225
16226 2011-05-19  Jim Meyering  <meyering@redhat.com>
16227
16228         maint: correct misuse of "a" and "an"
16229         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16230         * lib/argp-help.c: "an docum...": s/an/a/
16231         * lib/argp-parse.c: "An vector": s/An/A/
16232         * lib/execute.c: "an native": s/an/a/
16233         * lib/spawn-pipe.c: Likewise.
16234         * lib/gc.h: "an Gc_rc": s/an/a/
16235         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16236         * lib/fts.c: "an stat.st_dev": s/an/a/
16237
16238 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16239
16240         intprops-tests: work around HP-UX 11.23 cc bug with constants
16241         * tests/test-intprops.c (VERIFY): New macro.
16242         (main): Use it, instead of verify, to work around the compiler bug; see
16243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16244
16245         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16246         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16247         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16248         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16249         (_GL_REMAINDER_OVERFLOW): Use it.
16250
16251         intprops-tests: revert unsigned part of previous change
16252         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16253         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16254         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16256
16257 2011-05-19  Bruno Haible  <bruno@clisp.org>
16258
16259         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16260         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16261         strerror_r() returned without filling the buffer.
16262         Reported by Eric Blake.
16263
16264 2011-05-19  Eric Blake  <eblake@redhat.com>
16265
16266         strerror_r: guarantee unchanged errno
16267         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16268         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16269         failure.
16270         * tests/test-strerror_r.c (main): Enhance test.
16271
16272 2011-05-19  Bruno Haible  <bruno@clisp.org>
16273
16274         strerror_r: Reorder #if blocks.
16275         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16276         for consistency with the previous commit.
16277
16278 2011-05-19  Bruno Haible  <bruno@clisp.org>
16279
16280         perror: Avoid clobbering the strerror buffer when possible.
16281         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16282         * lib/strerror.c: Include it.
16283         * modules/strerror (Files): Add lib/strerror-impl.h.
16284         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16285         (my_strerror): New function, defined through lib/strerror-impl.h.
16286         (perror): Use it instead of strerror.
16287         * modules/perror (Files): Add lib/strerror-impl.h.
16288         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16289
16290 2011-05-19  Eric Blake  <eblake@redhat.com>
16291
16292         strerror_r: fix on newer cygwin
16293         * lib/strerror_r.c (strerror_r): Cygwin now has
16294         __xpg_strerror_r, use it.
16295
16296 2011-05-19  Bruno Haible  <bruno@clisp.org>
16297
16298         strerror_r: Avoid clobbering the strerror buffer when possible.
16299         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16300         (sys_nerr, sys_errlist): New declarations.
16301         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16302         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16303         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16304
16305 2011-05-19  Bruno Haible  <bruno@clisp.org>
16306
16307         strerror_r: Fix test failure on mingw.
16308         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16309         EXTEND_STRERROR_R.
16310         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16311         macros from errno.in.h instead.
16312
16313 2011-05-19  Eric Blake  <eblake@redhat.com>
16314
16315         strerror: relax test for Solaris
16316         * tests/test-strerror.c (main): Permit Solaris behavior.
16317         * tests/test-strerror_r.c (main): Likewise.
16318
16319         strerror: enforce POSIX ruling on strerror(0)
16320         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16321         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16322         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16323         * doc/posix-functions/strerror.texi (strerror): Document it.
16324         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16325         * tests/test-strerror.c (main): Strengthen test.
16326         * tests/test-strerror_r.c (main): Likewise.
16327
16328 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16329
16330         intprop-tests: port to older and more-pedantic compilers
16331         * modules/intprops-tests (Files): Add tests/macros.h.
16332         * tests/test-intprops.c: Include macros.h.
16333         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16334         it's no longer documented to expand to an integer constant expression.
16335         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16336         argument is floating point, as it's no longer documented to expand
16337         to an integer constant expression in that case.
16338         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16339         compiler bugs reported by Bruno Haible.  See
16340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16341         (U0, U1): New constants, to work around the same bugs.  Also,
16342         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16343
16344         intprops: work around C compiler bugs
16345         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16346         bug in Sun C 5.11 2010/08/13 and other compilers; see
16347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16348
16349         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16350         * doc/intprops.texi (Integer Type Determination): Fix
16351         documentation for TYPE_IS_INTEGER: it returns an constant
16352         expression, not an integer constant expression.  Fix doc for
16353         TYPE_SIGNED: it returns an integer constant expression only if its
16354         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16355         hardly worth documented that way....)
16356
16357 2011-05-18  Bruno Haible  <bruno@clisp.org>
16358
16359         strerror_r: Avoid clobbering the strerror buffer when possible.
16360         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16361         Handle gnulib defined errno values here. When strerror() returns NULL
16362         or an empty string, return EINVAL.
16363         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16364         gnulib defined errno values here.
16365         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16366
16367 2011-05-18  Eric Blake  <eblake@redhat.com>
16368
16369         fnmatch: avoid compiler warning
16370         * lib/fnmatch_loop.c (FCT): Use correct type.
16371         Reported by Matthias Bolte.
16372
16373 2011-05-13  Jim Meyering  <meyering@redhat.com>
16374
16375         maint.mk: three new prohibit_<HDR>_without_use rules
16376         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16377         (sc_prohibit_stdio-safer_without_use): Likewise.
16378         (sc_prohibit_xfreopen_without_use): Likewise.
16379
16380 2011-05-17  Jim Meyering  <meyering@redhat.com>
16381
16382         announce-gen: fail if the NEWS delta is empty
16383         If there's nothing noteworthy in NEWS, then either you forgot
16384         or you shouldn't be releasing.
16385         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16386
16387 2011-05-17  Pádraig Brady <P@draigBrady.com>
16388
16389         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16390         reserved symbols starting with double underscore from the check.
16391
16392 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16393
16394         intprops: add doc
16395         * doc/intprops.texi: New file, documenting intprops.
16396         * doc/gnulib.texi (Particular Modules): Include it.
16397
16398         verify: add doc to gnulib manual and fix example
16399         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16400         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16401         (Compile-time Assertions): Fix example so it can't overflow.
16402
16403 2011-05-17  Jim Meyering  <meyering@redhat.com>
16404
16405         warnings.m4: don't usurp save_CPPFLAGS variable name
16406         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16407
16408         doc: fix typo
16409         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16410
16411 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16412             Bruno Haible  <bruno@clisp.org>
16413
16414         doc: Tweak recent change.
16415         * README (Portability guidelines): Tweak new text.
16416         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16417         Interix 6.1.
16418
16419 2011-05-16  Eric Blake  <eblake@redhat.com>
16420
16421         inttypes: avoid autoconf warning
16422         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16423         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16424
16425 2011-05-16  Sam Steingold <sds@gnu.org>
16426         and Eric Blake  <eblake@redhat.com>
16427
16428         vc-list-files: accept multiple directory operands
16429         * build-aux/vc-list-files: Iterate over all remaining operands.
16430
16431 2011-05-16  Bruno Haible  <bruno@clisp.org>
16432
16433         Fix confusion regarding deprecated modules.
16434         * modules/calloc (Status, Notice): Mark module as deprecated, not
16435         obsolete.
16436         * modules/fnmatch-posix (Status, Notice): Likewise.
16437         * modules/getdate (Status, Notice): Likewise.
16438         * modules/getopt (Status, Notice): Likewise.
16439         * modules/malloc (Status, Notice): Likewise.
16440         * modules/pipe (Status, Notice): Likewise.
16441         * modules/realloc (Status, Notice): Likewise.
16442         * modules/rename-dest-slash (Status, Notice): Likewise.
16443         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16444         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16445         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16446         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16447         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16448
16449 2011-05-16  Bruno Haible  <bruno@clisp.org>
16450
16451         doc: List the target platforms.
16452         * doc/gnulib-intro.texi (Target Platforms): New section.
16453         * doc/gnulib.texi (Introduction): Update menu.
16454         * README (Portability guidelines): Refer to the new section. Update
16455         statement about oldest supported environment. Remove rationale why
16456         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16457         unportable C89 function.
16458         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16459         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16460
16461 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16462
16463         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16464
16465 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16466
16467         intprops-tests: new module
16468         * modules/intprops-tests, tests/test-intprops.c: New files.
16469
16470         intprops: add safe, portable integer overflow checking
16471         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16472         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16473         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16474         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16475         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16476         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16477         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16478         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16479         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16480         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16481         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16482
16483 2011-05-12  James Youngman  <jay@gnu.org>
16484
16485         Add a test for glibc's Bugzilla bug #12378.
16486         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16487         doesn't allow the literal matching of a lone "[" (which is
16488         required by POSIX).
16489         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16490
16491 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16492
16493         Sync glibc change fixing Bugzilla bug #12378.
16494         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16495         beginning and fall back to matching as normal character if the
16496         string ends before the matching ']' is found.  This is what POSIX
16497         requires.
16498
16499 2011-05-13  Eric Blake  <eblake@redhat.com>
16500
16501         getcwd-lgpl: relax test for FreeBSD
16502         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16503         issue.
16504         * tests/test-getcwd-lgpl.c (main): Relax test.
16505         Reported by Matthias Bolte.
16506
16507 2011-05-11  Eric Blake  <eblake@redhat.com>
16508
16509         test-fflush: silence compiler warning
16510         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16511
16512 2011-05-11  Bruno Haible  <bruno@clisp.org>
16513
16514         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16515         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16516         * modules/canonicalize (Depends-on): Add 'nocrash'.
16517         * modules/canonicalize-lgpl (Depends-on): Likewise.
16518         * doc/posix-functions/realpath.texi: Update platforms list.
16519         Reported by Ryan Schmidt <ryandesign@macports.org>.
16520
16521 2011-05-11  Bruno Haible  <bruno@clisp.org>
16522
16523         group-member: Declare function in <unistd.h>.
16524         * lib/unistd.in.h (group_member): New declaration.
16525         * lib/group-member.h: Remove file.
16526         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16527         * tests/test-unistd-c++.cc: Check signature of group_member.
16528         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16529         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16530         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16531         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16532         HAVE_GROUP_MEMBER.
16533         * modules/group-member (Files): Remove lib/group-member.h.
16534         (Depends-on): Add unistd. Specify conditions.
16535         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16536         (Include): Change to <unistd.h>.
16537         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16538         HAVE_GROUP_MEMBER.
16539         * NEWS: Mention the change.
16540         * lib/euidaccess.c: Don't include group-member.h.
16541
16542 2011-05-11  Bruno Haible  <bruno@clisp.org>
16543
16544         group-member: Document module.
16545         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16546         module.
16547
16548 2011-05-11  Bruno Haible  <bruno@clisp.org>
16549
16550         fclose: Fix mistake earlier today.
16551         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16552
16553 2011-05-11  Eric Blake  <eblake@redhat.com>
16554
16555         fclose: preserve fflush errors
16556         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16557         Reported by Jim Meyering.
16558
16559         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16560         * build-aux/bootstrap (check_versions): When no specific version
16561         is required, merely check that the app produces an exit status
16562         that indicates its existence.
16563
16564         maint.mk: drop redundant check
16565         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16566         the same but better.
16567
16568 2011-05-11  Bruno Haible  <bruno@clisp.org>
16569
16570         fclose: Fix possible link error.
16571         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16572         unregister_shadow_fd. Improve comments.
16573         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16574         Eric Blake.
16575
16576 2011-05-11  Jim Meyering  <meyering@redhat.com>
16577
16578         maint.mk: improve "can not" detection and generalize rule name
16579         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16580         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16581         Use the same technique as in sc_prohibit_doubled_word, so that
16582         we recognize "can not" also when the words are separated by a newline.
16583         Suggested by Eric Blake.
16584         (perl_filename_lineno_text_): Define.  Factored out of...
16585         (prohibit_doubled_word_): ...here.  Use the new definition.
16586         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16587         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16588         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16589
16590 2011-05-10  Eric Blake  <eblake@redhat.com>
16591
16592         fclose: avoid double close race when possible
16593         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16594         all but WINDOWS_SOCKETS.
16595
16596 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16597
16598         openat: correct new comment
16599         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16600
16601 2011-05-10  Jim Meyering  <meyering@redhat.com>
16602
16603         openat: add comments
16604         * lib/openat-proc.c (openat_proc_name): Add comments,
16605         mostly from Eric Blake.
16606
16607 2011-05-09  Eric Blake  <eblake@redhat.com>
16608
16609         openat: reduce syscalls in first probe of /proc
16610         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16611         be a directory.  Simplify the probe for .. bugs.
16612         * modules/openat (Depends-on): Drop same-inode.
16613         Reported by Bastien ROUCARIES.
16614
16615 2011-05-09  Jim Meyering  <meyering@redhat.com>
16616
16617         maint.mk: change semantics/name of tight_scope variables
16618         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16619         Rename variables to align with semantics that make them more useful.
16620
16621         maint.mk: tweak new rule's name not to impinge
16622         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16623         (sc_tight_scope): Use new rule name rather than $@-0.
16624
16625         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16626         * top/maint.mk (sc_tight_scope): New rule.
16627         (sc_tight_scope-0): New rule, ifdef'd out.
16628         (_gl_TS_dir): Default.
16629         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16630         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16631
16632 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16633
16634         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16635         Haible <bruno@clisp.org>.
16636
16637 2011-05-08  Bruno Haible  <bruno@clisp.org>
16638
16639         Comments.
16640         * m4/isnanf.m4: Add comment.
16641         * m4/isnanl.m4: Likewise.
16642
16643 2011-05-08  Bruno Haible  <bruno@clisp.org>
16644
16645         glob: Remove obsolete macro.
16646         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16647
16648 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16649
16650         intprops: Sun C 5.11 supports __typeof__
16651         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16652         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16653         which is new.
16654         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16655
16656         intprops: switch to usual gnulib indenting and naming
16657         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16658         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16659
16660         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16661
16662 2011-05-08  Jim Meyering  <meyering@redhat.com>
16663
16664         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16665         * top/maint.mk (release-prep): Use make's --no-print-directory
16666         option when generating the announcement.  This eliminates the
16667         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16668         generated announcement template.
16669
16670 2011-05-08  Bruno Haible  <bruno@clisp.org>
16671
16672         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16673         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16674         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16675
16676 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16677
16678         ignore-value, verify: Omit include files from lib_SOURCES.
16679         * modules/ignore-value, modules/verify (Makefile.am):
16680         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16681         that leads Automake to duplicate use of am__objects_... variables
16682         in Makefile.in.  See
16683         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16684
16685 2011-05-07  Bruno Haible  <bruno@clisp.org>
16686
16687         fclose: Simplify autoconf macro.
16688         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16689         defined.
16690
16691 2011-05-07  Bruno Haible  <bruno@clisp.org>
16692
16693         canonicalize-lgpl: Fix autoconf macro ordering bug.
16694         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16695         gl_STDLIB_H_DEFAULTS.
16696
16697 2011-05-06  Eric Blake  <eblake@redhat.com>
16698
16699         maintainer-makefile: make sc_po_check easier to tune
16700         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16701         to probe for strings, such as an alternate location for gnulib.
16702
16703         fclose: guarantee behavior on seekable stdin
16704         * modules/fclose (Depends-on): Add fflush.
16705         * doc/posix-functions/fclose.texi (fclose): Document this.
16706         * tests/test-fclose.c (main): Make test for this unconditional.
16707
16708 2011-05-06  Bruno Haible  <bruno@clisp.org>
16709
16710         fflush, fpurge: Relicense under LGPLv2+.
16711         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16712         * modules/fpurge (License): Likewise.
16713         With permission from Eric Blake and Jim Meyering.
16714         Suggested by Eric Blake.
16715
16716 2011-05-06  Karl Berry  <karl@gnu.org>
16717
16718         * MODULES.html.sh (func_all_modules): remove exit.
16719
16720 2011-05-06  Jim Meyering  <meyering@redhat.com>
16721
16722         maint.mk: use info-gnu@ as the default only for a stable release
16723         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16724         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16725         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16726         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16727
16728 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16729
16730         assert-h: new module, which supports C1X-style static_assert
16731         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16732         * lib/verify.h: Revamp so that this can be copied into assert.h,
16733         while retaining the ability to use it standalone as before.
16734         Rename private identifiers so as not to encroach on the
16735         standard C namespace, since this is now used by assert.h.
16736         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16737         the old verify_true.
16738         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16739         the old verify_true.  Use _GL_VERIFY_TYPE.
16740         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16741         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16742         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16743         defined when this file is copied into the replacement assert.h.
16744         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16745         and _Static_assert is not built in.
16746         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16747         defined, and use the new macros mentioned above.
16748         * doc/posix-headers/assert.texi: Document this.
16749
16750 2011-05-05  Bruno Haible  <bruno@clisp.org>
16751
16752         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16753         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16754         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16755         gl_REPLACE_FCLOSE here.
16756         * modules/fflush (Depends-on): Remove fclose.
16757         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16758         combination with module 'fclose'.
16759
16760 2011-05-05  Bruno Haible  <bruno@clisp.org>
16761
16762         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16763         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16764         gl_FUNC_FFLUSH.
16765         (gl_FUNC_FFLUSH): Use it.
16766         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16767         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16768         gl_REPLACE_FSEEKO here.
16769
16770 2011-05-05  Bruno Haible  <bruno@clisp.org>
16771
16772         tzset: Relicense under LGPL.
16773         * modules/tzset (License): Change to LGPL.
16774         No agreement needed; it's a no-op.
16775
16776         strtoimax, strtoumax: Relicense under LGPL.
16777         * modules/strtoimax (License): Change to LGPL.
16778         * modules/strtoumax (License): Likewise.
16779         With permission from Jim Meyering, Paul Eggert:
16780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16782
16783         getgroups: Relicense under LGPL.
16784         * modules/getgroups (License): Change to LGPL.
16785         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16789
16790         nanosleep: Relicense under LGPL.
16791         * modules/nanosleep (License): Change to LGPL.
16792         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16793         Haible:
16794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16798
16799         futimens: Relicense under LGPL.
16800         * modules/futimens (License): Change to LGPL.
16801         With permission from Eric Blake:
16802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16803
16804         fflush: Relicense under LGPL.
16805         * modules/fflush (License): Change to LGPL.
16806         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16810
16811         tmpfile: Relicense under LGPL.
16812         * modules/tmpfile (License): Change to LGPL.
16813         With permission from Ben Pfaff:
16814         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16815
16816         isfinite: Relicense under LGPL.
16817         * modules/isfinite (License): Change to LGPL.
16818         With permission from Ben Pfaff, Bruno Haible:
16819         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16821
16822         acosl..tanl: Relicense under LGPL.
16823         * modules/acosl (License): Change to LGPL.
16824         * modules/asinl (License): Likewise.
16825         * modules/atanl (License): Likewise.
16826         * modules/cosl (License): Likewise.
16827         * modules/expl (License): Likewise.
16828         * modules/logl (License): Likewise.
16829         * modules/sinl (License): Likewise.
16830         * modules/sqrtl (License): Likewise.
16831         * modules/tanl (License): Likewise.
16832         Source code originally from glibc and Paolo Bonzini. Agreements:
16833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16835
16836 2011-05-05  Bruno Haible  <bruno@clisp.org>
16837
16838         signal: Define sighandler_t.
16839         * lib/signal.in.h (sighandler_t): New type.
16840         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16841         whether sighandler_t is defined.
16842         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16843         * modules/signal (Depends-on): Add extensions.
16844         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16845         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16846         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16847
16848 2011-05-05  Eric Blake  <eblake@redhat.com>
16849
16850         maint: remove useless REPLACE_*_H macros
16851         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16852         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16853         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16854         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16855         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16856         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16857         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16858         * m4/btowc.m4: Update callers.
16859         * m4/dirfd.m4: Likewise.
16860         * m4/duplocale.m4: Likewise.
16861         * m4/fchdir.m4: Likewise.
16862         * m4/fdopendir.m4: Likewise.
16863         * m4/inet_ntop.m4: Likewise.
16864         * m4/inet_pton.m4: Likewise.
16865         * m4/ioctl.m4: Likewise.
16866         * m4/mbrlen.m4: Likewise.
16867         * m4/mbrtowc.m4: Likewise.
16868         * m4/mbsinit.m4: Likewise.
16869         * m4/mbsnrtowcs.m4: Likewise.
16870         * m4/mbsrtowcs.m4: Likewise.
16871         * m4/poll.m4: Likewise.
16872         * m4/setlocale.m4: Likewise.
16873         * m4/wcrtomb.m4: Likewise.
16874         * m4/wcsnrtombs.m4: Likewise.
16875         * m4/wcsrtombs.m4: Likewise.
16876         * m4/wctob.m4: Likewise.
16877         * m4/wcwidth.m4: Likewise.
16878         * modules/posix_spawn: Likewise.
16879         * modules/posix_spawn_file_actions_addclose: Likewise.
16880         * modules/posix_spawn_file_actions_adddup2: Likewise.
16881         * modules/posix_spawn_file_actions_addopen: Likewise.
16882         * modules/posix_spawn_file_actions_destroy: Likewise.
16883         * modules/posix_spawn_file_actions_init: Likewise.
16884         * modules/posix_spawnattr_destroy: Likewise.
16885         * modules/posix_spawnattr_getflags: Likewise.
16886         * modules/posix_spawnattr_getpgroup: Likewise.
16887         * modules/posix_spawnattr_getschedparam: Likewise.
16888         * modules/posix_spawnattr_getschedpolicy: Likewise.
16889         * modules/posix_spawnattr_getsigdefault: Likewise.
16890         * modules/posix_spawnattr_getsigmask: Likewise.
16891         * modules/posix_spawnattr_init: Likewise.
16892         * modules/posix_spawnattr_setflags: Likewise.
16893         * modules/posix_spawnattr_setpgroup: Likewise.
16894         * modules/posix_spawnattr_setschedparam: Likewise.
16895         * modules/posix_spawnattr_setschedpolicy: Likewise.
16896         * modules/posix_spawnattr_setsigdefault: Likewise.
16897         * modules/posix_spawnattr_setsigmask: Likewise.
16898         * modules/posix_spawnp: Likewise.
16899
16900 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16901
16902         Add option to do-release-commit-and-tag to specify branch.
16903         * build-aux/do-release-commit-and-tag: Add --branch.
16904
16905 2011-05-03  Bruno Haible  <bruno@clisp.org>
16906
16907         Avoid unnecessary compilation units, through conditional dependencies.
16908         * modules/accept (Depends-on): Add conditions to the dependencies.
16909         * modules/acosl (Depends-on): Likewise.
16910         * modules/argz (Depends-on): Likewise.
16911         * modules/asinl (Depends-on): Likewise.
16912         * modules/atanl (Depends-on): Likewise.
16913         * modules/atoll (Depends-on): Likewise.
16914         * modules/bind (Depends-on): Likewise.
16915         * modules/btowc (Depends-on): Likewise.
16916         * modules/canonicalize-lgpl (Depends-on): Likewise.
16917         * modules/ceil (Depends-on): Likewise.
16918         * modules/ceilf (Depends-on): Likewise.
16919         * modules/ceill (Depends-on): Likewise.
16920         * modules/chdir-long (Depends-on): Likewise.
16921         * modules/chown (Depends-on): Likewise.
16922         * modules/close (Depends-on): Likewise.
16923         * modules/connect (Depends-on): Likewise.
16924         * modules/cosl (Depends-on): Likewise.
16925         * modules/dirfd (Depends-on): Likewise.
16926         * modules/dprintf (Depends-on): Likewise.
16927         * modules/dprintf-posix (Depends-on): Likewise.
16928         * modules/error (Depends-on): Likewise.
16929         * modules/euidaccess (Depends-on): Likewise.
16930         * modules/expl (Depends-on): Likewise.
16931         * modules/faccessat (Depends-on): Likewise.
16932         * modules/fchdir (Depends-on): Likewise.
16933         * modules/fclose (Depends-on): Likewise.
16934         * modules/fcntl (Depends-on): Likewise.
16935         * modules/fdopendir (Depends-on): Likewise.
16936         * modules/fflush (Depends-on): Likewise.
16937         * modules/floor (Depends-on): Likewise.
16938         * modules/floorf (Depends-on): Likewise.
16939         * modules/floorl (Depends-on): Likewise.
16940         * modules/fnmatch (Depends-on): Likewise.
16941         * modules/fopen (Depends-on): Likewise.
16942         * modules/fprintf-posix (Depends-on): Likewise.
16943         * modules/frexp (Depends-on): Likewise.
16944         * modules/frexp-nolibm (Depends-on): Likewise.
16945         * modules/frexpl (Depends-on): Likewise.
16946         * modules/frexpl-nolibm (Depends-on): Likewise.
16947         * modules/fseek (Depends-on): Likewise.
16948         * modules/fsusage (Depends-on): Likewise.
16949         * modules/ftell (Depends-on): Likewise.
16950         * modules/ftello (Depends-on): Likewise.
16951         * modules/futimens (Depends-on): Likewise.
16952         * modules/getcwd (Depends-on): Likewise.
16953         * modules/getcwd-lgpl (Depends-on): Likewise.
16954         * modules/getdelim (Depends-on): Likewise.
16955         * modules/getdomainname (Depends-on): Likewise.
16956         * modules/getgroups (Depends-on): Likewise.
16957         * modules/gethostname (Depends-on): Likewise.
16958         * modules/getline (Depends-on): Likewise.
16959         * modules/getlogin_r (Depends-on): Likewise.
16960         * modules/getopt-posix (Depends-on): Likewise.
16961         * modules/getpeername (Depends-on): Likewise.
16962         * modules/getsockname (Depends-on): Likewise.
16963         * modules/getsockopt (Depends-on): Likewise.
16964         * modules/getsubopt (Depends-on): Likewise.
16965         * modules/getusershell (Depends-on): Likewise.
16966         * modules/glob (Depends-on): Likewise.
16967         * modules/grantpt (Depends-on): Likewise.
16968         * modules/iconv_open (Depends-on): Likewise.
16969         * modules/iconv_open-utf (Depends-on): Likewise.
16970         * modules/inet_ntop (Depends-on): Likewise.
16971         * modules/inet_pton (Depends-on): Likewise.
16972         * modules/ioctl (Depends-on): Likewise.
16973         * modules/isapipe (Depends-on): Likewise.
16974         * modules/isfinite (Depends-on): Likewise.
16975         * modules/isinf (Depends-on): Likewise.
16976         * modules/lchown (Depends-on): Likewise.
16977         * modules/ldexpl (Depends-on): Likewise.
16978         * modules/link (Depends-on): Likewise.
16979         * modules/linkat (Depends-on): Likewise.
16980         * modules/listen (Depends-on): Likewise.
16981         * modules/logl (Depends-on): Likewise.
16982         * modules/lstat (Depends-on): Likewise.
16983         * modules/mbrlen (Depends-on): Likewise.
16984         * modules/mbrtowc (Depends-on): Likewise.
16985         * modules/mbsinit (Depends-on): Likewise.
16986         * modules/mbsnrtowcs (Depends-on): Likewise.
16987         * modules/mbsrtowcs (Depends-on): Likewise.
16988         * modules/mbtowc (Depends-on): Likewise.
16989         * modules/memcmp (Depends-on): Likewise.
16990         * modules/mkdir (Depends-on): Likewise.
16991         * modules/mkdtemp (Depends-on): Likewise.
16992         * modules/mkfifo (Depends-on): Likewise.
16993         * modules/mkfifoat (Depends-on): Likewise.
16994         * modules/mknod (Depends-on): Likewise.
16995         * modules/mkostemp (Depends-on): Likewise.
16996         * modules/mkostemps (Depends-on): Likewise.
16997         * modules/mkstemp (Depends-on): Likewise.
16998         * modules/mkstemps (Depends-on): Likewise.
16999         * modules/mktime (Depends-on): Likewise.
17000         * modules/nanosleep (Depends-on): Likewise.
17001         * modules/open (Depends-on): Likewise.
17002         * modules/openat (Depends-on): Likewise.
17003         * modules/perror (Depends-on): Likewise.
17004         * modules/poll (Depends-on): Likewise.
17005         * modules/popen (Depends-on): Likewise.
17006         * modules/posix_spawn (Depends-on): Likewise.
17007         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17008         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17009         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17010         * modules/posix_spawnp (Depends-on): Likewise.
17011         * modules/pread (Depends-on): Likewise.
17012         * modules/printf-posix (Depends-on): Likewise.
17013         * modules/ptsname (Depends-on): Likewise.
17014         * modules/putenv (Depends-on): Likewise.
17015         * modules/pwrite (Depends-on): Likewise.
17016         * modules/readline (Depends-on): Likewise.
17017         * modules/readlink (Depends-on): Likewise.
17018         * modules/readlinkat (Depends-on): Likewise.
17019         * modules/recv (Depends-on): Likewise.
17020         * modules/recvfrom (Depends-on): Likewise.
17021         * modules/regex (Depends-on): Likewise.
17022         * modules/remove (Depends-on): Likewise.
17023         * modules/rename (Depends-on): Likewise.
17024         * modules/renameat (Depends-on): Likewise.
17025         * modules/rmdir (Depends-on): Likewise.
17026         * modules/round (Depends-on): Likewise.
17027         * modules/roundf (Depends-on): Likewise.
17028         * modules/roundl (Depends-on): Likewise.
17029         * modules/rpmatch (Depends-on): Likewise.
17030         * modules/select (Depends-on): Likewise.
17031         * modules/send (Depends-on): Likewise.
17032         * modules/sendto (Depends-on): Likewise.
17033         * modules/setenv (Depends-on): Likewise.
17034         * modules/setlocale (Depends-on): Likewise.
17035         * modules/setsockopt (Depends-on): Likewise.
17036         * modules/shutdown (Depends-on): Likewise.
17037         * modules/sigaction (Depends-on): Likewise.
17038         * modules/signbit (Depends-on): Likewise.
17039         * modules/sigprocmask (Depends-on): Likewise.
17040         * modules/sinl (Depends-on): Likewise.
17041         * modules/sleep (Depends-on): Likewise.
17042         * modules/snprintf (Depends-on): Likewise.
17043         * modules/snprintf-posix (Depends-on): Likewise.
17044         * modules/socket (Depends-on): Likewise.
17045         * modules/sprintf-posix (Depends-on): Likewise.
17046         * modules/sqrtl (Depends-on): Likewise.
17047         * modules/stat (Depends-on): Likewise.
17048         * modules/strchrnul (Depends-on): Likewise.
17049         * modules/strdup-posix (Depends-on): Likewise.
17050         * modules/strerror (Depends-on): Likewise.
17051         * modules/strerror_r-posix (Depends-on): Likewise.
17052         * modules/strndup (Depends-on): Likewise.
17053         * modules/strnlen (Depends-on): Likewise.
17054         * modules/strptime (Depends-on): Likewise.
17055         * modules/strsep (Depends-on): Likewise.
17056         * modules/strsignal (Depends-on): Likewise.
17057         * modules/strstr-simple (Depends-on): Likewise.
17058         * modules/strtod (Depends-on): Likewise.
17059         * modules/strtoimax (Depends-on): Likewise.
17060         * modules/strtok_r (Depends-on): Likewise.
17061         * modules/strtoumax (Depends-on): Likewise.
17062         * modules/symlink (Depends-on): Likewise.
17063         * modules/symlinkat (Depends-on): Likewise.
17064         * modules/tanl (Depends-on): Likewise.
17065         * modules/tcgetsid (Depends-on): Likewise.
17066         * modules/tmpfile (Depends-on): Likewise.
17067         * modules/trunc (Depends-on): Likewise.
17068         * modules/truncf (Depends-on): Likewise.
17069         * modules/truncl (Depends-on): Likewise.
17070         * modules/uname (Depends-on): Likewise.
17071         * modules/unlink (Depends-on): Likewise.
17072         * modules/unlockpt (Depends-on): Likewise.
17073         * modules/unsetenv (Depends-on): Likewise.
17074         * modules/usleep (Depends-on): Likewise.
17075         * modules/utimensat (Depends-on): Likewise.
17076         * modules/vasprintf (Depends-on): Likewise.
17077         * modules/vdprintf (Depends-on): Likewise.
17078         * modules/vdprintf-posix (Depends-on): Likewise.
17079         * modules/vfprintf-posix (Depends-on): Likewise.
17080         * modules/vprintf-posix (Depends-on): Likewise.
17081         * modules/vsnprintf (Depends-on): Likewise.
17082         * modules/vsnprintf-posix (Depends-on): Likewise.
17083         * modules/vsprintf-posix (Depends-on): Likewise.
17084         * modules/wcrtomb (Depends-on): Likewise.
17085         * modules/wcscasecmp (Depends-on): Likewise.
17086         * modules/wcscspn (Depends-on): Likewise.
17087         * modules/wcsdup (Depends-on): Likewise.
17088         * modules/wcsncasecmp (Depends-on): Likewise.
17089         * modules/wcsnrtombs (Depends-on): Likewise.
17090         * modules/wcspbrk (Depends-on): Likewise.
17091         * modules/wcsrtombs (Depends-on): Likewise.
17092         * modules/wcsspn (Depends-on): Likewise.
17093         * modules/wcsstr (Depends-on): Likewise.
17094         * modules/wcstok (Depends-on): Likewise.
17095         * modules/wcswidth (Depends-on): Likewise.
17096         * modules/wctob (Depends-on): Likewise.
17097         * modules/wctomb (Depends-on): Likewise.
17098         * modules/wctype (Depends-on): Likewise.
17099         * modules/wcwidth (Depends-on): Likewise.
17100         * modules/write (Depends-on): Likewise.
17101
17102 2011-05-03  Bruno Haible  <bruno@clisp.org>
17103
17104         Support for conditional dependencies.
17105         * doc/gnulib.texi (Module description): Document the syntax of
17106         conditional dependencies.
17107         * gnulib-tool: New option --conditional-dependencies.
17108         (func_usage): Document it.
17109         (cond_dependencies): New variable.
17110         (func_get_automake_snippet_conditional,
17111         func_get_automake_snippet_unconditional): New functions, extracted from
17112         func_get_automake_snippet.
17113         (func_get_automake_snippet): Use them.
17114         (sed_first_32_chars): New variable.
17115         (func_module_shellfunc_name): New function.
17116         (func_module_shellvar_name): New function.
17117         (func_module_conditional_name): New function.
17118         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17119         func_cond_module_condition): New functions.
17120         (func_modules_transitive_closure): Add support for conditional
17121         dependencies.
17122         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17123         conditional automake snippet in an automake conditional.
17124         (func_emit_autoconf_snippets): Emit shell functions that contain the
17125         code for conditional modules.
17126         (func_import, func_create_testdir): Update specification.
17127
17128 2011-05-03  Eric Blake  <eblake@redhat.com>
17129
17130         test-getaddrinfo: report error information
17131         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17132
17133 2011-05-03  Jim Meyering  <meyering@redhat.com>
17134
17135         bootstrap: avoid build failure when $GZIP is set
17136         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17137         program name.  If defined at all, it is supposed to list gzip options.
17138         Reported by Alan Curry in http://debbugs.gnu.org/8609
17139
17140 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17141
17142         readme-release: new module with release instructions
17143         * modules/readme-release: New module.
17144         * top/README-release: New file, from coreutils, grep, diffutils.
17145         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17146
17147 2011-05-02  Eric Blake  <eblake@redhat.com>
17148
17149         fflush: also replace fclose when fixing fflush
17150         * modules/fflush (Depends-on): Add fclose.
17151         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17152         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17153         memstreams with no backing fd.
17154         * doc/posix-functions/fclose.texi (fclose): Document the use of
17155         fflush module to fix the bug.
17156         * tests/test-fclose.c (main): Relax test when fclose is used in
17157         isolation.
17158
17159         fclose: add some tests
17160         * modules/fclose-tests: New test module.
17161         * tests/test-fclose.c: New file.
17162         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17163
17164         fclose: reduced dependencies
17165         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17166         simpler lseek.
17167         * lib/fclose.c (rpl_fclose): Likewise.
17168         Reported by Simon Josefsson.
17169
17170         exit: drop remaining clients
17171         * modules/argmatch (Depends-on): Replace exit with stdlib.
17172         * modules/copy-file (Depends-on): Likewise.
17173         * modules/execute (Depends-on): Likewise.
17174         * modules/exitfail (Depends-on): Likewise.
17175         * modules/obstack (Depends-on): Likewise.
17176         * modules/pagealign_alloc (Depends-on): Likewise.
17177         * modules/pipe-filter-gi (Depends-on): Likewise.
17178         * modules/pipe-filter-ii (Depends-on): Likewise.
17179         * modules/savewd (Depends-on): Likewise.
17180         * modules/spawn-pipe (Depends-on): Likewise.
17181         * modules/wait-process (Depends-on): Likewise.
17182         * modules/xsetenv (Depends-on): Likewise.
17183         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17184         * modules/git-merge-changelog (Depends-on): Likewise.
17185         * modules/long-options (Depends-on): Likewise.
17186         * modules/pt_chown (Depends-on): Likewise.
17187         * modules/sysexits (Depends-on): Likewise.
17188
17189         freading: relax license from LGPLv3+ to LGPLv2+
17190         * modules/freading (License): Relax LGPL version.
17191
17192 2011-05-02  Bruno Haible  <bruno@clisp.org>
17193
17194         fchdir: Remove unused dependencies.
17195         * modules/fchdir (Depends-on): Remove include_next.
17196
17197 2011-05-02  Bruno Haible  <bruno@clisp.org>
17198
17199         gnulib-tool: Refactor.
17200         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17201         from func_emit_autoconf_snippets.
17202         (func_emit_autoconf_snippets): Use it.
17203
17204 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17205
17206         * NEWS: Document removal of 'exit'.
17207         * modules/exit: Remove file.
17208
17209 2011-05-01  Bruno Haible  <bruno@clisp.org>
17210
17211         Update DEPENDENCIES.
17212         * DEPENDENCIES (gettext): Recommend the newest release.
17213         Reported by Simon Josefsson.
17214
17215 2011-05-01  Bruno Haible  <bruno@clisp.org>
17216
17217         gnulib-tool: Reduce code duplication.
17218         * gnulib-tool (func_emit_autoconf_snippets): New function.
17219         (func_import, func_create_testdir): Use it.
17220
17221 2011-04-30  Eric Blake  <eblake@redhat.com>
17222
17223         fclose: don't fail on non-seekable input stream
17224         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17225         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17226         since fflush is allowed to fail in that case.
17227
17228 2011-04-30  Bruno Haible  <bruno@clisp.org>
17229
17230         dup3: cleanup
17231         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17232
17233 2011-04-30  Bruno Haible  <bruno@clisp.org>
17234
17235         netdb: Make it work in C++ mode.
17236         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17237         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17238         module.
17239         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17240         gl_MODULE_INDICATOR_FOR_TESTS.
17241         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17242         * modules/netdb-c++-tests: New file.
17243         * tests/test-netdb-c++.cc: New file.
17244
17245 2011-04-30  Bruno Haible  <bruno@clisp.org>
17246
17247         New modules 'vfscanf', 'vscanf'.
17248         * modules/vfscanf: New file.
17249         * modules/vscanf: New file.
17250         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17251         here.
17252         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17253         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17254
17255 2011-04-30  Bruno Haible  <bruno@clisp.org>
17256
17257         passfd: Add comments.
17258         * lib/passfd.c: Add comments about platforms.
17259
17260 2011-04-30  Bruno Haible  <bruno@clisp.org>
17261
17262         sys_uio: Make <sys/uio.h> self-contained.
17263         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17264         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17265
17266 2011-04-30  Bruno Haible  <bruno@clisp.org>
17267
17268         sys_socket: Ensure 'struct iovec' definition.
17269         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17270         <sys/socket.h>.
17271         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17272
17273 2011-04-30  Bruno Haible  <bruno@clisp.org>
17274
17275         sys_uio: Protect definition of 'struct iovec'.
17276         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17277         it as a C struct.
17278
17279 2011-04-30  Bruno Haible  <bruno@clisp.org>
17280
17281         manywarnings: fix indentation
17282         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17283
17284 2011-04-30  Pádraig Brady <P@draigBrady.com>
17285
17286         manywarnings: add -Wno-missing-field-initializers if needed.
17287         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17288         option if it's needed to allow initialization with { 0, }
17289
17290 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17291
17292         announce-gen: cosmetic improvement
17293         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17294
17295 2011-04-29  Jim Meyering  <meyering@redhat.com>
17296
17297         vc-list-files: indent with spaces, not TABs
17298         * build-aux/vc-list-files: Convert leading TABs to spaces,
17299         to match the style of most other files in gnulib.
17300
17301         announce-gen: indent with spaces, not TABs
17302         * build-aux/announce-gen: Convert all TABs to spaces, to match
17303         the style of most other files in gnulib.
17304
17305 2011-04-29  Eric Blake  <eblake@redhat.com>
17306
17307         quotearg: avoid uninitialized variable use
17308         * lib/quotearg.c (quoting_options_from_style): Initialize
17309         remaining fields, and ensure that custom styles are only used via
17310         quoting_options rather than quoting_style.
17311
17312 2011-04-29  Jim Meyering  <meyering@redhat.com>
17313
17314         maint.mk: remove unused VC-tag variable
17315         * top/maint.mk (VC-tag): Remove unused variable.
17316
17317 2011-04-29  Bruno Haible  <bruno@clisp.org>
17318
17319         netdb: fix gai_strerror replacements
17320         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17321         * modules/netdb: Substitute it.
17322
17323 2011-04-29  Jim Meyering  <meyering@redhat.com>
17324
17325         test-getcwd.c: avoid new set-but-not-used warning
17326         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17327         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17328         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17329         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17330
17331         test-hash.c: avoid a new shadowing warning
17332         * tests/test-hash.c (main): Don't shadow "dup".
17333
17334 2011-04-28  Eric Blake  <eblake@redhat.com>
17335
17336         getaddrinfo: fix gai_strerror signature
17337         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17338         and work around mingw with UNICODE defined.
17339         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17340         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17341         * modules/netdb (Makefile.am): Substitute it.
17342         * lib/netdb.in.h (gai_strerror): Declare replacement.
17343         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17344         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17345         the fix.
17346
17347         getsockopt: avoid compiler warning
17348         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17349         Reported by Matthias Bolte.
17350
17351         tests: drop unused link dependency
17352         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17353         * modules/dirent-safer-tests (Makefile.am): Likewise.
17354         * modules/fdopendir-tests (Makefile.am): Likewise.
17355         * modules/mkfifoat-tests (Makefile.am): Likewise.
17356         * modules/openat-safer-tests (Makefile.am): Likewise.
17357         * modules/openat-tests (Makefile.am): Likewise.
17358         * modules/readlinkat-tests (Makefile.am): Likewise.
17359         * modules/symlinkat-tests (Makefile.am): Likewise.
17360         * modules/linkat-tests (Makefile.am): Likewise.
17361         (Depends-on): Switch to filenamecat-lgpl.
17362         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17363         LIBINTL.
17364         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17365         * tests/test-linkat.c (main): Don't require xalloc.
17366
17367         hash, mgetgroups: drop xalloc dependency
17368         * lib/hash.c (includes): Adjust includes.
17369         * lib/mgetgroups.c (includes): Likewise.
17370         (xgetgroups): Move...
17371         * lib/xgetgroups.c: ...to new file.
17372         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17373         * modules/xgetgroups: New file, split from...
17374         * modules/mgetgroups: ...here.
17375         (Depends-on): Add xalloc-oversized.
17376         * modules/hash (Depends-on): Likewise.
17377         * modules/hash-tests (Depends-on): Drop xalloc.
17378         (test_hash_LDADD): Drop unused library.
17379         * tests/test-hash.c (main): Break xalloc dependency.
17380         (includes): Drop unused include.
17381
17382         xalloc-oversized: new module
17383         * modules/xalloc-oversized: New module.
17384         * modules/xalloc (Depends-on): Add it.
17385         * lib/xalloc.h (xalloc_oversized): Move...
17386         * lib/xalloc-oversized.h: ...into new file.
17387
17388         utimecmp: drop dependency on xmalloc
17389         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17390         due to memory pressure.
17391         * modules/utimecmp (Depends-on): Drop xalloc.
17392
17393 2011-04-27  Eric Blake  <eblake@redhat.com>
17394
17395         getcwd: fix mingw bugs
17396         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17397         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17398         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17399
17400 2011-04-27  Bruno Haible  <bruno@clisp.org>
17401
17402         mkstemps: Ensure declaration on MacOS X 10.5.
17403         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17404         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17405         MacOS X.
17406
17407 2011-04-27  Bruno Haible  <bruno@clisp.org>
17408
17409         mkstemp: More documentation.
17410         * doc/posix-functions/mkstemp.texi: Document header file problem on
17411         MacOS X.
17412
17413 2011-04-27  Bruno Haible  <bruno@clisp.org>
17414
17415         mkstemp: Tweak configure message when cross-compiling.
17416         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17417         result as a guess.
17418
17419 2011-04-27  Bruno Haible  <bruno@clisp.org>
17420
17421         clean-temp: Clarify what it does.
17422         * lib/clean-temp.h: Add more comments.
17423         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17424         module.
17425         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17426         * doc/glibc-functions/mkstemps.texi: Likewise.
17427         * doc/glibc-functions/mkostemps.texi: Likewise.
17428
17429 2011-04-27  Eric Blake  <eblake@redhat.com>
17430
17431         fchdir: avoid extra chdir and fix test
17432         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17433         getcwd-lgpl.
17434         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17435         have to be canonical.
17436         (canonicalize_file_name): Drop unused macro.
17437         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17438
17439         filenamecat-lgpl: fix licence
17440         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17441         when it was first created.
17442
17443         linkat, renameat: add missing dependency
17444         * modules/linkat (Depends-on): Require getcwd-lgpl.
17445         * modules/renameat (Depends-on): Likewise.
17446
17447         tests: reduce dependencies
17448         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17449         * tests/test-renameat.c (main): Likewise.
17450         * modules/linkat-tests (Depends-on): Relax dependency.
17451         * modules/renameat-tests (Depends-on): Likewise.
17452         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17453         dependency explicit.
17454
17455         save-cwd: reduce default dependency
17456         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17457         * lib/save-cwd.c: Update comments.
17458         * NEWS: Document the semantic change.
17459
17460         getcwd: enhance tests
17461         * tests/test-getcwd-lgpl.c: New file, taken from...
17462         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17463         repeat long path stress tests from m4 probe.
17464         * modules/getcwd-lgpl-tests: New module.
17465         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17466         * m4/getcwd-abort-bug.m4: Update comment.
17467         * m4/getcwd-path-max.m4: Likewise.
17468
17469         getcwd-lgpl: new module
17470         * modules/getcwd-lgpl: New module.
17471         * lib/getcwd-lgpl.c: New file.
17472         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17473         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17474         * modules/getcwd (configure.ac): Set C witness.
17475         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17476
17477         getcwd: tweak comments
17478         * m4/getcwd-abort-bug.m4: Fix comments.
17479         * m4/getcwd-path-max.m4: Likewise.
17480         * m4/getcwd.m4: Likewise.
17481
17482 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17483         and Eric Blake  <eblake@redhat.com>
17484
17485         mkstemp: replace if system version uses wrong permissions
17486         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17487         read/write mode bits set in file created by mkstemp.
17488         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17489
17490 2011-04-27  Eric Blake  <eblake@redhat.com>
17491
17492         passfd: avoid compiler warning
17493         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17494         Reported by Laine Stump.
17495
17496 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17497
17498         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17499         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17500
17501 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17502         and Eric Blake  <eblake@redhat.com>
17503
17504         mkstemp: mention clean-temp module
17505         * lib/mkstemp.c: Add comment.
17506         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17507
17508 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17509
17510         inttypes: also provide default values for 32-bit tests
17511         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17512         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17513
17514 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17515
17516         strtoumax: remove dependency on strtoimax
17517         This is like the strtoull change of yesterday.
17518         * modules/strtoumax (Files): Add lib/strtoimax.c.
17519         (Depends-on): Remove strtoimax and add verify.
17520
17521         inttypes-incomplete: new module
17522         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17523         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17524         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17525         of gl_INTTYPES_H.
17526         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17527         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17528         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17529         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17530         * modules/strtoumax, modules/xstrtol (Depends-on):
17531         Depend on inttypes-incomplete, not inttypes.
17532         * modules/inttypes-incomplete: New module, containing the contents
17533         of the old modules/inttypes module, except that the Files: section
17534         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17535         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17536         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17537         (Depends-on): Depend only on inttypes-incomplete.
17538         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17539
17540         inttypes: omit now-redundant strtoimax and strtoumax work
17541         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17542         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17543
17544         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17545         This supports apps that need pointers to strtoimax and strtoumax,
17546         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17547         nonexistent functions.  See
17548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17549         et seq.
17550         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17551         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17552         a macro.
17553         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17554
17555 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17556
17557         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17558
17559 2011-04-25  Bruno Haible  <bruno@clisp.org>
17560
17561         strtol, strtoul: Mark modules as obsolete.
17562         * modules/strtol (Status, Notice): New sections.
17563         * modules/strtoul (Status, Notice): New sections.
17564
17565 2011-04-25  Bruno Haible  <bruno@clisp.org>
17566
17567         strtod: Remove check for strtod, unless supporting old platforms.
17568         * modules/strtod-obsolete: New file.
17569         * m4/strtod-obsolete.m4: New file.
17570         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17571         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17572         * modules/strtod (Depends-on): Add strtod-obsolete.
17573         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17574
17575 2011-04-25  Bruno Haible  <bruno@clisp.org>
17576
17577         strcase: Make module obsolete.
17578         * modules/strcase (Status, Notice): New sections.
17579
17580 2011-04-25  Bruno Haible  <bruno@clisp.org>
17581
17582         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17583         * modules/dup2-obsolete: New file.
17584         * m4/dup2-obsolete.m4: New file.
17585         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17586         gl_FUNC_DUP2_OBSOLETE is not also defined.
17587         * modules/dup2 (Depends-on): Add dup2-obsolete.
17588         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17589
17590 2011-04-25  Bruno Haible  <bruno@clisp.org>
17591
17592         strnlen: Avoid memchr related link error on old obsolete platforms.
17593         * modules/memchr-obsolete: New file.
17594         * m4/memchr-obsolete.m4: New file.
17595         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17596         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17597         * modules/memchr (Depends-on): Add memchr-obsolete.
17598         * modules/strnlen (Depends-on): Likewise.
17599         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17600
17601 2011-04-25  Jim Meyering  <meyering@redhat.com>
17602
17603         maint.mk: makefile_at_at_check extend and clean up
17604         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17605         in addition to */Makefile.am.
17606         Exempt legitimate uses of @VAR@ notation, e.g.,
17607         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17608         Remove obsolete coreutils-specific comment.
17609         Prompted by discussion here:
17610         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17611
17612 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17613
17614         strtoul: remove dependency on strtol
17615         This is so that 'configure' need not check for strtol merely because
17616         the application needs strtoul.
17617         * modules/strtoul (Files): Add lib/strtol.c.
17618         (Depends-on): Remove strtol.
17619
17620         strtoull: remove dependency on strtoul
17621         This is like the strtoll change.
17622         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17623         (Depends-on): Remove strtoul.
17624
17625         strtoll: remove dependency on strtol
17626         This is so that 'configure' need not check for strtol merely because
17627         the application needs strtoll.
17628         * modules/strtoll (Files): Add lib/strtol.c.
17629         (Depends-on): Remove strtol.
17630
17631 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17632
17633         inttypes: Move some configure check to module 'imaxdiv'.
17634         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17635         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17636         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17637
17638 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17639
17640         inttypes: Move some configure check to module 'imaxabs'.
17641         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17642         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17643         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17644
17645 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17646
17647         inttypes: Remove configure tests that are not needed since 2009-12-31.
17648         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17649         gl_cv_header_working_inttypes_h.
17650
17651 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17652
17653         * modules/strnlen (Depends-on): Remove memchr.
17654         The strnlen implementation doesn't need the memchr module's fixes; see
17655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17656
17657         strtol: remove dependency on wchar
17658         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17659         * modules/strtol (Depends-on): Remove wchar.
17660
17661 2011-04-21  Eric Blake  <eblake@redhat.com>
17662
17663         passfd: fix test regression on Linux
17664         * modules/passfd-tests (configure.ac): Correct socketpair check.
17665
17666         passfd: speed up configure and drop unused code
17667         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17668         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17669         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17670         Instead of probing at configure for unix_scm_rights_bsd44_way,
17671         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17672         check to a struct member probe.
17673         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17674         (sendfd, recvfd): Update preprocessor checks.
17675         * modules/passfd (Files): Reflect rename, and drop unused file.
17676         (Depends-on): Drop unused dependency.
17677
17678         passfd: allow compilation on mingw
17679         * modules/sys_socket (Depends-on): Add sys_uio.
17680         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17681         iovec and a minimal struct msghdr.
17682         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17683         * tests/test-sys_socket.c (main): Enhance test.
17684         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17685         guaranteed to provide what we need.
17686         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17687         * modules/passfd-tests (Depends-on): Add sys_wait.
17688         * tests/test-passfd.c (main): Skip test on mingw, for now.
17689         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17690         partial 'struct msghdr' implementation.
17691
17692         sys_uio: new module
17693         * modules/sys_uio: New module.
17694         * modules/sys_uio-tests: Likewise.
17695         * lib/sys_uio.in.h: New file.
17696         * m4/sys_uio_h.m4: Likewise.
17697         * tests/test-sys_uio.c: Likewise.
17698         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17699         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17700
17701 2011-04-20  Jim Meyering  <meyering@redhat.com>
17702
17703         useless-if-before-free: avoid false-positive
17704         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17705         disjunct so that it too requires a terminating ";".  Without that,
17706         this script would identify as useless one statement from gcc that
17707         was not:
17708           if (aligned_ptr)
17709             free (((void **) aligned_ptr) [-1]);
17710
17711 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17712
17713         doc: update users.txt.
17714         * users.txt: Add barcode.
17715
17716 2011-04-19  Bruno Haible  <bruno@clisp.org>
17717
17718         ioctl: Remove link dependency on native Windows.
17719         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17720         (gl_close_fn, gl_ioctl_fn): New types.
17721         (struct fd_hook): Renamed from struct close_hook. Change type of
17722         private_close_fn field. Add private_ioctl_fn field.
17723         (close_hook_fn): Add parameter for primary close method.
17724         (execute_close_hooks, execute_all_close_hooks): Likewise.
17725         (ioctl_hook_fn): New type.
17726         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17727         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17728         argument.
17729         (unregister_fd_hook): Renamed from unregister_close_hook.
17730         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17731         Don't include <unistd.h>.
17732         (close): Remove undef.
17733         (anchor): Update.
17734         (execute_close_hooks): Add argument for primary close method.
17735         (execute_all_close_hooks): Likewise.
17736         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17737         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17738         argument. Allow each argument to be NULL.
17739         (unregister_fd_hook): Renamed from unregister_close_hook.
17740         * lib/close.c (rpl_close): Pass 'close' function pointer to
17741         execute_all_close_hooks.
17742         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17743         (primary_ioctl): New function.
17744         (ioctl): Don't call ioctlsocket here. Instead, call
17745         execute_all_ioctl_hooks.
17746         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17747         close method.
17748         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17749         (fd_sockets_hook): Renamed from close_sockets_hook.
17750         (gl_sockets_startup, gl_sockets_cleanup): Update.
17751         * modules/fd-hook: Renamed from modules/close-hook. Update.
17752         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17753         * modules/sockets (Depends-on): Likewise.
17754         * modules/ioctl (Depends-on): Add fd-hook.
17755         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17756         GNULIB_SOCKET.
17757
17758 2011-04-19  Bruno Haible  <bruno@clisp.org>
17759
17760         Move the support of O_NONBLOCK in open() to the 'open' module.
17761         * modules/nonblocking (Depends-on): Remove 'open'.
17762         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17763         gl_cv_have_open_O_NONBLOCK.
17764         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17765         O_NONBLOCK support.
17766         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17767
17768 2011-04-17  Bruno Haible  <bruno@clisp.org>
17769
17770         pipe2: Simplify code.
17771         * lib/pipe2.c (pipe2): Reduce code duplication.
17772
17773 2011-04-17  Bruno Haible  <bruno@clisp.org>
17774
17775         nonblocking: Add comment.
17776         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17777
17778 2011-04-17  Bruno Haible  <bruno@clisp.org>
17779
17780         nonblocking: Add tests for sockets.
17781         * tests/test-nonblocking-socket.sh: New file.
17782         * tests/test-nonblocking-socket-main.c: New file.
17783         * tests/test-nonblocking-socket-child.c: New file.
17784         * tests/test-nonblocking-socket.h: New file.
17785         * tests/socket-server.h: New file.
17786         * tests/socket-client.h: New file.
17787         * modules/nonblocking-socket-tests: New file.
17788         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17789
17790 2011-04-17  Bruno Haible  <bruno@clisp.org>
17791
17792         nonblocking: Add tests for pipes.
17793         * tests/test-nonblocking-pipe.sh: New file.
17794         * tests/test-nonblocking-pipe-main.c: New file.
17795         * tests/test-nonblocking-pipe-child.c: New file.
17796         * tests/test-nonblocking-pipe.h: New file.
17797         * tests/test-nonblocking-writer.h: New file.
17798         * tests/test-nonblocking-reader.h: New file.
17799         * tests/test-nonblocking-misc.h: New file.
17800         * modules/nonblocking-pipe-tests: New file.
17801         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17802
17803 2011-04-16  Bruno Haible  <bruno@clisp.org>
17804
17805         gettext: Clarify the needed programmer actions.
17806         * modules/gettext (Notice): New field.
17807         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17808
17809 2011-04-16  Bruno Haible  <bruno@clisp.org>
17810
17811         strchrnul: Tweak last commit.
17812         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17813         bug.
17814         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17815         as in _GL_FUNCDECL_SYS.
17816         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17817         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17818
17819 2011-04-15  Eric Blake  <eblake@redhat.com>
17820
17821         strchrnul: work around cygwin bug
17822         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17823         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17825         * modules/string (Makefile.am): Substitute it.
17826         * lib/string.in.h (strchrnul): Use it.
17827
17828 2011-04-15  Bruno Haible  <bruno@clisp.org>
17829
17830         Don't require lib/stdio-write.c when only module 'stdio' is used.
17831         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17832         invocation.
17833         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17834
17835 2011-04-14  Bruno Haible  <bruno@clisp.org>
17836
17837         Support non-blocking pipe I/O in read() on native Windows.
17838         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17839         (read): New declaration.
17840         * lib/read.c: New file.
17841         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17842         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17843         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17844         vscanf): New declarations.
17845         * lib/stdio-read.c: New file.
17846         * m4/read.m4: New file.
17847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17848         REPLACE_READ.
17849         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17850         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17851         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17852         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17853         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17854         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17855         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17856         * modules/read: New file.
17857         * modules/nonblocking (Files): Add lib/stdio-read.c.
17858         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17859         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17860         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17861         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17862         * modules/pread (Depends-on): Add read.
17863         * modules/safe-read (Depends-on): Likewise.
17864         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17865         gets, scanf, vfscanf, vscanf): Verify signatures.
17866         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17867         problem with non-blocking pipes.
17868         * doc/posix-functions/fgetc.texi: Likewise.
17869         * doc/posix-functions/fgets.texi: Likewise.
17870         * doc/posix-functions/fread.texi: Likewise.
17871         * doc/posix-functions/fscanf.texi: Likewise.
17872         * doc/posix-functions/getc.texi: Likewise.
17873         * doc/posix-functions/getchar.texi: Likewise.
17874         * doc/posix-functions/gets.texi: Likewise.
17875         * doc/posix-functions/scanf.texi: Likewise.
17876         * doc/posix-functions/vfscanf.texi: Likewise.
17877         * doc/posix-functions/vscanf.texi: Likewise.
17878
17879 2011-04-14  Bruno Haible  <bruno@clisp.org>
17880
17881         Support non-blocking pipe I/O in write() on native Windows.
17882         * lib/write.c (rpl_write): Split a write request that failed merely
17883         because the byte count was larger than the pipe buffer's size.
17884         * doc/posix-functions/write.texi: Mention the problem with large byte
17885         counts.
17886
17887 2011-04-14  Bruno Haible  <bruno@clisp.org>
17888
17889         wchar: Ensure that wchar_t gets defined on uClibc.
17890         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17891         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17892
17893 2011-04-13  Bruno Haible  <bruno@clisp.org>
17894
17895         safe-write, full-read: Avoid unnecessary compilation units.
17896         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17897         (Depends-on): Remove safe-read. Add ssize_t.
17898         * modules/full-read (Files): Add lib/full-write.c.
17899         (Depends-on): Add full-write.
17900
17901 2011-04-13  Bruno Haible  <bruno@clisp.org>
17902
17903         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17904         * modules/pwrite (Depends-on): Add 'write'.
17905
17906 2011-04-13  Bruno Haible  <bruno@clisp.org>
17907
17908         Support non-blocking pipe I/O in write() on native Windows.
17909         * lib/unistd.in.h (write): Enable replacement also if
17910         GNULIB_UNISTD_H_NONBLOCKING is 1.
17911         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17912         (rpl_write): When failing to write on a non-blocking pipe, change
17913         errno from ENOSPC to EAGAIN.
17914         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17915         putchar, puts, vfprintf, vprintf): Enable replacement also if
17916         GNULIB_STDIO_H_NONBLOCKING is 1.
17917         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17918         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17919         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17920         CALL_WITH_SIGPIPE_EMULATION.
17921         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17922         * m4/nonblocking.m4: New file.
17923         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17924         for non-blocking I/O support.
17925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17926         GNULIB_UNISTD_H_NONBLOCKING.
17927         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17928         required for non-blocking I/O support.
17929         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17930         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17931         lib/stdio-write.c, m4/asm-underscore.m4.
17932         (Depends-on): Add stdio, unistd.
17933         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17934         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17935         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17936         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17937         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17938         problem with non-blocking pipes.
17939         * doc/posix-functions/fputc.texi: Likewise.
17940         * doc/posix-functions/fputs.texi: Likewise.
17941         * doc/posix-functions/fwrite.texi: Likewise.
17942         * doc/posix-functions/printf.texi: Likewise.
17943         * doc/posix-functions/putc.texi: Likewise.
17944         * doc/posix-functions/putchar.texi: Likewise.
17945         * doc/posix-functions/puts.texi: Likewise.
17946         * doc/posix-functions/vfprintf.texi: Likewise.
17947         * doc/posix-functions/vprintf.texi: Likewise.
17948         * doc/posix-functions/write.texi: Likewise.
17949
17950 2011-04-10  Jim Meyering  <meyering@redhat.com>
17951
17952         maint.mk: prohibit doubled words
17953         Detect them also when they're separated by a newline.
17954         There are 3 ways to customize it:
17955           - disable the test on a per file basis, as usual with rules using
17956             $(VC_LIST_EXCEPT)
17957           - replace the default doubled-word-selecting regexp (affects all files)
17958           - ignore a particular file-vs-doubled-word match
17959         I nearly used that last one to ignore the "is is" match in
17960         coreutils' NEWS file, since the text was "ls -is is ..."
17961         To do that, I would have added this line to cfg.mk:
17962           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17963         but it would have ignored any "is is" match in NEWS.
17964         Low probability, but still...
17965         Instead, I changed the text, slightly:
17966           -  ls -is is now consistent with ls -lis in ignoring values returned
17967           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17968         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17969         (prohibit_doubled_word_): Define.
17970         (sc_prohibit_doubled_word): New rule.
17971         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17972
17973 2011-04-10  Jim Meyering  <meyering@redhat.com>
17974
17975         maint: fix doubled-word typo in comment
17976         * m4/gethostname.m4: s/is is/it is/
17977         * m4/getdomainname.m4: Likewise.
17978
17979 2011-04-10  Jim Meyering  <meyering@redhat.com>
17980
17981         maint: remove doubled word: s/it it/it/
17982         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17983
17984 2011-04-10  Jim Meyering  <meyering@redhat.com>
17985
17986         maint.mk: remove useless semicolon and backslash
17987         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17988         semicolon and backslash.
17989
17990 2011-04-10  Bruno Haible  <bruno@clisp.org>
17991
17992         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17993         * modules/stdint-tests (Depends-on): Add wchar.
17994
17995 2011-04-10  Jim Meyering  <meyering@redhat.com>
17996
17997         maint: remove doubled words in comments, e.g., s/a a/a/
17998         * lib/strptime.c (day_of_the_week): s/the the/the/
17999         * tests/test-chown.h (test_chown): s/a a/a/
18000
18001         test-chown.h: correct a cast
18002         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18003         when the destination is a stat.st_gid.
18004
18005 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18006
18007         getaddrinfo: Fix test for sa_len member.
18008         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18009         include <sys/types.h> before <sys/socket.h>.
18010
18011 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18012
18013         maint: change "can not" to "cannot"
18014         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18015         boundaries.
18016
18017 2011-04-09  Jim Meyering  <meyering@redhat.com>
18018
18019         maint: change "a a" to "a"
18020         * tests/test-lchown.h (test_lchown): s/a a/a/
18021
18022         maint.mk: prohibit \<the the\>
18023         * top/maint.mk (sc_prohibit_the_the): New rule.
18024
18025         maint: fix "the the" in comment
18026         * lib/count-one-bits.h: s/the the/the/
18027
18028         maint: change "can not" to "cannot"
18029         But do not change the occurrences in maintain.texi or in
18030         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18031         * doc/gnulib-tool.texi: s/can not/cannot/
18032         * doc/posix-functions/accept.texi (accept): Likewise.
18033         * doc/posix-functions/socket.texi (socket): Likewise.
18034         * lib/mbrtowc.c: Likewise.
18035
18036         maint.mk: prohibit use of "can not"
18037         * top/maint.mk (sc_prohibit_can_not): New rule.
18038         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18039
18040 2011-04-09  Bruno Haible  <bruno@clisp.org>
18041
18042         careadlinkat: Guard against misuse of careadlinkatcwd.
18043         * lib/careadlinkat.c: Include <stdlib.h>.
18044         (careadlinkatcwd): Check that the fd argument is as expected.
18045
18046 2011-04-09  Bruno Haible  <bruno@clisp.org>
18047
18048         careadlinkat: Use common coding style.
18049         * lib/careadlinkat.c: Move gnulib includes after system includes.
18050
18051 2011-04-09  Bruno Haible  <bruno@clisp.org>
18052
18053         careadlinkat: Clarify specification.
18054         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18055         (careadlinkatcwd): Add comment.
18056         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18057
18058 2011-04-09  Bruno Haible  <bruno@clisp.org>
18059
18060         areadlinkat: Avoid link error on many platforms.
18061         * modules/areadlinkat (Depends-on): Add areadlink.
18062
18063 2011-04-09  Bruno Haible  <bruno@clisp.org>
18064
18065         allocator, careadlinkat: Fix double-inclusion guard.
18066         * lib/allocator.h: Fix double-inclusion guard.
18067         * lib/careadlinkat.h: Likewise.
18068
18069 2011-04-09  Bruno Haible  <bruno@clisp.org>
18070
18071         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18072         * lib/relocwrapper.c: Update dependencies hierarchy.
18073         * build-aux/install-reloc: Update list of files to be compiled.
18074         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18075         lib/allocator.[hc].
18076
18077 2011-04-08  Eric Blake  <eblake@redhat.com>
18078
18079         strftime: silence gnulib-tool warning
18080         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18081
18082 2011-04-08  Bruno Haible  <bruno@clisp.org>
18083
18084         verify: Fix syntax error with GCC 4.6 in C++ mode.
18085         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18086         (HAVE_STATIC_ASSERT): New macro.
18087         (verify_true, verify): Use 'static_assert' if it is supported and
18088         '_Static_assert' is not supported.
18089
18090 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18091
18092         allocator: New module.
18093         * modules/allocator, lib/allocator.c: New files.
18094         * lib/allocator.h (stdlib_allocator): New decl.
18095         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18096         Remove.  Do not include <stdlib.h>.
18097         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18098         * modules/careadlinkat (Files): Remove lib/allocator.h.
18099         (Depends-on): Add allocator.
18100
18101         stdlib: let modules use system malloc, realloc
18102         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18103         if !_GL_USE_STDLIB_ALLOC.
18104         (malloc, realloc): Limit this change to a smaller scope.
18105
18106         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18107         (malloc, realloc): Don't #undef; no longer needed.
18108         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18109         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18110         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18111         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18112         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18113         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18114         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18115         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18116
18117         careadlinkat: rename members to avoid problem
18118         * lib/allocator.h (struct allocator): Rename members from
18119         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18120         and realloc are #define'd.  Reported by Eric Blake in
18121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18122         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18123
18124 2011-04-08  Eric Blake  <eblake@redhat.com>
18125
18126         nonblocking: reduce dependency
18127         * tests/test-nonblocking.c: Only test sockets when in use.
18128         * modules/nonblocking-tests (Depends-on): Drop socket.
18129         (Makefile.am): Link even if sockets are not present.
18130         * modules/pipe2-tests (Makefile.am): Likewise.
18131         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18132
18133         pipe2: fix O_NONBLOCK support on mingw
18134         * modules/pipe2 (Depends-on): Add nonblocking.
18135         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18136         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18137         * tests/test-nonblocking.c (main): Likewise.
18138         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18139
18140         fcntl-h: fix O_ACCMODE on cygwin
18141         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18142         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18143
18144         pipe-filter: drop O_NONBLOCK workarounds
18145         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18146         * modules/pipe-filter-ii (Depends-on): Likewise.
18147         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18148
18149         nonblocking: provide O_NONBLOCK for mingw
18150         * modules/nonblocking (Depends-on): Add open.
18151         (configure.ac): Set new witness macro.
18152         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18153         * modules/fcntl-h (Makefile.am): Substitute it.
18154         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18155         nonblocking module is in use.
18156         * lib/nonblocking.c: Adjust portability test.
18157         * lib/open.c (open): Don't let native open see gnulib flag.
18158         * tests/test-fcntl-h.c (main): Enhance test.
18159         * tests/test-open.h (test_open): Likewise.
18160         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18161
18162         careadlinkat: fix compilation error on mingw
18163         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18164         within struct allocator.
18165
18166 2011-04-06  Eric Blake  <eblake@redhat.com>
18167
18168         binary-io: relicense under LGPLv2+
18169         * modules/binary-io (License): Relax to LGPLv2+.
18170         Requested for libvirt, and required by pipe2.
18171
18172 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18173
18174         verify: use _Static_assert if available
18175         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18176         (verify_true, verify): Use it if available.  This generates better
18177         diagnostics with GCC 4.6.0 and later.
18178
18179 2011-04-05  Bruno Haible  <bruno@clisp.org>
18180
18181         Remove leftover generated .h files after config.status changed.
18182
18183         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18184         GL_GENERATE_ALLOCA_H.
18185         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18186         GL_GENERATE_ALLOCA_H evaluates to false.
18187
18188         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18189         GL_GENERATE_ARGZ_H.
18190         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18191         evaluates to false.
18192
18193         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18194         GL_GENERATE_BYTESWAP_H.
18195         * modules/byteswap (Makefile.am): Remove byteswap.h if
18196         GL_GENERATE_BYTESWAP_H evaluates to false.
18197
18198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18199         GL_GENERATE_ERRNO_H.
18200         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18201         evaluates to false.
18202
18203         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18204         GL_GENERATE_FLOAT_H.
18205         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18206         evaluates to false.
18207
18208         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18209         GL_GENERATE_FNMATCH_H.
18210         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18211         GL_GENERATE_FNMATCH_H evaluates to false.
18212
18213         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18214         GL_GENERATE_GLOB_H.
18215         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18216         evaluates to false.
18217
18218         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18219         automake conditional GL_GENERATE_ICONV_H.
18220         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18221         evaluates to false.
18222
18223         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18224         GL_GENERATE_NETINET_IN_H.
18225         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18226         GL_GENERATE_NETINET_IN_H evaluates to false.
18227
18228         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18229         conditional GL_GENERATE_PTHREAD_H.
18230         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18231         * modules/pthread (Makefile.am): Remove pthread.h if
18232         GL_GENERATE_PTHREAD_H evaluates to false.
18233
18234         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18235         GL_GENERATE_SCHED_H.
18236         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18237         evaluates to false.
18238
18239         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18240         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18241         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18242         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18243
18244         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18245         GL_GENERATE_STDARG_H.
18246         * modules/stdarg (Makefile.am): Remove stdarg.h if
18247         GL_GENERATE_STDARG_H evaluates to false.
18248
18249         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18250         GL_GENERATE_STDBOOL_H.
18251         * modules/stdbool (Makefile.am): Remove stdbool.h if
18252         GL_GENERATE_STDBOOL_H evaluates to false.
18253
18254         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18255         conditional GL_GENERATE_STDDEF_H.
18256         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18257         * modules/stddef (Makefile.am): Remove stddef.h if
18258         GL_GENERATE_STDDEF_H evaluates to false.
18259
18260         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18261         GL_GENERATE_STDINT_H.
18262         * modules/stdint (Makefile.am): Remove stdint.h if
18263         GL_GENERATE_STDINT_H evaluates to false.
18264
18265         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18266         GL_GENERATE_SYSEXITS_H.
18267         * modules/sysexits (Makefile.am): Remove sysexits.h if
18268         GL_GENERATE_SYSEXITS_H evaluates to false.
18269
18270         Reported by Karl Berry and Ralf Wildenhues.
18271
18272 2011-04-05  Bruno Haible  <bruno@clisp.org>
18273
18274         Ensure to rebuild generated .h files when config.status has changed.
18275         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18276         config.status.
18277         * modules/ctype (Makefile.am): Likewise.
18278         * modules/dirent (Makefile.am): Likewise.
18279         * modules/errno (Makefile.am): Likewise.
18280         * modules/fcntl-h (Makefile.am): Likewise.
18281         * modules/float (Makefile.am): Likewise.
18282         * modules/getopt-posix (Makefile.am): Likewise.
18283         * modules/glob (Makefile.am): Likewise.
18284         * modules/iconv-h (Makefile.am): Likewise.
18285         * modules/inttypes (Makefile.am): Likewise.
18286         * modules/langinfo (Makefile.am): Likewise.
18287         * modules/locale (Makefile.am): Likewise.
18288         * modules/math (Makefile.am): Likewise.
18289         * modules/netdb (Makefile.am): Likewise.
18290         * modules/netinet_in (Makefile.am): Likewise.
18291         * modules/poll-h (Makefile.am): Likewise.
18292         * modules/pthread (Makefile.am): Likewise.
18293         * modules/pty (Makefile.am): Likewise.
18294         * modules/sched (Makefile.am): Likewise.
18295         * modules/search (Makefile.am): Likewise.
18296         * modules/selinux-h (Makefile.am): Likewise.
18297         * modules/signal (Makefile.am): Likewise.
18298         * modules/spawn (Makefile.am): Likewise.
18299         * modules/stdarg (Makefile.am): Likewise.
18300         * modules/stdbool (Makefile.am): Likewise.
18301         * modules/stddef (Makefile.am): Likewise.
18302         * modules/stdint (Makefile.am): Likewise.
18303         * modules/stdio (Makefile.am): Likewise.
18304         * modules/stdlib (Makefile.am): Likewise.
18305         * modules/string (Makefile.am): Likewise.
18306         * modules/strings (Makefile.am): Likewise.
18307         * modules/sys_file (Makefile.am): Likewise.
18308         * modules/sys_ioctl (Makefile.am): Likewise.
18309         * modules/sys_select (Makefile.am): Likewise.
18310         * modules/sys_socket (Makefile.am): Likewise.
18311         * modules/sys_stat (Makefile.am): Likewise.
18312         * modules/sys_time (Makefile.am): Likewise.
18313         * modules/sys_times (Makefile.am): Likewise.
18314         * modules/sys_utsname (Makefile.am): Likewise.
18315         * modules/sys_wait (Makefile.am): Likewise.
18316         * modules/sysexits (Makefile.am): Likewise.
18317         * modules/termios (Makefile.am): Likewise.
18318         * modules/time (Makefile.am): Likewise.
18319         * modules/unistd (Makefile.am): Likewise.
18320         * modules/wchar (Makefile.am): Likewise.
18321         * modules/wctype-h (Makefile.am): Likewise.
18322         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18323
18324 2011-04-05  Bruno Haible  <bruno@clisp.org>
18325
18326         pipe2: Relicense under LGPLv2+.
18327         * modules/pipe2 (License): Change to LGPLv2+.
18328         Requested by Eric Blake, for libvirt.
18329
18330 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18331
18332         bootstrap: compute gnulib_extra_files after updating build_aux
18333         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18334         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18335
18336 2011-04-05  Eric Blake  <eblake@redhat.com>
18337
18338         bootstrap: preserve git whitelist item sorting
18339         * build-aux/bootstrap (sort_patterns): New function.
18340         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18341
18342 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18343
18344         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18345         sc_space_tab check.
18346
18347 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18348
18349         areadlink, areadlinkat: rewrite in terms of careadlinkat
18350         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18351         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18352         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18353         (malloc, realloc): Remove #undefs.
18354         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18355         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18356         readlink, ssize_t, stdint, unistd.
18357         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18358         areadlink, stdint.
18359
18360         careadlinkat: new module
18361         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18362         * modules/careadlinkat: New files, written by me with
18363         a review and feedback from Ben Pfaff in
18364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18365
18366 2011-04-01  Bruno Haible  <bruno@clisp.org>
18367
18368         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18369         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18370         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18371         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18372         Reported by Bruce Korb <bruce.korb@gmail.com>.
18373
18374 2011-04-01  Bruno Haible  <bruno@clisp.org>
18375
18376         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18377         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18378         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18379         * modules/wcpcpy (Depends-on): Add extensions.
18380         * modules/wcpncpy (Depends-on): Likewise.
18381         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18382         systems.
18383         * doc/posix-functions/wcpncpy.texi: Likewise.
18384         * doc/posix-functions/wcwidth.texi: Likewise.
18385
18386 2011-03-31  Eric Blake  <eblake@redhat.com>
18387
18388         nonblocking: fix mingw test failures
18389         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18390         non-blocking flag on regular file.
18391         (get_nonblocking_flag): Set errno on invalid fd.
18392         * tests/test-nonblocking.c (main): Avoid test failure on
18393         directories if fchdir is not active.
18394         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18395
18396 2011-03-31  Bruno Haible  <bruno@clisp.org>
18397
18398         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18399         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18400         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18401         Reported by Simon Josefsson <simon@josefsson.org>.
18402
18403 2011-03-31  Bruno Haible  <bruno@clisp.org>
18404         and Eric Blake  <eblake@redhat.com>
18405
18406         nonblocking: new module
18407         * modules/nonblocking: New module.
18408         * modules/nonblocking-tests: Likewise.
18409         * lib/nonblocking.h: New file.
18410         * lib/nonblocking.c: Likewise.
18411         * tests/test-nonblocking.c: New test.
18412         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18413
18414 2011-03-30  Bruno Haible  <bruno@clisp.org>
18415
18416         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18417         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18418         instead of 'printf' format for GCC >= 4.4.
18419         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18420         (fprintf, printf, vfprintf, vprintf): Declare with
18421         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18422         the system's vfprintf() function.
18423         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18424
18425 2011-03-30  Eric Blake  <eblake@redhat.com>
18426
18427         passfd: fix scoping bug
18428         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18429         before sendmsg/recvmsg.
18430
18431         passfd: standardize coding conventions
18432         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18433         can be learned at compile time.
18434         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18435         ifdefs.
18436         (sendfd, recvfd): Follow gnulib code conventions.
18437
18438         passfd: fix incorrect sendmsg arguments
18439         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18440         incorrect msg_controllen value.
18441         * modules/passfd-tests (Depends-on): Check for alarm.
18442         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18443         Reported by Bastien ROUCARIES.
18444
18445 2011-03-30  Bruno Haible  <bruno@clisp.org>
18446
18447         c-strcasestr: Relicense under LGPLv2+.
18448         * modules/c-strcasestr (License): Change to LGPLv2+.
18449         Requested by Eric Blake, for libvirt.
18450
18451 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18452
18453         * users.txt: Add libidn2.  Fix libtasn1 link.
18454
18455 2011-03-30  Jim Meyering  <meyering@redhat.com>
18456
18457         tests: readlink* ("",... fails with EINVAL on newer kernels
18458         readlink and readlinkat have typically failed with ENOENT for
18459         the invalid, empty file name,  "".  However, with the advent
18460         of linux-2.6.39, they fail with EINVAL.
18461         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18462         when operating on the empty file name.
18463         * tests/test-readlink.h (test_readlink): Likewise.
18464
18465 2011-03-29  Bruno Haible  <bruno@clisp.org>
18466
18467         Relicense some modules under LGPLv2+, for libidn2.
18468         * modules/array-mergesort (License): Change to LGPLv2+.
18469         * modules/c-strcaseeq (License): Likewise.
18470         * modules/striconveh (License): Likewise.
18471         * modules/striconveha (License): Likewise.
18472         * modules/uniconv/base (License): Likewise.
18473         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18474         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18475         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18476         * modules/unictype/base (License): Likewise.
18477         * modules/unictype/bidiclass-of (License): Likewise.
18478         * modules/unictype/category-M (License): Likewise.
18479         * modules/unictype/category-none (License): Likewise.
18480         * modules/unictype/category-of (License): Likewise.
18481         * modules/unictype/category-test (License): Likewise.
18482         * modules/unictype/category-test-withtable (License): Likewise.
18483         * modules/unictype/combining-class (License): Likewise.
18484         * modules/unictype/joiningtype-of (License): Likewise.
18485         * modules/unictype/scripts (License): Likewise.
18486         * modules/uninorm/base (License): Likewise.
18487         * modules/uninorm/canonical-decomposition (License): Likewise.
18488         * modules/uninorm/composition (License): Likewise.
18489         * modules/uninorm/decompose-internal (License): Likewise.
18490         * modules/uninorm/decomposition-table (License): Likewise.
18491         * modules/uninorm/nfc (License): Likewise.
18492         * modules/uninorm/nfd (License): Likewise.
18493         * modules/uninorm/u32-normalize (License): Likewise.
18494         * modules/unistr/base (License): Likewise.
18495         * modules/unistr/u32-cpy (License): Likewise.
18496         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18497         * modules/unistr/u32-to-u8 (License): Likewise.
18498         * modules/unistr/u32-uctomb (License): Likewise.
18499         * modules/unistr/u8-check (License): Likewise.
18500         * modules/unistr/u8-mblen (License): Likewise.
18501         * modules/unistr/u8-mbtouc (License): Likewise.
18502         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18503         * modules/unistr/u8-mbtoucr (License): Likewise.
18504         * modules/unistr/u8-prev (License): Likewise.
18505         * modules/unistr/u8-strlen (License): Likewise.
18506         * modules/unistr/u8-to-u32 (License): Likewise.
18507         * modules/unistr/u8-uctomb (License): Likewise.
18508         * modules/unitypes (License): Likewise.
18509         Requested by Simon Josefsson.
18510
18511 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18512
18513         lib-symbol-visibility: Add a notice.
18514         * modules/lib-symbol-visibility (Notice): New field.
18515
18516 2011-03-29  Bruno Haible  <bruno@clisp.org>
18517
18518         getaddrinfo: Doc fix.
18519         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18520         section "fixed in Gnulib".
18521
18522 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18523
18524         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18525         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18526
18527 2011-03-26  Bruno Haible  <bruno@clisp.org>
18528
18529         unictype/property-byname: Reduce the number of load-time relocations.
18530         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18531         (UC_PROPERTY_INDEX_*): New enumeration values.
18532         (uc_property_byname): Convert an index from the lookup table to an
18533         uc_property_t.
18534         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18535         values.
18536
18537 2011-03-26  Bruno Haible  <bruno@clisp.org>
18538
18539         unictype/property-byname: Allow omitted word separators and aliases.
18540         * lib/unictype/pr_byname.gperf: Add property names without word
18541         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18542         for 'space'.
18543
18544 2011-03-26  Bruno Haible  <bruno@clisp.org>
18545
18546         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18547         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18548         also hyphens to space.
18549         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18550         without spaces.
18551         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18552
18553 2011-03-26  Bruno Haible  <bruno@clisp.org>
18554
18555         unictype/joiningtype-byname: Recognize long names as well.
18556         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18557         a long name.
18558         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18559         unictype/joiningtype_byname.h.
18560         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18561         * lib/unictype/joiningtype_byname.gperf: New file.
18562         * modules/unictype/joiningtype-byname (Files): Add
18563         lib/unictype/joiningtype_byname.gperf.
18564         (Depends-on): Add gperf.
18565         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18566         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18567         long names.
18568
18569         Tests for module 'unictype/joiningtype-longname'.
18570         * modules/unictype/joiningtype-longname-tests: New file.
18571         * tests/unictype/test-joiningtype_longname.c: New file.
18572
18573         New module 'unictype/joiningtype-longname'.
18574         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18575         * lib/unictype/joiningtype_longname.c: New file.
18576         * modules/unictype/joiningtype-longname: New file.
18577         * modules/unictype/joiningtype-all (Depends-on): Add
18578         unictype/joiningtype-longname.
18579
18580 2011-03-26  Bruno Haible  <bruno@clisp.org>
18581
18582         unictype/bidiclass-byname: Recognize long names as well.
18583         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18584         name.
18585         * lib/unictype/bidi_byname.c: Include <string.h>,
18586         unictype/bidi_byname.h.
18587         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18588         * lib/unictype/bidi_byname.gperf: New file.
18589         * modules/unictype/bidiclass-byname (Files): Add
18590         lib/unictype/bidi_byname.gperf.
18591         (Depends-on): Add gperf.
18592         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18593         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18594         long names.
18595
18596         Tests for module 'unictype/bidiclass-longname'.
18597         * modules/unictype/bidiclass-longname-tests: New file.
18598         * tests/unictype/test-bidi_longname.c: New file.
18599
18600         New module 'unictype/bidiclass-longname'.
18601         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18602         * lib/unictype/bidi_longname.c: New file.
18603         * modules/unictype/bidiclass-longname: New file.
18604         * modules/unictype/bidiclass-all (Depends-on): Add
18605         unictype/bidiclass-longname.
18606
18607 2011-03-26  Bruno Haible  <bruno@clisp.org>
18608
18609         unictype/bidi*: Rename modules.
18610         * modules/unictype/bidiclass-all: Renamed from
18611         modules/unictype/bidicategory-all.
18612         * modules/unictype/bidiclass-name: Renamed from
18613         modules/unictype/bidiclass-name.
18614         (Description): Update.
18615         * modules/unictype/bidiclass-name-tests: Renamed from
18616         modules/unictype/bidicategory-name-tests.
18617         * modules/unictype/bidiclass-byname: Renamed from
18618         modules/unictype/bidicategory-byname.
18619         (Description): Update.
18620         * modules/unictype/bidiclass-byname-tests: Renamed from
18621         modules/unictype/bidicategory-byname-tests.
18622         * modules/unictype/bidiclass-of: Renamed from
18623         modules/unictype/bidicategory-of.
18624         (Description): Update.
18625         * modules/unictype/bidiclass-of-tests: Renamed from
18626         modules/unictype/bidicategory-of-tests.
18627         * modules/unictype/bidiclass-test: Renamed from
18628         modules/unictype/bidicategory-test.
18629         (Description): Update.
18630         * modules/unictype/bidiclass-test-tests: Renamed from
18631         modules/unictype/bidicategory-test-tests.
18632         * modules/unictype/bidicategory-all: New file, a simple redirection.
18633         * modules/unictype/bidicategory-name: Likewise.
18634         * modules/unictype/bidicategory-byname: Likewise.
18635         * modules/unictype/bidicategory-of: Likewise.
18636         * modules/unictype/bidicategory-test: Likewise.
18637         * modules/unictype/property-bidi-* (Dependencies): Update.
18638         * lib/unictype/bidi_*.c: Update comment.
18639
18640 2011-03-26  Bruno Haible  <bruno@clisp.org>
18641
18642         unictype/bidi*: Rename functions, part 2.
18643         * modules/unictype/bidicategory-name (configure.ac): Update required
18644         libunistring version.
18645         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18646
18647 2011-03-25  Bruno Haible  <bruno@clisp.org>
18648
18649         New module 'unictype/combining-class-all'.
18650         * modules/unictype/combining-class-all: New file.
18651
18652         Tests for module 'unictype/combining-class-byname'.
18653         * modules/unictype/combining-class-byname-tests: New file.
18654         * tests/unictype/test-combiningclass_byname.c: New file.
18655
18656         New module 'unictype/combining-class-byname'.
18657         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18658         * lib/unictype/combiningclass_byname.c: New file.
18659         * lib/unictype/combiningclass_byname.gperf: New file.
18660         * modules/unictype/combining-class-byname: New file.
18661
18662         Tests for module 'unictype/combining-class-longname'.
18663         * modules/unictype/combining-class-longname-tests: New file.
18664         * tests/unictype/test-combiningclass_longname.c: New file.
18665
18666         New module 'unictype/combining-class-longname'.
18667         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18668         * lib/unictype/combiningclass_longname.c: New file.
18669         * modules/unictype/combining-class-longname: New file.
18670
18671         Tests for module 'unictype/combining-class-name'.
18672         * modules/unictype/combining-class-name-tests: New file.
18673         * tests/unictype/test-combiningclass_name.c: New file.
18674
18675         New module 'unictype/combining-class-name'.
18676         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18677         * lib/unictype/combiningclass_name.c: New file.
18678         * modules/unictype/combining-class-name: New file.
18679
18680 2011-03-25  Bruno Haible  <bruno@clisp.org>
18681
18682         unictype/combining-class: Rename source files.
18683         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18684         of unictype/combining.h.
18685         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18686         Update.
18687         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18688         * modules/unictype/combining-class (Description): Fix.
18689         (Files, Makefile.am): Update.
18690         * tests/unictype/test-combiningclass.c: Renamed from
18691         tests/unictype/test-combining.c.
18692         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18693
18694 2011-03-25  Bruno Haible  <bruno@clisp.org>
18695
18696         unictype: Update list of canonical combining classes.
18697         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18698
18699 2011-03-25  Bruno Haible  <bruno@clisp.org>
18700
18701         unictype/category-byname: Recognize long names as well.
18702         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18703         a long name.
18704         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18705         unictype/categ_byname.h.
18706         (UC_CATEGORY_INDEX_*): New enumeration values.
18707         (uc_general_category_byname): Use uc_general_category_lookup and
18708         convert from index to value.
18709         * lib/unictype/categ_byname.gperf: New file.
18710         * modules/unictype/category-byname (Files): Add
18711         lib/unictype/categ_byname.gperf.
18712         (Depends-on): Add gperf.
18713         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18714         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18715         long names.
18716
18717         Tests for module 'unictype/category-longname'.
18718         * modules/unictype/category-longname-tests: New file.
18719         * tests/unictype/test-categ_longname.c: New file.
18720
18721         New module 'unictype/category-longname'.
18722         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18723         * lib/unictype/categ_longname.c: New file.
18724         * modules/unictype/category-longname: New file.
18725         * modules/unictype/category-all (Depends-on): Add it.
18726
18727 2011-03-25  Bruno Haible  <bruno@clisp.org>
18728
18729         Tests for module 'unictype/category-LC'.
18730         * modules/unictype/category-LC-tests: New file.
18731         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18732
18733         New module 'unictype/category-LC'.
18734         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18735         (UC_CATEGORY_LC): New declaration.
18736         (UC_CASED_LETTER): New macro.
18737         * lib/gen-uni-tables.c (is_category_LC): New function.
18738         (output_categories): Also handle category LC.
18739         (UC_CATEGORY_MASK_LC): New enumeration value.
18740         (general_category_byname): Also handle category LC.
18741         * lib/unictype/categ_LC.c: New file.
18742         * lib/unictype/categ_LC.h: New file, automatically generated.
18743         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18744         category LC.
18745         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18746         * modules/unictype/category-LC: New file.
18747         * modules/unictype/category-byname (Depends-on): Add
18748         unictype/category-LC.
18749         * modules/unictype/category-all (Depends-on): Likewise.
18750
18751 2011-03-25  Eric Blake  <eblake@redhat.com>
18752
18753         xmalloc: revert yesterday's regression
18754         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18755         realloc's underlying behavior (allowing allocation of zero-size
18756         objects, especially if malloc-gnu is also in use).
18757
18758 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18759
18760         maint.mk: add missing version to VC-tag
18761         * top/maint.mk: git tag was missing actual tag name; add it.
18762
18763         valgrind: do leak checking, and exit with code 1 on error (not 0)
18764         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18765         to VALGRIND.
18766
18767 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18768
18769         posix-modules: say what it does.
18770         * posix-modules: Add a line to the --help output saying what it does.
18771
18772 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18773
18774         xmalloc: Do not leak if underlying realloc is C99 compatible.
18775         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18776         This avoids a leak on C99-based systems.  See
18777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18778
18779 2011-03-24  Eric Blake  <eblake@redhat.com>
18780
18781         realloc: document portability problem
18782         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18783         passing 0 size to realloc.
18784
18785 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18786
18787         doc: update users.txt
18788         * users.txt: Add cvsps, tmpwatch
18789
18790 2011-03-23  Matt Rice  <ratmice@gmail.com>
18791
18792         doc: update users.txt
18793         * users.txt: Add gdb.
18794
18795 2011-03-23  Jim Meyering  <meyering@redhat.com>
18796
18797         doc: update users.txt
18798         Looking through matches up to the following URL (there are still
18799         several more pages), I found several projects that use gnulib:
18800         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18801         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18802         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18803
18804 2011-03-22  Bruno Haible  <bruno@clisp.org>
18805
18806         unictype/bidi*: Rename functions.
18807         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18808         uc_bidi_class, uc_is_bidi_class): New declarations.
18809         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18810         uc_bidi_category_byname.
18811         (uc_bidi_category_byname): New function.
18812         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18813         u_bidi_category_name.
18814         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18815         (uc_bidi_category_name): New function.
18816         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18817         uc_bidi_category.
18818         (uc_bidi_category): New function.
18819         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18820         uc_is_bidi_category. Invoke uc_bidi_class.
18821         (uc_is_bidi_category): New function.
18822         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18823         instead of uc_bidi_category_byname.
18824         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18825         instead of uc_bidi_category_name.
18826         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18827         uc_bidi_category.
18828         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18829         instead of uc_is_bidi_category.
18830
18831 2011-03-21  Bruno Haible  <bruno@clisp.org>
18832
18833         New module 'unictype/joininggroup-all'.
18834         * modules/unictype/joininggroup-all: New file.
18835
18836         Tests for module 'unictype/joininggroup-of'.
18837         * modules/unictype/joininggroup-of-tests: New file.
18838         * tests/unictype/test-joininggroup_of.c: New file.
18839         * tests/unictype/test-joininggroup_of.h: New file, automatically
18840         generated by gen-uni-tables.
18841
18842         New module 'unictype/joininggroup-of'.
18843         * modules/unictype/joininggroup-of: New file.
18844         * lib/unictype/joininggroup_of.c: New file.
18845         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18846         gen-uni-tables.
18847
18848         Tests for module 'unictype/joininggroup-byname'.
18849         * modules/unictype/joininggroup-byname-tests: New file.
18850         * tests/unictype/test-joininggroup_byname.c: New file.
18851
18852         New module 'unictype/joininggroup-byname'.
18853         * modules/unictype/joininggroup-byname: New file.
18854         * lib/unictype/joininggroup_byname.c: New file.
18855         * lib/unictype/joininggroup_byname.gperf: New file.
18856
18857         Tests for module 'unictype/joininggroup-name'.
18858         * modules/unictype/joininggroup-name-tests: New file.
18859         * tests/unictype/test-joininggroup_name.c: New file.
18860
18861         New module 'unictype/joininggroup-name'.
18862         * modules/unictype/joininggroup-name: New file.
18863         * lib/unictype/joininggroup_name.c: New file.
18864         * lib/unictype/joininggroup_name.h: New file.
18865
18866         New module 'unictype/joiningtype-all'.
18867         * modules/unictype/joiningtype-all: New file.
18868
18869         Tests for module 'unictype/joiningtype-of'.
18870         * modules/unictype/joiningtype-of-tests: New file.
18871         * tests/unictype/test-joiningtype_of.c: New file.
18872         * tests/unictype/test-joiningtype_of.h: New file, automatically
18873         generated by gen-uni-tables.
18874
18875         New module 'unictype/joiningtype-of'.
18876         * modules/unictype/joiningtype-of: New file.
18877         * lib/unictype/joiningtype_of.c: New file.
18878         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18879         gen-uni-tables.
18880
18881         Tests for module 'unictype/joiningtype-byname'.
18882         * modules/unictype/joiningtype-byname-tests: New file.
18883         * tests/unictype/test-joiningtype_byname.c: New file.
18884
18885         New module 'unictype/joiningtype-byname'.
18886         * modules/unictype/joiningtype-byname: New file.
18887         * lib/unictype/joiningtype_byname.c: New file.
18888
18889         Tests for module 'unictype/joiningtype-name'.
18890         * modules/unictype/joiningtype-name-tests: New file.
18891         * tests/unictype/test-joiningtype_name.c: New file.
18892
18893         New module 'unictype/joiningtype-name'.
18894         * modules/unictype/joiningtype-name: New file.
18895         * lib/unictype/joiningtype_name.c: New file.
18896
18897         unictype: Add support for Arabic shaping properties.
18898         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18899         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18900         declarations.
18901         (UC_JOINING_GROUP_*): New enumeration values.
18902         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18903         declarations.
18904         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18905         (unicode_joining_type): New variable.
18906         (UC_JOINING_GROUP_*): New enumeration values.
18907         (unicode_joining_group): New variable.
18908         (fill_arabicshaping, joining_type_as_c_identifier,
18909         output_joining_type_test, output_joining_type,
18910         joining_group_as_c_identifier, output_joining_group_test,
18911         output_joining_group): New functions.
18912         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18913         fill_arabicshaping and output_joining_type_test, output_joining_type,
18914         output_joining_group_test, output_joining_group.
18915         Reported by Simon Josefsson.
18916
18917 2011-03-21  Jim Meyering  <meyering@redhat.com>
18918
18919         strftime: fix a bug in yesterday's change
18920         * lib/strftime.c (add): Accommodate width's initial value of -1.
18921         Otherwise, nstrftime would copy uninitialized data into
18922         the result buffer.
18923
18924 2011-03-21  Jim Meyering  <meyering@redhat.com>
18925
18926         tests: add strftime-tests module
18927         * tests/test-strftime.c: New file.
18928         * modules/strftime-tests: New module.
18929
18930 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18931
18932         strftime: don't assume a byte count fits in 'int'
18933         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18934         found this problem by static analysis, using gcc -Wstrict-overflow
18935         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18936         on an integer overflow having undefined behavior, but it turns out
18937         that the argument is a size, which might not fit in 'int' anyway,
18938
18939 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18940
18941         stdio: don't require ignore_value around fwrite
18942
18943         This patch works around libc bug 11959
18944         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18945         Without this patch, applications must often write
18946         ignore_value (fwrite (...)) even though the ignore_value is
18947         not helpful here.  It's common to write many objects, using
18948         fwrite/printf/etc., and then use ferror to detect output error.
18949
18950         I considered making this patch optional, but decided against it,
18951         because libc is obviously being inconsistent here: there is no
18952         reason libc should insist that user code must inspect fwrite
18953         return's value without also insisting that it inspect printf's,
18954         putchar's, etc.  If user code wants to have a strict style where
18955         all these functions' values are checked (so that ferror need not
18956         be checked), we could add support for that style in a new gnulib
18957         module, but in the meantime it's better to be consistent and to
18958         support common usage.
18959
18960         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18961         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18962         that we are compiling in checking mode, and if not C++, and
18963         if not already wrapping fwrite for some other reason.
18964         (fwrite): #define to rpl_fwrite if the latter is defined.
18965
18966 2011-03-20  Bruno Haible  <bruno@clisp.org>
18967
18968         verror: Fix compilation error introduced on 2011-02-13.
18969         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18970         instead of __attribute__.
18971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18972
18973 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18974             Bruno Haible  <bruno@clisp.org>
18975
18976         socklen: do not depend on sys_socket
18977         While trying to modify Emacs to use gnulib's socklen module,
18978         I discovered a circular dependency: socklen depends on sys_socket
18979         and vice versa.  Emacs can use socklen, but it does not need
18980         sys_socket because it has its own substitute for sys/socket.h.
18981         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18982         gl_TYPE_SOCKLEN_T.
18983         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18984         gl_PREREQ_SYS_H_SOCKET.
18985         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18986         gl_PREREQ_SYS_H_SOCKET.
18987         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18988         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18989         * modules/socklen (Depends-on): Do not depend on sys_socket.
18990         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18991
18992 2011-03-20  Jim Meyering  <meyering@redhat.com>
18993
18994         maint.mk: sort file names *after* new transformation
18995         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18996         prefix would have led to an unwarranted failure in GNU parted.
18997         Sort after that transformation.
18998
18999 2011-03-19  Jim Meyering  <meyering@redhat.com>
19000
19001         maint.mk: fix po-file syntax-check rule
19002         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19003         Patch by Bruno Haible.
19004
19005 2011-03-19  Bruno Haible  <bruno@clisp.org>
19006
19007         socklen: Update comment.
19008         * m4/socklen.m4: Update comment about platforms.
19009
19010 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19011             Bruno Haible  <bruno@clisp.org>
19012
19013         inet_ntop, inet_pton: Simplify.
19014         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19015         documented to provide socklen_t and we already depend on sys_socket.
19016         * modules/inet_pton (Depends-on): Likewise.
19017         * lib/arpa_inet.in.h: Adjust comment.
19018
19019 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19020             Bruno Haible  <bruno@clisp.org>
19021
19022         netdb: Simplify.
19023         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19024         documented to provide socklen_t and we already depend on sys_socket.
19025         * lib/netdb.in.h: Adjust comment.
19026
19027 2011-03-19  Bruno Haible  <bruno@clisp.org>
19028
19029         sys_socket, netdb: Document problem with socklen_t.
19030         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19031         platforms.
19032         * doc/posix-headers/netdb.texi: Likewise.
19033
19034 2011-03-18  Eric Blake  <eblake@redhat.com>
19035
19036         maint.mk: let po check work in VPATH build
19037         * top/maint.mk (po_file): Allow cfg.mk override.
19038         (sc_po_check): Allow VPATH use.
19039         Reported by Jiri Denemark.
19040
19041 2011-03-16  Jim Meyering  <meyering@redhat.com>
19042
19043         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19044         Before, you would have had to create one .x-sc_ file per rule in order
19045         to exempt offending files.  Now, you may instead use a Make variable --
19046         usually defined in cfg.mk -- whose name identifies the affected rule.
19047         * top/maint.mk (_sc_excl): Define.
19048         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19049         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19050
19051 2011-03-13  Bruno Haible  <bruno@clisp.org>
19052
19053         ignore-value tests: Avoid warnings.
19054         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19055         empty for gcc < 3.4.
19056
19057 2011-03-13  Bruno Haible  <bruno@clisp.org>
19058
19059         passfd: Fix link error on Solaris.
19060         * modules/passfd (Description): Correct.
19061         (Depends-on): Add socketlib.
19062         (Link): New section.
19063         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19064
19065 2011-03-13  Bruno Haible  <bruno@clisp.org>
19066
19067         passfd: Fix link error on AIX 5.2.
19068         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19069
19070 2011-03-13  Bruno Haible  <bruno@clisp.org>
19071
19072         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19073         * lib/sys_socket.in.h: Include <stddef.h>.
19074         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19075         CMSG_FIRSTHDR. Remove unused variable.
19076
19077 2011-03-13  Bruno Haible  <bruno@clisp.org>
19078
19079         passfd: Fix compilation error on OpenBSD.
19080         * lib/passfd.c: Include <sys/uio.h>.
19081
19082 2011-03-13  Bruno Haible  <bruno@clisp.org>
19083
19084         passfd test: Fix warnings.
19085         * tests/test-passfd.c: Include <sys/wait.h>.
19086         (main): Fix typo.
19087
19088 2011-03-13  Bruno Haible  <bruno@clisp.org>
19089
19090         passfd module, part 4, tweaks.
19091         * tests/test-passfd.c: Reorder includes.
19092         (main): Fix perror and printf calls.
19093
19094 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19095
19096         passfd module, part 4.
19097         * modules/passfd-tests: New file.
19098         * tests/test-passfd.c: New file.
19099
19100 2011-03-13  Jim Meyering  <meyering@redhat.com>
19101
19102         Makefile: rely on GNU make; derive syntax-check rule names
19103         Rather than requiring that each sc_ rule be listed as a dependent
19104         of "check", use features of GNU make to derive the list.
19105         * Makefile (syntax-check-rules): Define.
19106         (check): Depend on the new variable, not the hard-coded list.
19107
19108 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19109             Bruno Haible  <bruno@clisp.org>
19110
19111         passfd module, part 3.
19112         * lib/passfd.h (recvfd): Add a flags argument.
19113         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19114         (recvfd): Add a flags argument.
19115         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19116         exists.
19117         * modules/passfd (Depends-on): Add cloexec.
19118         Suggested by Eric Blake.
19119
19120 2011-03-13  Bruno Haible  <bruno@clisp.org>
19121
19122         passfd module, part 2, tweaks.
19123         * modules/passfd (Files): Reorder.
19124         (Depends-on): Remove errno.
19125         (Include): Remove <sys/socket.h>, <sys/un.h>.
19126         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19127         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19128         specification header. Include <sys/socket.h> always. Don't include
19129         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19130         (sendfd): Clarify that it sets errno when it fails.
19131         (recvfd): Fix specification.
19132
19133 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19134
19135         passfd module, part 2.
19136         * modules/passfd: New file.
19137         * lib/passfd.h: New file.
19138         * lib/passfd.c: New file.
19139
19140 2011-03-12  Bruno Haible  <bruno@clisp.org>
19141
19142         wcswidth, mbswidth: Avoid integer overflow.
19143         * lib/wcswidth.c: Include <limits.h>.
19144         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19145         * lib/mbswidth.c: Include <limits.h>.
19146         (mbsnwidth): Avoid 'int' overflow.
19147         Reported by Jim Meyering.
19148
19149 2011-03-12  Bruno Haible  <bruno@clisp.org>
19150
19151         futimens, utimensat: Avoid endless recursion on Solaris 10.
19152         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19153         Solaris.
19154         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19155         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19156
19157 2011-03-11  Jim Meyering  <meyering@redhat.com>
19158
19159         maint.mk: relax a regexp to accommodate other formatting styles
19160         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19161         between "ngettext" and the following "(".
19162
19163 2011-03-11  Pádraig Brady <P@draigBrady.com>
19164
19165         maint.mk: suppress a false positive warning
19166         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19167         diagnostics are marked with ngettext.
19168
19169 2011-03-10  Eric Blake  <eblake@redhat.com>
19170
19171         wchar: add explicit dependencies, for Tru64
19172         * modules/mbmemcasecoll (Depends-on): Add wchar.
19173         * modules/mbtowc (Depends-on): Likewise.
19174         * modules/vasnprintf (Depends-on): Likewise.
19175         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19176         * modules/wctomb (Depends-on): Likewise.
19177         Reported by Peter O'Gorman.
19178
19179 2011-03-08  Bruno Haible  <bruno@clisp.org>
19180
19181         passfd module, part 1, tweaks.
19182         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19183         Improve indentation. Improve AC_MSG_CHECKING messages.
19184         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19185         gl_SOCKET_FAMILIES.
19186
19187 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19188
19189         passfd module, part 1.
19190         * m4/afunix.m4: New file.
19191         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19192         sockets.
19193
19194 2011-03-08  Bruno Haible  <bruno@clisp.org>
19195
19196         regex-quote: New API.
19197         * lib/regex-quote.h: Include <stdbool.h>.
19198         (struct regex_quote_spec): New type.
19199         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19200         New declarations.
19201         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19202         'const struct regex_quote_spec *' argument.
19203         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19204         (pcre_special): New constant.
19205         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19206         New functions.
19207         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19208         'const struct regex_quote_spec *' argument.
19209         * modules/regex-quote (Depends-on): Add stdbool.
19210         * tests/test-regex-quote.c (check): Update for new API. Add test for
19211         anchored results.
19212         * NEWS: Mention the API change.
19213         Reported by Reuben Thomas and Eric Blake.
19214
19215 2011-03-06  Bruno Haible  <bruno@clisp.org>
19216
19217         regex-quote: Fix creation of POSIX extended regular expressions.
19218         * lib/regex-quote.c (ere_special): Add grouping and alternation
19219         operators.
19220
19221 2011-03-05  Bruno Haible  <bruno@clisp.org>
19222
19223         doc: Improve doc regarding autopoint vs. gnulib.
19224         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19225         disable autopoint while running autoreconf.
19226         Suggested by Ralf Wildenhues.
19227
19228 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19229
19230         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19231         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19232
19233 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19234
19235         parse-duration: remove xalloc.h dependency
19236         * lib/parse-duration.c (parse_period): handle NULL return from
19237         strdup instead of calling xstrdup().
19238         * modules/parse-duration: remove "xalloc" dependency
19239
19240 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19241
19242         bootstrap: honor m4_base when running aclocal
19243         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19244
19245 2011-03-02  Jim Meyering  <meyering@redhat.com>
19246
19247         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19248         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19249         on request from Matt Booth.
19250
19251 2011-03-01  Eric Blake  <eblake@redhat.com>
19252
19253         test-link: work on Hurd
19254         * tests/test-link.h (test_link): Hurd rejects linking directories
19255         with EISDIR instead of the POSIX-mandated EPERM.
19256
19257 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19258
19259         stdio: simplify by moving files to printf-posix, sigpipe
19260         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19261         since this symbol is needed only if printf is replaced.
19262         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19263         Require gl_ASM_SYMBOL_PREFIX.
19264         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19265         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19266         (Depends-on): Add 'raise'.
19267         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19268         * modules/stdio (Files): Remove lib/stdio-write.c,
19269         m4/asm-underscore.m4.
19270         (Depends-on): Remove 'raise'.
19271
19272         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19273         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19274         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19275         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19276
19277 2011-02-28  Bruno Haible  <bruno@clisp.org>
19278
19279         localcharset: Assume ANSI C behaviour of free().
19280         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19281         calling free().
19282         Suggested by Simon Josefsson <simon@josefsson.org>.
19283
19284 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19285             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19286             Bruno Haible  <bruno@clisp.org>  (tiny change)
19287
19288         On Cygwin, use /proc file system instead of win32 API.
19289         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19290         Win32 file names.
19291         (DllMain): Simplify by removing Cygwin specific code.
19292         (find_shared_library_fullname): Use Linux specific implementation also
19293         for Cygwin.
19294         (get_shared_library_fullname): Update accordingly.
19295         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19296         Win32 file names.
19297         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19298         Cygwin specific code.
19299
19300 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19301             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19302
19303         Fix OpenMP flag detection for various Fortran compilers.
19304         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19305         OpenMP-conditional compilation construct, to force compile
19306         failure with missing OpenMP flag.
19307         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19308
19309 2011-02-25  Eric Blake  <eblake@redhat.com>
19310
19311         strstr: expand test coverage
19312         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19313         compilation.
19314         * tests/test-memmem.c (main): Duplicate tests.
19315         * tests/test-strcasestr.c (main): Likewise.
19316         * tests/test-c-strcasestr.c (main): Likewise.
19317
19318 2011-02-25  Jim Meyering  <meyering@redhat.com>
19319
19320         maint.mk: detect missing-NL-at-EOF, too
19321         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19322         it also detects when a file lacks a newline at EOF.
19323         (require_exactly_one_NL_at_EOF_): Renamed from
19324         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19325         since people may well have .x-sc_... file names tied to the
19326         existing name.  Suggested by Eric Blake.
19327
19328 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19329
19330         dirname: move m4/dos.m4 functionality into lib/dosname.h
19331
19332         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19333         extracts symbols from it, puts them into config.h; but it's much
19334         easier to use the symbols directly.  filename.h already does this,
19335         but it disagrees with dos.m4 in some respects.  This patch
19336         introduces a different include file dosname.h that packages up
19337         dos.m4, and then later we can work on merging filename.h and
19338         dosname.h.  Applications that need only the easy-to-configure
19339         symbols should consider including dosname.h rather than dirname.h.
19340         * NEWS: Mention incompatible changes.
19341         * m4/dos.m4: Remove.
19342         * lib/dosname.h, modules/dosname: New files.
19343         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19344         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19345         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19346         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19347         Include dosname.h, not dirname.h.
19348         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19349         Include dosname.h, for definitions of symbols like ISSLASH
19350         that used to be in config.h.
19351         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19352         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19353         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19354         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19355         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19356         * modules/rmdir (Files): Likewise.
19357         * modules/stat (Files): Likewise.
19358         * modules/unlink (Files): Likewise.
19359         * modules/dirname-lgpl (Depends-on): Add dosname.
19360         * modules/lstat (Depends-on): Likewise.
19361         * modules/openat (Depends-on): Likewise.
19362         * modules/rmdir (Depends-on): Likewise.
19363         * modules/savewd (Depends-on): Likewise.
19364         * modules/stat (Depends-on): Likewise.
19365         * modules/unlink (Depends-on): Likewise.
19366         * modules/openat (Depends-on): Remove dirname-lgpl.
19367         * modules/savewd (Depends-on): Likewise.
19368         * tests/test-dirname.c: Do not use removed symbols like
19369         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19370         the remaining symbols, e.g., ISSLASH ('\\').
19371
19372 2011-02-25  Eric Blake  <eblake@redhat.com>
19373
19374         strstr: revert patches that introduced bug and pessimization
19375         * lib/str-two-way.h: Add another reference.
19376         (two_way_short_needle, two_way_long_needle): Revert changes from
19377         2011-02-24; they pessimize search speed.
19378         (critical_factorization): Partially revert changes from
19379         2010-06-22; they violate the requirement that the left half of the
19380         needle be smaller than the period of the needle.
19381
19382 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19383
19384         filenamecat: remove unnecessary dependency on dirname-lgpl
19385         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19386         is no direct dependency, just an indirect one via filenamecat-lgpl.
19387
19388         remove: remove unnecessary use of m4/dos.m4
19389         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19390         * modules/remove (FILES): Remove m4/dos.m4.
19391
19392         * lib/openat-proc.c: Don't include dirname.h; not needed.
19393
19394         backupfile: remove unnecessary use of m4/dos.m4
19395         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19396         of its symbols are used by the backupfile code.  backupfile.c does
19397         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19398         for the rare case of programs that want all their backup file
19399         names to live within 8+3 limits, and dos.m4 doesn't address that.
19400         * modules/backupfile (Files): Remove m4/dos.m4.
19401
19402 2011-02-24  Jim Meyering  <meyering@redhat.com>
19403
19404         strstr: fix a bug whereby strstr would mistakenly return NULL
19405         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19406         in period calculation.
19407         (two_way_long_needle): Likewise.
19408         The original problem was reported by Mike Stump in
19409         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19410         Ralf Wildenhues provided the short needle and haystack.
19411         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19412         Add a more involved test to trigger the bug in two_way_long_needle.
19413
19414 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19415
19416         gnulib-tool: remove use of bold display in help screen
19417         * gnulib-tool (func_usage): Do not use bold display anymore in the
19418         help screen.  That was just meant to be a temporary emphasis for a
19419         backward-incompatible change.
19420
19421 2011-02-23  Bruno Haible  <bruno@clisp.org>
19422
19423         Fix misindentation of preprocessor directives.
19424         * lib/argp-namefrob.h: Reindent preprocessor directives.
19425         * lib/getopt_int.h (struct _getopt_data): Likewise.
19426         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19427         * lib/vasnprintf.c (decode_long_double): Likewise.
19428         * tests/test-argmatch.c: Insert blank lines, for clarity.
19429         * tests/test-exclude.c: Likewise.
19430
19431 2011-02-22  Bruno Haible  <bruno@clisp.org>
19432
19433         ioctl: Fix for MacOS X in 64-bit mode.
19434         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19435         value.
19436         Suggested by Eric Blake.
19437         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19438
19439 2011-02-22  Jim Meyering  <meyering@redhat.com>
19440
19441         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19442         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19443         in lib/.
19444
19445 2011-02-22  Eric Blake  <eblake@redhat.com>
19446
19447         maint: avoid any CDPATH issue
19448         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19449
19450         maint: adjust cpp indentation for my modules, as well
19451         * Makefile (sc_cpp_indent_check): Add my name.
19452         * lib/fbufmode.c: Filter through cppi.
19453         * lib/fpurge.c: Likewise.
19454         * lib/freadable.c: Likewise.
19455         * lib/freading.c: Likewise.
19456         * lib/fwritable.c: Likewise.
19457         * lib/fwriting.c: Likewise.
19458         * lib/sigaction.c: Likewise.
19459
19460 2011-02-22  Jim Meyering  <meyering@redhat.com>
19461
19462         maint: adjust cpp indentation to reflect nesting depth
19463         I.e., in a block of code that begins with an unnested "#if",
19464         put one space between the "#" in column 1 and following token.
19465         For example,
19466         -#include <sys/vfs.h>
19467         +# include <sys/vfs.h>
19468         Do this only in .c files that are part of a module I maintain.
19469         * lib/linkat.c: Filter through cppi.
19470         * lib/nanosleep.c: Likewise.
19471         * lib/openat.c: Likewise.
19472         * lib/openat-die.c: Likewise.
19473         * lib/dup3.c: Likewise.
19474         * lib/fchownat.c: Likewise.
19475         * lib/flock.c: Likewise.
19476         * lib/fsync.c: Likewise.
19477         * lib/fts.c: Likewise.
19478         * lib/getpass.c: Likewise.
19479         * lib/gettimeofday.c: Likewise.
19480         * lib/userspec.c: Likewise.
19481         * Makefile (sc_cpp_indent_check): New rule, to check this.
19482
19483 2011-02-22  Bruno Haible  <bruno@clisp.org>
19484
19485         New module 'wctomb'.
19486         * lib/stdlib.in.h (wctomb): New declaration.
19487         * lib/wctomb.c: New file.
19488         * lib/wctomb-impl.h: New file.
19489         * m4/wctomb.m4: New file.
19490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19491         REPLACE_WCTOMB.
19492         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19493         REPLACE_WCTOMB.
19494         * modules/wctomb: New file.
19495         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19496         * doc/posix-functions/wctomb.texi: Mention the new module.
19497         * modules/wctob (Depends-on): Add wctomb.
19498
19499 2011-02-22  Bruno Haible  <bruno@clisp.org>
19500
19501         New module 'mbtowc'.
19502         * lib/stdlib.in.h (mbtowc): New declaration.
19503         * lib/mbtowc.c: New file.
19504         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19505         * m4/mbtowc.m4: New file.
19506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19507         REPLACE_MBTOWC.
19508         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19509         REPLACE_MBTOWC.
19510         * modules/mbtowc: New file.
19511         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19512         * doc/posix-functions/mbtowc.texi: Mention the new module.
19513         * modules/btowc (Depends-on): Add mbtowc.
19514
19515 2011-02-22  Bruno Haible  <bruno@clisp.org>
19516
19517         wcrtomb: Add more tests for native Windows platforms.
19518         * tests/test-wcrtomb-w32-1.sh: New file.
19519         * tests/test-wcrtomb-w32-2.sh: New file.
19520         * tests/test-wcrtomb-w32-3.sh: New file.
19521         * tests/test-wcrtomb-w32-4.sh: New file.
19522         * tests/test-wcrtomb-w32-5.sh: New file.
19523         * tests/test-wcrtomb-w32.c: New file.
19524         * modules/wcrtomb-tests (Files): Add them.
19525         (Makefile.am): Arrange to run these tests.
19526         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19527         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19528
19529 2011-02-20  Bruno Haible  <bruno@clisp.org>
19530
19531         wcrtomb: Enhance test.
19532         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19533
19534 2011-02-20  Bruno Haible  <bruno@clisp.org>
19535
19536         mbrtowc: Tiny optimization.
19537         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19538
19539 2011-02-20  Jim Meyering  <meyering@redhat.com>
19540
19541         test-exclude.c: remove unmatched #endif
19542         * tests/test-exclude.c: Remove stray #endif, left over from
19543         the change of a week ago.
19544
19545 2011-02-19  Jim Meyering  <meyering@redhat.com>
19546
19547         git-version-gen: skip "-dirty" check when appropriate
19548         * build-aux/git-version-gen: Don't run any git commands when the
19549         version string comes from .tarball-version.  Prior to this, we
19550         would run git update-index --refresh even from a just-unpacked
19551         tarball directory, and that could affect a .git/ directory in a
19552         parent of the build directory.  Reported by Mike Frysinger.
19553
19554 2011-02-19  Bruno Haible  <bruno@clisp.org>
19555
19556         unictype/property-byname: Reduce the size of the 'data' segment.
19557         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19558
19559 2011-02-19  Bruno Haible  <bruno@clisp.org>
19560
19561         unictype/scripts: Reduce the size of the 'data' segment.
19562         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19563         '%pic'.
19564         * lib/unictype/scripts_byname.gperf: Regenerated.
19565
19566 2011-02-19  Bruno Haible  <bruno@clisp.org>
19567
19568         stdint: Update documentation.
19569         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19570
19571 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19572
19573         stdint: omit redundant check for wchar.h
19574         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19575         always tests whether wchar.h exists, so remove the now-redundant test.
19576
19577 2011-02-18  Bruno Haible  <bruno@clisp.org>
19578
19579         stdint: Cut dependency to module 'wchar'.
19580         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19581         include the necessary prerequisites.
19582         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19583         * modules/stdint (Depends-on): Remove wchar.
19584         (Makefile.am): Substitute HAVE_WCHAR_H.
19585         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19586
19587 2011-02-18  Eric Blake  <eblake@redhat.com>
19588
19589         longlong: skip, rather than fail, on cross-compilation
19590         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19591         when cross-compiling; regression from 2011-02-16.
19592
19593 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19594
19595         * NEWS: Mention 2011-02-08 change to stdlib.
19596
19597 2011-02-17  Bruno Haible  <bruno@clisp.org>
19598
19599         getloadavg: Add comments about platforms.
19600         * m4/getloadavg.m4: Add comment.
19601         * lib/getloadavg.c: Likewise.
19602
19603 2011-02-17  Bruno Haible  <bruno@clisp.org>
19604
19605         getloadavg: Fix link error on Solaris 2.6.
19606         * modules/getloadavg (Link): New section.
19607         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19608         linking test-getloadavg.
19609         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19610         getloadavg.
19611
19612 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19613
19614         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19615         It was 'int', but this doesn't match the IRIX 6.5 manual.
19616         Suggested by Bruno Haible in
19617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19618
19619 2011-02-17  Bruno Haible  <bruno@clisp.org>
19620
19621         havelib: Fix comments.
19622         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19623         change.
19624
19625 2011-02-17  Bruno Haible  <bruno@clisp.org>
19626
19627         havelib: Update config.rpath.
19628         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19629
19630 2011-02-17  Bruno Haible  <bruno@clisp.org>
19631
19632         getloadavg test: Add some plausibility checks.
19633         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19634         is improbable.
19635
19636 2011-02-16  Eric Blake  <eblake@redhat.com>
19637
19638         maintainer-makefile: make syntax-check a no-op from tarballs
19639         * top/maint.mk (no-vc-detected): New rule.
19640         (local-checks-available): Use it to avoid hanging if someone tries
19641         'make syntax-check' from a tarball.  Also append to any non-syntax
19642         checks already defined in cfg.mk.
19643
19644 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19645
19646         longlong: tune, particularly for common case of c99
19647
19648         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19649         or running anything if c99, or if unsigned long long int does not
19650         work.  In either case, we know the answer without further tests.
19651         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19652         it at most once, and use its results for both long long int and
19653         unsigned long long int.  This is more likely to be efficient in
19654         the common case where the program wants to check for both long
19655         long int and unsigned long long int.
19656         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19657         since the answer is already known.
19658
19659 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19660
19661         getloadavg: set errno
19662         * lib/getloadavg.c: Set errno when returning -1.  If no other
19663         error number looks appropriate, set it to ENOSYS if the getloadavg
19664         looks like it can't possibly ever work, ENOTSUP otherwise.
19665         Suggested by Bruno Haible in
19666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19667
19668         getloadavg: trim unused parts and speed up 'configure'
19669         * NEWS: Document this.
19670         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19671         always compiled if getloadavg is absent.
19672         Move test code to ...
19673         * tests/test-getloadavg.c: New file, containing previous
19674         contents of test from lib/getloadavg.c.  It also contains
19675         suggestions by Bruno Haible in
19676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19677         * modules/getloadavg-tests: New file.
19678         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19679         Do tests in the same order as they're needed for getloadavg.c.
19680         Omit setgid-related tests that generate symbols KMEM_GROUP,
19681         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19682         Do only the tests that are needed to see whether the system has
19683         getloadavg, moving the other tests into ...
19684         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19685         NLIST_NAME_UNION; nobody should be using it.  Do not define
19686         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19687         relevant, as the user of this module shouldn't care how getloadavg
19688         is implemented.
19689
19690         getloadavg: omit unused var
19691         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19692
19693 2011-02-15  Jim Meyering  <meyering@redhat.com>
19694
19695         doc: update users.txt
19696         * users.txt: Update iwhd's URL.
19697
19698 2011-02-13  Bruno Haible  <bruno@clisp.org>
19699
19700         Consistent macro naming for macros that use GCC __attribute__.
19701         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19702         _ATTRIBUTE_NONNULL_.
19703         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19704         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19705         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19706         ATTRIBUTE_DEPRECATED.
19707         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19708         ATTRIBUTE_NORETURN.
19709         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19710         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19711         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19712         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19713         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19714         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19715         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19716         ATTRIBUTE_SENTINEL.
19717         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19718         ATTRIBUTE_RETURN_CHECK.
19719         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19720         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19721         ATTRIBUTE_NORETURN.
19722         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19723         Reported by Paul Eggert.
19724
19725 2011-02-13  Bruno Haible  <bruno@clisp.org>
19726
19727         Don't interfere with a program's definition of __attribute__.
19728         * lib/argp.h (__attribute__): Remove definition.
19729         (_GL_ATTRIBUTE_FORMAT): New macro.
19730         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19731         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19732         (_GL_ATTRIBUTE_FORMAT): New macro.
19733         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19734         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19735         GCC 3 or newer.
19736         * lib/error.h (__attribute__): Remove definition.
19737         (_GL_ATTRIBUTE_FORMAT): New macro.
19738         (error, error_at_line): Use it.
19739         * lib/hash.h (__attribute__): Remove definition.
19740         (ATTRIBUTE_WUR): Update definition. Define always.
19741         * lib/openat.h (__attribute__): Remove definition.
19742         (ATTRIBUTE_NORETURN): Update definition. Define always.
19743         * lib/sigpipe-die.h (__attribute__): Remove definition.
19744         (ATTRIBUTE_NORETURN): Update definition. Define always.
19745         * lib/vasnprintf.h (__attribute__): Remove definition.
19746         (_GL_ATTRIBUTE_FORMAT): New macro.
19747         (asnprintf, vasnprintf): Use it.
19748         * lib/xalloc.h (__attribute__): Remove definition.
19749         (ATTRIBUTE_NORETURN): Update definition. Define always.
19750         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19751         * lib/xmemdup0.h (__attribute__): Remove definition.
19752         (ATTRIBUTE_NORETURN): Update definition. Define always.
19753         * lib/xprintf.h (__attribute__): Remove definition.
19754         (_GL_ATTRIBUTE_FORMAT): New macro.
19755         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19756         * lib/xstrtol.h (__attribute__): Remove definition.
19757         (ATTRIBUTE_NORETURN): Update definition. Define always.
19758         * lib/xvasprintf.h (__attribute__): Remove definition.
19759         (_GL_ATTRIBUTE_FORMAT): New macro.
19760         (xasprintf, xvasprintf): Use it.
19761         * tests/test-argmatch.c (__attribute__): Remove definition.
19762         (ATTRIBUTE_NORETURN): Update definition. Define always.
19763         * tests/test-exclude.c (__attribute__): Remove definition.
19764         (ATTRIBUTE_NORETURN): Update definition. Define always.
19765         Reported by Paul Eggert.
19766
19767 2011-02-13  Bruno Haible  <bruno@clisp.org>
19768
19769         mbrtowc: Add more tests for native Windows platforms.
19770         * tests/test-mbrtowc-w32-1.sh: New file.
19771         * tests/test-mbrtowc-w32-2.sh: New file.
19772         * tests/test-mbrtowc-w32-3.sh: New file.
19773         * tests/test-mbrtowc-w32-4.sh: New file.
19774         * tests/test-mbrtowc-w32-5.sh: New file.
19775         * tests/test-mbrtowc-w32.c: New file.
19776         * modules/mbrtowc-tests (Files): Add them.
19777         (Makefile.am): Arrange to run these tests.
19778         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19779         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19780
19781 2011-02-13  Bruno Haible  <bruno@clisp.org>
19782
19783         mbrtowc: Work around native Windows bug.
19784         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19785         guess when no suitable locale for testing was found.
19786         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19787
19788 2011-02-13  Bruno Haible  <bruno@clisp.org>
19789
19790         mbsinit: Work around mingw bug.
19791         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19792         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19793         Windows.
19794         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19795
19796 2011-02-13  Bruno Haible  <bruno@clisp.org>
19797
19798         mbsinit: Don't crash for a NULL argument.
19799         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19800         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19801
19802 2011-02-13  Bruno Haible  <bruno@clisp.org>
19803
19804         Don't interfere with a program's definition of __attribute__.
19805         * lib/stdio.in.h (__attribute__): Remove definition.
19806         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19807         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19808         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19809         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19810         * lib/string.in.h (__attribute__): Remove definition.
19811         Reported by Paul Eggert.
19812
19813 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19814
19815         stdlib: don't get in the way of non-GCC __attribute__
19816         See thread starting at
19817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19818         Revert previous stdlib change, installing the following instead:
19819         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19820         to get in the way of a non-GCC compiler that supports __attribute__.
19821         (_GL_ATTRIBUTE_RETURN): New macro.
19822         (_Exit): Use it instead of __attribute__.
19823
19824 2011-02-12  Bruno Haible  <bruno@clisp.org>
19825
19826         quotearg test: Avoid test failure on mingw.
19827         * tests/test-quotearg.sh: Convert the locale identifier from native
19828         Windows syntax to Unix syntax.
19829
19830 2011-02-12  Bruno Haible  <bruno@clisp.org>
19831
19832         setlocale: Prefer gnulib's override over libintl's override.
19833         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19834         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19835         GNULIB_defined_setlocale is set.
19836
19837 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19838
19839         stdlib: support non-GCC __attribute__
19840
19841         Fix a serious and tricky problem encountered when attempting to
19842         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19843         5.5, but it crashed due to memory corruption on Solaris 10 with
19844         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19845         bits that are otherwise zero.  This tagging is optional inside
19846         Emacs but is preferred and is used when __attribute__ ((__aligned
19847         (8))) works, as it does with both recent-enough GCC and with Sun C
19848         5.11.  However, Sun C 5.11 is not GCC and does not #define
19849         __GNUC__ and __GNUC_MINOR__.
19850
19851         When I added the getloadavg module to Emacs, it brought in
19852         stdlib.in.h, which contained this fragment:
19853
19854            #ifndef __attribute__
19855            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19856            #  define __attribute__(Spec)   /* empty */
19857            # endif
19858            #endif
19859
19860         When files that include <stdlib.h> were compiled with Sun C 5.11,
19861         the above code disabled __attribute__ ((__aligned (8))), which
19862         caused variables to not be properly aligned, which eventually led
19863         to the pointer corruption mentioned above.  (This was a bit hard
19864         to diagnose, unfortunately.)
19865
19866         Several "#define __attribute__(X) /* empty */" code snippets need
19867         to be eradicated from Gnulib to work with non-GCC compilers that
19868         support __attribute__.  The Autoconf way to do this is to test for
19869         each kind of attribute that we want support for, and selectively
19870         enable that in source code.
19871
19872         Fix this problem just for stdlib.h, by adding a test for the
19873         __noreturn__ attribute, and change stdlib.in.h to use that test
19874         when needed.  This technique can be easily generalized to the
19875         other *.in.h files and attributes, and a similar technique can be
19876         used for *.h and *.c files.  This patch is enough to solve the
19877         problem for Emacs + getloadavg, and I thought I'd publish it for
19878         feedback before undertaking further, similar fixes in other
19879         modules.
19880
19881         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19882         because it's not needed for stdlib.h.  It merely substitutes the
19883         value directly into stdlib.h.  We may well need to #define it, or
19884         similar symbols, for other modules, but it's nice to also have an
19885         option to not #define it for applications like Emacs that do not
19886         need it.
19887
19888         * lib/stdlib.in.h (__attribute__): Do not #define.
19889         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19890         be defined only if the _Exit module is also used.
19891         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19893         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19894         platforms.
19895         * modules/_Exit (Files): Add m4/attribute.m4.
19896         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19897         * m4/attribute.m4: New file.
19898
19899 2011-02-12  Bruno Haible  <bruno@clisp.org>
19900
19901         wcsrtombs: Work around bug on native Windows.
19902         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19903         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19904         instead of len.
19905         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19906
19907 2011-02-12  Bruno Haible  <bruno@clisp.org>
19908
19909         mbsrtowcs: Work around bug on native Windows.
19910         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19911         against mingw bug.
19912         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19913
19914 2011-02-12  Bruno Haible  <bruno@clisp.org>
19915
19916         Avoid setlocale bugs in tests.
19917         * modules/btowc (Dependencies): Add setlocale.
19918         * modules/c-strcase (Dependencies): Likewise.
19919         * modules/mbmemcasecmp (Dependencies): Likewise.
19920         * modules/mbmemcasecoll (Dependencies): Likewise.
19921         * modules/mbrtowc (Dependencies): Likewise.
19922         * modules/mbscasecmp (Dependencies): Likewise.
19923         * modules/mbscasestr (Dependencies): Likewise.
19924         * modules/mbschr (Dependencies): Likewise.
19925         * modules/mbscspn (Dependencies): Likewise.
19926         * modules/mbsinit (Dependencies): Likewise.
19927         * modules/mbsncasecmp (Dependencies): Likewise.
19928         * modules/mbsnrtowcs (Dependencies): Likewise.
19929         * modules/mbspbrk (Dependencies): Likewise.
19930         * modules/mbspcasecmp (Dependencies): Likewise.
19931         * modules/mbsrchr (Dependencies): Likewise.
19932         * modules/mbsrtowcs (Dependencies): Likewise.
19933         * modules/mbsspn (Dependencies): Likewise.
19934         * modules/mbsstr (Dependencies): Likewise.
19935         * modules/nl_langinfo (Dependencies): Likewise.
19936         * modules/quotearg (Dependencies): Likewise.
19937         * modules/unicase/locale-language (Dependencies): Likewise.
19938         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19939         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19940         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19941         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19942         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19943         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19944         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19945         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19946         * modules/vasnprintf-posix (Dependencies): Likewise.
19947         * modules/wcrtomb (Dependencies): Likewise.
19948         * modules/wcsnrtombs (Dependencies): Likewise.
19949         * modules/wcsrtombs (Dependencies): Likewise.
19950
19951 2011-02-12  Bruno Haible  <bruno@clisp.org>
19952
19953         setlocale: Workaround native Windows bug.
19954         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19955         succeeds but sets LC_CTYPE to "C", report a failure.
19956         * tests/test-setlocale2.sh: New file.
19957         * tests/test-setlocale2.c: New file.
19958         * modules/setlocale-tests (Files): Add the new files.
19959         (Makefile.am): Enable test-setlocale2.sh test.
19960         * doc/posix-functions/setlocale.texi: Mention workaround.
19961
19962 2011-02-11  Bruno Haible  <bruno@clisp.org>
19963
19964         Tests for module 'setlocale'.
19965         * modules/setlocale-tests: New file.
19966         * tests/test-setlocale1.sh: New file.
19967         * tests/test-setlocale1.c: New file.
19968
19969         New module 'setlocale'.
19970         * lib/locale.in.h (setlocale): New declaration.
19971         * lib/setlocale.c: New file, based on
19972         gettext/gettext-runtime/intl/setlocale.c.
19973         * m4/setlocale.m4: New file.
19974         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19975         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19976         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19977         REPLACE_SETLOCALE.
19978         * modules/setlocale: New file.
19979         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19980         * doc/posix-functions/setlocale.texi: Mention the new module.
19981
19982 2011-02-11  Bruno Haible  <bruno@clisp.org>
19983
19984         Prepare for locale dependent tests on mingw.
19985         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19986         because it has the wrong locale encoding.
19987         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19988         French_France.1252 instead of "fr".
19989         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19990         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19991         because it has the wrong locale encoding.
19992         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19993         native Windows, try Turkish_Turkey.65001.
19994         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19995         Chinese_China.54936.
19996
19997         Prepare for locale dependent tests on mingw.
19998         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19999         differently.
20000         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20001         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20002         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20003         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20004
20005 2011-02-11  Eric Blake  <eblake@redhat.com>
20006
20007         strptime: avoid compiler warnings
20008         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20009         compiler warnings about dead code.
20010         Reported by Daniel P. Berrange.
20011
20012 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20013
20014         doc: update users.txt
20015         * users.txt: Add rcs.
20016
20017 2011-02-10  John W. Eaton  <jwe@gnu.org>
20018
20019         doc: update users.txt
20020         * users.txt: Add octave.
20021
20022 2011-02-10  Jim Meyering  <meyering@redhat.com>
20023
20024         doc: update users.txt
20025         * users.txt: Add iwhd.
20026
20027 2011-02-09  Bruno Haible  <bruno@clisp.org>
20028
20029         gnulib-tool: Make copyright notice adjustment more robust.
20030         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20031         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20032         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20033         License".
20034         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20035
20036 2011-02-06  Bruno Haible  <bruno@clisp.org>
20037
20038         New module 'towctrans'.
20039         * modules/towctrans: New file.
20040         * lib/wctype.in.h (towctrans): New declaration.
20041         * lib/towctrans.c: New file.
20042         * lib/towctrans-impl.h: New file.
20043         * m4/towctrans.m4: New file.
20044         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20045         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20046         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20047         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20048         * doc/posix-functions/towctrans.texi: Mention the new module.
20049
20050 2011-02-06  Bruno Haible  <bruno@clisp.org>
20051
20052         New module 'wctrans'.
20053         * modules/wctrans: New file.
20054         * lib/wctype.in.h (wctrans): New declaration.
20055         * lib/wctrans.c: New file.
20056         * lib/wctrans-impl.h: New file.
20057         * m4/wctrans.m4: New file.
20058         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20059         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20060         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20061         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20062         * doc/posix-functions/wctrans.texi: Mention the new module.
20063
20064 2011-02-06  Bruno Haible  <bruno@clisp.org>
20065
20066         New module 'iswctype'.
20067         * modules/iswctype: New file.
20068         * lib/wctype.in.h (iswctype): New declaration.
20069         * lib/iswctype.c: New file.
20070         * lib/iswctype-impl.h: New file.
20071         * m4/iswctype.m4: New file.
20072         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20073         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20074         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20075         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20076         * doc/posix-functions/iswctype.texi: Mention the new module and the
20077         HP-UX 11.00 problem.
20078
20079 2011-02-06  Bruno Haible  <bruno@clisp.org>
20080
20081         New module 'wctype'.
20082         * modules/wctype: Change to represent the wctype() substitute.
20083         * lib/wctype.in.h (wctype): New declaration.
20084         * lib/wctype.c: New file.
20085         * lib/wctype-impl.h: New file.
20086         * m4/wctype.m4: New file.
20087         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20088         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20089         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20090         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20091         * doc/posix-functions/wctype.texi: Mention the new module and the
20092         HP-UX 11.00 problem.
20093
20094 2011-02-06  Bruno Haible  <bruno@clisp.org>
20095
20096         wctype-h: Ensure wctype_t and wctrans_t are defined.
20097         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20098         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20099         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20100         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20101         HAVE_WCTRANS_T.
20102         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20103
20104 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20105
20106         flock: fix license typo
20107
20108         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20109         omitted.
20110
20111 2011-02-08  Bruno Haible  <bruno@clisp.org>
20112
20113         Split large sed scripts, for HP-UX sed.
20114         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20115         to avoid HP-UX limit of 99 commands, in the near future.
20116         * modules/stdlib (Makefile.am): Likewise.
20117         * modules/unistd (Makefile.am): Likewise.
20118         * modules/wchar (Makefile.am): Likewise.
20119         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20120         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20121         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20122
20123 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20124             Bruno Haible  <bruno@clisp.org>
20125
20126         stdlib: improve random_r modularization
20127         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20128         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20129         you also need the random_r module to get this material right.
20130         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20131         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20132         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20133
20134 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20135
20136         stdlib: don't depend on stdint
20137         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20138         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20139         be independent of whether stdint.h is needed.
20140         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20141         here, instead of ...
20142         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20143         struct random_data should be using the random_r module, not just
20144         the stdlib module (which wouldn't make sense: what package needs
20145         just struct random_data without also needing random_r?).
20146         * modules/stdlib (Depends-on): Remove stdint.
20147
20148         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20149         See the thread rooted at
20150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20151         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20152         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20153         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20154         __VMS)); previously it was always included (via fcntl--.h).
20155         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20156         hand; this is good enough for load averages.  Also, do not use
20157         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20158         flags directly if available and don't bother otherwise.  (Packages
20159         that need the extra reliability should use the modules that define
20160         these flags on older platforms that lack them.)
20161         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20162         fcntl-safer.
20163
20164 2011-02-08  Jim Meyering  <meyering@redhat.com>
20165
20166         di-set.h, ino-map.h: add multiple-inclusion guard
20167         Technically, the guard is required only for ino-map.h, due to its
20168         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20169         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20170         * lib/ino-map.h: Likewise.
20171
20172 2011-02-06  Bruno Haible  <bruno@clisp.org>
20173
20174         iswblank: Ensure declaration on glibc systems.
20175         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20176         * modules/iswblank (Dependencies): Add 'extensions'.
20177         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20178
20179 2011-02-06  Bruno Haible  <bruno@clisp.org>
20180
20181         New module 'iswblank'.
20182         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20183         * modules/iswblank: New file.
20184         * modules/wctype-h (Files): Remove lib/iswblank.c.
20185         (Makefile.am): Substitute GNULIB_ISWBLANK.
20186         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20187         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20188         (gl_WCTYPE_H_DEFAULTS): New macro.
20189         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20190         * modules/iswblank-tests: New file.
20191         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20192         * tests/test-wctype-h.c (main): Remove iswblank tests.
20193         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20194         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20195         of 'wctype-h'.
20196         * NEWS: Mention the change.
20197         * modules/mbchar (Depends-on): Add iswblank.
20198
20199 2011-02-08  Bruno Haible  <bruno@clisp.org>
20200
20201         di-set tests: Refactor.
20202         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20203         unnecessary includes.
20204         (ASSERT): Remove macro.
20205         (main): Make C90 compliant by avoiding variable declaration after
20206         statement.
20207         * modules/di-set-tests (Files): Add tests/macros.h.
20208
20209 2011-02-08  Bruno Haible  <bruno@clisp.org>
20210
20211         ino-map tests: Refactor.
20212         * tests/test-ino-map.c: Include ino-map.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/ino-map-tests (Files): Add tests/macros.h.
20218
20219 2011-02-08  Jim Meyering  <meyering@redhat.com>
20220
20221         di-set: add "const" to a cast
20222         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20223         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20224
20225 2011-02-06  Bruno Haible  <bruno@clisp.org>
20226
20227         Rename module 'wctype' to 'wctype-h'.
20228         * modules/wctype-h: Renamed from modules/wctype.
20229         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20230         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20231         (Files, Depends-on, Makefile.am): Update.
20232         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20233         (Files, Makefile.am): Update.
20234         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20235         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20236         * doc/posix-headers/wctype.texi: Update.
20237         * doc/posix-functions/iswalnum.texi: Update.
20238         * doc/posix-functions/iswalpha.texi: Update.
20239         * doc/posix-functions/iswblank.texi: Update.
20240         * doc/posix-functions/iswcntrl.texi: Update.
20241         * doc/posix-functions/iswdigit.texi: Update.
20242         * doc/posix-functions/iswgraph.texi: Update.
20243         * doc/posix-functions/iswlower.texi: Update.
20244         * doc/posix-functions/iswprint.texi: Update.
20245         * doc/posix-functions/iswpunct.texi: Update.
20246         * doc/posix-functions/iswspace.texi: Update.
20247         * doc/posix-functions/iswupper.texi: Update.
20248         * doc/posix-functions/iswxdigit.texi: Update.
20249         * doc/posix-functions/towlower.texi: Update.
20250         * doc/posix-functions/towupper.texi: Update.
20251         * NEWS: Mention the change.
20252         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20253         * modules/mbchar (Dependencies): Likewise.
20254         * modules/mbswidth (Dependencies): Likewise.
20255         * modules/quotearg (Dependencies): Likewise.
20256         * modules/regex (Dependencies): Likewise.
20257         * modules/wcscasecmp (Dependencies): Likewise.
20258         * modules/wcsncasecmp (Dependencies): Likewise.
20259         * modules/wcwidth (Dependencies): Likewise.
20260
20261 2011-02-06  Bruno Haible  <bruno@clisp.org>
20262
20263         New module 'wcswidth'.
20264         * modules/wcswidth: New file.
20265         * lib/wchar.in.h (wcswidth): New declaration.
20266         * lib/wcswidth.c: New file.
20267         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20268         * m4/wcswidth.m4: New file.
20269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20271         REPLACE_WCSWIDTH.
20272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20273         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20274         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20275         * doc/posix-functions/wcswidth.texi: Mention the new module.
20276
20277 2011-02-06  Bruno Haible  <bruno@clisp.org>
20278
20279         New module 'wcstok'.
20280         * modules/wcstok: New file.
20281         * lib/wchar.in.h (wcstok): New declaration.
20282         * lib/wcstok.c: New file.
20283         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20284         * m4/wcstok.m4: New file.
20285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20288         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20289         * doc/posix-functions/wcstok.texi: Mention the new module.
20290
20291 2011-02-06  Bruno Haible  <bruno@clisp.org>
20292
20293         New module 'wcsstr'.
20294         * modules/wcsstr: New file.
20295         * lib/wchar.in.h (wcsstr): New declaration.
20296         * lib/wcsstr.c: New file.
20297         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20298         * m4/wcsstr.m4: New file.
20299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20302         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20303         * doc/posix-functions/wcsstr.texi: Mention the new module.
20304
20305 2011-02-06  Bruno Haible  <bruno@clisp.org>
20306
20307         New module 'wcspbrk'.
20308         * modules/wcspbrk: New file.
20309         * lib/wchar.in.h (wcspbrk): New declaration.
20310         * lib/wcspbrk.c: New file.
20311         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20312         * m4/wcspbrk.m4: New file.
20313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20316         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20317         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20318
20319 2011-02-06  Bruno Haible  <bruno@clisp.org>
20320
20321         New module 'wcsspn'.
20322         * modules/wcsspn: New file.
20323         * lib/wchar.in.h (wcsspn): New declaration.
20324         * lib/wcsspn.c: New file.
20325         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20326         * m4/wcsspn.m4: New file.
20327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20330         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20331         * doc/posix-functions/wcsspn.texi: Mention the new module.
20332
20333 2011-02-06  Bruno Haible  <bruno@clisp.org>
20334
20335         New module 'wcscspn'.
20336         * modules/wcscspn: New file.
20337         * lib/wchar.in.h (wcscspn): New declaration.
20338         * lib/wcscspn.c: New file.
20339         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20340         * m4/wcscspn.m4: New file.
20341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20344         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20345         * doc/posix-functions/wcscspn.texi: Mention the new module.
20346
20347 2011-02-06  Bruno Haible  <bruno@clisp.org>
20348
20349         New module 'wcsrchr'.
20350         * modules/wcsrchr: New file.
20351         * lib/wchar.in.h (wcsrchr): New declaration.
20352         * lib/wcsrchr.c: New file.
20353         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20354         * m4/wcsrchr.m4: New file.
20355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20358         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20359         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20360
20361 2011-02-06  Bruno Haible  <bruno@clisp.org>
20362
20363         New module 'wcschr'.
20364         * modules/wcschr: New file.
20365         * lib/wchar.in.h (wcschr): New declaration.
20366         * lib/wcschr.c: New file.
20367         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20368         * m4/wcschr.m4: New file.
20369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20372         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20373         * doc/posix-functions/wcschr.texi: Mention the new module.
20374
20375 2011-02-06  Bruno Haible  <bruno@clisp.org>
20376
20377         New module 'wcsdup'.
20378         * modules/wcsdup: New file.
20379         * lib/wchar.in.h (wcsdup): New declaration.
20380         * lib/wcsdup.c: New file.
20381         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20382         * m4/wcsdup.m4: New file.
20383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20385         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20386         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20387         * doc/posix-functions/wcsdup.texi: Mention the new module.
20388
20389 2011-02-06  Bruno Haible  <bruno@clisp.org>
20390
20391         New module 'wcsxfrm'.
20392         * modules/wcsxfrm: New file.
20393         * lib/wchar.in.h (wcsxfrm): New declaration.
20394         * lib/wcsxfrm.c: New file.
20395         * lib/wcsxfrm-impl.h: New file.
20396         * m4/wcsxfrm.m4: New file.
20397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20400         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20401         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20402
20403 2011-02-06  Bruno Haible  <bruno@clisp.org>
20404
20405         New module 'wcscoll'.
20406         * modules/wcscoll: New file.
20407         * lib/wchar.in.h (wcscoll): New declaration.
20408         * lib/wcscoll.c: New file.
20409         * lib/wcscoll-impl.h: New file.
20410         * m4/wcscoll.m4: New file.
20411         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20412         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20413         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20414         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20415         * doc/posix-functions/wcscoll.texi: Mention the new module.
20416
20417 2011-02-06  Bruno Haible  <bruno@clisp.org>
20418
20419         New module 'wcsncasecmp'.
20420         * modules/wcsncasecmp: New file.
20421         * lib/wchar.in.h (wcsncasecmp): New declaration.
20422         * lib/wcsncasecmp.c: New file.
20423         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20424         * m4/wcsncasecmp.m4: New file.
20425         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20426         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20427         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20428         HAVE_WCSNCASECMP.
20429         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20430         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20431
20432 2011-02-06  Bruno Haible  <bruno@clisp.org>
20433
20434         New module 'wcscasecmp'.
20435         * modules/wcscasecmp: New file.
20436         * lib/wchar.in.h (wcscasecmp): New declaration.
20437         * lib/wcscasecmp.c: New file.
20438         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20439         * m4/wcscasecmp.m4: New file.
20440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20443         HAVE_WCSCASECMP.
20444         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20445         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20446
20447 2011-02-05  Bruno Haible  <bruno@clisp.org>
20448
20449         New module 'wcsncmp'.
20450         * modules/wcsncmp: New file.
20451         * lib/wchar.in.h (wcsncmp): New declaration.
20452         * lib/wcsncmp.c: New file.
20453         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20454         * m4/wcsncmp.m4: New file.
20455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20458         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20459         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20460
20461 2011-02-05  Bruno Haible  <bruno@clisp.org>
20462
20463         New module 'wcscmp'.
20464         * modules/wcscmp: New file.
20465         * lib/wchar.in.h (wcscmp): New declaration.
20466         * lib/wcscmp.c: New file.
20467         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20468         * m4/wcscmp.m4: New file.
20469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20472         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20473         * doc/posix-functions/wcscmp.texi: Mention the new module.
20474
20475 2011-02-05  Bruno Haible  <bruno@clisp.org>
20476
20477         New module 'wcsncat'.
20478         * modules/wcsncat: New file.
20479         * lib/wchar.in.h (wcsncat): New declaration.
20480         * lib/wcsncat.c: New file.
20481         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20482         * m4/wcsncat.m4: New file.
20483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20486         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20487         * doc/posix-functions/wcsncat.texi: Mention the new module.
20488
20489 2011-02-05  Bruno Haible  <bruno@clisp.org>
20490
20491         New module 'wcscat'.
20492         * modules/wcscat: New file.
20493         * lib/wchar.in.h (wcscat): New declaration.
20494         * lib/wcscat.c: New file.
20495         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20496         * m4/wcscat.m4: New file.
20497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20500         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20501         * doc/posix-functions/wcscat.texi: Mention the new module.
20502
20503 2011-02-05  Bruno Haible  <bruno@clisp.org>
20504
20505         New module 'wcpncpy'.
20506         * modules/wcpncpy: New file.
20507         * lib/wchar.in.h (wcpncpy): New declaration.
20508         * lib/wcpncpy.c: New file.
20509         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20510         * m4/wcpncpy.m4: New file.
20511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20513         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20514         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20515         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20516
20517 2011-02-05  Bruno Haible  <bruno@clisp.org>
20518
20519         New module 'wcsncpy'.
20520         * modules/wcsncpy: New file.
20521         * lib/wchar.in.h (wcsncpy): New declaration.
20522         * lib/wcsncpy.c: New file.
20523         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20524         * m4/wcsncpy.m4: New file.
20525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20528         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20529         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20530
20531 2011-02-05  Bruno Haible  <bruno@clisp.org>
20532
20533         New module 'wcpcpy'.
20534         * modules/wcpcpy: New file.
20535         * lib/wchar.in.h (wcpcpy): New declaration.
20536         * lib/wcpcpy.c: New file.
20537         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20538         * m4/wcpcpy.m4: New file.
20539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20541         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20542         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20543         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20544
20545 2011-02-05  Bruno Haible  <bruno@clisp.org>
20546
20547         New module 'wcscpy'.
20548         * modules/wcscpy: New file.
20549         * lib/wchar.in.h (wcscpy): New declaration.
20550         * lib/wcscpy.c: New file.
20551         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20552         * m4/wcscpy.m4: New file.
20553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20556         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20557         * doc/posix-functions/wcscpy.texi: Mention the new module.
20558
20559 2011-02-05  Bruno Haible  <bruno@clisp.org>
20560
20561         New module 'wcsnlen'.
20562         * modules/wcsnlen: New file.
20563         * lib/wchar.in.h (wcsnlen): New declaration.
20564         * lib/wcsnlen.c: New file.
20565         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20566         * m4/wcsnlen.m4: New file.
20567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20569         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20570         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20571         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20572
20573 2011-02-05  Bruno Haible  <bruno@clisp.org>
20574
20575         New module 'wcslen'.
20576         * modules/wcslen: New file.
20577         * lib/wchar.in.h (wcslen): New declaration.
20578         * lib/wcslen.c: New file.
20579         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20580         * m4/wcslen.m4: New file.
20581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20583         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20584         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20585         * doc/posix-functions/wcslen.texi: Mention the new module.
20586
20587 2011-02-05  Bruno Haible  <bruno@clisp.org>
20588
20589         New module 'wmemset'.
20590         * modules/wmemset: New file.
20591         * lib/wchar.in.h (wmemset): New declaration.
20592         * lib/wmemset.c: New file.
20593         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20594         * m4/wmemset.m4: New file.
20595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20597         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20598         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20599         * doc/posix-functions/wmemset.texi: Mention the new module.
20600
20601 2011-02-05  Bruno Haible  <bruno@clisp.org>
20602
20603         New module 'wmemmove'.
20604         * modules/wmemmove: New file.
20605         * lib/wchar.in.h (wmemmove): New declaration.
20606         * lib/wmemmove.c: New file.
20607         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20608         * m4/wmemmove.m4: New file.
20609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20611         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20612         HAVE_WMEMMOVE.
20613         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20614         * doc/posix-functions/wmemmove.texi: Mention the new module.
20615
20616 2011-02-05  Bruno Haible  <bruno@clisp.org>
20617
20618         New module 'wmemcpy'.
20619         * modules/wmemcpy: New file.
20620         * lib/wchar.in.h (wmemcpy): New declaration.
20621         * lib/wmemcpy.c: New file.
20622         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20623         * m4/wmemcpy.m4: New file.
20624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20626         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20627         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20628         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20629
20630 2011-02-05  Bruno Haible  <bruno@clisp.org>
20631
20632         New module 'wmemcmp'.
20633         * modules/wmemcmp: New file.
20634         * lib/wchar.in.h (wmemcmp): New declaration.
20635         * lib/wmemcmp.c: New file.
20636         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20637         * m4/wmemcmp.m4: New file.
20638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20640         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20641         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20642         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20643
20644 2011-02-07  Jim Meyering  <meyering@redhat.com>
20645
20646         di-set, ino-map: new modules, from coreutils
20647         * lib/di-set.c: New file.
20648         * lib/di-set.h: Likewise.
20649         * lib/ino-map.c: Likewise.
20650         * lib/ino-map.h: Likewise.
20651         * modules/di-set: Likewise.
20652         * modules/di-set-tests: Likewise.
20653         * modules/ino-map: Likewise.
20654         * modules/ino-map-tests: Likewise.
20655         * tests/test-di-set.c: Likewise.
20656         * tests/test-ino-map.c: Likewise.
20657
20658 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20659
20660         getloadavg: merge minor changes from Emacs
20661
20662         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20663         (getloadavg): Use memset, not bzero.
20664
20665         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20666         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20667         clash (bug#86).
20668
20669 2010-11-14  Bruno Haible  <bruno@clisp.org>
20670
20671         Allow multiple gnulib generated replacements to coexist.
20672         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20673         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20674         * lib/langinfo.in.h (nl_item): Likewise.
20675         * lib/math.in.h (_NaN, NAN): Likewise.
20676         * lib/netdb.in.h (struct addrinfo): Likewise.
20677         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20678         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20679         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20680         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20681         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20682         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20683         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20684         pthread_mutexattr_init, pthread_mutexattr_settype,
20685         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20686         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20687         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20688         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20689         * lib/sched.in.h (struct sched_param): Likewise.
20690         * lib/se-selinux.in.h (security_class_t, security_context_t,
20691         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20692         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20693         lsetfilecon, fsetfilecon, security_check_context,
20694         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20695         Likewise.
20696         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20697         Likewise.
20698         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20699         _gl_function_taking_int_returning_void_t, union sigval,
20700         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20701         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20702         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20703         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20704         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20705         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20706         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20707         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20708         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20709         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20710         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20711         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20712         socklen_t, rpl_fd_isset): Likewise.
20713         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20714         * lib/sys_time.in.h (struct timeval): Likewise.
20715         * lib/sys_times.in.h (struct tms): Likewise.
20716         * lib/sys_utsname.in.h (struct utsname):
20717         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20718         * lib/unistd.in.h (getpagesize): Likewise.
20719         * lib/wchar.in.h (mbstate_t): Likewise.
20720         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20721         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20722         towlower, towupper): Likewise.
20723         Reported by Sam Steingold <sds@gnu.org>.
20724
20725 2011-02-05  Eric Blake  <eblake@redhat.com>
20726
20727         unsetenv: work around Haiku issues
20728         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20729         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20730
20731 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20732
20733         libposix: avoid calling error() within libposix
20734         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20735         is defined.
20736
20737 2011-02-05  Eric Blake  <eblake@redhat.com>
20738
20739         strerror_r-posix: port to cygwin
20740         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20741         implementation.
20742         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20743         * tests/test-strerror_r.c (main): Fix test.
20744         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20745         issue.
20746
20747 2011-02-05  Bruno Haible  <bruno@clisp.org>
20748
20749         New module 'wmemchr'.
20750         * modules/wmemchr: New file.
20751         * lib/wchar.in.h (wmemchr): New declaration.
20752         * lib/wmemchr.c: New file.
20753         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20754         * m4/wmemchr.m4: New file.
20755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20757         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20758         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20759         * doc/posix-functions/wmemchr.texi: Mention the new module.
20760
20761 2011-02-04  Eric Blake  <eblake@redhat.com>
20762
20763         fdopendir: detect FreeBSD bug
20764         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20765         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20766
20767 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20768
20769         stdbool: do not define HAVE_STDBOOL_H
20770         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20771         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20772         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20773         imported from the latest Autoconf git.  It was motivated by Emacs,
20774         which uses gnulib but does not need HAVE_STDBOOL_H.
20775
20776 2011-02-04  Bruno Haible  <bruno@clisp.org>
20777
20778         wcsnrtombs: Prepare for new module wwcsnrtombs.
20779         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20780         * lib/wcsnrtombs.c: Include it.
20781         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20782
20783         wcsrtombs: Prepare for new module wwcsrtombs.
20784         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20785         * lib/wcsrtombs.c: Include it.
20786         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20787
20788         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20789         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20790         * lib/mbsnrtowcs.c: Include it.
20791         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20792
20793         mbsrtowcs: Prepare for new module mbsrtowwcs.
20794         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20795         * lib/mbsrtowcs.c: Include it.
20796         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20797
20798 2011-02-04  Bruno Haible  <bruno@clisp.org>
20799
20800         vasnprintf: Reduce use of malloc for small format strings.
20801         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20802         (arguments): Add room for the first 7 arguments.
20803         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20804         (char_directives, u8_directives, u16_directives, u32_directives): Add
20805         room for the first 7 directives.
20806         * lib/printf-parse.c: Include <string.h>.
20807         (PRINTF_PARSE): Change memory handling code so that it uses the first
20808         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20809         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20810         Reported by Pádraig Brady <P@draigbrady.com>.
20811
20812 2011-01-31  Eric Blake  <eblake@redhat.com>
20813
20814         dup2: work around Haiku bug
20815         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20816         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20817         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20818         * tests/test-dup2.c (main): Enhance test.
20819
20820 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20821
20822         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20823         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20824         declared by eglibc 2.11.2.
20825         * lib/stdio.in.h: Likewise.
20826
20827 2011-01-31  Eric Blake  <eblake@redhat.com>
20828
20829         ignore-value: add missing test dependency
20830         * tests/test-ignore-value.c: Revert previous change; stdio.h
20831         provides off_t.
20832         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20833
20834 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20835
20836         mktime: clarify long_int width checking
20837         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20838         the top level, to make it clearer that the assumption about
20839         long_int width is being checked.  See
20840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20841
20842 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20843
20844         ignore-value: Fix self-test.
20845         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20846
20847 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20848
20849         TYPE_MAXIMUM: avoid theoretically undefined behavior
20850         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20851         negative number, which the C Standard says has undefined behavior.
20852         In practice this is not a problem, but might as well do it by the book.
20853         Reported by Rich Felker and Eric Blake; see
20854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20855         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20856         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20858         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20859         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20860         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20861
20862         mktime: #undef mktime before #defining it
20863         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20864
20865         mktime: systematically normalize tm_isdst comparisons
20866         * lib/mktime.c (isdst_differ): New function.
20867         (__mktime_internal): Use it systematically for all isdst comparisons.
20868         This completes the fix for libc BZ #6723, and removes the need for
20869         normalizing tm_isdst.  See
20870         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20871         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20872
20873         mktime: fix some integer overflow issues and sidestep the rest
20874
20875         This was prompted by a bug report by Benjamin Lindner for MinGW
20876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20877         His bug is due to signed integer overflow (0 - INT_MIN), and I
20878         I scanned through mktime.c looking for other integer overflow
20879         problems, fixing all the bugs I found.
20880
20881         Although the C Standard says the resulting code is still not safe
20882         in the presence of integer overflow, in practice it should be good
20883         enough for all real-world two's-complement implementations, except
20884         for debugging environments that deliberately trap on integer
20885         overflow (e.g., gcc -ftrapv).
20886
20887         * lib/mktime.c (WRAPV): New macro.
20888         (SHR): Also check that long_int and time_t shift right in the
20889         usual way, before using the fast-but-unportable method.
20890         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20891         used.  The code already assumed two's complement, so there's
20892         no need to test for alternatives.  All uses removed.
20893         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20894         the C standard.  Problem reported by Rich Felker in
20895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20896         (twos_complement_arithmetic): Also check long_int and time_t.
20897         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20898         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20899         (__mktime_internal): Avoid integer overflow with unary subtraction
20900         in two instances where -1 - X is an adequate replacement for -X,
20901         since the calculations are approximate.
20902
20903 2011-01-29  Eric Blake  <eblake@redhat.com>
20904
20905         mktime: avoid infinite loop
20906         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20907         type; behavior is still undefined but portable to all known targets.
20908         Reported by Rich Felker.
20909
20910 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20911
20912         rename, unlink, same-inode: Relicense.
20913         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20914         * modules/unlink (License): Likewise.
20915         * modules/same-inode (License): Likewise.
20916
20917 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20918
20919         mktime: avoid problems on NetBSD 5 / i386
20920         * lib/mktime.c (long_int): New type.  This works around a problem
20921         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20922         but time_t is 64 bits, and where I expect the existing code is
20923         wrong in some cases.
20924         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20925         (ydhms_diff): Bring back the compile-time check for wide-enough
20926         year and yday.
20927
20928         mktime: fix misspelling in comment
20929         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20930         This merges all recent glibc changes of importance.
20931
20932 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20933
20934         move-if-change: cope with concurrent mv of identical file.
20935         * build-aux/move-if-change (CMPPROG): Accept environment
20936         variable as an override for `cmp'.
20937         (usage): Document CMPPROG.
20938         Adjust comparison to drop stdout.  Cope with failure of mv if
20939         the target file exists and is identical to the source, for
20940         parallel builds.
20941         Report from H.J. Lu against binutils in PR binutils/12283.
20942
20943 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20944
20945         * users.txt: Mention sharutils.
20946
20947 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20948
20949         * users.txt: Mention OATH Toolkit.
20950
20951 2011-01-27  Bruno Haible  <bruno@clisp.org>
20952
20953         Prepare for supporting FreeBSD 10.
20954         * build-aux/config.libpath: Remove handling of freebsd1*.
20955
20956 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20957
20958         Prepare for supporting FreeBSD 10.
20959         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20960         match FreeBSD 10.0.
20961
20962 2011-01-27  Bruno Haible  <bruno@clisp.org>
20963
20964         vma-iter, get-rusage-as: Add OpenBSD support.
20965         * modules/vma-iter (configure.ac): Test for mquery.
20966         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20967         * lib/vma-iter.c: Include <sys/mman.h>.
20968         (vma_iterate): Add an implementation based on mquery().
20969         * lib/resource-ext.h (get_rusage_as): Update comments.
20970         * lib/get-rusage-as.c: Likewise.
20971         * lib/get-rusage-data.c: Likewise.
20972
20973 2011-01-26  Karl Berry  <karl@gnu.org>
20974
20975         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20976         variables to make it easier to override the makeinfo program used.
20977
20978 2011-01-26  Eric Blake  <eblake@redhat.com>
20979
20980         fcntl: work around Haiku F_DUPFD bugs
20981         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20982         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20983         cloexec bit on duplication.
20984         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20985
20986 2011-01-26  Bruno Haible  <bruno@clisp.org>
20987
20988         Enable memory leak tests on AIX.
20989         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20990         * tests/test-fprintf-posix3.c (main): Likewise.
20991
20992 2011-01-26  Bruno Haible  <bruno@clisp.org>
20993
20994         Tests for module 'get-rusage-data'.
20995         * modules/get-rusage-data-tests: New file.
20996         * tests/test-get-rusage-data.c: New file.
20997
20998         New module 'get-rusage-data'.
20999         * lib/resource-ext.h (get_rusage_data): New declaration.
21000         * lib/get-rusage-data.c: New file.
21001         * modules/get-rusage-data: New file.
21002
21003 2011-01-25  Bruno Haible  <bruno@clisp.org>
21004
21005         get-rusage-as: Allow for easier testing.
21006         * lib/resource-ext.h (get_rusage_as): Add comment.
21007         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21008         (main): New function for interactive testing.
21009
21010 2011-01-25  Bruno Haible  <bruno@clisp.org>
21011
21012         vma-iter: Treat Haiku like BeOS.
21013         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21014         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21015
21016 2011-01-25  Eric Blake  <eblake@redhat.com>
21017
21018         c-stack: fix regression on cygwin when libsigsegv is present
21019         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21020
21021 2011-01-24  Bruno Haible  <bruno@clisp.org>
21022
21023         vma-iter: Avoid empty intervals.
21024         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21025         on an empty interval.
21026
21027 2011-01-24  Jim Meyering  <meyering@redhat.com>
21028
21029         u64: remove unnecessary #include
21030         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21031
21032 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21033
21034         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21035         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21036
21037 2011-01-23  Bruno Haible  <bruno@clisp.org>
21038
21039         New module 'vma-iter'.
21040         * lib/vma-iter.h: New file.
21041         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21042         * modules/vma-iter: New file.
21043         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21044         for get_rusage_as_via_iterator.
21045         (vma_iterate_callback): New function.
21046         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21047         * modules/get-rusage-as (Depends-on): Add vma-iter.
21048
21049 2011-01-23  Bruno Haible  <bruno@clisp.org>
21050
21051         uninorm: Tweak includes.
21052         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21053         Reported by Jim Meyering.
21054
21055 2011-01-23  Bruno Haible  <bruno@clisp.org>
21056
21057         get-rusage-as: Improve on NetBSD.
21058         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21059         /proc, like on FreeBSD.
21060
21061 2011-01-23  Jim Meyering  <meyering@redhat.com>
21062
21063         xreadlink.h: remove unnecessary #include
21064         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21065
21066         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21067         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21068
21069 2011-01-23  Bruno Haible  <bruno@clisp.org>
21070
21071         get-rusage-as: Fix bug.
21072         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21073         original limit when aborting the first loop.
21074
21075 2011-01-23  Bruno Haible  <bruno@clisp.org>
21076
21077         wctype: Ensure valid C syntax.
21078         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21079         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21080
21081 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21082
21083         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21085         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21086         as they are needed only for configure's test case.
21087         This removes two unnecessary symbols from config.h.
21088
21089         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21090         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21092         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21093         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21094         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21095         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21096         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21097         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21098         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21099         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21100         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21101         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21102         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21103         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21104         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21105         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21106         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21107
21108 2011-01-21  Eric Blake  <eblake@redhat.com>
21109
21110         maintainer-makefile: work with older git for submodule check
21111         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21112         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21113         Reported by Matthias Bolte.
21114
21115         bootstrap: minor portability fixes
21116         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21117         (usage): Omit leading capital and trailing . on help phrases, per
21118         GNU Coding Standards.
21119         (check_versions, top level): Prefix messages with script name.
21120
21121 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21122
21123         bootstrap: support --no-git option
21124         * build-aux/bootstrap: Add --no-git option, to be used when
21125         --gnulib-srcdir points to the exact desired checkout.
21126
21127 2011-01-21  Eric Blake  <eblake@redhat.com>
21128
21129         strerror_r-posix: work with glibc 2.13
21130         * lib/strerror_r.c (strerror_r): Fix return type.
21131
21132 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21133             Bruno Haible  <bruno@clisp.org>
21134
21135         uN_strstr: New unit tests.
21136         * modules/unistr/u8-strstr-tests: New file.
21137         * modules/unistr/u16-strstr-tests: New file.
21138         * modules/unistr/u32-strstr-tests: New file.
21139         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21140         * tests/unistr/test-u8-strstr.c: New file.
21141         * tests/unistr/test-u16-strstr.c: New file.
21142         * tests/unistr/test-u32-strstr.c: New file.
21143
21144 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21145             Bruno Haible  <bruno@clisp.org>
21146
21147         Make uN_strstr functions O(n) worst-case.
21148         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21149         16-bit and 32-bit unit cases, use the unibyte algorithm from
21150         lib/mbsstr.c.
21151         * lib/unistr/u8-strstr.c: Include <string.h>.
21152         (UNIT_IS_UINT8_T): New macro.
21153         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21154         (U_STRLEN, U_STRNLEN): New macros.
21155         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21156         (U_STRLEN, U_STRNLEN): New macros.
21157         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21158         (configure.ac): Update required libunistring version.
21159         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21160         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21161         malloca.
21162         (configure.ac): Update required libunistring version.
21163         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21164         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21165         malloca.
21166         (configure.ac): Update required libunistring version.
21167
21168 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21169             Bruno Haible  <bruno@clisp.org>
21170
21171         Prepare for faster uN_strstr functions.
21172         * lib/str-kmp.h: Support definable UNITs.
21173         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21174         needle_len argument.
21175         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21176         * lib/mbscasestr.c (mbscasestr): Likewise.
21177
21178 2011-01-21  Pádraig Brady <P@draigBrady.com>
21179
21180         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21181         * tests/test-malloca.c (main): Unset the environment variable
21182         to greatly speed up the test.
21183         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21184         * modules/malloca-tests: Depend on unsetenv.
21185
21186 2011-01-21  Pádraig Brady <P@draigBrady.com>
21187
21188         ignore-value: remove stdint dependency
21189         * lib/ignore-value.h: Remove <stdint.h>
21190         * modules/ignore-value: Remove stdint dependency.
21191
21192 2011-01-21  Jim Meyering  <meyering@redhat.com>
21193
21194         maint.mk: adjust variable name to be consistent with other gl_ vars
21195         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21196         to be lower case.
21197
21198 2011-01-20  Jim Meyering  <meyering@redhat.com>
21199
21200         maint.mk: make "check" depend on public-submodule-commit by default
21201         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21202
21203 2011-01-20  Bruno Haible  <bruno@clisp.org>
21204
21205         mbfile, mbiter: Complete change from 2008-12-21.
21206         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21207         * m4/mbiter.m4 (gl_MBITER): Likewise.
21208
21209 2011-01-20  Jim Meyering  <meyering@redhat.com>
21210
21211         init.sh: insert space between each function name and "()"
21212         * tests/init.sh: Make it a little easier to see that a function's
21213         name is "warn_", and not "warn" when looking at the first part of
21214         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21215
21216 2011-01-20  Jim Meyering  <meyering@redhat.com>
21217
21218         mountlist: clean up code formatting
21219         * lib/mountlist.c (read_file_system_list): Split a long line,
21220         correct bracing style, use NULL in place of "(struct statfs *)0",
21221         don't parenthesize return value, add spaces around "=" and after
21222         ";-in-for-stmt".
21223
21224 2011-01-14  Markus Duft <mduft@gentoo.org>
21225
21226         mountlist: add support for Interix
21227         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21228         Apply statvfs to all entries of /dev/fs.
21229         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21230         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21231
21232 2011-01-20  Jim Meyering  <meyering@redhat.com>
21233
21234         maint.mk: improve the public-submodule-commit rule
21235         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21236         to suppress printing of its commands... unless V=1.
21237         Add git submodule's --quiet option to suppress printing of e.g.,
21238         "Entering gnulib" output.
21239         "cd" into $(srcdir) before running git submodule.
21240
21241 2011-01-20  Bruno Haible  <bruno@clisp.org>
21242
21243         include_next: Fix bug introduced on 2011-01-18.
21244         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21245         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21246         ac_cv_header_... variable if the second argument is not 'check'.
21247         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21248         gl_NEXT_HEADERS_INTERNAL.
21249
21250 2011-01-20  Bruno Haible  <bruno@clisp.org>
21251
21252         Allow the user to avoid the GNULIB_TEST_* macros.
21253         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21254         Suggested by Paul Eggert.
21255
21256 2011-01-14  Jim Meyering  <meyering@redhat.com>
21257
21258         bootstrap: avoid failure when there is no .gitmodules file
21259         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21260         has been assigned to, even when its value is the empty string.
21261         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21262         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21263         Reported by John W. Eaton <jwe@gnu.org>.
21264
21265 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21266
21267         assume <ctype.h>, ..., <time.h> exist
21268         For years gnulib has been assuming the existence of the headers
21269         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21270         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21271         them, since they don't appear to be needed.
21272         * README (Portability guidelines): Document this.
21273         * lib/flock.c: Assume <fcntl.h> exists.
21274         * lib/regex_internal.h: Assume <locale.h> exists.
21275         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21276         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21277         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21278         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21279         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21280         * m4/regex.m4 (gl_REGEX): Likewise.
21281         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21282         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21283         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21284         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21285         * tests/test-argp.c: Likewise.
21286         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21287
21288         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21289         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21290         AA_APPLE_UNIVERSAL_BUILD.  See
21291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21292         * NEWS: Document this.
21293
21294 2011-01-19  Eric Blake  <eblake@redhat.com>
21295
21296         c-stack: assume stack overflow if SA_SIGINFO unsupported
21297         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21298         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21299         sigaction will work.
21300         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21301         behavior match Linux.
21302         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21303
21304         stdbool-tests: accomodate Haiku
21305         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21306
21307         binary-io: fix O_TEXT on Haiku
21308         * modules/binary-io (Depends-on): Add fcntl-h.
21309         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21310         than blindly undefining O_TEXT.
21311         Reported by Scott McCreary.
21312
21313 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21314
21315         include_next: do not check for standard headers like stddef.h
21316
21317         I found this problem when modifying Emacs to use gnulib.
21318         I noticed that it added HAVE_STDDEF_H to config.h, even though
21319         gnulib always assumes <stddef.h> exists as per README and this
21320         symbol is unnecessary.
21321         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21322         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21323         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21324         faster for headers like stddef.h that are known to exist.
21325         (gl_CHECK_NEXT_HEADERS): Use it.
21326         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21327         rather than gl_CHECK_NEXT_HEADERS.
21328         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21329         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21330
21331 2011-01-18  Eric Blake  <eblake@redhat.com>
21332
21333         ansi-c++-opt: skip C++ dependency style if C++ is unused
21334         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21335         tests when we know C++ compilation is not desired.
21336         Reported by Scott McCreary.
21337
21338 2011-01-18  Bruno Haible  <bruno@clisp.org>
21339
21340         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21341         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21342         (main): Perform test also when getrlimit and setrlimit don't exist or
21343         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21344         limiting the address space size using setrlimit, compare the address
21345         space size before and after the the test.
21346         * tests/test-dprintf-posix2.c: Likewise.
21347         * tests/test-fprintf-posix3.sh: Update skip messages.
21348         * tests/test-dprintf-posix2.sh: Likewise.
21349         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21350         * modules/dprintf-posix-tests (Depends-on): Likewise.
21351         Reported by Bruce Korb <bkorb@gnu.org> and
21352         Gary V. Vaughan <gary@gnu.org>.
21353
21354 2011-01-18  Bruno Haible  <bruno@clisp.org>
21355
21356         get-rusage-as: Improvement for Cygwin.
21357         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21358         areas that are merely reserved.
21359
21360 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21361
21362         strftime: remove dependencies on multibyte modules
21363
21364         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21365         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21366         only if __osf__ is defined, and I suspect OSF doesn't need these
21367         other modules.  If my guess is wrong, we'll need to come up with a
21368         variant of strftime that doesn't need the multibyte modules.
21369
21370         I discovered this problem when attempting modify Emacs to use the
21371         strftime module.  With the previous gnulib, this caused Emacs to
21372         need 31 new files, ranging from lib/config.charset to
21373         m4/wint_t.m4.  This was overkill and I expect would be offputting
21374         to the Emacs maintainers.  After this change, only 6 new files are
21375         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21376         stdbool.m4, and tm_gmtoff.m4.
21377
21378         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21379         Suggested by Bruno Haible in
21380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21381         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21382         and do not check for wchar.h.
21383         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21384         (Depends-on): Remove mbrlen, mbsinit, wchar.
21385
21386 2011-01-18  Bruno Haible  <bruno@clisp.org>
21387
21388         Tests for module 'get-rusage-as'.
21389         * modules/get-rusage-as-tests: New file.
21390         * tests/test-get-rusage-as.c: New file.
21391
21392         New module 'get-rusage-as'.
21393         * modules/get-rusage-as: New file.
21394         * lib/resource-ext.h: New file.
21395         * lib/get-rusage-as.c: New file.
21396
21397 2011-01-17  Eric Blake  <eblake@redhat.com>
21398
21399         sigaction: relax license from LGPLv3+ to LGPLv2+
21400         * modules/sigaction (License): Relax to LGPLv2+.
21401
21402 2011-01-14  Bruno Haible  <bruno@clisp.org>
21403
21404         filemode: Make function declarations usable in C++ mode.
21405         * lib/filemode.h: Enclose function declarations in extern "C" block.
21406         Reported by John W. Eaton <jwe@gnu.org>.
21407
21408 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21409
21410         save-cwd: no longer include "xgetcwd.h"
21411         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21412         This avoids a compilation failure in projects that use save-cwd
21413         without also using the xgetcwd module.
21414
21415 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21416
21417         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21418         This is so that a program like Emacs, which needs only dtoastr,
21419         does not have to bother with distributing and compiling ftoastr
21420         and ldtoastr.
21421         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21422         * modules/dtoastr, modules/ldtoastr: New files.
21423         * modules/ftoastr: Now works just for 'float'.
21424         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21425         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21426         dtoastr.c, ldtoastr.c.
21427
21428 2011-01-11  Jim Meyering  <meyering@redhat.com>
21429
21430         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21431         There is no need to work around the lack of the fchdir function,
21432         since gnulib can now provide a replacement when required.
21433         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21434         * modules/save-cwd (Depends-on): Add fchdir.
21435
21436 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21437
21438         openat, save-cwd: avoid xmalloc
21439
21440         This removes a direct (but undocumented) dependency of openat on
21441         xalloc, along with an indirect dependency via save-cwd.  It also
21442         removes a dependency of save-cwd on xgetcwd, and thereby
21443         indirectly on xalloc.  This change causes the openat substitute
21444         to fall back on save_cwd when memory is tight, and for save_cwd to
21445         fail instead of dying when memory is tight, but that's good enough.
21446         Problem and initial idea for fix reported by Bastien Roucaries in
21447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21448
21449         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21450         xalloc.h (for xmalloc).
21451         (openat_proc_name): Use malloc, not xmalloc.
21452         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21453         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21454
21455         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21456         This avoids heap allocation for file names whose lengths are in
21457         the range 512..1023, with the upper bound increasing to at most
21458         4031 depending on the platform's PATH_MAX.  (We do not want
21459         pathmax.h here as it might supply a non-constant PATH_MAX.)
21460         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21461         Perhaps they should be moved to malloca.h?
21462         (OPENAT_BUFFER_SIZE): Use them.
21463
21464 2011-01-10  Bruno Haible  <bruno@clisp.org>
21465
21466         doc: Update users.txt.
21467         * users.txt: Add recutils.
21468
21469 2011-01-09  Karl Berry  <karl@gnu.org>
21470
21471         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21472
21473         * doc/configmake.texi: New file.
21474         * doc/gnulib.texi: Include it.
21475         * modules/configmake: Move documentation from here.
21476
21477 2011-01-09  Bruno Haible  <bruno@clisp.org>
21478
21479         Update to Unicode 6.0.0.
21480         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21481         (get_lbp): Update for Unicode 6.0.0.
21482         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21483         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21484         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21485         U+11001, U+11038..U+11046. Remove U+06DE.
21486         (uc_width): Fix bounds of planes.
21487         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21488         lib/uniwidth/width.c.
21489         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21490         trailing whitespace removed.
21491         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21492         without comments, but with the original copyright notice.
21493         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21494         * lib/unicase/ignorable.h: Likewise.
21495         * lib/unicase/tocasefold.h: Likewise.
21496         * lib/unicase/tolower.h: Likewise.
21497         * lib/unicase/totitle.h: Likewise.
21498         * lib/unicase/toupper.h: Likewise.
21499         * lib/unictype/bidi_of.h: Likewise.
21500         * lib/unictype/blocks.h: Likewise.
21501         * lib/unictype/categ_C.h: Likewise.
21502         * lib/unictype/categ_Cn.h: Likewise.
21503         * lib/unictype/categ_L.h: Likewise.
21504         * lib/unictype/categ_Ll.h: Likewise.
21505         * lib/unictype/categ_Lm.h: Likewise.
21506         * lib/unictype/categ_Lo.h: Likewise.
21507         * lib/unictype/categ_Lu.h: Likewise.
21508         * lib/unictype/categ_M.h: Likewise.
21509         * lib/unictype/categ_Mc.h: Likewise.
21510         * lib/unictype/categ_Me.h: Likewise.
21511         * lib/unictype/categ_Mn.h: Likewise.
21512         * lib/unictype/categ_N.h: Likewise.
21513         * lib/unictype/categ_Nd.h: Likewise.
21514         * lib/unictype/categ_No.h: Likewise.
21515         * lib/unictype/categ_P.h: Likewise.
21516         * lib/unictype/categ_Po.h: Likewise.
21517         * lib/unictype/categ_S.h: Likewise.
21518         * lib/unictype/categ_Sc.h: Likewise.
21519         * lib/unictype/categ_Sk.h: Likewise.
21520         * lib/unictype/categ_Sm.h: Likewise.
21521         * lib/unictype/categ_So.h: Likewise.
21522         * lib/unictype/categ_of.h: Likewise.
21523         * lib/unictype/combining.h: Likewise.
21524         * lib/unictype/ctype_alnum.h: Likewise.
21525         * lib/unictype/ctype_alpha.h: Likewise.
21526         * lib/unictype/ctype_graph.h: Likewise.
21527         * lib/unictype/ctype_lower.h: Likewise.
21528         * lib/unictype/ctype_print.h: Likewise.
21529         * lib/unictype/ctype_punct.h: Likewise.
21530         * lib/unictype/ctype_upper.h: Likewise.
21531         * lib/unictype/decdigit.h: Likewise.
21532         * lib/unictype/digit.h: Likewise.
21533         * lib/unictype/numeric.h: Likewise.
21534         * lib/unictype/pr_alphabetic.h: Likewise.
21535         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21536         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21537         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21538         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21539         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21540         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21541         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21542         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21543         * lib/unictype/pr_case_ignorable.h: Likewise.
21544         * lib/unictype/pr_cased.h: Likewise.
21545         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21546         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21547         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21548         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21549         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21550         * lib/unictype/pr_combining.h: Likewise.
21551         * lib/unictype/pr_composite.h: Likewise.
21552         * lib/unictype/pr_currency_symbol.h: Likewise.
21553         * lib/unictype/pr_decimal_digit.h: Likewise.
21554         * lib/unictype/pr_deprecated.h: Likewise.
21555         * lib/unictype/pr_format_control.h: Likewise.
21556         * lib/unictype/pr_grapheme_base.h: Likewise.
21557         * lib/unictype/pr_grapheme_extend.h: Likewise.
21558         * lib/unictype/pr_grapheme_link.h: Likewise.
21559         * lib/unictype/pr_id_continue.h: Likewise.
21560         * lib/unictype/pr_id_start.h: Likewise.
21561         * lib/unictype/pr_ideographic.h: Likewise.
21562         * lib/unictype/pr_lowercase.h: Likewise.
21563         * lib/unictype/pr_math.h: Likewise.
21564         * lib/unictype/pr_numeric.h: Likewise.
21565         * lib/unictype/pr_other_alphabetic.h: Likewise.
21566         * lib/unictype/pr_other_id_continue.h: Likewise.
21567         * lib/unictype/pr_other_math.h: Likewise.
21568         * lib/unictype/pr_punctuation.h: Likewise.
21569         * lib/unictype/pr_sentence_terminal.h: Likewise.
21570         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21571         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21572         * lib/unictype/pr_unified_ideograph.h: Likewise.
21573         * lib/unictype/pr_uppercase.h: Likewise.
21574         * lib/unictype/pr_xid_continue.h: Likewise.
21575         * lib/unictype/pr_xid_start.h: Likewise.
21576         * lib/unictype/scripts.h: Likewise.
21577         * lib/unictype/scripts_byname.gperf: Likewise.
21578         * lib/unictype/sy_java_ident.h: Likewise.
21579         * lib/unigbrk/gbrkprop.h: Likewise.
21580         * lib/unilbrk/lbrkprop1.h: Likewise.
21581         * lib/unilbrk/lbrkprop2.h: Likewise.
21582         * lib/uninorm/decomposition-table2.h: Likewise.
21583         * lib/uniwbrk/wbrkprop.h: Likewise.
21584         * tests/unicase/test-cased.c: Likewise.
21585         * tests/unicase/test-ignorable.c: Likewise.
21586         * tests/unicase/test-uc_tolower.c: Likewise.
21587         * tests/unicase/test-uc_totitle.c: Likewise.
21588         * tests/unicase/test-uc_toupper.c: Likewise.
21589         * tests/unictype/test-categ_C.c: Likewise.
21590         * tests/unictype/test-categ_Cn.c: Likewise.
21591         * tests/unictype/test-categ_L.c: Likewise.
21592         * tests/unictype/test-categ_Ll.c: Likewise.
21593         * tests/unictype/test-categ_Lm.c: Likewise.
21594         * tests/unictype/test-categ_Lo.c: Likewise.
21595         * tests/unictype/test-categ_Lu.c: Likewise.
21596         * tests/unictype/test-categ_M.c: Likewise.
21597         * tests/unictype/test-categ_Mc.c: Likewise.
21598         * tests/unictype/test-categ_Me.c: Likewise.
21599         * tests/unictype/test-categ_Mn.c: Likewise.
21600         * tests/unictype/test-categ_N.c: Likewise.
21601         * tests/unictype/test-categ_Nd.c: Likewise.
21602         * tests/unictype/test-categ_No.c: Likewise.
21603         * tests/unictype/test-categ_P.c: Likewise.
21604         * tests/unictype/test-categ_Po.c: Likewise.
21605         * tests/unictype/test-categ_S.c: Likewise.
21606         * tests/unictype/test-categ_Sc.c: Likewise.
21607         * tests/unictype/test-categ_Sk.c: Likewise.
21608         * tests/unictype/test-categ_Sm.c: Likewise.
21609         * tests/unictype/test-categ_So.c: Likewise.
21610         * tests/unictype/test-ctype_alnum.c: Likewise.
21611         * tests/unictype/test-ctype_alpha.c: Likewise.
21612         * tests/unictype/test-ctype_graph.c: Likewise.
21613         * tests/unictype/test-ctype_lower.c: Likewise.
21614         * tests/unictype/test-ctype_print.c: Likewise.
21615         * tests/unictype/test-ctype_punct.c: Likewise.
21616         * tests/unictype/test-ctype_upper.c: Likewise.
21617         * tests/unictype/test-decdigit.h: Likewise.
21618         * tests/unictype/test-digit.h: Likewise.
21619         * tests/unictype/test-numeric.h: Likewise.
21620         * tests/unictype/test-pr_alphabetic.c: Likewise.
21621         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21622         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21623         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21624         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21625         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21626         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21627         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21628         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21629         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21630         * tests/unictype/test-pr_cased.c: Likewise.
21631         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21632         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21633         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21634         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21635         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21636         * tests/unictype/test-pr_combining.c: Likewise.
21637         * tests/unictype/test-pr_composite.c: Likewise.
21638         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21639         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21640         * tests/unictype/test-pr_deprecated.c: Likewise.
21641         * tests/unictype/test-pr_format_control.c: Likewise.
21642         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21643         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21644         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21645         * tests/unictype/test-pr_id_continue.c: Likewise.
21646         * tests/unictype/test-pr_id_start.c: Likewise.
21647         * tests/unictype/test-pr_ideographic.c: Likewise.
21648         * tests/unictype/test-pr_lowercase.c: Likewise.
21649         * tests/unictype/test-pr_math.c: Likewise.
21650         * tests/unictype/test-pr_numeric.c: Likewise.
21651         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21652         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21653         * tests/unictype/test-pr_other_math.c: Likewise.
21654         * tests/unictype/test-pr_punctuation.c: Likewise.
21655         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21656         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21657         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21658         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21659         * tests/unictype/test-pr_uppercase.c: Likewise.
21660         * tests/unictype/test-pr_xid_continue.c: Likewise.
21661         * tests/unictype/test-pr_xid_start.c: Likewise.
21662         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21663         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21664         changes.
21665         * lib/unictype/categ_Cc.h: Likewise.
21666         * lib/unictype/categ_Cf.h: Likewise.
21667         * lib/unictype/categ_Co.h: Likewise.
21668         * lib/unictype/categ_Cs.h: Likewise.
21669         * lib/unictype/categ_Lt.h: Likewise.
21670         * lib/unictype/categ_Nl.h: Likewise.
21671         * lib/unictype/categ_Pc.h: Likewise.
21672         * lib/unictype/categ_Pd.h: Likewise.
21673         * lib/unictype/categ_Pe.h: Likewise.
21674         * lib/unictype/categ_Pf.h: Likewise.
21675         * lib/unictype/categ_Pi.h: Likewise.
21676         * lib/unictype/categ_Ps.h: Likewise.
21677         * lib/unictype/categ_Z.h: Likewise.
21678         * lib/unictype/categ_Zl.h: Likewise.
21679         * lib/unictype/categ_Zp.h: Likewise.
21680         * lib/unictype/categ_Zs.h: Likewise.
21681         * lib/unictype/ctype_blank.h: Likewise.
21682         * lib/unictype/ctype_cntrl.h: Likewise.
21683         * lib/unictype/ctype_digit.h: Likewise.
21684         * lib/unictype/ctype_space.h: Likewise.
21685         * lib/unictype/ctype_xdigit.h: Likewise.
21686         * lib/unictype/mirror.h: Likewise.
21687         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21688         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21689         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21690         * lib/unictype/pr_bidi_control.h: Likewise.
21691         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21692         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21693         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21694         * lib/unictype/pr_bidi_pdf.h: Likewise.
21695         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21696         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21697         * lib/unictype/pr_dash.h: Likewise.
21698         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21699         * lib/unictype/pr_diacritic.h: Likewise.
21700         * lib/unictype/pr_extender.h: Likewise.
21701         * lib/unictype/pr_hex_digit.h: Likewise.
21702         * lib/unictype/pr_hyphen.h: Likewise.
21703         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21704         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21705         * lib/unictype/pr_ignorable_control.h: Likewise.
21706         * lib/unictype/pr_iso_control.h: Likewise.
21707         * lib/unictype/pr_join_control.h: Likewise.
21708         * lib/unictype/pr_left_of_pair.h: Likewise.
21709         * lib/unictype/pr_line_separator.h: Likewise.
21710         * lib/unictype/pr_logical_order_exception.h: Likewise.
21711         * lib/unictype/pr_non_break.h: Likewise.
21712         * lib/unictype/pr_not_a_character.h: Likewise.
21713         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21714         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21715         * lib/unictype/pr_other_id_start.h: Likewise.
21716         * lib/unictype/pr_other_lowercase.h: Likewise.
21717         * lib/unictype/pr_other_uppercase.h: Likewise.
21718         * lib/unictype/pr_paired_punctuation.h: Likewise.
21719         * lib/unictype/pr_paragraph_separator.h: Likewise.
21720         * lib/unictype/pr_pattern_syntax.h: Likewise.
21721         * lib/unictype/pr_pattern_white_space.h: Likewise.
21722         * lib/unictype/pr_private_use.h: Likewise.
21723         * lib/unictype/pr_quotation_mark.h: Likewise.
21724         * lib/unictype/pr_radical.h: Likewise.
21725         * lib/unictype/pr_soft_dotted.h: Likewise.
21726         * lib/unictype/pr_space.h: Likewise.
21727         * lib/unictype/pr_titlecase.h: Likewise.
21728         * lib/unictype/pr_variation_selector.h: Likewise.
21729         * lib/unictype/pr_white_space.h: Likewise.
21730         * lib/unictype/pr_zero_width.h: Likewise.
21731         * lib/unictype/sy_c_ident.h: Likewise.
21732         * lib/unictype/sy_c_whitespace.h: Likewise.
21733         * lib/unictype/sy_java_whitespace.h: Likewise.
21734         * lib/uninorm/composition-table.gperf: Likewise.
21735         * lib/uninorm/decomposition-table1.h: Likewise.
21736         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21737         LB8.
21738         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21739         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21740         * modules/unictype/*: Bump version number of expected libunistring
21741         version.
21742
21743 2011-01-09  Bruno Haible  <bruno@clisp.org>
21744
21745         Update to Unicode 5.2.0.
21746         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21747         trailing whitespace removed.
21748
21749 2011-01-09  Bruno Haible  <bruno@clisp.org>
21750
21751         New Unicode character properties, from Unicode 5.2.0.
21752         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21753         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21754         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21755         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21756         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21757         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21758         uc_is_property_cased, uc_is_property_case_ignorable,
21759         uc_is_property_changes_when_lowercased,
21760         uc_is_property_changes_when_uppercased,
21761         uc_is_property_changes_when_titlecased,
21762         uc_is_property_changes_when_casefolded,
21763         uc_is_property_changes_when_casemapped): New declarations.
21764         * lib/unictype/pr_byname.gperf: Add the new properties.
21765         * modules/unictype/property-byname (Depends-on): Depend on the new
21766         properties modules.
21767         * modules/unictype/property-all (Depends-on): Likewise.
21768         * MODULES.html.sh (Unicode string functions): Add
21769         unictype/property-case-ignorable, unictype/property-cased,
21770         unictype/property-changes-when-casefolded,
21771         unictype/property-changes-when-casemapped,
21772         unictype/property-changes-when-lowercased,
21773         unictype/property-changes-when-titlecased,
21774         unictype/property-changes-when-uppercased.
21775
21776         New module 'unictype/property-changes-when-casemapped'.
21777         * modules/unictype/property-changes-when-casemapped: New file.
21778         * lib/unictype/pr_changes_when_casemapped.c: New file.
21779         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21780         generated by gen-uni-tables.
21781         * modules/unictype/property-changes-when-casemapped-tests: New file.
21782         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21783         automatically generated by gen-uni-tables.
21784
21785         New module 'unictype/property-changes-when-casefolded'.
21786         * modules/unictype/property-changes-when-casefolded: New file.
21787         * lib/unictype/pr_changes_when_casefolded.c: New file.
21788         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21789         generated by gen-uni-tables.
21790         * modules/unictype/property-changes-when-casefolded-tests: New file.
21791         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21792         automatically generated by gen-uni-tables.
21793
21794         New module 'unictype/property-changes-when-titlecased'.
21795         * modules/unictype/property-changes-when-titlecased: New file.
21796         * lib/unictype/pr_changes_when_titlecased.c: New file.
21797         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21798         generated by gen-uni-tables.
21799         * modules/unictype/property-changes-when-titlecased-tests: New file.
21800         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21801         automatically generated by gen-uni-tables.
21802
21803         New module 'unictype/property-changes-when-uppercased'.
21804         * modules/unictype/property-changes-when-uppercased: New file.
21805         * lib/unictype/pr_changes_when_uppercased.c: New file.
21806         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21807         generated by gen-uni-tables.
21808         * modules/unictype/property-changes-when-uppercased-tests: New file.
21809         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21810         automatically generated by gen-uni-tables.
21811
21812         New module 'unictype/property-changes-when-lowercased'.
21813         * modules/unictype/property-changes-when-lowercased: New file.
21814         * lib/unictype/pr_changes_when_lowercased.c: New file.
21815         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21816         generated by gen-uni-tables.
21817         * modules/unictype/property-changes-when-lowercased-tests: New file.
21818         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21819         automatically generated by gen-uni-tables.
21820
21821         New module 'unictype/property-case-ignorable'.
21822         * modules/unictype/property-case-ignorable: New file.
21823         * lib/unictype/pr_case_ignorable.c: New file.
21824         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21825         by gen-uni-tables.
21826         * modules/unictype/property-case-ignorable-tests: New file.
21827         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21828         generated by gen-uni-tables.
21829
21830         New module 'unictype/property-cased'.
21831         * modules/unictype/property-cased: New file.
21832         * lib/unictype/pr_cased.c: New file.
21833         * lib/unictype/pr_cased.h: New file, automatically generated by
21834         gen-uni-tables.
21835         * modules/unictype/property-cased-tests: New file.
21836         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21837         gen-uni-tables.
21838
21839 2011-01-09  Bruno Haible  <bruno@clisp.org>
21840
21841         Update to Unicode 5.2.0.
21842         * lib/gen-uni-tables.c (output_predicate, output_category,
21843         output_combclass, output_bidi_category, output_decimal_digit_test,
21844         output_decimal_digit, output_digit_test, output_digit,
21845         output_numeric_test, output_numeric, output_mirror, output_scripts,
21846         output_scripts_byname, output_blocks, output_ident_category): Fix
21847         comment header.
21848         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21849         get_wbp.
21850         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21851         items.
21852         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21853         Changes_When_Lowercased, Changes_When_Uppercased,
21854         Changes_When_Titlecased, Changes_When_Casefolded,
21855         Changes_When_Casemapped.
21856         (is_property_alphabetic, is_property_default_ignorable_code_point):
21857         Update for Unicode 5.2.0.
21858         (is_property_cased, is_property_case_ignorable,
21859         is_property_changes_when_lowercased,
21860         is_property_changes_when_uppercased,
21861         is_property_changes_when_titlecased,
21862         is_property_changes_when_casefolded,
21863         is_property_changes_when_casemapped): New functions.
21864         (output_properties): Output also the properties cased, case_ignorable,
21865         changes_when_lowercased, changes_when_uppercased,
21866         changes_when_titlecased, changes_when_casefolded,
21867         changes_when_casemapped.
21868         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21869         Unicode TR#11 revision 17 -> 19.
21870         (LBP_CP): New enumeration value.
21871         (LBP_*): Adjust values accordingly.
21872         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21873         TR#14 revision 22 -> 24.
21874         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21875         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21876         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21877         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21878         is_WBP_MIDLETTER.
21879         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21880         the code1 and code2 of each composition rule.
21881         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21882         * lib/unicase/ignorable.h: Likewise.
21883         * lib/unicase/tocasefold.h: Likewise.
21884         * lib/unicase/tolower.h: Likewise.
21885         * lib/unicase/totitle.h: Likewise.
21886         * lib/unicase/toupper.h: Likewise.
21887         * lib/unictype/bidi_of.h: Likewise.
21888         * lib/unictype/blocks.h: Likewise.
21889         * lib/unictype/categ_C.h: Likewise.
21890         * lib/unictype/categ_Cf.h: Likewise.
21891         * lib/unictype/categ_Cn.h: Likewise.
21892         * lib/unictype/categ_L.h: Likewise.
21893         * lib/unictype/categ_Ll.h: Likewise.
21894         * lib/unictype/categ_Lm.h: Likewise.
21895         * lib/unictype/categ_Lo.h: Likewise.
21896         * lib/unictype/categ_Lu.h: Likewise.
21897         * lib/unictype/categ_M.h: Likewise.
21898         * lib/unictype/categ_Mc.h: Likewise.
21899         * lib/unictype/categ_Mn.h: Likewise.
21900         * lib/unictype/categ_N.h: Likewise.
21901         * lib/unictype/categ_Nd.h: Likewise.
21902         * lib/unictype/categ_Nl.h: Likewise.
21903         * lib/unictype/categ_No.h: Likewise.
21904         * lib/unictype/categ_P.h: Likewise.
21905         * lib/unictype/categ_Pd.h: Likewise.
21906         * lib/unictype/categ_Po.h: Likewise.
21907         * lib/unictype/categ_S.h: Likewise.
21908         * lib/unictype/categ_Sc.h: Likewise.
21909         * lib/unictype/categ_So.h: Likewise.
21910         * lib/unictype/categ_of.h: Likewise.
21911         * lib/unictype/combining.h: Likewise.
21912         * lib/unictype/ctype_alnum.h: Likewise.
21913         * lib/unictype/ctype_alpha.h: Likewise.
21914         * lib/unictype/ctype_graph.h: Likewise.
21915         * lib/unictype/ctype_lower.h: Likewise.
21916         * lib/unictype/ctype_print.h: Likewise.
21917         * lib/unictype/ctype_punct.h: Likewise.
21918         * lib/unictype/ctype_upper.h: Likewise.
21919         * lib/unictype/decdigit.h: Likewise.
21920         * lib/unictype/digit.h: Likewise.
21921         * lib/unictype/numeric.h: Likewise.
21922         * lib/unictype/pr_alphabetic.h: Likewise.
21923         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21924         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21925         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21926         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21927         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21928         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21929         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21930         * lib/unictype/pr_combining.h: Likewise.
21931         * lib/unictype/pr_composite.h: Likewise.
21932         * lib/unictype/pr_currency_symbol.h: Likewise.
21933         * lib/unictype/pr_dash.h: Likewise.
21934         * lib/unictype/pr_decimal_digit.h: Likewise.
21935         * lib/unictype/pr_deprecated.h: Likewise.
21936         * lib/unictype/pr_diacritic.h: Likewise.
21937         * lib/unictype/pr_extender.h: Likewise.
21938         * lib/unictype/pr_grapheme_base.h: Likewise.
21939         * lib/unictype/pr_grapheme_extend.h: Likewise.
21940         * lib/unictype/pr_grapheme_link.h: Likewise.
21941         * lib/unictype/pr_id_continue.h: Likewise.
21942         * lib/unictype/pr_id_start.h: Likewise.
21943         * lib/unictype/pr_ideographic.h: Likewise.
21944         * lib/unictype/pr_ignorable_control.h: Likewise.
21945         * lib/unictype/pr_logical_order_exception.h: Likewise.
21946         * lib/unictype/pr_lowercase.h: Likewise.
21947         * lib/unictype/pr_numeric.h: Likewise.
21948         * lib/unictype/pr_other_alphabetic.h: Likewise.
21949         * lib/unictype/pr_punctuation.h: Likewise.
21950         * lib/unictype/pr_sentence_terminal.h: Likewise.
21951         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21952         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21953         * lib/unictype/pr_unified_ideograph.h: Likewise.
21954         * lib/unictype/pr_uppercase.h: Likewise.
21955         * lib/unictype/pr_xid_continue.h: Likewise.
21956         * lib/unictype/pr_xid_start.h: Likewise.
21957         * lib/unictype/pr_zero_width.h: Likewise.
21958         * lib/unictype/scripts.h: Likewise.
21959         * lib/unictype/scripts_byname.gperf: Likewise.
21960         * lib/unictype/sy_java_ident.h: Likewise.
21961         * lib/unigbrk/gbrkprop.h: Likewise.
21962         * lib/unilbrk/lbrkprop1.h: Likewise.
21963         * lib/unilbrk/lbrkprop2.h: Likewise.
21964         * lib/unilbrk/lbrktables.h: Likewise.
21965         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21966         LBP_CP. Implement rule LB30.
21967         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21968         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21969         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21970         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21971         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21972         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21973         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21974         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21975         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21976         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21977         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21978         bits instead of 16 bits in the code1 and code2 of each composition
21979         rule.
21980         (uc_composition): Update for Unicode 5.2.0.
21981         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21982         * lib/uninorm/decomposition-table2.h: Likewise.
21983         * lib/uniwbrk/wbrkprop.h: Likewise.
21984         * tests/unicase/test-cased.c: Likewise.
21985         * tests/unicase/test-ignorable.c: Likewise.
21986         * tests/unicase/test-uc_tolower.c: Likewise.
21987         * tests/unicase/test-uc_totitle.c: Likewise.
21988         * tests/unicase/test-uc_toupper.c: Likewise.
21989         * tests/unictype/test-categ_C.c: Likewise.
21990         * tests/unictype/test-categ_Cf.c: Likewise.
21991         * tests/unictype/test-categ_Cn.c: Likewise.
21992         * tests/unictype/test-categ_L.c: Likewise.
21993         * tests/unictype/test-categ_Ll.c: Likewise.
21994         * tests/unictype/test-categ_Lm.c: Likewise.
21995         * tests/unictype/test-categ_Lo.c: Likewise.
21996         * tests/unictype/test-categ_Lu.c: Likewise.
21997         * tests/unictype/test-categ_M.c: Likewise.
21998         * tests/unictype/test-categ_Mc.c: Likewise.
21999         * tests/unictype/test-categ_Mn.c: Likewise.
22000         * tests/unictype/test-categ_N.c: Likewise.
22001         * tests/unictype/test-categ_Nd.c: Likewise.
22002         * tests/unictype/test-categ_Nl.c: Likewise.
22003         * tests/unictype/test-categ_No.c: Likewise.
22004         * tests/unictype/test-categ_P.c: Likewise.
22005         * tests/unictype/test-categ_Pd.c: Likewise.
22006         * tests/unictype/test-categ_Po.c: Likewise.
22007         * tests/unictype/test-categ_S.c: Likewise.
22008         * tests/unictype/test-categ_Sc.c: Likewise.
22009         * tests/unictype/test-categ_So.c: Likewise.
22010         * tests/unictype/test-ctype_alnum.c: Likewise.
22011         * tests/unictype/test-ctype_alpha.c: Likewise.
22012         * tests/unictype/test-ctype_graph.c: Likewise.
22013         * tests/unictype/test-ctype_lower.c: Likewise.
22014         * tests/unictype/test-ctype_print.c: Likewise.
22015         * tests/unictype/test-ctype_punct.c: Likewise.
22016         * tests/unictype/test-ctype_upper.c: Likewise.
22017         * tests/unictype/test-decdigit.h: Likewise.
22018         * tests/unictype/test-digit.h: Likewise.
22019         * tests/unictype/test-numeric.h: Likewise.
22020         * tests/unictype/test-pr_alphabetic.c: Likewise.
22021         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22022         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22023         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22024         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22025         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22026         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22027         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22028         * tests/unictype/test-pr_combining.c: Likewise.
22029         * tests/unictype/test-pr_composite.c: Likewise.
22030         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22031         * tests/unictype/test-pr_dash.c: Likewise.
22032         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22033         * tests/unictype/test-pr_deprecated.c: Likewise.
22034         * tests/unictype/test-pr_diacritic.c: Likewise.
22035         * tests/unictype/test-pr_extender.c: Likewise.
22036         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22037         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22038         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22039         * tests/unictype/test-pr_id_continue.c: Likewise.
22040         * tests/unictype/test-pr_id_start.c: Likewise.
22041         * tests/unictype/test-pr_ideographic.c: Likewise.
22042         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22043         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22044         * tests/unictype/test-pr_lowercase.c: Likewise.
22045         * tests/unictype/test-pr_numeric.c: Likewise.
22046         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22047         * tests/unictype/test-pr_punctuation.c: Likewise.
22048         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22049         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22050         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22051         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22052         * tests/unictype/test-pr_uppercase.c: Likewise.
22053         * tests/unictype/test-pr_xid_continue.c: Likewise.
22054         * tests/unictype/test-pr_xid_start.c: Likewise.
22055         * tests/unictype/test-pr_zero_width.c: Likewise.
22056         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22057         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22058         changed behaviour: line breaking is now disallowed between a letter
22059         or '=' and '('.
22060         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22061         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22062         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22063         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22064         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22065         lib/uniwidth/width.c.
22066         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22067         without comments, but with the original copyright notice.
22068         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22069         changes.
22070         * lib/unictype/categ_Cc.h: Likewise.
22071         * lib/unictype/categ_Co.h: Likewise.
22072         * lib/unictype/categ_Cs.h: Likewise.
22073         * lib/unictype/categ_Lt.h: Likewise.
22074         * lib/unictype/categ_Me.h: Likewise.
22075         * lib/unictype/categ_Pc.h: Likewise.
22076         * lib/unictype/categ_Pe.h: Likewise.
22077         * lib/unictype/categ_Pf.h: Likewise.
22078         * lib/unictype/categ_Pi.h: Likewise.
22079         * lib/unictype/categ_Ps.h: Likewise.
22080         * lib/unictype/categ_Sk.h: Likewise.
22081         * lib/unictype/categ_Sm.h: Likewise.
22082         * lib/unictype/categ_Z.h: Likewise.
22083         * lib/unictype/categ_Zl.h: Likewise.
22084         * lib/unictype/categ_Zp.h: Likewise.
22085         * lib/unictype/categ_Zs.h: Likewise.
22086         * lib/unictype/ctype_blank.h: Likewise.
22087         * lib/unictype/ctype_cntrl.h: Likewise.
22088         * lib/unictype/ctype_digit.h: Likewise.
22089         * lib/unictype/ctype_space.h: Likewise.
22090         * lib/unictype/ctype_xdigit.h: Likewise.
22091         * lib/unictype/mirror.h: Likewise.
22092         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22093         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22094         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22095         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22096         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22097         * lib/unictype/pr_bidi_control.h: Likewise.
22098         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22099         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22100         * lib/unictype/pr_bidi_pdf.h: Likewise.
22101         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22102         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22103         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22104         * lib/unictype/pr_format_control.h: Likewise.
22105         * lib/unictype/pr_hex_digit.h: Likewise.
22106         * lib/unictype/pr_hyphen.h: Likewise.
22107         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22108         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22109         * lib/unictype/pr_iso_control.h: Likewise.
22110         * lib/unictype/pr_join_control.h: Likewise.
22111         * lib/unictype/pr_left_of_pair.h: Likewise.
22112         * lib/unictype/pr_line_separator.h: Likewise.
22113         * lib/unictype/pr_math.h: Likewise.
22114         * lib/unictype/pr_non_break.h: Likewise.
22115         * lib/unictype/pr_not_a_character.h: Likewise.
22116         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22117         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22118         * lib/unictype/pr_other_id_continue.h: Likewise.
22119         * lib/unictype/pr_other_id_start.h: Likewise.
22120         * lib/unictype/pr_other_lowercase.h: Likewise.
22121         * lib/unictype/pr_other_math.h: Likewise.
22122         * lib/unictype/pr_other_uppercase.h: Likewise.
22123         * lib/unictype/pr_paired_punctuation.h: Likewise.
22124         * lib/unictype/pr_paragraph_separator.h: Likewise.
22125         * lib/unictype/pr_pattern_syntax.h: Likewise.
22126         * lib/unictype/pr_pattern_white_space.h: Likewise.
22127         * lib/unictype/pr_private_use.h: Likewise.
22128         * lib/unictype/pr_quotation_mark.h: Likewise.
22129         * lib/unictype/pr_radical.h: Likewise.
22130         * lib/unictype/pr_soft_dotted.h: Likewise.
22131         * lib/unictype/pr_space.h: Likewise.
22132         * lib/unictype/pr_titlecase.h: Likewise.
22133         * lib/unictype/pr_variation_selector.h: Likewise.
22134         * lib/unictype/pr_white_space.h: Likewise.
22135         * lib/unictype/sy_c_ident.h: Likewise.
22136         * lib/unictype/sy_c_whitespace.h: Likewise.
22137         * lib/unictype/sy_java_whitespace.h: Likewise.
22138         * modules/uni*/*: Bump version number of expected libunistring version.
22139         Reported by Simon Josefsson.
22140
22141 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22142
22143         useless-if-before-free: fix typo in --help and make the internal,
22144         automatic version date update process work once again.
22145         --help output contained a NUL character instead of the
22146         backslash-zero that was intended.  Also, the "must lie within
22147         the first 8 lines" line is on line 9, and hence not getting
22148         automatically updated.
22149         * build-aux/useless-if-before-free: Fix the former by adding a
22150         backslash, and the latter by condensing the three lines of what-it-does
22151         to a single line, leaving one line of slack for the future.
22152
22153 2011-01-09  Bruno Haible  <bruno@clisp.org>
22154
22155         uniwidth/width: Fix width of U+1D173..U+1D17A.
22156         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22157         symbolic_width, output_width_property_test): New functions.
22158         (main): Invoke output_nonspacing_property, output_width_property_test.
22159         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22160         U+1D173..U+1D17A.
22161         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22162         1.
22163         * modules/uniwidth/*: Bump version number of expected libunistring
22164         version.
22165         * modules/unilbrk/*: Likewise.
22166
22167 2011-01-08  Bruno Haible  <bruno@clisp.org>
22168
22169         uninorm tests: Preserve copyright of Unicode data file.
22170         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22171         Mention modifications.
22172
22173 2011-01-08  Bruno Haible  <bruno@clisp.org>
22174
22175         gen-uni-tables: Prepare for Unicode 5.2.0.
22176         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22177         (debug_output_lbp, output_lbp): Update.
22178
22179 2011-01-08  Bruno Haible  <bruno@clisp.org>
22180
22181         unilbrk: Clarify gen-uni-tables.c code.
22182         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22183         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22184         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22185
22186 2011-01-07  Bruno Haible  <bruno@clisp.org>
22187
22188         strtod: Restore errno when successfully parsing Infinity or NaN.
22189         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22190         restore the original errno.
22191
22192 2011-01-07  Bruno Haible  <bruno@clisp.org>
22193
22194         remove test: Avoid failure on HP-UX 11.
22195         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22196
22197 2011-01-07  Bruno Haible  <bruno@clisp.org>
22198
22199         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22200         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22201         error code.
22202
22203 2011-01-07  Pádraig Brady <P@draigBrady.com>
22204
22205         ignore-value: fixup comments, and add Eric Blake
22206         as an author since he rewrote the macros.
22207         * lib/ignore-value.h (ignore_value):  State that
22208         we now support aggregates.  Also specify exactly
22209         when the GCC warn_unused_result feature was added.
22210
22211 2011-01-06  Eric Blake  <eblake@redhat.com>
22212
22213         ignore-value: support aggregate types
22214         * lib/ignore-value.h (ignore_value): Provide separate gcc
22215         definition.
22216         * modules/ignore-value-tests: New test module.
22217         * tests/test-ignore-value.c: New test.
22218
22219         maint.mk: improve sc_prohibit_strcmp regex
22220         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22221         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22222         definition of STRNEQ.
22223
22224         signal: work around Haiku issue with SIGBUS
22225         * lib/siglist.h: Add comment.
22226         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22227         strsignal's favoring of SIGSEGV.
22228         * tests/test-signal.c (main): Avoid test failure.
22229         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22230         Reported by Scott McCreary.
22231
22232         maint.mk: add pre-release check to ensure submodule commits are public
22233         * top/maint.mk (public-submodule-commit): New rule.
22234         (submodule-checks): New variable.
22235         (alpha beta stable): Depend on the variable.
22236
22237 2011-01-05  Pádraig Brady <P@draigBrady.com>
22238         and Jim Meyering  <meyering@redhat.com>
22239
22240         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22241         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22242         (ATTRIBUTE_DEPRECATED): Define.
22243         (_ignore_case): New function.
22244         (ignore_value): New macro, to replace the old function.
22245         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22246         * modules/ignore-value (Depends-on): Add stdint.
22247
22248 2011-01-04  Eric Blake  <eblake@redhat.com>
22249
22250         doc: regenerate INSTALL
22251         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22252         @firstparagraphindent support, now that autoconf dropped it.
22253         (INSTALL_PRELUDE): Reinstate old macro.
22254         * doc/install.texi: Resync from autoconf.
22255         * doc/INSTALL: Reflect recent autoconf update.
22256         * doc/INSTALL.ISO: Likewise.
22257         * doc/INSTALL.UTF-8: Likewise.
22258         Reported by Karl Berry.
22259
22260 2011-01-04  Bruce Korb  <address@hidden>
22261
22262         git-version-gen: avoid a sub-shell
22263         * build-aux/git-version-gen: Redirect stderr in `...` via
22264         "exec 2>...", rather than via an added sub-shell.
22265
22266 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22267
22268         git-version-gen: use (...) rather than sh -c '...'
22269         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22270         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22271
22272 2011-01-03  Jim Meyering  <meyering@redhat.com>
22273
22274         git-version-gen: convert leading TABs to spaces
22275         * build-aux/git-version-gen: Expand leading TABs.
22276
22277         git-version-gen: handle failed "git rev-list"
22278         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22279         from git and proceeding as if it had succeeded but printed no SHA1
22280         checksums, suppress the diagnostic and handle the failure.
22281         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22282
22283         git-version-gen: include command name in one more diagnostic
22284         * build-aux/git-version-gen: When the required .tarball-version file
22285         was missing or unreadable, you might see the diagnostic from "cat",
22286         but no trace of the name of the invoking script.  Now, you still see
22287         the diagnostic from cat, but also get one from "git-version-gen: ".
22288         Inspired by a patch from Bruce Korb.
22289
22290         update-copyright: adjust test to match changed code
22291         * tests/test-update-copyright.sh: Change test's expected output
22292         to match new actual output.
22293
22294 2011-01-02  Bruno Haible  <bruno@clisp.org>
22295
22296         getlogin_r: Avoid test failure on HP-UX 11.
22297         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22298         ERANGE when the second argument is zero.
22299         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22300         portability problem.
22301
22302 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22303
22304         * build-aux/update-copyright: doc Simon's changes
22305
22306 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22307
22308         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22309         environment variable.
22310
22311 2011-01-02  Bruno Haible  <bruno@clisp.org>
22312
22313         unigbrk: Avoid gcc warnings.
22314         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22315         unused variable.
22316         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22317         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22318         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22319         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22320         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22321         Change type of first argument to 'const char *'.
22322         (main): Remove unused variable.
22323         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22324         type of first argument to 'const char *'.
22325         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22326         Likewise.
22327         (main): Change type of variable 's'.
22328         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22329         to 'int'.
22330
22331 2011-01-02  Bruno Haible  <bruno@clisp.org>
22332
22333         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22334         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22335         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22336         bug.
22337         * lib/pwrite.c: Undo 2010-12-31 patch.
22338         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22339
22340 2011-01-02  Bruno Haible  <bruno@clisp.org>
22341
22342         pread: Fix test whether it works.
22343         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22344
22345 2011-01-02  Bruno Haible  <bruno@clisp.org>
22346
22347         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22348         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22349         ends in "6". Don't require a specific month name. Try also the locale
22350         names found on HP-UX 11 and Solaris 7.
22351
22352 2011-01-02  Bruno Haible  <bruno@clisp.org>
22353
22354         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22355         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22356         C linkage.
22357         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22358
22359 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22360
22361         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22362         for consistency, since the "cluster" term is not used elsewhere.
22363         * lib/unigbrk.in.h: Update name.
22364         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22365         * lib/unigbrk/u16-grapheme-next.c: Update name.
22366         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22367         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22368         * lib/unigbrk/u32-grapheme-next.c: Update name.
22369         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22370         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22371         * lib/unigbrk/u8-grapheme-next.c: Update name.
22372         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22373         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22374         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22375         Suggested by Bruno Haible.
22376
22377 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22378
22379         Remove module 'u8-grapheme-len' as too redundant with
22380         'u8-grapheme-next'.
22381         * modules/unigbrk/u8-grapheme-len: Delete file.
22382         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22383         * lib/unigbrk.in.h: Remove prototype for deleted function.
22384         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22385         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22386
22387         Remove module 'u16-grapheme-len' as too redundant with
22388         'u16-grapheme-next'.
22389         * modules/unigbrk/u16-grapheme-len: Delete file.
22390         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22391         * lib/unigbrk.in.h: Remove prototype for deleted function.
22392         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22393         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22394
22395         Remove module 'u32-grapheme-len' as too redundant with
22396         'u32-grapheme-next'.
22397         * modules/unigbrk/u32-grapheme-len: Delete file.
22398         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22399         * lib/unigbrk.in.h: Remove prototype for deleted function.
22400         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22401         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22402
22403         Suggested by Bruno Haible.
22404
22405 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22406
22407         * unigbrk.in.h: Fix typo: "ben" => "been".
22408         Reported by Bruno Haible.
22409
22410 2011-01-01  Jim Meyering  <meyering@redhat.com>
22411
22412         maint: update almost all copyright ranges to include 2011
22413         Run the new "make update-copyright" rule.
22414
22415 2011-01-01  Jim Meyering  <meyering@redhat.com>
22416
22417         maint: update-copyright: exempt doc/INSTALL*
22418         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22419         since they are generated.  Suggested by Bruno Haible.
22420
22421 2011-01-01  Jim Meyering  <meyering@redhat.com>
22422
22423         maint: refine the update-copyright rule
22424         * Makefile (update-copyright): Also exclude any file that includes
22425         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22426         code that merely generates the comment.
22427
22428 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22429
22430         New module 'u8-grapheme-len'.
22431         * modules/unigbrk/u8-grapheme-len: New file.
22432         * modules/unigbrk/u8-grapheme-len-tests: New file.
22433         * lib/unigbrk.in.h: Add prototype for new function.
22434         * lib/unigbrk/u8-grapheme-len.c: New file.
22435         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22436
22437         New module 'u16-grapheme-len'.
22438         * modules/unigbrk/u16-grapheme-len: New file.
22439         * modules/unigbrk/u16-grapheme-len-tests: New file.
22440         * lib/unigbrk.in.h: Add prototype for new function.
22441         * lib/unigbrk/u16-grapheme-len.c: New file.
22442         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22443
22444         New module 'u32-grapheme-len'.
22445         * modules/unigbrk/u32-grapheme-len: New file.
22446         * modules/unigbrk/u32-grapheme-len-tests: New file.
22447         * lib/unigbrk.in.h: Add prototype for new function.
22448         * lib/unigbrk/u32-grapheme-len.c: New file.
22449         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22450
22451         New module 'u8-grapheme-next'.
22452         * modules/unigbrk/u8-grapheme-next: New file.
22453         * modules/unigbrk/u8-grapheme-next-tests: New file.
22454         * lib/unigbrk.in.h: Add prototype for new function.
22455         * lib/unigbrk/u8-grapheme-next.c: New file.
22456         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22457
22458         New module 'u16-grapheme-next'.
22459         * modules/unigbrk/u16-grapheme-next: New file.
22460         * modules/unigbrk/u16-grapheme-next-tests: New file.
22461         * lib/unigbrk.in.h: Add prototype for new function.
22462         * lib/unigbrk/u16-grapheme-next.c: New file.
22463         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22464
22465         New module 'u32-grapheme-next'.
22466         * modules/unigbrk/u32-grapheme-next: New file.
22467         * modules/unigbrk/u32-grapheme-next-tests: New file.
22468         * lib/unigbrk.in.h: Add prototype for new function.
22469         * lib/unigbrk/u32-grapheme-next.c: New file.
22470         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22471
22472         New module 'u8-grapheme-prev'.
22473         * modules/unigbrk/u8-grapheme-prev: New file.
22474         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22475         * lib/unigbrk.in.h: Add prototype for new function.
22476         * lib/unigbrk/u8-grapheme-prev.c: New file.
22477         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22478
22479         New module 'u16-grapheme-prev'.
22480         * modules/unigbrk/u16-grapheme-prev: New file.
22481         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22482         * lib/unigbrk.in.h: Add prototype for new function.
22483         * lib/unigbrk/u16-grapheme-prev.c: New file.
22484         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22485
22486         New module 'u32-grapheme-prev'.
22487         * modules/unigbrk/u32-grapheme-prev: New file.
22488         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22489         * lib/unigbrk.in.h: Add prototype for new function.
22490         * lib/unigbrk/u32-grapheme-prev.c: New file.
22491         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22492
22493         New module 'u8-grapheme-breaks'.
22494         * modules/unigbrk/u8-grapheme-breaks: New file.
22495         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22496         * lib/unigbrk.in.h: Add prototype for new function.
22497         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22498         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22499
22500         New module 'u16-grapheme-breaks'.
22501         * modules/unigbrk/u16-grapheme-breaks: New file.
22502         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22503         * lib/unigbrk.in.h: Add prototype for new function.
22504         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22505         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22506
22507         New module 'u32-grapheme-breaks'.
22508         * modules/unigbrk/u32-grapheme-breaks: New file.
22509         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22510         * lib/unigbrk.in.h: Add prototype for new function.
22511         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22512         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22513
22514         New module 'ulc-grapheme-breaks'.
22515         * modules/unigbrk/ulc-grapheme-breaks: New file.
22516         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22517         * m4/locale-ar.m4: New file.
22518         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22519         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22520         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22521
22522 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22523
22524         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22525         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22526         modified how this file was generated before I initially submitted
22527         the module, but failed to regenerate it.  This meant that several
22528         of the level2 entries were wrong.
22529         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22530         Remove the division-by-2 that is folded into the table now that
22531         gbrkprop.h has been regenerated properly.  Now -1 entries are
22532         handled correctly.
22533
22534         New module 'unigbrk/uc-gbrk-prop-tests'.
22535         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22536         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22537         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22538         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22539
22540 2011-01-01  Bruno Haible  <bruno@clisp.org>
22541
22542         Avoid use of hexadecimal escapes.
22543         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22544         instead of hexadecimal escapes.
22545
22546 2011-01-01  Jim Meyering  <meyering@redhat.com>
22547
22548         maint: new rule to update copyright year ranges
22549         * Makefile (update-copyright): New rule.
22550
22551         maint: indent with TABs in Makefile
22552         * Makefile: Expand leading sequences of spaces to TABs
22553
22554         version-etc: update the copyright year it reports
22555         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22556
22557 2010-12-31  Bruno Haible  <bruno@clisp.org>
22558
22559         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22560         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22561         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22562         zero.
22563
22564 2010-12-31  Bruno Haible  <bruno@clisp.org>
22565
22566         pwrite: Work around HP-UX 11.11 bug.
22567         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22568         works and set REPLACE_PWRITE if not.
22569         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22570         function.
22571         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22572
22573 2010-12-31  Bruno Haible  <bruno@clisp.org>
22574
22575         pread: Work around HP-UX 11 bugs.
22576         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22577         and set REPLACE_PREAD if not.
22578         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22579
22580 2010-12-31  Eric Blake  <eblake@redhat.com>
22581
22582         nl_langinfo: fix YESEXPR on Irix 6.5
22583         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22584         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22585         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22586         it.
22587
22588 2010-12-31  Bruno Haible  <bruno@clisp.org>
22589
22590         iconv: Document HP-UX 11 bug.
22591         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22592
22593 2010-12-31  Bruno Haible  <bruno@clisp.org>
22594
22595         ldexpl: Fix link error on HP-UX 11.
22596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22597         LDEXPL_LIBM, using $ISNANL_LIBM.
22598
22599 2010-12-31  Eric Blake  <eblake@redhat.com>
22600
22601         ftello: avoid compilation failure with SunStudio c89
22602         * lib/ftello.c (ftello): Use lseek, not llseek.
22603
22604         tests: avoid failing coreutils tests on cygwin
22605         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22606         (create_exe_shims_): Return 0 when skipping.
22607
22608 2010-12-31  Bruno Haible  <bruno@clisp.org>
22609
22610         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22611         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22612
22613 2010-12-31  Bruno Haible  <bruno@clisp.org>
22614
22615         waitpid: Fix link error in C++ mode.
22616         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22617
22618 2010-12-31  Bruno Haible  <bruno@clisp.org>
22619
22620         isnan: Use GCC built-ins when possible.
22621         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22622         __builtin_isnan.
22623         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22624         (isnan): Define using GCC built-ins for GCC >= 4.0.
22625
22626 2010-12-31  Bruno Haible  <bruno@clisp.org>
22627
22628         isnand: Fix mistake.
22629         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22630         __builtin_isnand.
22631
22632 2010-12-31  Bruno Haible  <bruno@clisp.org>
22633
22634         open: Avoid C++ error on HP-UX 11.
22635         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22636
22637 2010-12-31  Bruno Haible  <bruno@clisp.org>
22638
22639         time_r: Add missing declarations on HP-UX 11.
22640         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22641         instead of HAVE_LOCALTIME_R.
22642         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22643         HAVE_LOCALTIME_R always.
22644         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22645         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22646         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22647         HAVE_LOCALTIME_R.
22648         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22649         * doc/posix-functions/localtime_r.texi: Likewise.
22650
22651 2010-12-29  Eric Blake  <eblake@redhat.com>
22652
22653         mountlist: tweak previous commit
22654         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22655         Reported by Paul Eggert.
22656
22657         mountlist: fix local drive detection on cygwin
22658         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22659         that works for cygwin.
22660
22661 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22662
22663         ftoastr, snprintf: ftoastr + snprintf module
22664         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22665         since the snprintf module now should be good enough here.
22666         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22667         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22668         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22669         GNULIB_SNPRINTF only for the test directory, and the latter
22670         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22671         seems to suffice by itself.
22672
22673 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22674
22675         alloca: one step towards thread-safety
22676         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22677         need for a static variable.  All callers changed.  This does not
22678         make the alloca replacement thread-safe, but it's one step.
22679
22680         tests: minor indenting change
22681         * tests/init.sh: Sync from coreutils housekeeping patch
22682         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22683         to keep lines within 80 columns.
22684
22685 2010-12-28  Jim Meyering  <meyering@redhat.com>
22686
22687         regex: don't infloop on persistent failing calloc
22688         * lib/regexec.c (build_trtable): Return failure indication upon
22689         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22690         In glibc, this was fixed for version 2.13:
22691         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22692
22693 2010-12-28  Bruno Haible  <bruno@clisp.org>
22694             Paul Eggert <eggert@cs.ucla.edu>
22695
22696         linkat: Make implementation robust against system behaviour variations.
22697         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22698         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22699         way, and to -2 if it needs a generic runtime test.
22700         * lib/linkat.c (solaris_optimized_link_immediate,
22701         solaris_optimized_link_follow): New functions.
22702         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22703         (check_same_link): Use it.
22704
22705 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22706
22707         New module 'unigbrk/base'.
22708         * modules/unigbrk/base: New file.
22709         * lib/unigbrk.in.h: New file.
22710
22711         New module 'unigbrk/uc-gbrk-prop'.
22712         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22713         * modules/unigbrk/uc-gbrk-prop: New file.
22714         * lib/unigbrk/gbrkprop.h: New file.
22715         * lib/unigbrk/uc-gbrk-prop.c: New file.
22716
22717         New module 'unigbrk/uc-is-grapheme-break'.
22718         * modules/unigbrk/uc-is-grapheme-break: New file.
22719         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22720         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22721         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22722         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22723         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22724
22725         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22726
22727 2010-12-27  Bruno Haible  <bruno@clisp.org>
22728
22729         linkat test: Avoid failure on Solaris 11 2010-11.
22730         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22731
22732 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22733
22734         utimens: work around glibc rounding bug on more platforms
22735         * lib/utimens.c (fdutimens): Work around rounding bug even if
22736         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22737         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22738
22739 2010-12-27  Bruno Haible  <bruno@clisp.org>
22740
22741         select tests: Improve comments.
22742         * tests/test-select.c (do_select): Add comments.
22743
22744 2010-12-27  Bruno Haible  <bruno@clisp.org>
22745
22746         select tests: Safer way of handling timeout.
22747         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22748         at every invocation.
22749
22750 2010-12-27  Bruno Haible  <bruno@clisp.org>
22751
22752         select tests: Use 'bool' where appropriate.
22753         * tests/test-select.c (connect_to_socket): Change argument type to
22754         'bool'.
22755
22756 2010-12-27  Bruno Haible  <bruno@clisp.org>
22757
22758         select tests: Use existing modules.
22759         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22760         (configure.ac): Don't test for unistd.h.
22761         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22762         declared in <unistd.h>.
22763
22764 2010-12-27  Bruno Haible  <bruno@clisp.org>
22765
22766         mbrtowc: Work around a Solaris 7 bug.
22767         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22768         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22769         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22770         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22771         MBRTOWC_NULL_ARG1_BUG.
22772         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22773         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22774         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22775         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22776
22777 2010-12-27  Jim Meyering  <meyering@redhat.com>
22778
22779         read-file.c: tweak syntax
22780         * lib/read-file.c (fread_file): Remove space after "*" in function
22781         definitions.
22782
22783 2010-12-27  Bruno Haible  <bruno@clisp.org>
22784
22785         times test: Avoid gcc warnings on OSF/1.
22786         * tests/test-times.c (main): Cast printf arguments from clock_t to
22787         'long int'.
22788
22789 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22790
22791         utimens: work around glibc rounding bug on older Linux kernels
22792         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22793         on Linux with a glibc whose utimes might not work, then work
22794         around a longstanding glibc bug involving rounding rather than
22795         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22796         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22797
22798 2010-12-26  Bruno Haible  <bruno@clisp.org>
22799
22800         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22801         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22802         _GL_CXXALIAS_SYS.
22803         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22804
22805 2010-12-26  Bruno Haible  <bruno@clisp.org>
22806
22807         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22808         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22809         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22810         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22811         looking for the declaration.
22812         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22813         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22814         problem.
22815         * doc/posix-functions/inet_pton.texi: Likewise.
22816
22817 2010-12-26  Bruno Haible  <bruno@clisp.org>
22818
22819         arpa_inet: Use the common idioms with C++ support.
22820         * lib/arpa_inet.in.h: Include c++defs.h.
22821         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22822         support.
22823         * modules/arpa_inet (Depends-on): Add c++defs.
22824         (Makefile.am): Substitute the contents of c++defs.h.
22825         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22826         * modules/arpa_inet-c++-tests: New file.
22827         * tests/test-arpa_inet-c++.cc: New file.
22828
22829 2010-12-25  Bruno Haible  <bruno@clisp.org>
22830
22831         Fix more C++ link errors on Solaris 8.
22832         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22833         $(LIB_EACCESS).
22834         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22835         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22836         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22837         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22838         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22839
22840 2010-12-25  Bruno Haible  <bruno@clisp.org>
22841
22842         printf-posix: Fix link error when a non-GCC compiler is used.
22843         * lib/stdio.in.h (printf): When not using GCC, override printf
22844         correctly.
22845         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22846
22847 2010-12-25  Bruno Haible  <bruno@clisp.org>
22848
22849         strerror_r-posix: Update doc.
22850         * doc/posix-functions/strerror_r.texi: Update doc about the return
22851         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22852
22853 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22854
22855         utimens: simplify the logic of the previous change
22856         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22857         This should not affect whether the test succeeds or fails.
22858
22859         utimens: configure better on hosts with NFS clock skew
22860         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22861         uses the clock of the local host.  It might use the clock of the
22862         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22864
22865 2010-12-25  Bruno Haible  <bruno@clisp.org>
22866
22867         ptsname test: Avoid failure on Solaris.
22868         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22869         open a pseudo-terminal; don't use BSD-style ptys.
22870         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22871
22872 2010-12-25  Bruno Haible  <bruno@clisp.org>
22873
22874         ptsname: Avoid ERANGE failure on some systems.
22875         * lib/ptsname.c (buffer): Increase size.
22876
22877 2010-12-25  Bruno Haible  <bruno@clisp.org>
22878
22879         rename, renameat: Avoid test failures at NFS mounted locations.
22880         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22881         so that subsequent mkdir calls succeed.
22882
22883 2010-12-25  Bruno Haible  <bruno@clisp.org>
22884
22885         iswblank: Fix C++ link error on Solaris 8.
22886         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22887         _GL_FUNCDECL_SYS.
22888
22889 2010-12-25  Bruno Haible  <bruno@clisp.org>
22890
22891         unistd: Fix C++ link error on Solaris 8.
22892         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22893
22894 2010-12-25  Bruno Haible  <bruno@clisp.org>
22895
22896         readlink doc: Mention an old glibc bug.
22897         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22898
22899 2010-12-25  Bruno Haible  <bruno@clisp.org>
22900
22901         fcntl-h: Fix for use of C++ on glibc systems.
22902         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22903         also on glibc systems in C++ mode.
22904         Reported by Gary V. Vaughan <gary@gnu.org>.
22905
22906 2010-12-25  Bruno Haible  <bruno@clisp.org>
22907
22908         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22909         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22910
22911 2010-12-25  Bruno Haible  <bruno@clisp.org>
22912
22913         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22914         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22915         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22916         test whether truncl works according to ISO C 99 with IEC 60559.
22917         * m4/truncl-ieee.m4: New file.
22918         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22919         m4/signbit.m4.
22920         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22921
22922 2010-12-25  Bruno Haible  <bruno@clisp.org>
22923
22924         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22925         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22926         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22927         test whether ceill works according to ISO C 99 with IEC 60559.
22928         * m4/ceill-ieee.m4: New file.
22929         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22930         m4/signbit.m4.
22931         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22932
22933 2010-12-25  Bruno Haible  <bruno@clisp.org>
22934
22935         Ensure all prerequisites of <wchar.h> are included.
22936         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22937         before <wchar.h>.
22938         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22939         gl_MBRLEN_NUL_RETVAL): Likewise.
22940         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22941         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22942         AC_FUNC_MBRTOWC): Likewise.
22943         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22944         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22945         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22946         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22947         Likewise.
22948         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22949         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22950         (gl_WCHAR_H): Improve comments.
22951         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22952
22953 2010-12-25  Bruno Haible  <bruno@clisp.org>
22954
22955         strtok_r: Fix C syntax error in autoconf macro.
22956         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22957         characters in test program.
22958
22959 2010-12-24  Bruno Haible  <bruno@clisp.org>
22960
22961         ceil, trunc, round: Fix gcc warnings.
22962         * lib/ceil.c (MIN): Undefine before redefining.
22963         * lib/trunc.c (MIN): Likewise.
22964         * lib/round.c (MIN): Likewise.
22965         Include <math.h> first.
22966
22967 2010-12-24  Bruno Haible  <bruno@clisp.org>
22968
22969         select tests: Avoid failures on OSF/1 5.1.
22970         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22971         failure of closing the last socket; it may fail with ECONNRESET.
22972
22973 2010-12-24  Eric Blake  <eblake@redhat.com>
22974
22975         stdint: avoid HP-UX 10.20 preprocessor bug
22976         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22977         than #if.
22978         * tests/test-floor2.c (main): Likewise.
22979         Reported by Peter O'Gorman.
22980
22981         pipe: make obsoletion transition easier
22982         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22983         * modules/pipe (Files): Include revived file.
22984         (Include): Drop reference, to mirror getdate's behavior.
22985
22986 2010-12-24  Bruno Haible  <bruno@clisp.org>
22987
22988         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22989         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22990         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22991         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22992
22993 2010-12-24  Bruno Haible  <bruno@clisp.org>
22994
22995         gethostname: Ensure declaration on NonStop Kernel.
22996         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22997         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22998
22999 2010-12-24  Bruno Haible  <bruno@clisp.org>
23000
23001         sys_select: Ensure all necessary types on NonStop Kernel.
23002         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23003         include <sys/time.h>.
23004         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23005         NonStop Kernel.
23006         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23007
23008 2010-12-24  Bruno Haible  <bruno@clisp.org>
23009
23010         sys_select: Remove unneeded include.
23011         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23012         have <sys/select.h>.
23013
23014 2010-12-24  Bruno Haible  <bruno@clisp.org>
23015
23016         gethostname: Provide a fallback for HOST_NAME_MAX.
23017         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23018         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23019         instead.
23020         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23021
23022 2010-12-24  Bruno Haible  <bruno@clisp.org>
23023
23024         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23025         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23026         (SA_RESTART): Likewise.
23027         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23028
23029 2010-12-24  Bruno Haible  <bruno@clisp.org>
23030
23031         signal: Define NSIG.
23032         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23033         * tests/test-signal.c (nsig): New variable.
23034         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23035
23036 2010-12-24  Bruno Haible  <bruno@clisp.org>
23037
23038         rename, renameat: Avoid test failures on OSF/1 5.1.
23039         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23040         alternative error codes.
23041         * tests/test-renameat.c (main): Likewise.
23042
23043 2010-12-24  Bruno Haible  <bruno@clisp.org>
23044
23045         *printf: Detect large precisions bug on Solaris 10/SPARC.
23046         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23047         by Paul Eggert.
23048         * tests/test-snprintf-posix.h (test_function): Add this test code here
23049         too.
23050         * tests/test-sprintf-posix.h (test_function): Likewise.
23051         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23052         * tests/test-vasprintf-posix.c (test_function): Likewise.
23053         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23054         around by gnulib.
23055         * doc/posix-functions/printf.texi: Likewise.
23056         * doc/posix-functions/snprintf.texi: Likewise.
23057         * doc/posix-functions/sprintf.texi: Likewise.
23058         * doc/posix-functions/vfprintf.texi: Likewise.
23059         * doc/posix-functions/vprintf.texi: Likewise.
23060         * doc/posix-functions/vsnprintf.texi: Likewise.
23061         * doc/posix-functions/vsprintf.texi: Likewise.
23062         * doc/posix-functions/dprintf.texi: Undo last commit.
23063         * doc/posix-functions/vdprintf.texi: Likewise.
23064
23065 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23066
23067         tests: port test-fdutimensat.c to Solaris 8
23068         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23069         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23070         On Solaris 8, it fails with errno == ENOSYS, because there is no
23071         futimens (so it can't use the fd), and there is no lutimens (so it
23072         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23073
23074         vsnprintf: make more consistent with snprintf; doc fixes
23075
23076         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23077         the byte count return problem was promoted from the snprintf-posix
23078         to the snprintf module.
23079         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23080         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23081         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23082         * tests/test-snprintf.c (main): Check the byte count returned.
23083         * tests/test-vsnprintf.c (main): Likewise.
23084
23085 2010-12-23  Eric Blake  <eblake@redhat.com>
23086
23087         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23088         * modules/sigpipe (License): Relax license.
23089
23090 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23091
23092         doc: document Solaris printf bug with large float precisions
23093         * doc/posix-functions/dprintf.texi (dprintf):
23094         * doc/posix-functions/fprintf.texi (fprintf):
23095         * doc/posix-functions/printf.texi (printf):
23096         * doc/posix-functions/snprintf.texi (snprintf):
23097         * doc/posix-functions/sprintf.texi (sprintf):
23098         * doc/posix-functions/vdprintf.texi (vdprintf):
23099         * doc/posix-functions/vfprintf.texi (vfprintf):
23100         * doc/posix-functions/vprintf.texi (vprintf):
23101         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23102         * doc/posix-functions/vsprintf.texi (vsprintf):
23103         Mention that these functions mishandle large floating point
23104         precisions on Solaris 10.  The same bug is also present in Solaris
23105         8, and I assume earlier.  This causes "cd gnulib-tests; make
23106         check" to fail on Solaris 8 (and I assume, later) when building
23107         the latest coreutils, in test-vasprintf-posix's call to
23108         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23109         the wide flavors (e.g., wprintf) so this patch just updates the
23110         documentation for the narrow ones.
23111
23112         test-posixtm.c: add two tests
23113         * tests/test-posixtm.c: Add two tests, to highlight the
23114         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23115         around this bug; this is merely to document it.
23116
23117 2010-12-22  Bruno Haible  <bruno@clisp.org>
23118
23119         getlogin_r: Work around portability problem on OSF/1.
23120         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23121         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23122         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23123         test for a truncated result.
23124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23125         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23126         * modules/getlogin_r (Depends-on): Add memchr.
23127         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23128
23129 2010-12-22  Bruno Haible  <bruno@clisp.org>
23130
23131         ptsname: Avoid test failure on OSF/1 5.1.
23132         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23133         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23134         (same_slave): New function.
23135         (main): Use it to compare ptsname's result with the expected file name.
23136
23137 2010-12-22  Bruno Haible  <bruno@clisp.org>
23138
23139         Port extended stdio modules to HP NonStop Kernel.
23140         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23141         macros.
23142         * lib/fbufmode.c: Update comments.
23143         * lib/fflush.c: Likewise.
23144         * lib/fpurge.c: Likewise.
23145         * lib/freadable.c: Likewise.
23146         * lib/freadahead.c: Likewise.
23147         * lib/freading.c: Likewise.
23148         * lib/freadptr.c: Likewise.
23149         * lib/freadseek.c: Likewise.
23150         * lib/fseeko.c: Likewise.
23151         * lib/fseterr.c: Likewise.
23152         * lib/fwritable.c: Likewise.
23153         * lib/fwriting.c: Likewise.
23154         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23155
23156 2010-12-22  Bruno Haible  <bruno@clisp.org>
23157
23158         ttyname_r: Work around bug on OSF/1 5.1.
23159         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23160         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23161         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23162         present.
23163         * lib/ttyname_r.c (ttyname_r): Update comments.
23164
23165 2010-12-22  Bruno Haible  <bruno@clisp.org>
23166
23167         round: Implement result sign according to IEEE 754.
23168         * lib/round.c (MIN, MINUS_ZERO): New macros.
23169         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23170         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23171         * tests/test-round-ieee.c (main): Likewise.
23172         * tests/test-roundl-ieee.c (main): Likewise.
23173
23174         trunc: Implement result sign according to IEEE 754.
23175         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23176         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23177         * tests/test-trunc2.c: Include minus-zero.h.
23178         (MINUS_ZERO): New macro.
23179         (trunc_reference): Keep in sync with lib/trunc.c.
23180         * tests/test-truncf2.c: Include minus-zero.h.
23181         (MINUS_ZERO): New macro.
23182         (truncf_reference): Keep in sync with lib/trunc.c.
23183         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23184         * tests/test-trunc-ieee.c (main): Likewise.
23185         * tests/test-truncl-ieee.c (main): Likewise.
23186
23187         ceil: Implement result sign according to IEEE 754.
23188         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23189         (FUNC): Return -0.0 for -1 < x < 0.
23190         * tests/test-ceil2.c: Include minus-zero.h.
23191         (MINUS_ZERO): New macro.
23192         (ceil_reference): Keep in sync with lib/ceil.c.
23193         * tests/test-ceilf2.c: Include minus-zero.h.
23194         (MINUS_ZERO): New macro.
23195         (ceilf_reference): Keep in sync with lib/ceil.c.
23196         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23197         * tests/test-ceil-ieee.c (main): Likewise.
23198         * tests/test-ceill-ieee.c (main): Likewise.
23199
23200         floor: Implement result sign according to IEEE 754.
23201         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23202         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23203         * tests/test-floorf2.c (floorf_reference): Likewise.
23204         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23205         * tests/test-floor-ieee.c (main): Likewise.
23206         * tests/test-floorl-ieee.c (main): Likewise.
23207
23208 2010-12-22  Bruno Haible  <bruno@clisp.org>
23209
23210         getaddrinfo: Update doc.
23211         * doc/posix-functions/gai_strerror.texi: Return type is also different
23212         on AIX and HP-UX.
23213
23214 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23215
23216         getaddrinfo, inet_ntop: Update doc for Solaris.
23217         * doc/posix-functions/gai_strerror.texi: Return type is also an
23218         issue on Solaris 9 and earlier.
23219         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23220         on Solaris 10 and earlier.
23221
23222 2010-12-21  Bruno Haible  <bruno@clisp.org>
23223
23224         New module 'roundl-ieee'.
23225         * modules/roundl-ieee: New file.
23226         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23227         test whether roundl works according to ISO C 99 with IEC 60559.
23228         * m4/roundl-ieee.m4: New file.
23229         * modules/roundl-ieee-tests: New file.
23230         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23231         * tests/test-roundl.c (main): Remove signbit tests.
23232         * modules/roundl-tests (Depends-on): Remove signbit.
23233         * doc/posix-functions/roundl.texi: Mention the new module.
23234
23235 2010-12-21  Bruno Haible  <bruno@clisp.org>
23236
23237         New module 'truncl-ieee'.
23238         * modules/truncl-ieee: New file.
23239         * modules/truncl-ieee-tests: New file.
23240         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23241         * tests/test-truncl.c (main): Remove signbit tests.
23242         * modules/truncl-tests (Depends-on): Remove signbit.
23243         * doc/posix-functions/truncl.texi: Mention the new module.
23244
23245 2010-12-21  Bruno Haible  <bruno@clisp.org>
23246
23247         New module 'ceill-ieee'.
23248         * modules/ceill-ieee: New file.
23249         * modules/ceill-ieee-tests: New file.
23250         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23251         * tests/test-ceill.c (main): Remove signbit tests.
23252         * modules/ceill-tests (Depends-on): Remove signbit.
23253         * doc/posix-functions/ceill.texi: Mention the new module.
23254
23255 2010-12-21  Bruno Haible  <bruno@clisp.org>
23256
23257         New module 'floorl-ieee'.
23258         * modules/floorl-ieee: New file.
23259         * modules/floorl-ieee-tests: New file.
23260         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23261         * tests/test-floorl.c (main): Remove signbit tests.
23262         * modules/floorl-tests (Depends-on): Remove signbit.
23263         * doc/posix-functions/floorl.texi: Mention the new module.
23264
23265 2010-12-21  Bruno Haible  <bruno@clisp.org>
23266
23267         New module 'round-ieee'.
23268         * modules/round-ieee: New file.
23269         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23270         whether round works according to ISO C 99 with IEC 60559.
23271         * m4/round-ieee.m4: New file.
23272         * modules/round-ieee-tests: New file.
23273         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23274         * tests/test-round1.c (main): Remove signbit tests.
23275         * modules/round-tests (Depends-on): Remove 'signbit'.
23276         * doc/posix-functions/round.texi: Mention the new module.
23277
23278 2010-12-21  Bruno Haible  <bruno@clisp.org>
23279
23280         New module 'trunc-ieee'.
23281         * modules/trunc-ieee: New file.
23282         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23283         whether trunc works according to ISO C 99 with IEC 60559.
23284         * m4/trunc-ieee.m4: New file.
23285         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23287         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23288         * modules/trunc-ieee-tests: New file.
23289         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23290         * tests/test-trunc1.c (main): Remove signbit tests.
23291         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23292         * doc/posix-functions/trunc.texi: Mention the new module.
23293
23294 2010-12-21  Bruno Haible  <bruno@clisp.org>
23295
23296         New module 'ceil-ieee'.
23297         * modules/ceil-ieee: New file.
23298         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23299         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23300         ISO C 99 with IEC 60559.
23301         * m4/ceil-ieee.m4: New file.
23302         * modules/ceil (Files): Add lib/ceil.c.
23303         (Depends-on): Add 'float'.
23304         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23305         * lib/math.in.h (ceil): New declaration.
23306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23307         REPLACE_CEIL.
23308         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23309         * modules/ceil-ieee-tests: New file.
23310         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23311         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23312         * doc/posix-functions/ceil.texi: Mention the new module.
23313
23314 2010-12-21  Bruno Haible  <bruno@clisp.org>
23315
23316         New module 'floor-ieee'.
23317         * modules/floor-ieee: New file.
23318         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23319         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23320         ISO C 99 with IEC 60559.
23321         * m4/floor-ieee.m4: New file.
23322         * modules/floor (Files): Add lib/floor.c.
23323         (Depends-on): Add 'float'.
23324         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23325         * lib/math.in.h (floor): New declaration.
23326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23327         REPLACE_FLOOR.
23328         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23329         * modules/floor-ieee-tests: New file.
23330         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23331         * tests/test-math-c++.cc: Check the signature of 'floor'.
23332         * doc/posix-functions/floor.texi: Mention the new module.
23333
23334 2010-12-21  Bruno Haible  <bruno@clisp.org>
23335
23336         New module 'roundf-ieee'.
23337         * modules/roundf-ieee: New file.
23338         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23339         test whether roundf works according to ISO C 99 with IEC 60559.
23340         * m4/roundf-ieee.m4: New file.
23341         * modules/roundf-ieee-tests: New file.
23342         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23343         * tests/test-roundf1.c (main): Remove signbit tests.
23344         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23345         * doc/posix-functions/roundf.texi: Mention the new module.
23346
23347 2010-12-21  Bruno Haible  <bruno@clisp.org>
23348
23349         New module 'truncf-ieee'.
23350         * modules/truncf-ieee: New file.
23351         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23352         test whether truncf works according to ISO C 99 with IEC 60559.
23353         * m4/truncf-ieee.m4: New file.
23354         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23356         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23357         * modules/truncf-ieee-tests: New file.
23358         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23359         * tests/test-truncf1.c (main): Remove signbit tests.
23360         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23361         * doc/posix-functions/truncf.texi: Mention the new module.
23362
23363 2010-12-21  Bruno Haible  <bruno@clisp.org>
23364
23365         New module 'ceilf-ieee'.
23366         * modules/ceilf-ieee: New file.
23367         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23368         test whether ceilf works according to ISO C 99 with IEC 60559.
23369         * m4/ceilf-ieee.m4: New file.
23370         * modules/ceilf-ieee-tests: New file.
23371         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23372         * tests/test-ceilf1.c (main): Remove signbit tests.
23373         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23374         * doc/posix-functions/ceilf.texi: Mention the new module.
23375
23376 2010-12-21  Bruno Haible  <bruno@clisp.org>
23377
23378         New module 'floorf-ieee'.
23379         * modules/floorf-ieee: New file.
23380         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23381         test whether floorf works according to ISO C 99 with IEC 60559.
23382         * m4/floorf-ieee.m4: New file.
23383         * modules/floorf-ieee-tests: New file.
23384         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23385         * tests/test-floorf1.c (main): Remove signbit tests.
23386         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23387         * doc/posix-functions/floorf.texi: Mention the new module.
23388
23389 2010-12-21  Bruno Haible  <bruno@clisp.org>
23390
23391         Support for minus zero in autoconf macros.
23392         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23393         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23394         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23395         * tests/minus-zero.h: Update comments.
23396
23397 2010-12-21  Bruno Haible  <bruno@clisp.org>
23398
23399         Tests for module 'ceil'.
23400         * modules/ceil-tests: New file.
23401         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23402         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23403
23404 2010-12-21  Bruno Haible  <bruno@clisp.org>
23405
23406         Tests for module 'floor'.
23407         * modules/floor-tests: New file.
23408         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23409         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23410
23411 2010-12-21  Bruno Haible  <bruno@clisp.org>
23412
23413         math: Fix indentation.
23414         * lib/math.in.h (floorf): Fix indentation.
23415
23416 2010-12-21  Bruno Haible  <bruno@clisp.org>
23417
23418         Fix cross-compilation guesses on Solaris.
23419         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23420         not match "solaris2.10".
23421         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23422         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23423         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23424
23425 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23426
23427         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23428         This fixes a problem observed with the latest coreutils snapshot
23429         that caused a test to fail on Solaris 8.  src/csplit.c's call
23430         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23431         earlier, instead of returning the number of bytes that would have
23432         been generated; this causes csplit to incorrectly report memory
23433         exhaustion.
23434         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23435         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23436         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23437         comments to match.
23438         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23439         Fix typo in matching older versions of Solaris: "solaris2.10"
23440         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23441         only for guessing while cross-compiling.
23442         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23443
23444 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23445
23446         ftoastr: fix comment again
23447         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23448         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23449         Also, simplify example a bit by using flags = 0.
23450
23451 2010-12-20  Bruno Haible  <bruno@clisp.org>
23452
23453         round*, trunc*: Update documentation regarding glibc.
23454         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23455         * doc/posix-functions/round.texi: Likewise.
23456         * doc/posix-functions/roundl.texi: Likewise.
23457         * doc/posix-functions/truncf.texi: Likewise.
23458         * doc/posix-functions/trunc.texi: Likewise.
23459         * doc/posix-functions/truncl.texi: Likewise.
23460
23461 2010-12-20  Bruno Haible  <bruno@clisp.org>
23462
23463         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23464         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23465         * doc/posix-functions/round.texi: Likewise.
23466         * doc/posix-functions/roundl.texi: Likewise.
23467
23468 2010-12-20  Bruno Haible  <bruno@clisp.org>
23469
23470         ttyname_r: Add missing declaration on HP-UX 11.
23471         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23472         HAVE_TTYNAME_R.
23473         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23474         declared. Set HAVE_TTYNAME_R always.
23475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23476         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23477         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23478         HAVE_TTYNAME_R.
23479         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23480
23481 2010-12-20  Bruno Haible  <bruno@clisp.org>
23482
23483         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23484         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23485         * doc/posix-functions/getlogin_r.texi: Likewise.
23486         * tests/test-getlogin.c: Include <errno.h>.
23487         (main): Avoid test failure on HP-UX 11.11.
23488         * tests/test-getlogin_r.c (main): Likewise.
23489
23490 2010-12-20  Bruno Haible  <bruno@clisp.org>
23491
23492         getlogin_r: Add missing declaration on HP-UX 11.
23493         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23494         declared also when it exists as a function.
23495         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23496
23497 2010-12-20  Bruno Haible  <bruno@clisp.org>
23498
23499         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23500         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23501         through wcrtomb.
23502
23503 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23504
23505         ftoastr: fix comment
23506         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23507         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23508
23509 2010-12-19  Bruno Haible  <bruno@clisp.org>
23510
23511         isnan: Ensure it is a macro.
23512         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23513         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23514         Solaris.
23515
23516 2010-12-19  Bruno Haible  <bruno@clisp.org>
23517
23518         ldexpl test: Fix link error on OSF/1 5.1.
23519         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23520
23521 2010-12-19  Bruno Haible  <bruno@clisp.org>
23522
23523         wctype: Make it work in C++ mode on OSF/1 5.1.
23524         * lib/wctype.in.h (iswblank): Declare but not define here.
23525         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23526         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23527         * modules/wctype (Files): Add lib/iswblank.c.
23528
23529 2010-12-19  Bruno Haible  <bruno@clisp.org>
23530
23531         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23532         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23533         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23534
23535 2010-12-19  Bruno Haible  <bruno@clisp.org>
23536
23537         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23539         _POSIX_PII_SOCKET.
23540         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23541         * doc/posix-functions/recvfrom.texi: Likewise.
23542         * doc/posix-functions/send.texi: Likewise.
23543         * doc/posix-functions/sendto.texi: Likewise.
23544
23545 2010-12-19  Bruno Haible  <bruno@clisp.org>
23546
23547         tcgetsid: Add missing declaration on OSF/1 5.1.
23548         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23549         HAVE_TCGETSID.
23550         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23551         Don't set HAVE_TCGETSID.
23552         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23553         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23554         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23555         HAVE_TCGETSID.
23556         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23557
23558 2010-12-19  Bruno Haible  <bruno@clisp.org>
23559
23560         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23561         * lib/stdio.in.h: During the include_next statement, let recursive
23562         includes of this file include only the system header file.
23563
23564 2010-12-19  Bruno Haible  <bruno@clisp.org>
23565
23566         iconv_open: Fix regression from 2010-12-04.
23567         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23568         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23569
23570 2010-12-19  Bruno Haible  <bruno@clisp.org>
23571
23572         stdbool test: Avoid a gcc warning.
23573         * tests/test-stdbool.c (main): Fail if e1 is false.
23574         Reported by Jim Meyering.
23575
23576 2010-12-19  Jim Meyering  <meyering@redhat.com>
23577
23578         setenv: restore to working order
23579         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23580         mistakenly removed.
23581         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23582         HAVE_SETENV.
23583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23584         HAVE_SETENV.
23585
23586 2010-12-19  Bruno Haible  <bruno@clisp.org>
23587
23588         Document some different function declarations on OSF/1 5.1.
23589         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23590         * doc/posix-functions/inet_ntop.texi: Likewise.
23591         * doc/posix-functions/gethostname.texi: Likewise.
23592         * lib/unistd.in.h (gethostname): Update comment.
23593
23594 2010-12-19  Bruno Haible  <bruno@clisp.org>
23595
23596         doc: Mention vasprintf-posix module.
23597         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23598         the 'vasprintf-posix' module.
23599         * doc/glibc-functions/vasprintf.texi: Likewise.
23600
23601 2010-12-19  Bruno Haible  <bruno@clisp.org>
23602
23603         unsetenv: Add missing declaration on OSF/1 5.1.
23604         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23605         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23606         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23608         not HAVE_UNSETENV.
23609         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23610         HAVE_UNSETENV.
23611         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23612
23613 2010-12-19  Bruno Haible  <bruno@clisp.org>
23614
23615         setenv: Add missing declaration on OSF/1 5.1.
23616         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23617         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23618         declared. Don't set HAVE_SETENV.
23619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23620         not HAVE_SETENV.
23621         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23622         HAVE_SETENV.
23623         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23624
23625 2010-12-19  Bruno Haible  <bruno@clisp.org>
23626
23627         nl_langinfo tests: Avoid gcc warning.
23628         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23629
23630 2010-12-19  Bruno Haible  <bruno@clisp.org>
23631
23632         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23633         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23634         _GL_CXXALIAS_SYS.
23635
23636 2010-12-19  Bruno Haible  <bruno@clisp.org>
23637
23638         stdbool: Relax test.
23639         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23640         address to 'bool' work in static initializer, for compilers other than
23641         GCC.
23642
23643 2010-12-19  Bruno Haible  <bruno@clisp.org>
23644
23645         ftello: Add missing declaration on OSF/1 5.1.
23646         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23647         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23649         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23650         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23651
23652 2010-12-19  Bruno Haible  <bruno@clisp.org>
23653
23654         fseeko: Add missing declaration on OSF/1 5.1.
23655         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23656         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23658         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23659         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23660
23661 2010-12-19  Bruno Haible  <bruno@clisp.org>
23662
23663         fchdir: Add missing declaration on OSF/1 5.1.
23664         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23667         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23668         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23669
23670 2010-12-19  Bruno Haible  <bruno@clisp.org>
23671
23672         relocatable-prog-wrapper: Separate from relocatable-prog.
23673         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23674         uninstall-relocwrapper rule here.
23675         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23676         Reported by Ian Beckwith <ianb@erislabs.net>.
23677
23678 2010-12-19  Bruno Haible  <bruno@clisp.org>
23679
23680         unistr/u8-mbsnlen: Add missing dependency.
23681         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23682         Reported by Ian Beckwith <ianb@erislabs.net>.
23683
23684 2010-12-19  Bruno Haible  <bruno@clisp.org>
23685
23686         iconv: Make it possible again to use this module without 'iconv-h'.
23687         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23688         if it is not defined.
23689         Reported by Ian Beckwith <ianb@erislabs.net>.
23690
23691 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23692
23693         acl: port to Solaris 8 when copying from tmpfs to ufs
23694         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23695         error number.  Problem observed on Solaris 8 with latest
23696         coreutils, with "mv A B", where A is on a tmpfs file system and B
23697         is on a ufs file system.  This caused coreutils' mv/part-symlink
23698         test to fail.
23699
23700         tests: set fail=0 at start
23701         * tests/init.sh (setup_): Move fail=0 initialization here ...
23702         (mktempd_): ... from here, so that tests can rely on fail being
23703         set to 0 initially.  This fixes a problem in coreutils; see:
23704         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23705
23706 2010-12-18  Bruno Haible  <bruno@clisp.org>
23707
23708         memmem-simple: Stylistic changes.
23709         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23710         Fix preprocessor directive indentation.
23711
23712 2010-12-15  Pádraig Brady <P@draigBrady.com>
23713
23714         memmem, memmem-simple: reorganize and expand empty needle check
23715         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23716         functional checks to memmem-simple so that one has a fully functional
23717         memmem by using just this module.
23718         Restrict the performance only check to the memmem module.
23719         Also expand the empty needle check to ensure the correct
23720         pointer is returned, not just a non NULL pointer.
23721         * doc/glibc-functions/memmem.texi: Rearrange the portability
23722         documentation to correlate with the rearranged checks.
23723         Clarify exactly how the memmem and memmem-simple modules
23724         relate to each other.
23725
23726 2010-12-15  Pádraig Brady <P@draigBrady.com>
23727             Bruno Haible  <bruno@clisp.org>
23728
23729         Improve cross-compilation guesses for uClibc.
23730         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23731         that uClibc does not have the glibc bug.
23732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23733         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23734
23735 2010-12-14  Eric Blake  <eblake@redhat.com>
23736
23737         configmake: provide fallbacks for oldest supported autotools
23738         * m4/configmake.m4: New file.
23739         * modules/configmake (Files): Ship it.
23740         (configure.ac): Use it to guarantee fallbacks.
23741
23742 2010-12-13  Pádraig Brady <P@draigBrady.com>
23743
23744         read-file: Improve handling of large files
23745         * lib/read-file.c (fread_file): Minimize realloc()s
23746         for regular files, and better manage sizes around SIZE_MAX.
23747
23748 2010-12-13  Eric Blake  <eblake@redhat.com>
23749
23750         cloexec, fcntl: relax license
23751         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23752         consent from all contributors.
23753         * modules/fcntl (License): Likewise.
23754
23755 2010-12-10  Bruno Haible  <bruno@clisp.org>
23756
23757         Tests for module 'pipe-posix'.
23758         * modules/pipe-posix-tests: New file.
23759         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23760
23761 2010-12-10  Bruno Haible  <bruno@clisp.org>
23762
23763         pipe-posix: Make it work in C++ mode.
23764         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23765         (pipe): Use common idiom, not a macro definition.
23766         * lib/pipe.c: New file.
23767         * m4/pipe.m4: New file.
23768         * modules/pipe-posix (Description): Enhance.
23769         (Files): Add lib/pipe.c, m4/pipe.m4.
23770         (configure.ac): Invoke gl_FUNC_PIPE.
23771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23772         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23773         * tests/test-unistd-c++.cc: Check the signature of pipe.
23774
23775 2010-12-10  Bruno Haible  <bruno@clisp.org>
23776
23777         Rename module 'pipe' to 'spawn-pipe'.
23778         * modules/spawn-pipe: New file, renamed from modules/pipe.
23779         (Files, configure.ac, Makefile.am): Update.
23780         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23781         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23782         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23783         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23784         "spawn-pipe.h" instead of "pipe.h".
23785         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23786         to gl_SPAWN_PIPE.
23787         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23788         (Files, Makefile.am): Update.
23789         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23790         Update.
23791         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23792         Include "spawn-pipe.h" instead of "pipe.h".
23793         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23794         * lib/javacomp.c: Likewise.
23795         * lib/javaversion.c: Likewise.
23796         * lib/pipe-filter-gi.c: Likewise.
23797         * lib/pipe-filter-ii.c: Likewise.
23798         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23799         * modules/javacomp (Depends-on): Likewise.
23800         * modules/javaversion (Depends-on): Likewise.
23801         * modules/pipe-filter-gi (Depends-on): Likewise.
23802         * modules/pipe-filter-ii (Depends-on): Likewise.
23803         * MODULES.html.sh (Executing programs): Update.
23804         * NEWS: Mention the change.
23805
23806 2010-12-10  Eric Blake  <eblake@redhat.com>
23807
23808         pipe-posix: new module
23809         * modules/pipe-posix: New file.
23810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23811         (gl_UNISTD_H): Check for declaration.
23812         * modules/unistd (Makefile.am): Substitute it.
23813         * lib/unistd.in.h (pipe): Provide it for mingw.
23814         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23815         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23816
23817 2010-12-07  Bruno Haible  <bruno@clisp.org>
23818
23819         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23820         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23821         u8_strcmp_gnu.
23822         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23823
23824 2010-12-06  Bruno Haible  <bruno@clisp.org>
23825
23826         Update internal documentation.
23827         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23828
23829 2010-12-04  Bruno Haible  <bruno@clisp.org>
23830
23831         Put more information about failed tests into the test return codes.
23832         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23833         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23834         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23836         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23837         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23838         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23839         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23840         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23843         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23844         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23845         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23846         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23847         returns a bit mask.
23848         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23849         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23850         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23851         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23852         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23854         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23855         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23856         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23857         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23858         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23859         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23860         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23861         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23862         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23863         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23864         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23865         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23866         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23867         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23869         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23870         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23871         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23872         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23873         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23874         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23875         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23876         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23877         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23878         gl_PRINTF_PRECISION): Likewise.
23879         * m4/regex.m4 (gl_REGEX): Likewise.
23880         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23881         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23882         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23883         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23884         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23885         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23886         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23887         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23888         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23889         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23890         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23891         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23892         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23893         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23894         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23895         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23896         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23897         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23899         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23900         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23901         enumerated value.
23902         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23903
23904 2010-12-04  Bruno Haible  <bruno@clisp.org>
23905
23906         Update for Solaris 11 2010-11.
23907         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23908         Express, released in November 2010.
23909
23910 2010-12-04  Bruno Haible  <bruno@clisp.org>
23911
23912         nproc: Relax license.
23913         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23914         and Paul Eggert.
23915         Requested by Ludovic Courtès <ludo@gnu.org>.
23916
23917 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23918
23919         utimecmp: fine-grained src to nearby coarse-grained dest
23920
23921         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23922         and the source is on a file system with higher-resolution time
23923         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23924         not work, and the time stamps are close together, the algorithm to
23925         determine the exact resolution from the read-back mtime was buggy:
23926         it had a "!=" where it should have had an "==".  This bug has been
23927         in the code ever since it was introduced to gnulib.
23928         Problem reported by Dan Jacobson in
23929         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23930
23931 2010-11-30  Bruno Haible  <bruno@clisp.org>
23932
23933         strerror_r-posix: Fix autoconf test.
23934         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23935
23936 2010-11-28  Bruno Haible  <bruno@clisp.org>
23937             Paul Eggert  <eggert@cs.ucla.edu>
23938
23939         Tests for module 'getdomainname'.
23940         * modules/getdomainname-tests: New file.
23941         * tests/test-getdomainname.c: New file, based on
23942         tests/test-gethostname.c.
23943
23944 2010-11-28  Bruno Haible  <bruno@clisp.org>
23945             Paul Eggert  <eggert@cs.ucla.edu>
23946
23947         getdomainname: Use the system function when possible.
23948         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23949         (getdomainname): Replace if needed. Provide the declaration if it is
23950         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23951         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23952         (getdomainname): When the system has getdomainname, call the system
23953         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23954         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23955         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23956         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23957         the function if its second argument is of type 'int' or if it is found
23958         in libnsl.
23959         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23960         <sys/systeminfo.h> and sysinfo().
23961         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23963         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23964         HAVE_GETDOMAINNAME.
23965         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23966         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23967         * doc/glibc-functions/getdomainname.texi: Document the problems with
23968         the getdomainname declaration.
23969
23970 2010-11-28  Bruno Haible  <bruno@clisp.org>
23971
23972         sys_socket: Ensure ss_family field on AIX.
23973         * lib/sys_socket.in.h (ss_family): New macro definition.
23974         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23975         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23976         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23977         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23978         * modules/sys_socket (Makefile.am): Substitute
23979         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23980         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23981
23982 2010-11-27  Bruno Haible  <bruno@clisp.org>
23983
23984         readline: Improve configure output.
23985         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23986         "checking for readline..." result understandable.
23987
23988 2010-11-27  Bruno Haible  <bruno@clisp.org>
23989
23990         *printf-posix: Detect a bug on Solaris 10/x86.
23991         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23992         for floating-point output.
23993         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23994         directive.
23995         * tests/test-snprintf-posix.h (test_function): Likewise.
23996         * tests/test-sprintf-posix.h (test_function): Likewise.
23997         * tests/test-vasprintf-posix.c (test_function): Likewise.
23998         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23999         * doc/posix-functions/printf.texi: Likewise.
24000         * doc/posix-functions/snprintf.texi: Likewise.
24001         * doc/posix-functions/sprintf.texi: Likewise.
24002         * doc/posix-functions/vfprintf.texi: Likewise.
24003         * doc/posix-functions/vprintf.texi: Likewise.
24004         * doc/posix-functions/vsnprintf.texi: Likewise.
24005         * doc/posix-functions/vsprintf.texi: Likewise.
24006         * doc/glibc-functions/obstack_printf.texi: Likewise.
24007         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24008
24009 2010-11-27  Bruno Haible  <bruno@clisp.org>
24010
24011         Fix link error when module libunistring-optional is in use.
24012         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24013         * modules/striconveha-tests (Makefile.am): Likewise.
24014
24015 2010-11-27  Bruno Haible  <bruno@clisp.org>
24016
24017         regex: Mention link dependencies.
24018         * modules/regex (Link): New section.
24019         * modules/rpmatch (Link): Likewise.
24020         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24021
24022 2010-11-27  Bruno Haible  <bruno@clisp.org>
24023
24024         ftoastr: Fix compilation error on Solaris.
24025         * lib/ftoastr.c: Include <config.h>.
24026
24027 2010-11-27  Bruno Haible  <bruno@clisp.org>
24028
24029         getloadavg: Update documentation.
24030         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24031
24032 2010-11-27  Bruno Haible  <bruno@clisp.org>
24033
24034         sys_socket: Fix test whether the functions are declared.
24035         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24036         not <sys/select.h>.
24037
24038 2010-11-27  Bruno Haible  <bruno@clisp.org>
24039
24040         getpass: Make sure to get system declaration on some platforms.
24041         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24042         gl_USE_SYSTEM_EXTENSIONS.
24043         * modules/getpass (Depends-on): Add extensions.
24044
24045 2010-11-26  Bruno Haible  <bruno@clisp.org>
24046
24047         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24048         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24049         'iconv' module is present.
24050         (ICONV_CONST): New macro.
24051         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24052         ICONV_CONST.
24053         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24054         set ICONV_CONST.
24055         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24056         here.
24057         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24058         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24059         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24060         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24061         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24062         present.
24063
24064 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24065
24066         ftoastr: comment fix
24067         * lib/ftoastr.c: "little" -> "little or no" in comment
24068
24069 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24070
24071         stdint: port to GCC 4.3 + OSX + Octave
24072         On this platform, stdint.h is buggy and defines int64_t to long
24073         long int.  The replacement defined it to long int, causing
24074         problems with C++ style name mangling.  Instead, trust the system
24075         definition if INT64_MAX is defined, and likewise for the unsigned
24076         variant.   Problem reported by Jarno Rajahalme in
24077         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24078         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24079         and don't mess with int64_t and INT64_MAX in this case.
24080         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24081
24082 2010-11-24  Bruno Haible  <bruno@clisp.org>
24083
24084         doc: Corrections regarding MacOS X 10.4 and 10.5.
24085         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24086         MacOS X.
24087         Reported by Simon Josefsson.
24088
24089 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24090
24091         Uninstall ".bin" files installed by relocwrapper.
24092         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24093         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24094         unless it is already there.
24095
24096 2010-11-21  Bruno Haible  <bruno@clisp.org>
24097
24098         Update for NetBSD 5.0.
24099         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24100         NetBSD; the test fails on NetBSD 5.0.
24101         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24102         about NetBSD.
24103
24104 2010-11-21  Bruno Haible  <bruno@clisp.org>
24105
24106         Update for HP-UX 11.23 and HP-UX 11.31.
24107         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24108         HP-UX.
24109
24110 2010-11-21  Bruno Haible  <bruno@clisp.org>
24111
24112         Update for MacOS X 10.5.
24113         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24114         MacOS X; the test fails on MacOS X 10.5.8.
24115         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24116         about MacOS X.
24117
24118 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24119
24120         bootstrap: add bootstrap_sync option.
24121         See discussion at
24122         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24123         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24124         * build-aux/bootstrap: Accept --bootstrap-sync to update
24125         bootstrap if it is not identical to the local gnulib's
24126         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24127         enable this by default.  Accept --no-bootstrap-sync to disable
24128         it.
24129
24130 2010-11-20  Bruno Haible  <bruno@clisp.org>
24131
24132         Ensure that <features.h> is included before __GLIBC__ is tested.
24133         * lib/printf-parse.h: Include <features.h>.
24134         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24135         Reported by Mike Frysinger <vapier@gentoo.org>.
24136
24137         Ensure that <features.h> is included before __GLIBC__ is tested.
24138         * lib/wchar.in.h: Include <features.h>.
24139         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24140         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24141         Reported by Mike Frysinger <vapier@gentoo.org>.
24142
24143         Ensure that <features.h> is included before __GLIBC__ is tested.
24144         * lib/arpa_inet.in.h: Include <features.h>.
24145         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24146         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24147         Reported by Mike Frysinger <vapier@gentoo.org>.
24148
24149         Ensure that <features.h> is included before __GLIBC__ is tested.
24150         * build-aux/link-warning.h: Include <features.h>.
24151         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24152         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24153         Reported by Mike Frysinger <vapier@gentoo.org>.
24154
24155         Ensure that <features.h> is included before __GLIBC__ is tested.
24156         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24157         Reported by Mike Frysinger <vapier@gentoo.org>.
24158
24159 2010-11-20  Bruno Haible  <bruno@clisp.org>
24160
24161         memmem: Fix autoconf test.
24162         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24163
24164 2010-11-20  Bruno Haible  <bruno@clisp.org>
24165
24166         Port to uClibc.
24167         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24168         * lib/fcntl.in.h: Likewise.
24169         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24170         * lib/mbrtowc.c (mbrtowc): Likewise.
24171         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24172         * lib/strerror_r.c: Likewise.
24173         * lib/unistr/u8-strnlen.c: Likewise.
24174         * lib/vasnprintf.c (decimal_point_char): Likewise.
24175         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24176         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24177         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24178         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24179         * tests/test-sigaction.c (handler, main): Likewise.
24180         * lib/freading.h: Treat uClibc like a non-glibc platform.
24181         * lib/freading.c: Likewise.
24182         * lib/gettext.h: Likewise.
24183         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24184         Likewise.
24185         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24186         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24187         * lib/propername.c (proper_name_utf8): Likewise.
24188         * lib/spawn.in.h: Likewise.
24189         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24190         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24191         mem_cd_iconveh_internal): Likewise.
24192         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24193         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24194         strstr, strcasestr): Likewise.
24195         * lib/unicodeio.c (unicode_to_mb): Likewise.
24196         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24197         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24198         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24199         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24200         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24201         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24202         * lib/unistr/u8-stpncpy.c: Likewise.
24203         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24204         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24205         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24206         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24207         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24208         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24209         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24210         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24211         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24212         Likewise.
24213         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24214         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24215         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24216         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24217         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24218         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24219         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24220         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24221         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24222         * tests/test-striconveha.c (main): Likewise.
24223         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24224         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24225         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24226         * doc/posix-functions/getline.texi: Likewise.
24227         Reported by Mike Frysinger <vapier@gentoo.org>.
24228
24229 2010-11-20  Bruno Haible  <bruno@clisp.org>
24230
24231         nproc: Fix condition.
24232         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24233         HAVE_PTHREAD_AFFINITY_NP.
24234
24235 2010-11-20  Bruno Haible  <bruno@clisp.org>
24236
24237         Fix a comment.
24238         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24239
24240 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24241
24242         ftoastr: don't assume snprintf
24243         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24244         Implement a subset of snprintf here, by using sprintf safely.
24245         * modules/ftoastr (Depends-on): Remove snprintf.
24246
24247 2010-11-19  Jim Meyering  <meyering@redhat.com>
24248
24249         test-rename.h: fix compilation failure
24250         * tests/test-rename.h (test_rename): Add omitted "}".
24251
24252 2010-11-17  Jim Meyering  <meyering@redhat.com>
24253
24254         maint.mk: add a URL discussing the no-@acronym policy
24255         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24256
24257 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24258
24259         ftoastr: depend on snprintf, improve comments
24260         * lib/ftoastr.c: Also mention Loitsch's draft.
24261         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24262         needed in the current implementation, but it might simplify
24263         speeding up the code later.
24264         * modules/ftoastr: Depend on snprintf; this improves portability.
24265         Suggested by Bruno Haible in the same email.
24266
24267         ftoastr: port to hosts lacking strtof and strtold
24268         Problem reported by Bruno Haible in
24269         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24270         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24271         environment and strtold (and presumably strtof) are not available.
24272         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24273         (configure.ac): Require gl_C99_STRTOLD.
24274
24275 2010-11-18  Bruno Haible  <bruno@clisp.org>
24276
24277         c-strtold: Avoid link error on AIX 7.
24278         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24279         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24280         (gl_C_STRTOLD): Test whether strtold_l exists.
24281         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24282
24283 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24284
24285         intprops: new macro INT_BITS_STRLEN_BOUND
24286         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24287         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24288         not exposed.  Also, it uses a slightly tighter bound than before;
24289         though this makes no practical difference, we might as well be as
24290         tight as we easily can.
24291
24292         ftoastr: new module, for lossless conversion of floats to short strings
24293         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24294         * modules/ftoastr: New files.
24295
24296 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24297
24298         bootstrap: port to Solaris sed
24299         * build-aux/bootstrap (get_version): Port to Solaris sed.
24300         See Ralf Wildenhues's note in
24301         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24302
24303 2010-11-14  Jim Meyering  <meyering@redhat.com>
24304
24305         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24306         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24307         and move definition closer to sole use.
24308
24309 2010-11-13  Jim Meyering  <meyering@redhat.com>
24310
24311         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24312         Now we require at least autoconf-2.59, which means the work-around
24313         is no longer needed.
24314         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24315         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24316         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24317         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24318         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24319
24320 2010-11-13  Bruno Haible  <bruno@clisp.org>
24321
24322         rename, renameat: Avoid test failures at NFS mounted locations.
24323         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24324         functions.
24325         (test_rename): Use assert_nonexistent.
24326         * tests/test-rename.c: Include <dirent.h>.
24327         * tests/test-renameat.c: Likewise.
24328         Reported by Gary V. Vaughan <gary@gnu.org>.
24329
24330         rename, renameat: Document Linux bug with NFS
24331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24332         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24333         * doc/posix-functions/renameat.texi: Likewise.
24334         Suggested by Eric Blake.
24335
24336 2010-11-13  Bruno Haible  <bruno@clisp.org>
24337
24338         rename test: Add comments.
24339         * tests/test-rename.h (test_rename): Add structure and comments.
24340
24341 2010-11-13  Eric Blake  <eblake@redhat.com>
24342
24343         maintainer-makefile: cover a few more files
24344         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24345         scripts generated within C files, for libvirt.
24346
24347 2010-11-13  Bruno Haible  <bruno@clisp.org>
24348
24349         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24350         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24351         character, return the number of bytes that belong together, not always
24352         1.
24353         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24354         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24355         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24356         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24357         number of bytes of an invalid character.
24358         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24359         (main): Invoke it.
24360         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24361         results.
24362         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24363         malformed byte sequences.
24364         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24365         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24366         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24367         Reported by Ben Pfaff and Paolo Bonzini.
24368
24369 2010-11-13  Bruno Haible  <bruno@clisp.org>
24370
24371         openat: Work around glibc bug with fchownat() and empty file names.
24372         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24373         (gl_FUNC_FCHOWNAT): Invoke it.
24374         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24375         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24376         Reported by Gary V. Vaughan <gary@gnu.org>.
24377
24378 2010-11-13  Bruno Haible  <bruno@clisp.org>
24379
24380         openat: Ensure autoconf macro ordering.
24381         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24382         gl_USE_SYSTEM_EXTENSIONS.
24383         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24384
24385 2010-11-13  Bruno Haible  <bruno@clisp.org>
24386
24387         Update comments.
24388         * lib/unistr/u8-check.c: Update file name in comments.
24389         * lib/unistr/u8-mblen.c: Likewise.
24390         * lib/unistr/u8-prev.c: Likewise.
24391         * lib/unistr/u8-strmblen.c: Likewise.
24392         * lib/unistr/u8-strmbtouc.c: Likewise.
24393
24394 2010-11-13  Jim Meyering  <meyering@redhat.com>
24395
24396         tests: avoid test failure on Solaris 10 due to lack of PATH export
24397         * tests/test-update-copyright.sh: Don't forget to export PATH.
24398
24399         init.sh: ensure that IFS is defined, just in case...
24400         * tests/init.sh (setup_): Ensure that IFS is defined,
24401         so that saving and restoring it works as expected.  This
24402         appears to be useful at least for an old version of dash
24403         from a long time ago (RH 6).  See here for details:
24404         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24405
24406         maint.mk: tighten "test a == b" check
24407         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24408         test to files that contain something like #!/bin/sh.
24409         Without this, coreutils would get two false positives in
24410         the comments of C source files.
24411
24412 2010-11-12  Eric Blake  <eblake@redhat.com>
24413
24414         bootstrap: fix typo in previous attempt
24415         * build-aux/bootstrap (buildreq): Correct the grouping.
24416         Reported by Paul Eggert.
24417
24418         maintainer-makefile: prohibit test x == x
24419         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24420         Based on a report by Matthias Bolte.
24421
24422         bootstrap: allow FreeBSD gzip
24423         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24424         which has no '.' and goes to stderr.
24425         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24426         Reported by Matthias Bolte.
24427
24428         maintainer-makefile: check for i18n setup
24429         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24430         will likely work.
24431
24432 2010-11-12  Bruno Haible  <bruno@clisp.org>
24433
24434         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24435         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24436         * lib/nanosleep.c (nanosleep): Likewise.
24437
24438 2010-11-11  Bruno Haible  <bruno@clisp.org>
24439
24440         fcntl-h: Fix for use of C++ on glibc systems.
24441         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24442         also on glibc systems in C++ mode.
24443         Reported by Gary V. Vaughan <gary@gnu.org>.
24444
24445 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24446
24447         mknod: avoid false failure with dash
24448         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24449
24450 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24451
24452         unlink: Fix "is it should" typo in diagnostic.
24453         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24454         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24455
24456 2010-11-11  Bruno Haible  <bruno@clisp.org>
24457
24458         Tests for module 'strerror_r-posix'.
24459         * modules/strerror_r-posix-tests: New file.
24460         * tests/test-strerror_r.c: New file.
24461         * tests/test-string-c++.cc: Check the signature of strerror_r.
24462
24463         New module 'strerror_r-posix'.
24464         * lib/string.in.h (strerror_r): New declaration.
24465         * lib/strerror_r.c: New file.
24466         * m4/strerror_r.m4: New file.
24467         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24468         of strerror_r.
24469         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24470         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24471         * modules/strerror_r-posix: New file.
24472         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24473         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24474         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24475         portability problems.
24476
24477 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24478
24479         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24480         line is also considered for output. Quoted function name in shell
24481         command, so temporary files for functions like MyClass::operator()
24482         are removed correctly without errors.
24483
24484 2010-11-09  Bruno Haible  <bruno@clisp.org>
24485
24486         * doc/posix-functions/strerror.texi: List more failing platforms.
24487
24488         * doc/posix-functions/strerror.texi: Add a comment.
24489
24490 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24491
24492         fdopendir: fix bug on MacOS X when low on file descriptors
24493
24494         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24495         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24496         All callers changed.
24497         (fdopendir): Invoke save_cwd at the top level, not after using
24498         multiple dup() calls to use up file descriptors.  Then retry
24499         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24500         less than the maximum number of open file descriptors, because
24501         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24502         on Mac OS X 10.6.4 for tar 1.24
24503         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24504         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24505         and for tar 1.25
24506         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24507
24508 2010-11-07  Bruno Haible  <bruno@clisp.org>
24509
24510         vasnprintf: Support I flag on glibc systems.
24511         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24512         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24513         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24514         snprintf function.
24515         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24516         glibc systems.
24517         * tests/test-vasnprintf-posix3.c: New file.
24518         * modules/vasnprintf-posix-tests (Files): Add it.
24519         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24520
24521 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24522
24523         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24524         * MODULES.html.sh: For compiler warnings, use name
24525         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24526
24527 2010-11-05  Eric Blake  <eblake@redhat.com>
24528
24529         ceil, floor: avoid spurious failure with icc
24530         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24531         [denormals-as-zero] when optimizing without -mieee-fp option.
24532         * tests/test-floorf2.c (floorf_reference): Likewise.
24533         * tests/test-ceilf1.c (dummy): New function.
24534         (main): Use it to outsmart icc's optimization.
24535         * tests/test-floorf1.c (dummy, main): Likewise.
24536
24537         tests: require working signbit
24538         * modules/ceilf-tests (Depends-on): Add signbit.
24539         * modules/ceill-tests (Depends-on): Likewise.
24540         * modules/floorf-tests (Depends-on): Likewise.
24541         * modules/floorl-tests (Depends-on): Likewise.
24542         * modules/round-tests (Depends-on): Likewise.
24543         * modules/roundf-tests (Depends-on): Likewise.
24544         * modules/roundl-tests (Depends-on): Likewise.
24545         * modules/trunc-tests (Depends-on): Likewise.
24546         * modules/truncf-tests (Depends-on): Likewise.
24547         * modules/truncl-tests (Depends-on): Likewise.
24548
24549         strtod: work around icc bug
24550         * lib/strtod.c (minus_zero): Define to working value.
24551         (strtod): Use it to avoid icc bug.
24552
24553         copysign: enhance tests
24554         * modules/copysign-tests (Files): Add minus-zero.h.
24555         * tests/test-copysign.c (main): Also test zeros.
24556
24557 2010-11-04  Eric Blake  <eblake@redhat.com>
24558
24559         ceil, floor, round, trunc: enhance tests of -0
24560         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24561         * tests/test-ceill.c (main): Likewise.
24562         * tests/test-floorf1.c (main): Likewise.
24563         * tests/test-floorl.c (main): Likewise.
24564         * tests/test-round1.c (main): Likewise.
24565         * tests/test-roundf1.c (main): Likewise.
24566         * tests/test-roundl.c (main): Likewise.
24567         * tests/test-trunc1.c (main): Likewise.
24568         * tests/test-truncf1.c (main): Likewise.
24569         * tests/test-truncl.c (main): Likewise.
24570
24571 2010-11-04  Eric Blake  <eblake@redhat.com>
24572
24573         frexp, tests: work around ICC bug with -zero
24574         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24575         works with more compilers.
24576         * tests/minus-zero.h: New file.
24577         * modules/ceilf-tests (Files): Include it.
24578         * modules/ceill-tests (Files): Likewise.
24579         * modules/floorf-tests (Files): Likewise.
24580         * modules/floorl-tests (Files): Likewise.
24581         * modules/frexp-nolibm-tests (Files): Likewise.
24582         * modules/frexp-tests (Files): Likewise.
24583         * modules/frexpl-nolibm-tests (Files): Likewise.
24584         * modules/frexpl-tests (Files): Likewise.
24585         * modules/isnan-tests (Files): Likewise.
24586         * modules/isnand-nolibm-tests (Files): Likewise.
24587         * modules/isnand-tests (Files): Likewise.
24588         * modules/isnanf-nolibm-tests (Files): Likewise.
24589         * modules/isnanf-tests (Files): Likewise.
24590         * modules/isnanl-nolibm-tests (Files): Likewise.
24591         * modules/isnanl-tests (Files): Likewise.
24592         * modules/round-tests (Files): Likewise.
24593         * modules/roundf-tests (Files): Likewise.
24594         * modules/roundl-tests (Files): Likewise.
24595         * modules/ldexpl-tests (Files): Likewise.
24596         * modules/signbit-tests (Files): Likewise.
24597         * modules/snprintf-posix-tests (Files): Likewise.
24598         * modules/sprintf-posix-tests (Files): Likewise.
24599         * modules/strtod-tests (Files): Likewise.
24600         * modules/trunc-tests (Files): Likewise.
24601         * modules/truncf-tests (Files): Likewise.
24602         * modules/truncl-tests (Files): Likewise.
24603         * modules/vsnprintf-posix-tests (Files): Likewise.
24604         * modules/vsprintf-posix-tests (Files): Likewise.
24605         * modules/vasnprintf-posix-tests (Files): Likewise.
24606         * modules/vasprintf-posix-tests (Files): Likewise.
24607         * tests/test-ceilf1.c (main): Use it.
24608         * tests/test-ceill.c (main): Likewise.
24609         * tests/test-floorf1.c (main): Likewise.
24610         * tests/test-floorl.c (main): Likewise.
24611         * tests/test-frexp.c (main): Likewise.
24612         * tests/test-frexpl.c (main): Likewise.
24613         * tests/test-isnan.c (main): Likewise.
24614         * tests/test-isnand.h (main): Likewise.
24615         * tests/test-isnanf.h (main): Likewise.
24616         * tests/test-isnanl.h (main): Likewise.
24617         * tests/test-ldexpl.c (main): Likewise.
24618         * tests/test-round.c (main): Likewise.
24619         * tests/test-roundf.c (main): Likewise.
24620         * tests/test-roundl.c (main): Likewise.
24621         * tests/test-signbit.c (test_signbitf, test_signbitd)
24622         (test_signbitl): Likewise.
24623         * tests/test-snprintf-posix.h (test_function): Likewise.
24624         * tests/test-sprintf-posix.h (test_function): Likewise.
24625         * tests/test-strtod.c (main): Likewise.
24626         * tests/test-trunc1.c (main): Likewise.
24627         * tests/test-truncf1.c (main): Likewise.
24628         * tests/test-truncl.c (main): Likewise.
24629
24630         isnanl: work around icc bug
24631         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24632
24633 2010-11-03  Eric Blake  <eblake@redhat.com>
24634
24635         tests: fix compiler warnings
24636         * tests/test-getopt.h (test_getopt): Fix condition.
24637         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24638         * tests/test-pipe2.c (main): Likewise.
24639         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24640
24641         utimens: fix broken m4 test
24642         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24643
24644 2010-10-28  Bruno Haible  <bruno@clisp.org>
24645
24646         posix_spawn*, getdtablesize: Relax license.
24647         * modules/posix_spawn (License): Change to LGPLv2+.
24648         * modules/posix_spawnp (License): Likewise.
24649         * modules/posix_spawn-internal (License): Likewise.
24650         * modules/posix_spawnattr_init (License): Likewise.
24651         * modules/posix_spawnattr_getflags (License): Likewise.
24652         * modules/posix_spawnattr_setflags (License): Likewise.
24653         * modules/posix_spawnattr_getpgroup (License): Likewise.
24654         * modules/posix_spawnattr_setpgroup (License): Likewise.
24655         * modules/posix_spawnattr_getschedparam (License): Likewise.
24656         * modules/posix_spawnattr_setschedparam (License): Likewise.
24657         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24658         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24659         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24660         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24661         * modules/posix_spawnattr_getsigmask (License): Likewise.
24662         * modules/posix_spawnattr_setsigmask (License): Likewise.
24663         * modules/posix_spawnattr_destroy (License): Likewise.
24664         * modules/posix_spawn_file_actions_init (License): Likewise.
24665         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24666         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24667         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24668         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24669         * modules/getdtablesize (License): Likewise.
24670         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24671
24672 2010-10-26  Bruno Haible  <bruno@clisp.org>
24673
24674         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24675         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24676         Cygwin and mingw.
24677         Suggested by Eric Blake.
24678
24679 2010-10-26  Bruno Haible  <bruno@clisp.org>
24680
24681         stdio: Work around compilation error due to renameat() on Solaris 10.
24682         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24683         * lib/renameat.c: Don't include <unistd.h> here.
24684         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24685         Reported by Paul Eggert and Eric Blake.
24686
24687 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24688
24689         renameat: port to Solaris 10, which declares renameat in unistd.h
24690
24691         * lib/renameat.c: Include unistd.h before stdio.h, because
24692         Solaris 10 declares renameat in unistd.h.  Problem encountered
24693         when building GNU tar 1.24 on Solaris 10.
24694
24695 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24696
24697         fdopendir: fix C89 compilation
24698         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24699         compilers.
24700
24701 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24702
24703         inttostr: simplify by removing unnecessary redundancy
24704         * lib/anytostr.c: Don't include verify.h.
24705         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24706         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24707         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24708         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24709         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24710         Likewise.
24711         * modules/inttostr (Depends-on): Remove 'verify'.
24712
24713 2010-10-23  Bruno Haible  <bruno@clisp.org>
24714
24715         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24716         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24717         Reported by Eric Blake.
24718
24719 2010-10-23  Bruno Haible  <bruno@clisp.org>
24720
24721         Tests: Fix LOCALE_JA on MirBSD 10.
24722         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24723         to an UTF-8 locale.
24724         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24725         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24726         Reported by Eric Blake.
24727
24728 2010-10-21  Bruno Haible  <bruno@clisp.org>
24729
24730         nl_langinfo test: Avoid test failure on NetBSD 5.
24731         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24732         Reported by Eric Blake.
24733
24734 2010-10-21  Eric Blake  <eblake@redhat.com>
24735
24736         c-stack: work around libsigsegv 2.8 bug
24737         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24738         overflow on at least PowerPC64.
24739
24740 2010-10-17  Bruno Haible  <bruno@clisp.org>
24741
24742         userspec: Drop redundant file.
24743         * modules/userspec (Files): Remove lib/inttostr.h.
24744
24745 2010-10-17  Bruno Haible  <bruno@clisp.org>
24746
24747         nl_langinfo tests: Silence some warnings.
24748         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24749         Reported by Jim Meyering.
24750
24751 2010-10-17  Bruno Haible  <bruno@clisp.org>
24752
24753         Make use of GCC's attribute __alloc_size__.
24754         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24755         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24756         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24757         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24758         __alloc_size__.
24759         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24760         Suggested by Jim Meyering.
24761
24762 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24763
24764         bootstrap: anchor .gitignore entries.
24765         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24766         with...
24767         (insert_vc_ignore): ... this new function, which prepends `/' to
24768         all .gitignore entries before passing them to
24769         insert_sorted_if_absent.
24770
24771 2010-10-16  Bruno Haible  <bruno@clisp.org>
24772
24773         nextafter: Fix configure check.
24774         * modules/nextafter (configure.ac): Correct expected prototype.
24775
24776 2010-10-16  Bruno Haible  <bruno@clisp.org>
24777
24778         termios: Update documentation.
24779         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24780
24781 2010-10-16  Bruno Haible  <bruno@clisp.org>
24782
24783         tests: Make them compile with TinyCC.
24784         * tests/test-strstr.c (main): Remove parentheses around array
24785         initializer.
24786
24787 2010-10-15  Eric Blake  <eblake@redhat.com>
24788
24789         ignore-value: make header idempotent
24790         * lib/ignore-value.h: Add double-inclusion guards.
24791         Reported by Stefan Berger.
24792
24793 2010-10-15  Jim Meyering  <meyering@redhat.com>
24794
24795         GNUmakefile: handle "stable" target, not "major"
24796         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24797         lists in maint.mk and announce-gen.  Without this, "make stable"
24798         would fail to ensure that $(VERSION) is up to date.
24799
24800 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24801
24802         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24803         & co.
24804
24805 2010-10-14  Bruno Haible  <bruno@clisp.org>
24806
24807         vasnprintf: Don't set errno to 0.
24808         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24809         block that sets it to 0.
24810         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24811
24812 2010-10-14  Bruno Haible  <bruno@clisp.org>
24813
24814         socketlib: Fix.
24815         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24816         gl_PREREQ_SYS_H_WINSOCK2.
24817         Reported by Ian Beckwith <ianb@erislabs.net>.
24818
24819 2010-10-13  Jim Meyering  <meyering@redhat.com>
24820
24821         test-select-stdin.c: avoid warn_unused_result warnings
24822         * tests/test-select-stdin.c: Include "macros.h".
24823         ASSERT that read and fflush succeed.
24824
24825 2010-10-13  Jim Meyering  <meyering@redhat.com>
24826
24827         git-version-gen: do require git-VC'd files in cwd
24828         * build-aux/git-version-gen: Reject a git version string
24829         if there are no commits associated with the current directory.
24830         This avoids an unlikely false-positive (unrelated dir whose parent
24831         repository also contains a tag matching v*), as pointed out
24832         by Giuseppe Scrivano in
24833         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24834
24835 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24836
24837         argv-iter: omit nonconforming declaration
24838         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24839         enum arg_iter_err declaration, which doesn't conform to C99.
24840         Solaris 10 cc warns about this.
24841
24842 2010-10-13  Eric Blake  <eblake@redhat.com>
24843
24844         termios: fix compilation on mingw
24845         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24846         (gl_TERMIOS_H): Adjust it on mingw.
24847         * modules/termios (Makefile.am): Substitute new key.
24848         * lib/termios.in.h (includes): Make include_next conditional.
24849         * doc/posix-headers/termios.texi (termios.h): Update
24850         documentation.
24851         Reported by Daniel P. Berrange.
24852
24853 2010-10-13  Jim Meyering  <meyering@redhat.com>
24854
24855         git-version-gen: don't require that .git/ be in the current dir
24856         * build-aux/git-version-gen: Adjust this script so that it works
24857         when run from any working directory beneath the top-level .git/-
24858         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24859         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24860
24861         test-select: avoid warn_unused_result warnings
24862         * tests/test-select.c: Include "macros.h".
24863         ASSERT that each call to read, write, and pipe succeeds.
24864         While not technically required, also check each "close".
24865         * modules/select-tests (Files): Add tests/macros.h.
24866
24867         test-symlinkat: remove declaration of unused local
24868         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24869
24870         test-inttostr: avoid shadowing warnings
24871         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24872         and use malloc rather than the stack for the same reason as
24873         mentioned in the comment justifying the other allocation.
24874
24875 2010-10-11  Bruno Haible  <bruno@clisp.org>
24876
24877         stdlib: Allow multiple gnulib generated replacements to coexist.
24878         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24879         Reported by Sam Steingold <sds@gnu.org>.
24880
24881 2010-10-11  Jim Meyering  <meyering@redhat.com>
24882
24883         fix a documentation typo
24884         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24885
24886 2010-10-11  Eric Blake  <eblake@redhat.com>
24887
24888         futimens: work around Solaris 11 bug
24889         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24890         * tests/test-futimens.h (test_futimens): Enhance, rather than
24891         weaken test.
24892         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24893
24894 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24895
24896         Indentation.
24897         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24898         higher-level operators more to the left.
24899
24900 2010-10-11  Jim Meyering  <meyering@redhat.com>
24901
24902         test-futimens: avoid unwarranted test failure on Solaris 5.11
24903         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24904         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24905         because it tries to dereference the NULL name argument.
24906
24907 2010-10-11  Bruno Haible  <bruno@clisp.org>
24908
24909         Indentation.
24910         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24911         indentation.
24912
24913 2010-10-11  Jim Meyering  <meyering@redhat.com>
24914
24915         spawn.in.h: make indentation consistent with parentheses
24916         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24917         Make indentation consistent with parentheses.
24918
24919 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24920
24921         Fix mismatched parens in previous commit
24922         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24923         parens.
24924
24925 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24926
24927         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24928
24929         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24930         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24931         * lib/malloca.c: Include "verify.h".
24932         (verify1): Remove, replacing with a verify call.
24933         * lib/relocwrapper.c (verify1): Likewise.
24934         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24935         Likewise.
24936         * modules/malloca (Depends-on): Add 'verify'.
24937         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24938         * modules/vasnprintf (Depends-on): Add 'verify'.
24939         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24940         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24941         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24942         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24944         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24945         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24946
24947         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24948
24949         Formerly the style was sometimes 2*X - 1, because the C standard
24950         was wrongly thought to disallow ?: in integral constant expressions.
24951         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24952         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24953         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24954         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24955         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24956         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24957         verify that time_t cannot be floating.
24958
24959 2010-10-08  Eric Blake  <eblake@redhat.com>
24960
24961         time: enforce recent POSIX ruling that time_t is integral
24962         * lib/time.in.h (__time_t_must_be_integral): Detect any
24963         problematic systems, allowing the rest of gnulib to assume POSIX.
24964
24965 2010-10-08  Jim Meyering  <meyering@redhat.com>
24966
24967         fdopendir: fix a bug on systems lacking openat and /proc support
24968         OpenBSD 4.7 is one such system.  The most noticeable effect was
24969         failure of any application making nontrivial use of fts: rm, du,
24970         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24971           ./rm: traversal failed: `a': Bad file descriptor
24972         Debugging that, you see that even though FD 6 was closed just
24973         prior to the opendir call in fd_clone_opendir, its resulting
24974         dir->dd_fd was 8, rather than the expected value of 6:
24975
24976         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24977         93                close (fd);
24978         (gdb) n
24979         94                dir = fd_clone_opendir (dupfd);
24980         (gdb) n
24981         95                saved_errno = errno;
24982         (gdb) p dir->dd_fd
24983         $11 = 8
24984
24985         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24986         The problem is that on OpenBSD, fd_clone_opendir has to resort
24987         to using the old-style save/restore CWD mechanism, due to its
24988         lack of openat/proc support, and *that* would steal the FD (6)
24989         that opendir was supposed to use.
24990
24991         The fix is to squirrel away the desired FD so that save_cwd uses a
24992         different one, and then free the dest FD right before calling opendir.
24993         That guarantees opendir will use the required file descriptor.
24994
24995         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24996
24997 2010-10-08  Bruno Haible  <bruno@clisp.org>
24998
24999         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25000         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25001
25002 2010-10-08  Bruno Haible  <bruno@clisp.org>
25003
25004         nanosleep: Make replacement POSIX compliant.
25005         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25006         is out of range.
25007         Reported by Jim Meyering.
25008
25009 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25010
25011         bootstrap: add hook for altering gnulib.mk, for Bison
25012         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25013         the Bison bootstrapping process can rewrite file names and variables
25014         in this file before later parts of 'bootstrap' use the file.
25015         Bison wants to include lib/gnulib.mk from the top-level makefile,
25016         so it needs the file names in this file to be relative to the top
25017         level, not relative to lib; plus it needs variable names to be
25018         rewritten.
25019         (slurp): Use the new function.
25020
25021         bootstrap: reformat for readability
25022         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25023
25024 2010-10-08  Eric Blake  <eblake@redhat.com>
25025
25026         docs: update cygwin progress
25027         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25028         1.7.7.
25029         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25030         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25031         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25032         * doc/posix-functions/carg.texi (carg): Likewise.
25033         * doc/posix-functions/cargf.texi (cargf): Likewise.
25034         * doc/posix-functions/casin.texi (casin): Likewise.
25035         * doc/posix-functions/casinf.texi (casinf): Likewise.
25036         * doc/posix-functions/casinh.texi (casinh): Likewise.
25037         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25038         * doc/posix-functions/catan.texi (catan): Likewise.
25039         * doc/posix-functions/catanf.texi (catanf): Likewise.
25040         * doc/posix-functions/catanh.texi (catanh): Likewise.
25041         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25042         * doc/posix-functions/ccos.texi (ccos): Likewise.
25043         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25044         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25045         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25046         * doc/posix-functions/cexp.texi (cexp): Likewise.
25047         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25048         * doc/posix-functions/cimag.texi (cimag): Likewise.
25049         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25050         * doc/posix-functions/clog.texi (clog): Likewise.
25051         * doc/posix-functions/clogf.texi (clogf): Likewise.
25052         * doc/posix-functions/conj.texi (conj): Likewise.
25053         * doc/posix-functions/conjf.texi (conjf): Likewise.
25054         * doc/posix-functions/cpow.texi (cpow): Likewise.
25055         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25056         * doc/posix-functions/cproj.texi (cproj): Likewise.
25057         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25058         * doc/posix-functions/creal.texi (creal): Likewise.
25059         * doc/posix-functions/crealf.texi (crealf): Likewise.
25060         * doc/posix-functions/csin.texi (csin): Likewise.
25061         * doc/posix-functions/csinf.texi (csinf): Likewise.
25062         * doc/posix-functions/csinh.texi (csinh): Likewise.
25063         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25064         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25065         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25066         * doc/posix-functions/ctan.texi (ctan): Likewise.
25067         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25068         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25069         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25070         * doc/posix-headers/complex.texi (complex.h): Likewise.
25071
25072 2010-10-07  Jim Meyering  <meyering@redhat.com>
25073
25074         parse-datetime: avoid compilation failure on OpenBSD 4.7
25075         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25076         This works around a compilation failure on OpenBSD 4.7:
25077         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25078
25079 2010-10-07  Eric Blake  <eblake@redhat.com>
25080
25081         docs: update cygwin progress
25082         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25083         1.7.6.
25084         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25085         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25086         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25087         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25088         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25089         Likewise.
25090         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25091         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25092         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25093         Likewise.
25094         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25095         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25096         Likewise.
25097         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25098         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25099         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25100         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25101         Likewise.
25102         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25103         Likewise.
25104         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25105
25106         docs: update parse-datetime history
25107         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25108         documentation of this function's history and alternatives.
25109
25110         cygwin: use more robust version check
25111         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25112         exclude an eventual cygwin 1.9.1.
25113         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25115         (gl_FUNC_STRCASESTR): Likewise.
25116         Reported by Bruno Haible.
25117
25118 2010-10-06  Bruno Haible  <bruno@clisp.org>
25119
25120         string, sys_select: Avoid #including large headers unless necessary.
25121         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25122         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25123         OSF/1, BeOS, Haiku.
25124         Reported by Jim Meyering.
25125
25126 2010-10-05  Eric Blake  <eblake@redhat.com>
25127
25128         memmem, strstr, strcasestr: fix bug with long periodic needle
25129         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25130         periodic needle having false positive.
25131         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25132         and cygwin 1.7.7.
25133         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25135         (gl_FUNC_STRCASESTR): Likewise.
25136         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25137         * tests/test-memmem.c (main): Expose the bug.
25138         * tests/test-strcasestr.c (main): Likewise.
25139         * tests/test-strstr.c (main): Likewise.
25140         * tests/test-c-strcasestr.c (main): Likewise.
25141         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25142         * doc/posix-functions/strstr.texi (strstr): Likewise.
25143         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25144         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25145
25146 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25147
25148         parse-datetime: do some more renaming
25149         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25150         parse_datetime, not get_date.  Mention the renaming.
25151         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25152         in comments.
25153         * m4/bison.m4: Likewise.
25154
25155 2010-10-05  Eric Blake  <eblake@redhat.com>
25156
25157         parse-datetime: better name than get_date
25158         * NEWS: Reword the deprecation notice.
25159         * modules/get_date: Rename to modules/parse-datetime.
25160         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25161         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25162         * lib/get_date.y: Rename to lib/parse-datetime.y.
25163         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25164         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25165         * doc/getdate.texi: Provide fallback wrapper.
25166         * lib/getdate.h: Move guts, and wrap...
25167         * lib/parse-datetime.h: ...new file.
25168         * lib/parse-datetime.y (get_date): Rename...
25169         (parse_datetime): ...to this.
25170         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25171         (gl_PARSE_DATETIME): ...to this.
25172         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25173         documentation.
25174         * modules/getdate (Files): Provide fallback docs and header.
25175         (Notice, Depends-on): Update references.
25176         * tests/test-parse-datetime.c: Likewise.
25177         * DEPENDENCIES: Likewise.
25178         * MODULES.html.sh (Date and time <time.h>): Likewise.
25179         * doc/parse-datetime.texi (Date input formats)
25180         (Authors of parse_datetime): Likewise.
25181         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25182         (Include): Likewise.
25183         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25184         * gnulib-tool: Likewise.
25185         * m4/bison.m4 (gl_BISON): Likewise.
25186         Suggested by Bruno Haible.
25187
25188 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25189
25190         more ports to Solaris tr, which needs [] around ranges
25191         * gnulib-tool: Solaris tr needs [] around ranges.
25192         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25193         * tests/test-pipe-filter-gi1.c (main): Likewise.
25194         * tests/test-pipe-filter-ii1.c (main): Likewise.
25195
25196 2010-10-05  Eric Blake  <eblake@redhat.com>
25197
25198         bootstrap: fix Solaris regression
25199         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25200         around ranges.
25201         Reported by Pádraig Brady.
25202
25203         bootstrap: work with pkg-config
25204         * build-aux/bootstrap (check_versions): Also transliterate - in
25205         prerequisite name.
25206         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25207         prerequisites that were already found, to avoid confusion.
25208         Reported by Justin Clift.
25209
25210         faccessat: remove unused wrappers
25211         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25212         presence of these wrappers dragged in -lgen on Solaris.
25213         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25214
25215 2010-10-05  Jim Meyering  <meyering@redhat.com>
25216
25217         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25218         * Makefile (sc_pragma_columns): New syntax-check rule.
25219
25220 2010-10-04  Bruno Haible  <bruno@clisp.org>
25221
25222         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25223         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25224         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25225         Reported by Bruce Korb and Eric Blake.
25226
25227 2010-10-04  Bruno Haible  <bruno@clisp.org>
25228
25229         threadlib: Make option --with-libpth-prefix work.
25230         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25231         use $LIBPTH, not just -lpth.
25232
25233 2010-10-04  Bruno Haible  <bruno@clisp.org>
25234
25235         Avoid line length limitation from HP NonStop system header files.
25236         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25237         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25238         * lib/ctype.in.h: Likewise.
25239         * lib/dirent.in.h: Likewise.
25240         * lib/errno.in.h: Likewise.
25241         * lib/fcntl.in.h: Likewise.
25242         * lib/float.in.h: Likewise.
25243         * lib/getopt.in.h: Likewise.
25244         * lib/iconv.in.h: Likewise.
25245         * lib/inttypes.in.h: Likewise.
25246         * lib/langinfo.in.h: Likewise.
25247         * lib/locale.in.h: Likewise.
25248         * lib/math.in.h: Likewise.
25249         * lib/netdb.in.h: Likewise.
25250         * lib/netinet_in.in.h: Likewise.
25251         * lib/poll.in.h: Likewise.
25252         * lib/pthread.in.h: Likewise.
25253         * lib/pty.in.h: Likewise.
25254         * lib/sched.in.h: Likewise.
25255         * lib/se-selinux.in.h: Likewise.
25256         * lib/search.in.h: Likewise.
25257         * lib/signal.in.h: Likewise.
25258         * lib/spawn.in.h: Likewise.
25259         * lib/stdarg.in.h: Likewise.
25260         * lib/stddef.in.h: Likewise.
25261         * lib/stdint.in.h: Likewise.
25262         * lib/stdio.in.h: Likewise.
25263         * lib/stdlib.in.h: Likewise.
25264         * lib/string.in.h: Likewise.
25265         * lib/strings.in.h: Likewise.
25266         * lib/sys_file.in.h: Likewise.
25267         * lib/sys_ioctl.in.h: Likewise.
25268         * lib/sys_select.in.h: Likewise.
25269         * lib/sys_socket.in.h: Likewise.
25270         * lib/sys_stat.in.h: Likewise.
25271         * lib/sys_time.in.h: Likewise.
25272         * lib/sys_times.in.h: Likewise.
25273         * lib/sys_utsname.in.h: Likewise.
25274         * lib/sys_wait.in.h: Likewise.
25275         * lib/sysexits.in.h: Likewise.
25276         * lib/termios.in.h: Likewise.
25277         * lib/time.in.h: Likewise.
25278         * lib/unistd.in.h: Likewise.
25279         * lib/wchar.in.h: Likewise.
25280         * lib/wctype.in.h: Likewise.
25281         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25282         * modules/ctype (Makefile.am): Likewise.
25283         * modules/dirent (Makefile.am): Likewise.
25284         * modules/errno (Makefile.am): Likewise.
25285         * modules/fcntl-h (Makefile.am): Likewise.
25286         * modules/float (Makefile.am): Likewise.
25287         * modules/getopt-posix (Makefile.am): Likewise.
25288         * modules/iconv-h (Makefile.am): Likewise.
25289         * modules/inttypes (Makefile.am): Likewise.
25290         * modules/langinfo (Makefile.am): Likewise.
25291         * modules/locale (Makefile.am): Likewise.
25292         * modules/math (Makefile.am): Likewise.
25293         * modules/netdb (Makefile.am): Likewise.
25294         * modules/netinet_in (Makefile.am): Likewise.
25295         * modules/poll-h (Makefile.am): Likewise.
25296         * modules/pthread (Makefile.am): Likewise.
25297         * modules/pty (Makefile.am): Likewise.
25298         * modules/sched (Makefile.am): Likewise.
25299         * modules/search (Makefile.am): Likewise.
25300         * modules/selinux-h (Makefile.am): Likewise.
25301         * modules/signal (Makefile.am): Likewise.
25302         * modules/spawn (Makefile.am): Likewise.
25303         * modules/stdarg (Makefile.am): Likewise.
25304         * modules/stddef (Makefile.am): Likewise.
25305         * modules/stdint (Makefile.am): Likewise.
25306         * modules/stdio (Makefile.am): Likewise.
25307         * modules/stdlib (Makefile.am): Likewise.
25308         * modules/string (Makefile.am): Likewise.
25309         * modules/strings (Makefile.am): Likewise.
25310         * modules/sys_file (Makefile.am): Likewise.
25311         * modules/sys_ioctl (Makefile.am): Likewise.
25312         * modules/sys_select (Makefile.am): Likewise.
25313         * modules/sys_socket (Makefile.am): Likewise.
25314         * modules/sys_stat (Makefile.am): Likewise.
25315         * modules/sys_time (Makefile.am): Likewise.
25316         * modules/sys_times (Makefile.am): Likewise.
25317         * modules/sys_utsname (Makefile.am): Likewise.
25318         * modules/sys_wait (Makefile.am): Likewise.
25319         * modules/sysexits (Makefile.am): Likewise.
25320         * modules/termios (Makefile.am): Likewise.
25321         * modules/time (Makefile.am): Likewise.
25322         * modules/unistd (Makefile.am): Likewise.
25323         * modules/wchar (Makefile.am): Likewise.
25324         * modules/wctype (Makefile.am): Likewise.
25325
25326 2010-10-04  Bruno Haible  <bruno@clisp.org>
25327
25328         read-file tests: Avoid a test failure on NonStop Kernel.
25329         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25330         a regular file.
25331         Reported by Joachim Schmitz <schmitz@hp.com>.
25332
25333 2010-10-03  Bruno Haible  <bruno@clisp.org>
25334
25335         gnulib-tool: Fixes for --create-testdir with --libtool.
25336         * gnulib-tool (func_get_automake_snippet): Don't augment
25337         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25338         an executable.
25339         (func_create_testdir): Handle module 'alloca' like func_import.
25340         Reported by Bruce Korb <bruce.korb@gmail.com>.
25341
25342 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25343
25344         Avoid some lines longer than 80 characters.
25345         * lib/stdint.in.h: Break long comment lines.
25346         * lib/math.in.h: Likewise.
25347         (_GL_NUM_UINT_WORDS): New macro, for readability.
25348         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25349         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25350         * lib/stdlib.in.h: Likewise.
25351         * lib/spawn.in.h: Likewise.
25352         * lib/sys_socket.in.h: Update an URL.
25353         * lib/sys_stat.in.h: Break long line.
25354
25355 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25356
25357         Improve pmccabe2html.
25358         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25359         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25360         when the sources change. Remove the line in the HTML about "Used
25361         ranges" (which implied that there might be other unused ranges),
25362         rename "Resume" to "Summary" (easier to understand for more users).
25363         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25364         styles, and some unnecessary blank lines.
25365
25366 2010-10-03  Bruno Haible  <bruno@clisp.org>
25367             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25368
25369         acl: Add support for ACLs on NonStop Kernel.
25370         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25371         Check whether the function aclsort() exists.
25372         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25373         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25374         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25375         (acl_nontrivial [HAVE_ACLSORT]: New function.
25376         (file_has_acl): Implement for NonStop Kernel.
25377         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25378         (qset_acl): Implement for NonStop Kernel.
25379         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25380         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25381         (main): Implement for NonStop Kernel.
25382         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25383         Kernel. Handle this flavor.
25384         * tests/test-set-mode-acl.sh: Likewise.
25385         * tests/test-copy-acl.sh: Likewise.
25386         * tests/test-copy-file.sh: Likewise.
25387
25388 2010-10-03  Bruno Haible  <bruno@clisp.org>
25389
25390         Info about ACLs on NonStop Kernel.
25391         * doc/acl-resources.txt: Add info about NonStop Kernel.
25392         References by Joachim Schmitz <schmitz@hp.com>.
25393
25394 2010-10-02  Bruno Haible  <bruno@clisp.org>
25395
25396         Define missing EDQUOT on NonStop Kernel.
25397         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25398         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25400         missing.
25401         * doc/posix-headers/errno.texi: Mention the NSK bug.
25402         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25403         Reported by Joachim Schmitz <schmitz@hp.com>.
25404
25405 2010-10-02  Bruno Haible  <bruno@clisp.org>
25406
25407         Update doc for POSIX:2008.
25408         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25409         Update URL of POSIX specification.
25410
25411 2010-10-02  Bruno Haible  <bruno@clisp.org>
25412
25413         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25414         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25415         from gnulib, not from Automake.
25416
25417 2010-10-02  Bruno Haible  <bruno@clisp.org>
25418
25419         New module 'system-posix'.
25420         * modules/system-posix: New file.
25421         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25422         module is present.
25423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25424         GNULIB_SYSTEM_POSIX.
25425         * modules/stdlib (Depends-on): Remove sys_wait.
25426         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25427         * doc/posix-functions/system.texi: Mention the new module.
25428         * doc/posix-headers/stdlib.texi: Likewise.
25429         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25430         define test_sys_wait_macros to a no-op.
25431         Reported by Sam Steingold <sds@gnu.org>.
25432
25433 2010-09-30  Bruno Haible  <bruno@clisp.org>
25434
25435         More renaming from 'getdate' to 'get_date'.
25436         * doc/get_date.texi: Renamed from doc/getdate.texi.
25437         * modules/get_date (Files): Update.
25438         * MODULES.html.sh (Date and time <time.h>): Update.
25439         * DEPENDENCIES: Update.
25440         * gnulib-tool: Update comment.
25441         * m4/bison.m4 (gl_BISON): Likewise.
25442         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25443
25444 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25445
25446         bootstrap: support ACLOCAL_FLAGS during aclocal
25447         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25448         can add additional -I dir for third-party .m4 files.
25449
25450 2010-09-30  Eric Blake  <eblake@redhat.com>
25451
25452         bootstrap: use glibtoolize on MacOS
25453         * build-aux/bootstrap (check_versions): Convert libtool into
25454         libtoolize.
25455         (tool search): Move libtool check earlier, and look for
25456         glibtoolize for MacOS.
25457         (gnulib_tool_options): Auto-add --libtool when appropriate.
25458         Reported by Justin Clift.
25459
25460         poll: fix typo that broke test on MacOS
25461         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25462         Reported by Justin Clift.
25463
25464         getdate: rename to get_date
25465         Note: getdate.h is not renamed, to minimize client impact.
25466         * modules/getdate: Mark obsolete.  Move old contents...
25467         * modules/get_date: ...to new module name.
25468         * modules/getdate-tests: Move...
25469         * modules/get_date-tests: ...here.
25470         * m4/getdate.m4: Move...
25471         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25472         * lib/getdate.y: Move...
25473         * lib/get_date.y: ...here.
25474         * tests/test-getdate.c: Move...
25475         * tests/test-get_date.c: ...here.
25476         * doc/posix-functions/getdate.texi (getdate): Update name.
25477         * NEWS: Mention the change.
25478
25479 2010-09-29  Bruno Haible  <bruno@clisp.org>
25480
25481         Separate the module 'waitpid' from the module 'sys_wait'.
25482         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25483         present.
25484         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25485         gl_MODULE_INDICATOR_FOR_TESTS.
25486         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25487         * modules/sys_wait (Depends-on): Remove waitpid.
25488         (Makefile.am): Substitute GNULIB_WAITPID.
25489         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25490         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25491         signature only if the 'waitpid' module is present.
25492         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25493         * NEWS: Mention the change.
25494         * modules/grantpt (Depends-on): Add waitpid.
25495         * modules/wait-process (Depends-on): Likewise.
25496
25497 2010-09-29  Bruno Haible  <bruno@clisp.org>
25498
25499         More tests for module 'sys_wait'.
25500         * modules/sys_wait-c++-tests: New file.
25501         * tests/test-sys_wait-c++.cc: New file.
25502         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25503         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25504
25505 2010-09-29  Bruno Haible  <bruno@clisp.org>
25506
25507         New module 'waitpid'.
25508         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25509         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25510         Don't include <process.h>.
25511         (waitpid): Declare only, using modern idiom.
25512         * m4/waitpid.m4: New file.
25513         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25514         * modules/waitpid: New file.
25515         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25516         (Makefile.am): Update.
25517         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25518
25519 2010-09-28  Bruno Haible  <bruno@clisp.org>
25520
25521         poll: Assume ANSI C.
25522         * lib/poll.c (poll): Use an ANSI C declaration.
25523
25524 2010-09-28  Bruno Haible  <bruno@clisp.org>
25525
25526         poll-h: Create poll.h on all platforms.
25527         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25528         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25529         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25530         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25531         (gl_REPLACE_POLL_H): Don't set POLL_H.
25532         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25533         * modules/poll-h (Depends-on): Add include_next.
25534         (Makefile.am): Create poll.h unconditionally. Substitute also
25535         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25536
25537 2010-09-28  Bruno Haible  <bruno@clisp.org>
25538
25539         Tests for module 'poll-h'.
25540         * modules/poll-h-c++-tests: New file.
25541         * tests/test-poll-h-c++.cc: New file.
25542
25543         Tests for module 'poll-h'.
25544         * modules/poll-h-tests: New file.
25545         * tests/test-poll-h.c: New file.
25546
25547 2010-09-28  Bruno Haible  <bruno@clisp.org>
25548
25549         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25550         * modules/poll-h (Depends-on): Add 'extensions'.
25551
25552 2010-09-28  Bruno Haible  <bruno@clisp.org>
25553
25554         New module 'poll-h'.
25555         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25556         (poll): Use modern idiom.
25557         * modules/poll-h: New file.
25558         * modules/poll (Files): Remove lib/poll.in.h.
25559         (Depends-on): Add poll-h.
25560         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25561         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25562         * m4/poll_h.m4: New file.
25563         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25564         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25565         and invoke gl_REPLACE_POLL_H.
25566         * lib/poll.c: Use common idiom.
25567         * tests/test-poll.c: Likewise.
25568         * doc/posix-headers/poll.texi: Mention the poll-h module.
25569         Suggested by Eric Blake.
25570
25571 2010-09-26  Bruno Haible  <bruno@clisp.org>
25572
25573         sys_wait: Implement WSTOPSIG.
25574         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25575         Reported by Simon Josefsson.
25576
25577 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25578
25579         stdlib, sys_wait: Avoid compilation error on mingw.
25580         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25581
25582 2010-09-26  Bruno Haible  <bruno@clisp.org>
25583
25584         stdlib tests: Avoid code duplication.
25585         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25586         * modules/sys_wait-tests (Files): Likewise.
25587         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25588         * tests/test-stdlib.c: Include test-sys_wait.h.
25589         (main): Invoke test_sys_wait_macros.
25590         * tests/test-sys_wait.c: Include test-sys_wait.h.
25591         (main): Invoke test_sys_wait_macros.
25592
25593 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25594
25595         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25596         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25597         sure Windows sockets are working before calling getaddrinfo.
25598         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25599         * doc/gnulib.texi (Windows sockets): Fix typo.
25600
25601 2010-09-25  Bruno Haible  <bruno@clisp.org>
25602
25603         Tests for module 'regex-quote'.
25604         * modules/regex-quote-tests: New file.
25605         * tests/test-regex-quote.c: New file.
25606
25607         New module 'regex-quote'.
25608         * lib/regex-quote.h: New file.
25609         * lib/regex-quote.c: New file.
25610         * modules/regex-quote: New file.
25611         Suggested by Reuben Thomas <rrt@sc3d.org>.
25612
25613 2010-09-24  Bruno Haible  <bruno@clisp.org>
25614
25615         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25616         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25617
25618 2010-09-23  Bruno Haible  <bruno@clisp.org>
25619
25620         setenv: Relax license.
25621         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25622         Blake.
25623         Requested by Eric Blake.
25624
25625 2010-09-22  Bruno Haible  <bruno@clisp.org>
25626
25627         termios: Relax license.
25628         * modules/termios (License): Change to LGPLv2+.
25629         Requested by Eric Blake.
25630
25631 2010-09-22  Bruno Haible  <bruno@clisp.org>
25632
25633         threadlib: Allow the package to change the default to 'no'.
25634         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25635         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25636         Reported by Paul Eggert.
25637
25638 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25639             Bruno Haible  <bruno@clisp.org>
25640
25641         Fix endless loop in mbmemcasecoll.
25642         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25643         byte.
25644         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25645
25646 2010-09-22  Bruno Haible  <bruno@clisp.org>
25647
25648         Tests for module 'memcoll'.
25649         * modules/memcoll-tests: New file.
25650         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25651
25652         memcoll, xmemcoll: Clarify size vs. length.
25653         * modules/memcoll.c (memcoll0): Clarify specification.
25654         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25655         passed to collate_error.
25656
25657 2010-09-22  Bruno Haible  <bruno@clisp.org>
25658
25659         Tests for module 'memcasecmp'.
25660         * modules/memcasecmp-tests: New file.
25661         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25662
25663 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25664
25665         * lib/pthread.in.h: Add split double-inclusion guard, and include
25666         system <pthread.h> if there is one.  Use @@-style as in other
25667         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25668         pthread.h doesn't.
25669         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25670         (pthread_mutexattr_settype, pthread_mutex_trylock):
25671         New static inline functions, if there's no system <pthread.h>.
25672         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25673         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25674         Approximate with mutexes if the system lacks spinlocks, as in
25675         MacOS.
25676         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25677         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25678         @@-style.  Check for spinlocks separately.
25679         (gl_PTHREAD_DEFAULTS): New macro.
25680         * modules/pthread: Redo to use a more typical style for in.h files.
25681
25682 2010-09-21  Eric Blake  <eblake@redhat.com>
25683
25684         net_if: enhance tests
25685         * tests/test-net_if.c (main): Move signature checks earlier.
25686         Print failures to stderr.
25687         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25688         Document the bug that we do not yet fix.
25689
25690 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25691
25692         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25693         about gnulib, not GSS.
25694
25695 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25696
25697         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25698         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25699         for Emacs.
25700         * build-aux/pmccabe2html: Make Makefile.am example code more
25701         cut-and-paste friendly.
25702
25703 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25704
25705         * tests/test-net_if.c: New file.
25706         * modules/net_if-tests: New file.
25707
25708 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25709
25710         pthread: add pthread_spin_destroy
25711         * lib/pthread.in.h (pthread_spin_destroy): New function.
25712
25713 2010-09-19  Bruno Haible  <bruno@clisp.org>
25714
25715         gnulib-tool: Fix --help output.
25716         * gnulib-tool (func_usage): Fix help message.
25717         Reported by Reuben Thomas <rrt@sc3d.org>.
25718
25719 2010-09-18  Jim Meyering  <meyering@redhat.com>
25720
25721         maint.mk: avoid unexpanded \n in two diagnostics
25722         * top/maint.mk (sc_prohibit_always_true_header_tests):
25723         Don't use a literal \n in a halt=... assignment.  It would not be
25724         expanded, and the two \n bytes would appear in the diagnostic output
25725         rather than the desired newline.  Use halt=$$(printf ... instead.
25726         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25727
25728 2010-09-18  Bruno Haible  <bruno@clisp.org>
25729
25730         netinet_in: Doc tweak.
25731         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25732         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25733
25734 2010-09-18  Jim Meyering  <meyering@redhat.com>
25735
25736         init.sh: correct an outdated comment
25737         * tests/init.sh (create_exe_shims_):  s/function/alias/
25738
25739         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25740         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25741         a file named "*.exe" is removed between the glob expansion and the
25742         processing of that oddly named file.
25743
25744 2010-09-17  Eric Blake  <eblake@redhat.com>
25745
25746         mirbsd: add some more support
25747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25748         in BSD family.
25749         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25750         devices as OpenBSD.
25751         * m4/host-os.m4 (mirbsd): Add MirBSD.
25752
25753         tests: fix unportable assumption on sys/wait.h
25754         * tests/test-sys_wait.c (main): Relax test.
25755         * tests/test-stdlib.c (main): Likewise.
25756
25757         init.sh: accomodate directory with no .exes
25758         * tests/init.sh: Accomodate directory containing only scripts.
25759
25760         tests: avoid compiler warning
25761         * tests/test-stdlib.c (main): Use the variable.
25762
25763         fdutimens, fdutimensat: update signature, again
25764         * lib/utimens.h (gl_futimens): Delete, and move signature...
25765         (fdutimens): ...here.
25766         (fdutimensat): Rearrange signature.
25767         (lutimensat): Rename variable for clarity.
25768         * lib/fdutimensat.c (fdutimensat): Update signature.
25769         * lib/utimens.c (fdutimens): Likewise.
25770         (gl_futimens): Delete.
25771         (utimens, lutimens): Update callers.
25772         * lib/futimens.c (futimens): Likewise.
25773         * tests/test-fdutimensat.c: Likewise.
25774         * tests/test-utimens.c: Likewise.
25775         * tests/test-futimens.h: Update comment.
25776         * NEWS: Mention this.
25777         Suggested by Paul Eggert.
25778
25779 2010-09-17  Bruno Haible  <bruno@clisp.org>
25780
25781         Take over the maintenance of some older macros from Autoconf.
25782         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25783         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25784         GNU Autoconf.
25785         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25786         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25787
25788 2010-09-17  Eric Blake  <eblake@redhat.com>
25789
25790         fdutimensat: drop atflag validation
25791         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25792         with valid fd, to close a race scenario where futimens is
25793         unsupported and FILE was replaced by a symlink.
25794         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25795         accordingly.
25796         Suggested by Paul Eggert.
25797
25798 2010-09-16  Bruno Haible  <bruno@clisp.org>
25799
25800         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25801         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25802
25803 2010-09-16  Bruno Haible  <bruno@clisp.org>
25804
25805         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25806         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25807         login_tty exists.
25808         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25809
25810 2010-09-16  Bruno Haible  <bruno@clisp.org>
25811
25812         login_tty: Make the replacement code work on BSD systems.
25813         * lib/login_tty.c: Include <sys/ioctl.h>.
25814         (login_tty): Use ioctl TIOCSCTTY when available.
25815         * modules/login_tty (Depends-on): Add sys_ioctl.
25816         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25817
25818 2010-09-16  Bruno Haible  <bruno@clisp.org>
25819
25820         login_tty: Stricter unit test.
25821         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25822         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25823         and tcgetsid() after login_tty.
25824         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25825
25826 2010-09-16  Bruno Haible  <bruno@clisp.org>
25827
25828         New module 'tcgetsid'.
25829         * lib/tcgetsid.c: New file.
25830         * m4/tcgetsid.m4: New file.
25831         * modules/tcgetsid: New file.
25832         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25833         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25834         GNULIB_TCGETSID, HAVE_TCGETSID.
25835         * lib/termios.in.h: Include <sys/types.h>.
25836         (tcgetsid): New declaration.
25837         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25838         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25839         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25840         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25841
25842 2010-09-16  Bruno Haible  <bruno@clisp.org>
25843
25844         Tests for module 'termios'.
25845         * modules/termios-c++-tests: New file.
25846         * modules/termios-tests: New file.
25847         * tests/test-termios-c++.cc: New file.
25848         * tests/test-termios.c: New file.
25849
25850         New module 'termios'.
25851         * modules/termios: New file.
25852         * lib/termios.in.h: New file.
25853         * m4/termios_h.m4: New file.
25854         * doc/posix-headers/termios.texi: Mention the new module.
25855
25856 2010-09-16  Eric Blake  <eblake@redhat.com>
25857
25858         fdutimensat: add an atflag parameter
25859         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25860         * lib/utimens.h (fdutimensat): Update prototype.
25861         * tests/test-fdutimensat.c: Adjust test to match.
25862         * NEWS: Document the change.
25863         Suggested by Paul Eggert.
25864
25865 2010-09-16  Bruno Haible  <bruno@clisp.org>
25866
25867         Fix typos in comments.
25868         * lib/striconveh.h: Fix typo in comment.
25869         * lib/login_tty.c (login_tty): Likewise.
25870
25871 2010-09-15  Bruno Haible  <bruno@clisp.org>
25872
25873         stdlib: clarify MirBSD WEXITSTATUS bug
25874         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25875         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25876
25877 2010-09-15  Eric Blake  <eblake@redhat.com>
25878
25879         stdlib: work around MirBSD WEXITSTATUS bug
25880         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25881         * modules/stdlib (Depends-on): Add sys_wait.
25882         * tests/test-sys_wait.c (main): Enhance test.
25883         * tests/test-stdlib.c (main): Likewise.
25884         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25885
25886         docs: mention MacOS issue with WEXITSTATUS(constant)
25887         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25888         issue.
25889         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25890
25891         strnlen: add tests
25892         * modules/strnlen-tests: New file.
25893         * tests/test-strnlen.c: Likewise.
25894
25895 2010-09-14  Bruno Haible  <bruno@clisp.org>
25896
25897         unistr/base: Avoid link errors when module 'libunistring' is also used.
25898         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25899         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25900         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25901         Declare also when HAVE_LIBUNISTRING is set.
25902         Reported by Pádraig Brady <P@draigbrady.com>.
25903
25904 2010-09-14  Eric Blake  <eblake@redhat.com>
25905
25906         test-rawmemchr: make more robust
25907         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25908         (Depends-on, configure.ac): Add needed prerequisites to use it.
25909         * modules/memchr-tests (Files, Depends-on, configure.ac):
25910         Likewise, to avoid implicit reliance on memchr module prereqs.
25911         * tests/test-memchr.c (main): Ensure proper masking.
25912         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25913         reads.
25914
25915         memchr: detect glibc Alpha bug
25916         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25917         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25918         Alpha.
25919         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25920         * tests/test-memchr.c (main): Enhance test.
25921         Reported by Nelson H. F. Beebe.
25922
25923 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25924
25925         fts, getcwd, glob: audit for dirfd returning -1
25926         * lib/fts.c (opendir): Remove #define; no longer used.
25927         (opendirat): New arg PDIR_FD.  All callers changed.
25928         (fts_build, _opendir2): Use new opendirat to avoid the need for
25929         dirfd, or for checking whether dirfd returns a negative value.
25930         Don't use opendir; always use openat followed by fdopendir.
25931         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25932         it.
25933         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25934         returns -1 here.
25935         * modules/fts (Depends-on): Remove dirfd.
25936         * modules/getcwd (Depends-on): Likewise.
25937
25938 2010-09-13  Eric Blake  <eblake@redhat.com>
25939
25940         float: fix broken MirBSD header
25941         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25942         * doc/posix-headers/float.texi (float.h): Document it.
25943
25944 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25945
25946         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25947         * lib/fts.c (opendirat): New arg extra_flags.
25948         (__opendir2): Use it to avoid following symlinks when opening
25949         a directory, if symlinks are not supposed to be followed.  See
25950         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25951
25952         fdopendir: preserve argument fd before returning
25953         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25954         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25955         (fdopendir): Use them, arranging for FD to be open to the same
25956         directory that it was when it started.  (It might be temporarily
25957         closed while fdopendir is running, so this not thread- or
25958         signal-safe.)  Be careful to do the right thing even when file
25959         descriptors are scarce and dup fails with errno == EMFILE.  See
25960         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25961
25962 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25963
25964         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25965         * NEWS: Document change.
25966         * m4/regex.m4: Disable test for regoff_t size.
25967
25968 2010-09-13  Jim Meyering  <meyering@redhat.com>
25969
25970         fts: don't operate on an invalid file descriptor after failed dup
25971         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25972         negative file descriptor.
25973
25974 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25975
25976         savedir: add streamsavedir, deprecate fdsavedir
25977         * NEWS: Mention deprecation of fdsavedir.
25978         * lib/savedir.c (streamsavedir): New extern function, whose name
25979         ends in "savedir" to be consistent with the others.  This differs
25980         from savedirstream in that it doesn't close its argument.  The
25981         next version of GNU tar will use this instead of fdsavedir, to
25982         avoid some race conditions and conserve file descriptors.
25983         (savedirstream): Reimplement as a wrapper around streamsavedir.
25984         (fdsavedir): Add a comment deprecating this function.  As far as
25985         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25986         * lib/savedir.h (streamsavedir): New decl.
25987         (fdsavedir): Add a comment deprecating this.
25988
25989 2010-09-10  Bruno Haible  <bruno@clisp.org>
25990
25991         langinfo: Fix last commit.
25992         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25993         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25995
25996 2010-09-10  Bruno Haible  <bruno@clisp.org>
25997
25998         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25999         * lib/progreloc.c (O_EXEC): Define fallback.
26000
26001 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26002
26003         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26004         * NEWS: Document recent changes to fcntl-h.
26005         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26006         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26007         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26008         Similarly for O_SEARCH; this last was already true, but not documented.
26009         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26010         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26011         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26012         Likewise.
26013         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26014         is zero, not whether it is defined.
26015         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26016         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26017         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26018
26019 2010-09-10  Bruno Haible  <bruno@clisp.org>
26020
26021         langinfo, nl_langinfo: Fix for IRIX 5.3.
26022         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26023         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26024         HAVE_LANGINFO_YESEXPR.
26025         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26026         HAVE_LANGINFO_YESEXPR.
26027         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26028         HAVE_LANGINFO_T_FMT_AMPM is 0.
26029         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26030         HAVE_LANGINFO_YESEXPR is 0.
26031         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26032         NOEXPR.
26033         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26034         * doc/posix-functions/nl_langinfo.texi: Likewise.
26035         Reported by Eric Blake.
26036
26037 2010-09-10  Bruno Haible  <bruno@clisp.org>
26038
26039         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26040         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26041         on FreeBSD 8.0 and OpenBSD 4.6.
26042         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26043         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26044         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26045         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26046         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26047         ac_includes_default.
26048         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26049
26050 2010-09-09  Eric Blake  <eblake@redhat.com>
26051
26052         strsignal: work around NetBSD bug
26053         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26054         * lib/string.in.h (includes): Likewise.
26055         * doc/posix-functions/strsignal.texi (strsignal): Document the
26056         bug.
26057         Reported by Nelson H. F. Beebe.
26058
26059         gnulib-tool: work with NetBSD /bin/sh
26060         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26061         (func_get_description, func_get_comment, func_get_status)
26062         (func_get_notice, func_get_applicability, func_get_filelist)
26063         (func_get_dependencies, func_get_autoconf_early_snippet)
26064         (func_get_autoconf_snippet, func_get_automake_snippet)
26065         (func_get_include_directive, func_get_link_directive)
26066         (func_get_license, func_get_maintainer, func_import): Avoid
26067         shell syntax errors from parsing syntax extensions.
26068
26069 2010-09-09  Bruno Haible  <bruno@clisp.org>
26070
26071         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26072         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26073         a reliable way to determine whether the 'alias' command works.
26074
26075 2010-09-08  Jim Meyering  <meyering@redhat.com>
26076
26077         init.sh: penalize a set-x-impaired shell; don't disqualify it
26078         * tests/init.sh: Too many shells corrupt application stderr when
26079         you set -x, so we can't afford to disqualify them, since at least
26080         on Irix-6.5, that would disqualify all bourne shells.
26081         Instead, use a two-pass approach.
26082         On the first pass, try to find a shell that meets the stricter
26083         condition that set -x does not corrupt stderr.
26084         If no shell meets the stricter condition, retest each candidate
26085         shell, but without that extra condition.  Finally, when
26086         VERBOSE=yes is requested and set -x might cause trouble, simply
26087         issue a warning and refrain from enabling debug output.
26088
26089 2010-09-08  Eric Blake  <eblake@redhat.com>
26090
26091         unsetenv: fix OpenBSD bug
26092         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26093         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26094         documentation.
26095         Reported by Jim Meyering.
26096
26097         strtod: work around IRIX 6.5 bug
26098         * lib/strtod.c (strtod): Reparse number on shorter string if
26099         exponent parse was invalid.
26100         * tests/test-strtod.c (main): Add check for "0x1p 2".
26101         Reported by Tom G. Christensen.
26102
26103         getopt: optimize previous patch
26104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26105         empty variable.  Speed up awk script.
26106         Reported by Paolo Bonzini.
26107
26108 2010-09-08  Jim Meyering  <meyering@redhat.com>
26109
26110         test.sh: disqualify shells for which set -x corrupts stderr
26111         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26112         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26113         appear in stderr output.  For example, this command:
26114             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26115         prints "P=1" on those two systems:
26116
26117 2010-09-08  Bruno Haible  <bruno@clisp.org>
26118
26119         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26120         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26121         commands, because some shells ignore redirections when there is an
26122         error in the command lookup.
26123         Reported by Eric Blake.
26124
26125 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26126
26127         * lib/regex.h: Fix a mention of `regex_compile' (should be
26128         `re_compile_pattern').
26129         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26130         (re_set_registers): Correct name of parameter in comment.
26131
26132         * doc/regex.texi: Add documentation for missing syntax flags.
26133         Remove commented-out documentation of defunct syntax option
26134         RE_NO_EMPTY_ALTS.
26135         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26136         Add documentation of re_set_registers.
26137         Document trick to re-use a pattern buffer by setting fastmap manually.
26138         Update documentation of struct re_pattern_buffer per public members.
26139         Uncomment documentation of equivalence class operators and
26140         collating symbol operators, since they are now implemented,
26141         Explain leftmost-longest matching in relation to alternatives.
26142         Tidy documentation of substring matching.
26143         Remove POSIX documentation, which is done better in
26144         glibc, and refer the reader there. Keep BSD API documentation, as
26145         that is not readily available elsewhere.
26146
26147 2010-09-07  Eric Blake  <eblake@redhat.com>
26148
26149         getopt: handle POSIXLY_CORRECT set but not exported
26150         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26151         export state of POSIXLY_CORRECT, due to bash set -o posix.
26152         Reported by Dustin J. Mitchell.
26153
26154 2010-09-05  Bruno Haible  <bruno@clisp.org>
26155
26156         gnulib-tool: Highlight the changed options.
26157         * gnulib-tool (func_usage): Display the --import, --add-import,
26158         --remove-import explanations in bold font.
26159
26160 2010-09-06  Karl Berry  <karl@gnu.org>
26161
26162         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26163
26164 2010-09-05  Bruno Haible  <bruno@clisp.org>
26165
26166         uniwidth/width: Update comment.
26167         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26168         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26169
26170 2010-09-05  Bruno Haible  <bruno@clisp.org>
26171
26172         isinf, isnan: Relax license.
26173         * modules/isinf (License): Change from GPL to LGPL, with consent from
26174         Ben Pfaff.
26175         * modules/isnan (License): Likewise.
26176         Requested by Ludovic Courtès.
26177
26178 2010-09-04  Bruno Haible  <bruno@clisp.org>
26179
26180         gnulib-tool: Help migration from --import to --add-import or --update.
26181         * gnulib-tool: Emit a verbose error message when --import is used
26182         without any module name.
26183
26184 2010-09-04  Bruno Haible  <bruno@clisp.org>
26185
26186         Update doc about gnulib-tool.
26187         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26188         'gnulib-tool --update' in more detail.
26189         Reported by Eric Blake.
26190
26191 2010-09-04  Bruno Haible  <bruno@clisp.org>
26192
26193         gnulib-tool: Change --import. New options --add/remove-import.
26194         * gnulib-tool: New options --add-import, --remove-import.
26195         (func_usage): Document them.
26196         (have_associative): Define always.
26197         (func_import): In import mode, don't merge the specified settings with
26198         the cached settings. Implement remove-import mode.
26199         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26200         Explain when to use them versus --import.
26201         (Simple update): Use --add-import instead of --import.
26202         * NEWS: Mention the change.
26203
26204 2010-09-04  Bruno Haible  <bruno@clisp.org>
26205
26206         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26207         separate gnulib.mk.
26208
26209 2010-09-04  Bruno Haible  <bruno@clisp.org>
26210
26211         gnulib-tool: Don't talk about CVS any more.
26212         * gnulib-tool (func_usage, func_import): Write "version control"
26213         instead of CVS.
26214
26215 2010-09-04  Jim Meyering  <meyering@redhat.com>
26216
26217         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26218         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26219         false positives (whose names may be ill-chosen) when searching
26220         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26221         would cause a false-positive.
26222
26223         avoid coreutils "make distcheck" failure
26224         Coreutils tests with an absolute build directory name that contains
26225         a space.  Not quoting this directory name caused a failure.
26226         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26227         * tests/test-vc-list-files-cvs.sh: Likewise.
26228
26229 2010-09-04  Bruno Haible  <bruno@clisp.org>
26230
26231         gnulib-tool: Avoid error when run in a package without Makefile.am.
26232         * gnulib-tool: When collecting the m4dirs in a package that does not
26233         have a Makefile.am, eliminate those directories that contain no
26234         gnulib-cache.m4. Fix expression that counts these directories.
26235
26236 2010-09-04  Bruno Haible  <bruno@clisp.org>
26237
26238         update-copyright test: Improve output when perl is missing or too old.
26239         * tests/test-update-copyright.sh: Move test of Perl version down after
26240         the test whether Perl exists. Provide an explanation relating Perl's
26241         error message to Automake's SKIP: message.
26242
26243 2010-09-04  Bruno Haible  <bruno@clisp.org>
26244
26245         Don't augment PATH in TESTS_ENVIRONMENT.
26246         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26247         set abs_aux_dir instead of augmenting PATH.
26248         * modules/vc-list-files-tests (Makefile.am): Likewise.
26249         * tests/test-update-copyright.sh: Augment PATH here.
26250         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26251         path_prepend_.
26252         * tests/test-vc-list-files-git.sh: Likewise.
26253
26254 2010-09-04  Jim Meyering  <meyering@redhat.com>
26255
26256         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26257         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26258
26259 2010-09-04  Bruno Haible  <bruno@clisp.org>
26260
26261         strdup: Fix compilation error in C++ mode.
26262         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26263         the macro.
26264
26265 2010-09-04  Bruno Haible  <bruno@clisp.org>
26266
26267         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26268         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26269         macro into a function.
26270         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26271
26272 2010-09-04  Bruno Haible  <bruno@clisp.org>
26273
26274         Set PATH_SEPARATOR the same way autoconf does.
26275         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26276         the value of PATH_SEPARATOR the same way autoconf-generated configure
26277         scripts do.
26278         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26279         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26280
26281 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26282
26283         Set PATH_SEPARATOR the same way autoconf does.
26284         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26285         the same way autoconf-generated configure scripts do.
26286         * posix-modules: Likewise.
26287
26288 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26289
26290         hash: fix safe_hasher const typo
26291         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26292         const; otherwise, there is a type error later.
26293
26294 2010-09-02  Jim Meyering  <meyering@redhat.com>
26295
26296         test-update-copyright.sh: require perl 5.8.0
26297         * tests/test-update-copyright.sh: Require 5.8.0,
26298         which Tom G. Christensen has confirmed is adequate,
26299         while 5.6.1 is not.
26300
26301 2010-09-02  Eric Blake  <eblake@redhat.com>
26302
26303         tests: init.sh improvements for re-exec'ing with zsh
26304         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26305         -vx through shell re-exec.
26306         Reported by Tom G. Christensen.
26307
26308         wctype: fix typo in previous commit
26309         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26310         Reported by Ludovic Courtès.
26311
26312 2010-09-02  Jim Meyering  <meyering@redhat.com>
26313
26314         test-update-copyright.sh: skip test if Perl is too old
26315         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26316         Reported by Tom G. Christensen.
26317
26318 2010-09-02  Bruno Haible  <bruno@clisp.org>
26319
26320         wctype: Avoid compilation error on IRIX 6.5.30.
26321         * lib/wctype.in.h (iswblank): Declare with a replacement if
26322         REPLACE_ISWBLANK is set.
26323         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26324         declared. Set REPLACE_ISWBLANK.
26325         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26326         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26327         * doc/posix-headers/wctype.texi: Likewise.
26328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26329
26330 2010-09-01  Bruno Haible  <bruno@clisp.org>
26331
26332         New module 'socketlib'.
26333         * modules/socketlib: New file.
26334         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26335         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26336         * modules/sockets (Depends-on): Add socketlib.
26337         Suggested by Sam Steingold <sds@gnu.org>.
26338
26339 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26340
26341         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26342
26343         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26344         when one needs search access to a directory but not read access.
26345         On systems where it is available, it works in some cases where
26346         O_RDONLY does not, namely on directories that are searchable but
26347         not readable, and which need only to be searchable.  If O_SEARCH
26348         is not available, fall back to the traditional method of using
26349         O_RDONLY.
26350
26351         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26352         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26353         when opening a directory that needs only to be searchable.
26354         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26355         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26356         * lib/openat-proc.c (openat_proc_name): Likewise.
26357         * lib/openat.c (openat_needs_fchdir): Likewise.
26358         * lib/save-cwd.c (save_cwd): Likewise.
26359         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26360
26361 2010-08-28  Bruno Haible  <bruno@clisp.org>
26362
26363         New module 'host-cpu-c-abi'.
26364         * modules/host-cpu-c-abi: New file.
26365         * m4/host-cpu-c-abi.m4: New file, based on part of
26366         clisp/src/m4/general.m4.
26367         Requested by Sam Steingold <sds@gnu.org>.
26368
26369 2010-08-31  Eric Blake  <eblake@redhat.com>
26370         and Jim Meyering  <meyering@redhat.com>
26371
26372         hash: factor, and guard against misbehaving hasher function
26373         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26374         of table->hasher's return value.  Also protect against a hash value
26375         so large that adding it to table->bucket results in a NULL pointer.
26376         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26377         Use it in place of open-coded check-and-abort.
26378
26379 2010-08-30  Bruno Haible  <bruno@clisp.org>
26380
26381         hash: silence spurious clang warning
26382         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26383         Reported by Eric Blake.
26384
26385 2010-08-30  Eric Blake  <eblake@redhat.com>
26386
26387         strstr, memmem, strcasestr: avoid leaked shell message
26388         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26389         FreeBSD.
26390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26391         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26392
26393         tests: silence clang warning
26394         * tests/test-malloca.c (do_allocation): Avoid dead store.
26395
26396 2010-08-29  Bruno Haible  <bruno@clisp.org>
26397
26398         gettext: Fix recent mistake.
26399         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26400
26401 2010-08-29  Bruno Haible  <bruno@clisp.org>
26402
26403         selinux-h: Offer a --without-selinux option.
26404         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26405         --without-selinux was specified, skip all tests and define
26406         HAVE_SELINUX_SELINUX_H to 0.
26407         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26408         set LIB_SELINUX to empty.
26409         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26410         gl_LIBSELINUX. If --without-selinux was specified, replace
26411         selinux/context.h.
26412         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26413
26414 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26415             Bruno Haible  <bruno@clisp.org>
26416
26417         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26418         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26419         of HAVE_REALLOC.
26420         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26421         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26422         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26423         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26424
26425 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26426             Bruno Haible  <bruno@clisp.org>
26427
26428         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26429         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26430         HAVE_CALLOC.
26431         * lib/xmalloc.c: Update accordingly.
26432         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26433         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26434         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26435
26436 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26437             Bruno Haible  <bruno@clisp.org>
26438
26439         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26440         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26441         HAVE_MALLOC.
26442         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26443         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26444         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26445
26446 2010-08-29  Bruno Haible  <bruno@clisp.org>
26447
26448         Update modules list.
26449         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26450         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26451         (String handling <string.h>): Add astrxfrm.
26452         (File system functions): Add readlinkat.
26453
26454 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26455
26456         Tests for module 'realloc-gnu'.
26457         * modules/realloc-gnu-tests: New file.
26458         * tests/test-realloc-gnu.c: New file.
26459
26460         Tests for module 'calloc-gnu'.
26461         * modules/calloc-gnu-tests: New file.
26462         * tests/test-calloc-gnu.c: New file.
26463
26464         Tests for module 'malloc-gnu'.
26465         * modules/malloc-gnu-tests: New file.
26466         * tests/test-malloc-gnu.c: New file.
26467
26468 2010-08-28  Bruno Haible  <bruno@clisp.org>
26469
26470         Rename module 'realloc' -> 'realloc-gnu'.
26471         * modules/realloc-gnu: New file, copied from modules/realloc.
26472         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26473         obsolete.
26474         * modules/mgetgroups (Depends-on): Update.
26475         * doc/posix-functions/realloc.texi: Update.
26476         * NEWS: Mention the change.
26477
26478         Rename module 'calloc' -> 'calloc-gnu'.
26479         * modules/calloc-gnu: New file, copied from modules/calloc.
26480         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26481         obsolete.
26482         * doc/posix-functions/calloc.texi: Update.
26483         * NEWS: Mention the change.
26484
26485         Rename module 'malloc' -> 'malloc-gnu'.
26486         * modules/malloc-gnu: New file, copied from modules/malloc.
26487         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26488         obsolete.
26489         * modules/argp (Depends-on): Update.
26490         * modules/regex (Depends-on): Update.
26491         * doc/posix-functions/malloc.texi: Update.
26492         * NEWS: Mention the change.
26493
26494 2010-08-28  Eric Blake  <eblake@redhat.com>
26495
26496         pread, pwrite: add missing dependency
26497         * modules/pread (Depends-on): Add extensions.
26498         * modules/pwrite (Depends-on): Likewise.
26499
26500 2010-08-28  Bruno Haible  <bruno@clisp.org>
26501
26502         unistr/u*-strchr: Fix tests dependencies.
26503         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26504         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26505         Reported by Ian Beckwith <ianb@erislabs.net>.
26506
26507 2010-08-28  Bruno Haible  <bruno@clisp.org>
26508
26509         read-file: Don't occupy too much unused memory.
26510         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26511
26512 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26513             Eric Blake  <eblake@redhat.com>
26514             Bruno Haible  <bruno@clisp.org>
26515
26516         read-file: Avoid memory reallocations with regular files.
26517         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26518         (fread_file): With regular files, use the remaining length as the
26519         initial buffer size.  Check against overflow.
26520         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26521         sys_stat.
26522
26523 2010-08-28  Bruno Haible  <bruno@clisp.org>
26524
26525         ftello: Relax license.
26526         * modules/ftello (License): Relax to LGPLv2+.
26527         Reported by Eric Blake.
26528
26529 2010-08-28  Bruno Haible  <bruno@clisp.org>
26530
26531         Avoid relocwrapper link errors due to gnulib replacement functions.
26532         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26533         function.
26534         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26535
26536 2010-08-28  Bruno Haible  <bruno@clisp.org>
26537
26538         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26539         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26540         defined.
26541         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26542         Suggested by Eric Blake.
26543
26544 2010-08-28  Bruno Haible  <bruno@clisp.org>
26545
26546         sys_socket, netdb: Ensure socklen_t gets defined.
26547         * modules/sys_socket (Depends-on): Add socklen.
26548         * modules/netdb (Depends-on): Likewise.
26549         * modules/getaddrinfo (Depends-on): Remove socklen.
26550         * modules/getsockopt (Depends-on): Likewise.
26551         * modules/setsockopt (Depends-on): Likewise.
26552         * tests/test-sys_socket.c: Check that socklen_t is defined.
26553         * tests/test-netdb.c: Likewise.
26554         * m4/socklen.m4: Update comments.
26555         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26556
26557 2010-08-27  Eric Blake  <eblake@redhat.com>
26558
26559         login_tty: add missing dependency
26560         * modules/login_tty (Depends-on): Add pty.
26561
26562 2010-08-26  Eric Blake  <eblake@redhat.com>
26563
26564         lib-symbol-versions: fix m4 quoting
26565         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26566         format for AC_LINK_IFELSE.
26567
26568         glob: fix compile test
26569         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26570
26571         btowc: fix missing file
26572         * modules/btowc (Files): Also ship locale-fr.m4.
26573
26574         lseek: fix link test
26575         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26576         AC_LINK_IFELSE.
26577
26578         include_next: silence autoconf 2.68 warning
26579         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26580         AC_COMPILE_IFELSE as special.
26581         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26582         autoconf < 2.68.
26583
26584         acl: fix compilation test
26585         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26586         AC_COMPILE_IFELSE.
26587
26588 2010-08-26  Bruno Haible  <bruno@clisp.org>
26589
26590         Modernize AC_TRY_RUN invocations.
26591         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26592         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26593         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26594         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26595         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26596         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26597         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26599         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26600         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26601         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26602         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26603         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26604         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26606         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26607         gl_MBRLEN_NUL_RETVAL): Likewise.
26608         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26609         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26610         Likewise.
26611         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26612         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26613         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26614         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26615         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26616         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26617         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26618         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26619         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26620         Likewise.
26621         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26622         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26623         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26624         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26625         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26626         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26627         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26628         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26629         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26631
26632 2010-08-26  Bruno Haible  <bruno@clisp.org>
26633
26634         Modernize AC_TRY_LINK invocations.
26635         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26636         AC_TRY_LINK.
26637         * m4/argp.m4 (gl_ARGP): Likewise.
26638         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26639         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26640         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26641         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26642         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26643         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26644         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26645         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26646         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26647         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26648         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26649         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26650         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26651         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26652         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26653         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26654         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26655         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26656         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26657         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26658         Likewise.
26659         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26660         Likewise.
26661         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26662         Likewise.
26663         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26664         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26665         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26666         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26667         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26668         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26669         * m4/servent.m4 (gl_SERVENT): Likewise.
26670         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26671         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26672         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26673         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26674         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26675         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26676         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26677         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26678         * modules/tsearch-tests (configure.ac): Likewise.
26679
26680 2010-08-26  Bruno Haible  <bruno@clisp.org>
26681
26682         Modernize AC_TRY_COMPILE invocations.
26683         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26684         AC_TRY_COMPILE.
26685         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26686         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26687         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26688         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26689         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26690         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26691         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26692         * m4/lock.m4 (gl_LOCK): Likewise.
26693         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26694         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26695         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26696         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26697         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26698         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26699         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26700         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26701         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26702         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26703         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26704         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26705         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26706         extraneous semicolon.
26707
26708 2010-08-26  Jim Meyering  <meyering@redhat.com>
26709
26710         stat-time: relax license LGPL
26711         * modules/stat-time (License): Change from GPL to LGPL,
26712         with consent from all contributors, for use in libguile.
26713         Requested by Ludovic Courtès.
26714
26715 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26716
26717         poll: return immediately on POLLHUP.
26718         * lib/poll.c (poll): Always set timeout before wait_timeout is
26719         computed.
26720
26721 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26722
26723         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26724         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26725         rmdir ("dir/.//"), unlinkat.
26726
26727 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26728
26729         stdbool: avoid spurious failure with modern xlc
26730         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26731
26732 2010-08-24  Bruno Haible  <bruno@clisp.org>
26733
26734         getloadavg: simplify code
26735         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26736         gl_have_func. Update comments.
26737
26738 2010-08-24  Eric Blake  <eblake@redhat.com>
26739
26740         getloadavg: don't define SVR4 on cygwin
26741         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26742         only define SVR4 when -lkvm is required.
26743         Reported by Yaakov Selkowitz.
26744
26745 2010-08-24  Bruno Haible  <bruno@clisp.org>
26746
26747         priv-set: fix comment
26748         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26749
26750 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26751
26752         priv-set: fix comments
26753         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26754         to match code, as suggested by David Bartley in:
26755         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26756
26757 2010-08-23  Eric Blake  <eblake@redhat.com>
26758
26759         stdbool: avoid rejecting clang
26760         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26761         * tests/test-stdbool.c: Enable more tests if using the system
26762         <stdbool.h> instead of the gnulib replacement.
26763         (main): Move xlc bug test to a runtime test for all compilers.
26764         Reported by Anders Kaseorg.
26765
26766         argz: fix shell quoting issue
26767         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26768         Reported by Charles Wilson.
26769
26770 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26771             Erik Faye-Lund <kusmabite@gmail.com>
26772
26773         poll, select: handle ERROR_BROKEN_PIPE.
26774         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26775         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26776         * lib/select.c (win32_compute_revents): Do not mark a pipe
26777         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26778
26779 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26780
26781         fts: allow compilation with C++
26782         * lib/fts_.h: Specify extern "C" linkage with C++.
26783
26784 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26785
26786         Fix gnulib-tool sed script de-commentation for AIX sed.
26787         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26788         sed.
26789
26790 2010-08-17  Eric Blake  <eblake@redhat.com>
26791
26792         test-stddef: test for (some) offsetof bugs
26793         * tests/test-stddef.c: Enhance test to ensure correct type of
26794         offsetof.
26795         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26796         that we are not fixing at this time.
26797
26798 2010-08-15  Bruno Haible  <bruno@clisp.org>
26799
26800         stpncpy: Allow stpncpy to be defined as a macro.
26801         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26802         if it's already correctly declared.
26803         * lib/string.in.h (stpncpy): Undefine before redefining.
26804         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26805
26806 2010-08-14  Bruno Haible  <bruno@clisp.org>
26807
26808         Rename module 'memxfrm' to 'amemxfrm'.
26809         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26810         (amemxfrm): Renamed from memxfrm.
26811         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26812         (amemxfrm): Renamed from memxfrm.
26813         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26814         * NEWS: Mention the change.
26815         * MODULES.html.sh (String handling <string.h>): Update.
26816         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26817         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26818         * lib/unicase/u16-casexfrm.c: Likewise.
26819         * lib/unicase/u32-casexfrm.c: Likewise.
26820         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26821         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26822         * lib/uninorm/u16-normxfrm.c: Likewise.
26823         * lib/uninorm/u32-normxfrm.c: Likewise.
26824         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26825         memxfrm.
26826         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26827         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26828         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26829         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26830         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26831         Suggested by Paul Eggert.
26832
26833 2010-08-14  Bruno Haible  <bruno@clisp.org>
26834
26835         Tests for module 'astrxfrm'.
26836         * modules/astrxfrm-tests: New file.
26837         * tests/test-astrxfrm.c: New file.
26838
26839         New module 'astrxfrm'.
26840         * lib/astrxfrm.h: New file.
26841         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26842         * modules/astrxfrm: New file.
26843
26844 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26845
26846         regex: Tweak doc.
26847         * doc/regex.texi (Overview): Don't mention regex.c.
26848         (GNU Regular Expression Compiling): Likewise.
26849         (Match-end-of-line Operator): Mention 'not_eol'.
26850
26851 2010-08-14  Brian Gough  <bjg@gnu.org>
26852             Bruno Haible  <bruno@clisp.org>
26853
26854         git-merge-changelog: add doc relating to use with bzr and hg.
26855         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26856
26857 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26858
26859         pthread: fix pthread.h creation for srcdir != builddir
26860         * modules/pthread (Makefile.am): Fix the rule to work also in a
26861         non-srcdir build.
26862
26863 2010-08-13  Karl Berry  <karl@gnu.org>
26864
26865         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26866         * doc/posix-*/*: force line break before @url of POSIX
26867         specifications.
26868         Suggested by Werner Lemberg.
26869
26870 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26871
26872         strtod: fix const diagnostic
26873         * lib/strtod.c (strtod): Don't assign const char * to char *,
26874         as this elicits a warning from GCC when warnings are enabled.
26875
26876 2010-08-10  Pádraig Brady <P@draigbrady.com>
26877         and Eric Blake  <eblake@redhat.com>
26878
26879         copy-acl: ignore ENOTSUP on HP-UX
26880         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26881         so that it is available for HP-UX.
26882         * lib/copy-acl.c (qcopy_acl): Use it.
26883         Reported by Patrick M. Callahan.
26884
26885 2010-08-10  Eric Blake  <eblake@redhat.com>
26886
26887         open, chown: relax license
26888         * modules/open (License): Change to LGPLv2+, with consent by all
26889         authors, for use in augeas.
26890         * modules/chown (License): Likewise.
26891         * modules/lchown (Likewise): Likewise.
26892         Requested by Adam Stokes.
26893
26894 2010-08-09  Karl Berry  <karl@gnu.org>
26895
26896         * build-aux/ar-lib: new file, import from Automake.
26897         * config/srclist.txt: autocheck for updates.
26898
26899 2010-08-09  Eric Blake  <eblake@redhat.com>
26900
26901         readlinkat: adjust client modules
26902         * modules/areadlinkat (Depends-on): Use readlinkat, not
26903         symlinkat.
26904         * modules/areadlinkat-with-size (Depends-on): Likewise.
26905
26906         mknod: be more vocal about danger of running tests as root
26907         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26908         root, since that is just asking for problems.
26909         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26910
26911         readlinkat: split into its own module
26912         * modules/symlinkat: Split readlinkat...
26913         * modules/readlinkat: ...into separate module.
26914         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26915         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26916         * lib/symlinkat.c (readlinkat): Move...
26917         * lib/readlinkat.c: ...into new file.
26918         * modules/symlinkat-tests: Split readlinkat test...
26919         * modules/readlinkat-tests: ...into separate module.
26920         * tests/test-symlinkat.c: Split...
26921         * tests/test-readlinkat.c: ...into new file.
26922         * NEWS: Document the split.
26923         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26924         * lib/unistd.in.h (readlinkat): Likewise.
26925         Suggested by Bruno Haible.
26926
26927 2010-08-08  Bruno Haible  <bruno@clisp.org>
26928
26929         memxfrm: Speed up.
26930         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26931         that usually only one call to strxfrm is necessary for each string
26932         part.
26933         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26934
26935 2010-08-07  Karl Berry  <karl@gnu.org>
26936
26937         * doc/posix-headers/limits.texi,
26938         * doc/posix-functions/malloc.texi,
26939         * doc/posix-functions/strsignal.texi: missing @item.
26940         * doc/ld-version-script.texi: spurious leading i.
26941         * doc/regex.texi (Interval Operators): no commas inside @var.
26942
26943 2010-08-01  Bruno Haible  <bruno@clisp.org>
26944
26945         Integrate the regex documentation.
26946         * doc/gnulib.texi: Define 'cn' index.
26947         (Regular expressions): New a chapter that includes regex.texi and
26948         regexprops-generic.texi.
26949         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26950         syntax.
26951
26952         Whitespace cleanup.
26953         * doc/regex.texi: Remove trailing spaces.
26954
26955         Add regex documentation.
26956         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26957         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26958         Written by Kathy A. Hargreaves and Karl Berry.
26959
26960 2010-08-01  Bruno Haible  <bruno@clisp.org>
26961
26962         link: Update documentation.
26963         * doc/posix-functions/link.texi: Update regarding Solaris.
26964
26965 2010-07-31  Bruno Haible  <bruno@clisp.org>
26966
26967         Update modules list.
26968         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26969         (String handling <string.h>): Add memcmp2, memxfrm.
26970         (Container data structures): Add xlist, xsublist, xoset.
26971         (Core language properties): Add alignof, unused-parameter.
26972         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26973         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26974         (Unibyte characters <ctype.h>): New section.
26975         (String handling <string.h>): New section.
26976         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26977         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26978         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26979         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26980         tan, tanh, tanl, y0, y1, yn.
26981         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26982         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26983         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26984         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26985         unlockpt, vdprintf, vdprintf-posix.
26986         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26987         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26988         xconcat-filename.
26989         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26990         getdtablesize, pipe2, pipe2-safer.
26991         (Security): New section.
26992         (Networking functions): Add accept4.
26993         (Signal handling): Add sigpipe.
26994         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26995         mbmemcasecoll.
26996         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26997         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26998         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26999         pipe-filter-ii.
27000         (Misc): Add argp-version-etc, login_tty, parse-duration.
27001
27002 2010-07-31  Bruno Haible  <bruno@clisp.org>
27003
27004         Improve doc in MODULES.html.
27005         * modules/linkat (Description): Add the word "function".
27006         * modules/mkfifo (Description): Likewise.
27007         * modules/mknod (Description): Likewise.
27008         * modules/remove (Description): Likewise.
27009         * modules/renameat (Description): Likewise.
27010         * modules/stat (Description): Likewise.
27011         * modules/symlink (Description): Likewise.
27012         * modules/unlink (Description): Likewise.
27013
27014 2010-07-31  Bruno Haible  <bruno@clisp.org>
27015
27016         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27017         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27018         option --enable/disable-c++ instead of --enable/disable-cxx.
27019         * NEWS: Mention the change.
27020
27021 2010-07-31  Bruno Haible  <bruno@clisp.org>
27022
27023         readlink, areadlink: Relax test a bit.
27024         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27025         alternative to ENOTDIR.
27026         * tests/test-areadlink.h (test_areadlink): Likewise.
27027         Reported by Rainer Tammer.
27028
27029 2010-07-31  Bruno Haible  <bruno@clisp.org>
27030
27031         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27032         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27033         character, perform the search using U_STRCHR.
27034         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27035         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27036         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27037         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27038         Suggested by Paolo Bonzini.
27039
27040 2010-07-31  Bruno Haible  <bruno@clisp.org>
27041
27042         unistr/u*-strstr: Fix dependencies.
27043         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27044         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27045         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27046
27047 2010-07-31  Bruno Haible  <bruno@clisp.org>
27048
27049         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27050         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27051         the beginning of the loop.
27052         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27053         cases in 'switch' statement.
27054
27055         unistr/u8-strchr: Fix several bugs.
27056         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27057         the string. When not found, return NULL, not a pointer near the end.
27058
27059         More tests for unistr/u8-strchr.
27060         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27061         that the function does not read past the first occurrence of the byte
27062         being searched.
27063         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27064         * tests/unistr/test-u16-strchr.c (main): New function.
27065         * tests/unistr/test-u32-strchr.c (main): New function.
27066
27067 2010-07-31  Bruno Haible  <bruno@clisp.org>
27068
27069         posix-modules: Ignore backup files of documentation files.
27070         * posix-modules: grep only through files named *.texi.
27071
27072 2010-07-31  Bruno Haible  <bruno@clisp.org>
27073
27074         symlinkat: Fix documentation.
27075         * doc/posix-functions/readlinkat.texi: Fix module name.
27076
27077 2010-07-31  Bruno Haible  <bruno@clisp.org>
27078
27079         fchownat: Replace also when chown has the trailing slash bug.
27080         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27081         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27082         introduced on 2010-04-10.
27083         Reported by Rainer Tammer.
27084
27085 2010-07-31  Bruno Haible  <bruno@clisp.org>
27086
27087         linkat: Work around AIX 7.1 bug.
27088         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27089         whether linkat handles trailing slash correctly. If not, replace linkat
27090         and define LINKAT_TRAILING_SLASH_BUG.
27091         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27092         check whether (fd1,file1) points to a directory if file1 or file2 ends
27093         in a slash. Code taken from lib/link.c.
27094         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27095         Reported by Rainer Tammer.
27096
27097 2010-07-31  Bruno Haible  <bruno@clisp.org>
27098
27099         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27100         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27101         This disables an xlc optimization that was causing wrong test results.
27102         Reported by Rainer Tammer.
27103
27104 2010-07-31  Bruno Haible  <bruno@clisp.org>
27105
27106         iconv: Work around AIX 6.1..7.1 bug.
27107         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27108         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27109         cross-compiling, guess no on all versions of AIX.
27110         Reported by Rainer Tammer.
27111
27112 2010-07-31  Bruno Haible  <bruno@clisp.org>
27113
27114         readlink: Relax test a bit.
27115         * tests/test-readlink.h (test_readlink): Allow different errno value
27116         when readlink is called with a file name that ends in / and refers to
27117         a file.
27118         Suggested by Eric Blake.
27119         Reported by Rainer Tammer.
27120
27121 2010-07-31  Bruno Haible  <bruno@clisp.org>
27122
27123         copysign: Does not require -lm on glibc systems.
27124         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27125         gl_COMMON_DOUBLE_MATHFUNC.
27126         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27127
27128 2010-07-31  Bruno Haible  <bruno@clisp.org>
27129
27130         duplocale: Work around AIX 7.1 bug.
27131         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27132         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27133         * lib/duplocale.c (rpl_duplocale): Update comment.
27134         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27135         Reported by Rainer Tammer.
27136
27137 2010-07-30  Bruno Haible  <bruno@clisp.org>
27138
27139         dirfd: Avoid link error on AIX 7.1.
27140         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27141         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27142         exist, set REPLACE_DIRFD.
27143         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27144         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27145         * doc/posix-functions/dirfd.texi: Update.
27146         Reported by Rainer Tammer.
27147
27148 2010-07-30  Eric Blake  <eblake@redhat.com>
27149
27150         strtod: next round of AIX fixes
27151         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27152         exponent.
27153         * tests/test-strtod.c (main): Enhance tests.
27154         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27155         Reported by Rainer Tammer.
27156
27157         futimens: fix configure check
27158         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27159         Reported by Bruno Haible.
27160
27161 2010-07-30  Bruno Haible  <bruno@clisp.org>
27162
27163         getline: Update regarding AIX.
27164         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27165         Reported by Rainer Tammer.
27166
27167 2010-07-30  Bruno Haible  <bruno@clisp.org>
27168
27169         wcwidth: Drop replacement on AIX 7.
27170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27171         AIX 7.
27172         Reported by Rainer Tammer.
27173
27174 2010-07-30  Bruno Haible  <bruno@clisp.org>
27175
27176         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27177         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27178         a 'char *'.
27179         Reported by Rainer Tammer.
27180
27181 2010-07-30  Bruno Haible  <bruno@clisp.org>
27182
27183         unlink: Update regarding AIX.
27184         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27185         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27186         Reported by Rainer Tammer.
27187
27188 2010-07-30  Bruno Haible  <bruno@clisp.org>
27189
27190         symlink: Update regarding AIX.
27191         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27192         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27193         Reported by Rainer Tammer.
27194
27195 2010-07-30  Bruno Haible  <bruno@clisp.org>
27196
27197         strndup: Update regarding AIX.
27198         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27199         AIX 7.
27200         Reported by Rainer Tammer.
27201
27202 2010-07-30  Bruno Haible  <bruno@clisp.org>
27203
27204         stat: Update regarding AIX.
27205         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27206         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27207         Reported by Rainer Tammer.
27208
27209 2010-07-30  Bruno Haible  <bruno@clisp.org>
27210
27211         truncl: Fix autoconf test.
27212         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27213         whether truncl works.
27214         Reported by Rainer Tammer.
27215
27216 2010-07-30  Bruno Haible  <bruno@clisp.org>
27217
27218         round: Update regarding AIX.
27219         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27220         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27221         Reported by Rainer Tammer.
27222
27223 2010-07-30  Bruno Haible  <bruno@clisp.org>
27224
27225         rename: Update regarding AIX.
27226         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27227         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27228         Reported by Rainer Tammer.
27229
27230 2010-07-30  Bruno Haible  <bruno@clisp.org>
27231
27232         printf.m4: Update regarding AIX.
27233         * m4/printf.m4: Update comments regarding AIX.
27234         Reported by Rainer Tammer.
27235
27236 2010-07-30  Bruno Haible  <bruno@clisp.org>
27237
27238         iconv: Update regarding AIX.
27239         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27240         AIX 7.
27241         Reported by Rainer Tammer.
27242
27243 2010-07-30  Bruno Haible  <bruno@clisp.org>
27244
27245         getopt: Update regarding AIX.
27246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27247         no on AIX.
27248         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27249         Reported by Rainer Tammer.
27250
27251 2010-07-30  Bruno Haible  <bruno@clisp.org>
27252
27253         ldexpl; Update regarding AIX.
27254         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27255         on AIX 7.
27256         Reported by Rainer Tammer.
27257
27258 2010-07-30  Bruno Haible  <bruno@clisp.org>
27259
27260         frexpl: Update regarding AIX.
27261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27262         on AIX 7.
27263         Reported by Rainer Tammer.
27264
27265 2010-07-30  Bruno Haible  <bruno@clisp.org>
27266
27267         open, fopen: Update regarding AIX.
27268         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27269         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27270         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27271         * doc/posix-functions/fopen.texi: Likewise.
27272         Reported by Rainer Tammer.
27273
27274 2010-07-30  Bruno Haible  <bruno@clisp.org>
27275
27276         chown: Update doc regarding AIX.
27277         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27278         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27279         Reported by Rainer Tammer.
27280
27281 2010-07-30  Eric Blake  <eblake@redhat.com>
27282
27283         strtod: fix bug in replacement function on AIX
27284         * lib/strtod.c (strtod): Special case broken "0x" parse in
27285         underlying strtod.
27286         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27287         * doc/posix-functions/strtod.texi (strtod): Likewise.
27288         Reported by Rainer Tammer.
27289
27290 2010-07-30  Bruno Haible  <bruno@clisp.org>
27291
27292         mbrlen: Fix cross-compilation guess for AIX.
27293         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27294         guess. Leftover from 2008-12-22.
27295
27296 2010-07-30  Bruno Haible  <bruno@clisp.org>
27297
27298         mbrtowc: Fix cross-compilation guess for AIX.
27299         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27300         guess. Leftover from 2008-12-21.
27301
27302 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27303
27304         init.sh: work around trap limitation of some shells
27305         * tests/init.sh (setup_): Move exit trap outside of shell function.
27306
27307 2010-07-29  Eric Blake  <eblake@redhat.com>
27308
27309         strtod: aid debugging
27310         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27311         understanding why strtod is rejected.
27312
27313 2010-07-28  Bruno Haible  <bruno@clisp.org>
27314
27315         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27316         * lib/unistr/u8-chr.c: Include <string.h>.
27317         * tests/unistr/test-u8-chr.c: Likewise.
27318         * tests/unistr/test-u16-chr.c: Likewise.
27319         * tests/unistr/test-u32-chr.c: Likewise.
27320         * tests/unistr/test-u8-strchr.c: Likewise.
27321         * tests/unistr/test-u16-strchr.c: Likewise.
27322         * tests/unistr/test-u32-strchr.c: Likewise.
27323         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27324         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27325         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27326         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27327
27328 2010-07-28  Bruno Haible  <bruno@clisp.org>
27329
27330         Use spaces for indentation, not tabs.
27331         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27332
27333 2010-07-27  Bruno Haible  <bruno@clisp.org>
27334
27335         mbspcasecmp: Fix function specification.
27336         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27337         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27338         Reported by Eric Blake <eblake@redhat.com>.
27339
27340 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27341
27342         timespec: use cast and not conditional, as truncation isn't possible
27343         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27344         instead of a conditional.  Comment about the situation in more detail.
27345         This undoes most of the 2009-10-29 patch.
27346
27347 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27348
27349         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27350         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27351         * lib/unistr/u8-strchr.c: Likewise.
27352         * modules/unistr/u8-chr: Depend on memchr.
27353
27354         unistr/u*-strchr: add tests
27355         * modules/unistr/u8-strchr-tests: New file.
27356         * modules/unistr/u16-strchr-tests: New file.
27357         * modules/unistr/u32-strchr-tests: New file.
27358         * tests/unistr/test-strchr.h: New file.
27359         * tests/unistr/test-u8-strchr.c: New file.
27360         * tests/unistr/test-u16-strchr.c: New file.
27361         * tests/unistr/test-u32-strchr.c: New file.
27362
27363         unistr/u*-chr: test multibyte sequences more
27364         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27365         test vector.
27366         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27367         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27368         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27369
27370         unistr/u*-chr: test multibyte sequences
27371         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27372
27373         unistr/u*-chr: prepare for multibyte tests
27374         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27375         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27376         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27377         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27378         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27379         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27380
27381 2010-07-18  Bruno Haible  <bruno@clisp.org>
27382
27383         unistr/u8-strchr: Optimize non-ASCII argument case.
27384         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27385         because the first byte often matches anyway.
27386         Reported by Pádraig Brady <P@draigbrady.com>.
27387
27388 2010-07-15  Karl Berry  <karl@gnu.org>
27389
27390         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27391
27392 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27393
27394         getcwd: on Solaris, work better if ancestors are inaccessible
27395         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27396         buffer and size, try again with a large buffer.  This works better
27397         on Solaris, since its getcwd succeeds even if the path to the root
27398         is inaccessible, and this is helpful in common cases such as .zfs
27399         hidden directories.  Problem reported by J Chapman Flack in
27400         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27401         Use system getcwd if it's declared, not merely if it's partly
27402         working; use the partly-working test only to avoid needless effort
27403         if the system getcwd fails.
27404         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27405         comment that was already obsolete and is now even more obsolete.
27406         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27407         now might call strdup.
27408
27409 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27410
27411         pthread: Add enough so that coreutils/src/sort.c compiles.
27412         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27413         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27414         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27415         Include <sys/types.h>, in case it defines pthread_t.
27416         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27417         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27418         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27419         (pthread_rwlockattr_t, pthread_spinlock_t):
27420         New typedefs, if HAVE_PTHREAD_T is not defined.
27421         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27422         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27423         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27424         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27425         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27426         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27427         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27428         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27429         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27430         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27431         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27432         New macros.
27433         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27434         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27435         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27436         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27437         (pthread_spin_unlock): New dummy functions.
27438         (pthread_create): Return EAGAIN; don't set errno.
27439         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27440         require AC_C_INLINE.
27441         * modules/pthread (Depends-on): Add sched, time.
27442         (pthread.h): Use AM_V_GEN.
27443
27444 2010-07-13  Bruno Haible  <bruno@clisp.org>
27445
27446         striconveh: Don't malloc memory if the result buffer is sufficient.
27447         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27448         buffer if its size is sufficient.
27449         Reported by Ludovic Courtès <ludo@gnu.org>.
27450
27451 2010-07-13  Bruno Haible  <bruno@clisp.org>
27452
27453         strtod: Add safety check.
27454         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27455
27456 2010-07-12  Bruno Haible  <bruno@clisp.org>
27457
27458         Unify tests that set gl_cv_func_ldexpl_no_libm.
27459         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27460         gl_FUNC_LDEXPL.
27461         (gl_FUNC_LDEXPL): Invoke it.
27462         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27463
27464 2010-07-12  Bruno Haible  <bruno@clisp.org>
27465
27466         Unify tests that set gl_cv_func_ldexp_no_libm.
27467         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27468         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27469         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27470         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27471         * modules/strtod (Files): Add m4/ldexp.m4.
27472
27473 2010-07-12  Bruno Haible  <bruno@clisp.org>
27474
27475         Unify tests that set gl_cv_func_frexpl_no_libm.
27476         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27477         gl_FUNC_FREXPL_NO_LIBM.
27478         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27479         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27480
27481 2010-07-12  Bruno Haible  <bruno@clisp.org>
27482
27483         Unify tests that set gl_cv_func_frexp_no_libm.
27484         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27485         gl_FUNC_FREXP_NO_LIBM.
27486         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27487         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27488
27489 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27490
27491         memcoll: clarify sizes versus lengths, document better, and tweak perf
27492         * lib/memcoll.c (strcoll_loop, memcoll0):
27493         Improve quality of descriptive comments.  Name variables
27494         consistently as to whether they are lengths (which do not include
27495         terminating null) versus sizes (which do).
27496         * lib/xmemcoll.c (xmemcoll0): Likewise.
27497         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27498         returned when s1size == 0; this is easier to compile and saves
27499         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27500
27501 2010-07-12  Bruno Haible  <bruno@clisp.org>
27502
27503         Tests for module '_Exit'.
27504         * modules/_Exit-tests: New file.
27505         * tests/test-_Exit.sh: New file.
27506         * tests/test-_Exit.c: New file.
27507
27508         New module '_Exit'.
27509         * lib/stdlib.in.h (__attribute__): New macro.
27510         (_Exit): New declaration.
27511         * lib/_Exit.c: New file.
27512         * m4/_Exit.m4: New file.
27513         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27514         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27515         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27516         * modules/_Exit: New file.
27517         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27518         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27519
27520 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27521
27522         strtod: make it more-accurate typically, and don't require libm
27523         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27524         Include limits.h.  Don't include string.h.
27525         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27526         (locale_isspace): New function, so that no casts are needed to
27527         check whether *s is a space.
27528         (ldexp): Provide an unused dummy if not available.
27529         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27530         (strtod): Use them.  This implementation prefers to use the
27531         underlying strtod if available, falling back on our own code
27532         only to fix known bugs.  This is more likely to produce an
27533         accurate result.  Also, it avoids the use of libm functions.
27534         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27535         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27536         was absent, but it caused a test failure with coreutils.
27537         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27538         with libm.
27539         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27540         * modules/strtod-tests (Makefile.am): Likewise.
27541
27542 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27543             Bruno Haible  <bruno@clisp.org>
27544
27545         unistr/u8-strchr: Optimize ASCII argument case.
27546         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27547
27548 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27549
27550         (x)memcoll: minor tweaks
27551         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27552         is after the type that it qualifies.
27553         (memcoll0): Likewise.
27554         * lib/memcoll.h (memcoll0): Likewise.
27555         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27556         * lib/xmemcoll.h (xmemcoll0): Likewise.
27557         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27558         differs from memcoll in that the NUL byte is part of the argument.
27559         Omit the abort-checks, as performance is a real issue here.  Plus,
27560         the checks were wrong anyway (an off-by-one error).  Omit local
27561         variable 'diff', as it's a bit clearer that way.
27562         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27563         no longer needed.
27564
27565 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27566
27567         (x)memcoll: speedup when input is known to be NUL delimited
27568         * lib/memcoll.c: Include stdlib.
27569         (memcoll0): New function.
27570         (strcoll_loop): New function, refactored for use in both memcoll
27571         and memcoll0.
27572         * lib/memcoll.h (memcoll0): Add prototype.
27573         * lib/xmemcoll.c (xmemcoll0): New function.
27574         (collate_error): New function, refactored for use in both xmemcoll
27575         and xmemcoll0.
27576         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27577         * m4/memcoll.m4: add inline invocation.
27578
27579 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27580
27581         * build-aux/bootstrap: Remove any local translations
27582         from the translation project synchronization directory,
27583         so that local only translations are not distributed.
27584
27585 2010-07-04  Bruno Haible  <bruno@clisp.org>
27586
27587         fsusage: Clarify which code applies to which platforms.
27588         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27589         platform.
27590         * lib/fsusage.c (get_fs_usage): Likewise.
27591
27592 2010-07-04  Bruno Haible  <bruno@clisp.org>
27593
27594         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27595         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27596         Reported by Martin Lambers <marlam@marlam.de>.
27597
27598 2010-07-04  Jim Meyering  <meyering@redhat.com>
27599
27600         hash: once again explicitly disallow insertion of NULL
27601         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27602         inserting a NULL pointer cannot work with these functions.
27603         Add a comment with details.
27604         This reverts part of the 2010-07-01 commit, 5bef1a35
27605         "hash: extend module to deal with non-pointer keys".
27606
27607 2010-07-01  Bruno Haible  <bruno@clisp.org>
27608
27609         stdbool: Update doc.
27610         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27611         Info from Christian Weisgerber <naddy@mips.inka.de>.
27612
27613 2010-07-01  Jim Meyering  <meyering@redhat.com>
27614
27615         hash: extend module to deal with non-pointer keys
27616         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27617         but that allows insertion of non-pointer entries.
27618         Do not disallow an ENTRY value of NULL.
27619         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27620         * lib/hash.h (hash_insert0): Declare.
27621
27622 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27623
27624         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27625         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27626         not present (i.e. with autoconf 2.59 and when using gettextize, not
27627         gnulib), require AC_GNU_SOURCE instead.
27628
27629 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27630
27631         idpriv-drop: Fix tests.
27632         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27633         not to the test-idpriv-droptemp program.
27634
27635 2010-06-29  Bruno Haible  <bruno@clisp.org>
27636
27637         string: Fix syntax error with g++ 2.96.
27638         * lib/string.in.h (__pure__): Remove definition.
27639         (_GL_ATTRIBUTE_PURE): New macro.
27640         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27641         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27642         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27643
27644 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27645
27646         unitypes: Fix bug introduced on 2010-05-18.
27647         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27648
27649 2010-06-22  Eric Blake  <eblake@redhat.com>
27650
27651         memmem: slight optimization
27652         * lib/str-two-way.h (critical_factorization): Update comments.
27653         Reduce work during factorization phase.
27654         Reported by Carlos Bueno <carlos@bueno.org>.
27655
27656 2010-06-21  Bruno Haible  <bruno@clisp.org>
27657
27658         Fix HAVE_CALLOC_POSIX misnomer.
27659         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27660         !HAVE_CALLOC_POSIX.
27661         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27662         HAVE_CALLOC_POSIX.
27663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27664         instead of HAVE_CALLOC_POSIX.
27665         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27666         HAVE_CALLOC_POSIX.
27667
27668         Use modern idiom for calloc() replacement.
27669         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27670         AC_FUNC_CALLOC.
27671         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27672         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27673         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27674         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27675         (gl_REPLACE_CALLOC): New macro.
27676
27677 2010-06-21  Bruno Haible  <bruno@clisp.org>
27678
27679         Fix HAVE_REALLOC_POSIX misnomer.
27680         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27681         !HAVE_REALLOC_POSIX.
27682         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27683         HAVE_REALLOC_POSIX.
27684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27685         instead of HAVE_REALLOC_POSIX.
27686         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27687         HAVE_REALLOC_POSIX.
27688
27689         Use modern idiom for realloc() replacement.
27690         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27691         AC_FUNC_REALLOC.
27692         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27693         Autoconf's AC_FUNC_REALLOC.
27694         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27695         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27696         (gl_REPLACE_REALLOC): New macro.
27697         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27698
27699 2010-06-21  Bruno Haible  <bruno@clisp.org>
27700
27701         Fix HAVE_MALLOC_POSIX misnomer.
27702         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27703         !HAVE_MALLOC_POSIX.
27704         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27705         HAVE_MALLOC_POSIX.
27706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27707         instead of HAVE_MALLOC_POSIX.
27708         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27709         HAVE_MALLOC_POSIX.
27710
27711         Use modern idiom for malloc() replacement.
27712         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27713         AC_FUNC_MALLOC.
27714         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27715         Autoconf's AC_FUNC_MALLOC.
27716         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27717         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27718         (gl_REPLACE_MALLOC): New macro.
27719         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27720
27721 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27722
27723         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27724         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27725         This macro takes 3 arguments, not 4.
27726
27727 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27728
27729         ipv6: fix detection under mingw
27730         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27731         in6_addr.
27732
27733 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27734
27735         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27736         that strtod() works when cross-compiling to a glibc version known
27737         to work.
27738
27739 2010-06-15  Bruno Haible  <bruno@clisp.org>
27740
27741         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27742
27743 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27744
27745         select: Correct timeout.
27746         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27747
27748 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27749
27750         git-version-gen: init shell var to avoid env var influence
27751         * build-aux/git-version-gen (v): Init shell var to empty.
27752
27753 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27754
27755         priv-set: Don't assume that priv.h exists merely because getppriv does.
27756         See Jan Andersen's bug report about AIX 5L in
27757         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27758         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27759         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27760         * lib/priv-set.h: Likewise.
27761         * tests/test-priv-set.c: Likewise.
27762
27763 2010-06-13  Bruno Haible  <bruno@clisp.org>
27764
27765         relocatable: Make it easier to test whether to install wrappers.
27766         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27767         RELOCATABLE_VIA_WRAPPER.
27768
27769 2010-06-13  Bruno Haible  <bruno@clisp.org>
27770
27771         gnulib-tool: Display specified modules and dependencies differently.
27772         * gnulib-tool (func_show_module_list): New function.
27773         (func_import, func_create_testdir): Invoke it.
27774         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27775
27776 2010-06-13  Bruno Haible  <bruno@clisp.org>
27777
27778         gnulib-tool: Align code of func_import and func_create_testdir.
27779         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27780         specified_modules.
27781
27782 2010-06-12  Jim Meyering  <meyering@redhat.com>
27783
27784         test-inttostr: avoid spurious failure on Solaris 9
27785         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27786         to accept "%ju".  Reported by Bruno Haible.
27787
27788 2010-06-11  Jim Meyering  <meyering@redhat.com>
27789
27790         test-sys_socket: mark variables as used more readably
27791         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27792         as "used" explicitly via (void) statement casts.  This is more
27793         readable than using them in an artificial return expression.
27794         Suggestion from Bruno Haible.
27795
27796 2010-06-11  Bruno Haible  <bruno@clisp.org>
27797
27798         Avoid some more warnings from "gcc -Wwrite-strings".
27799         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27800         to 'const char *'.
27801         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27802         * tests/test-c-strcasestr.c (main): Likewise.
27803         * tests/test-mbscasestr1.c (main): Likewise.
27804         * tests/test-mbscasestr2.c (main): Likewise.
27805         * tests/test-memmem.c (main): Likewise.
27806         * tests/test-strstr.c (main): Likewise.
27807         * tests/test-strcasestr.c (main): Likewise.
27808
27809 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27810
27811         init.sh: change framework_failure_ to fail with status 99, not 1
27812         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27813         automake's parallel-tests rule that this is an unexpected failure,
27814         even if the test is listed in XFAIL_TESTS.
27815
27816 2010-06-11  Jim Meyering  <meyering@redhat.com>
27817
27818         test-inttostr: avoid warnings about 4-6KB literal strings
27819         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27820         Include "macros.h", for its definition of ASSERT.
27821         (CK): s/assert/ASSERT/
27822         * modules/inttostr-tests (Files): Add macros.h.
27823
27824         init.sh: don't use $ME_ or skip_ before they are defined
27825         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27826         their first uses.  Also hoist their companions: warn_, fail_,
27827         framework_failure_, $stderr_fileno.  Prompted by a patch from
27828         Stefano Lattarini.
27829
27830         test-sys_socket: avoid set-but-not-used warnings from gcc
27831         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27832         avoid warning about set-but-not-used variables.
27833
27834         test-xvasprintf: avoid 'const' discard warnings
27835         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27836         "const" when assigning from literal strings.
27837         (test_xasprintf): Add "void" in function argument list to placate
27838         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27839
27840         tests: avoid compilation warnings in argmatch and exclude tests...
27841         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27842         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27843         Since it always exits, declare with the "noreturn" attribute.
27844         * tests/test-argmatch.c: Likewise.
27845
27846         tests: avoid 'const' discard warnings in mbsstr tests
27847         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27848         * tests/test-mbsstr2.c (main): Likewise.
27849
27850         test-verify: avoid warning from gcc's -Wmissing-declarations
27851         * tests/test-verify.c (function): Declare to be static.
27852
27853         test-inttostr.c: include <string.h> for use of strcmp
27854         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27855
27856         test-linkat: avoid failed assertion on "other" architectures
27857         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27858         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27859         sparc: https://bugs.launchpad.net/bugs/591968
27860
27861 2010-06-11  Jim Meyering  <meyering@redhat.com>
27862
27863         printf.m4: avoid autoconf's "Expanded Before Required" warning
27864         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27865         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27866         autoconf warning.
27867
27868 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27869
27870         Replacement header templates are now named with ".in", not "_".
27871         * doc/gnulib-intro.texi: Correct.
27872
27873 2010-06-10  Jim Meyering  <meyering@redhat.com>
27874
27875         inttostr-tests: depend on snprintf, not snprintf-posix
27876         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27877         snprintf-posix, to avoid this aclocal failure:
27878           missing file gnulib-tests/vasnprintf.c
27879           configure.ac:45: error: expected source file, required through \
27880           AC_LIBSOURCES, not found
27881
27882 2010-06-10  Jim Meyering  <meyering@redhat.com>
27883
27884         inttostr: add a new function, inttostr, and tests
27885         The namesake function was not available.  The existence of the
27886         template file, inttostr.c makes its addition nontrivial.
27887         * lib/anytostr.c: Rename from inttostr.c.
27888         (anytostr): Rename from inttostr.
27889         * lib/inttostr.c: New file.
27890         * modules/inttostr (Files): Add anytostr.c.
27891         (Makefile.am): Set lib_SOURCES instead of ...
27892         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27893         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27894         * lib/offtostr.c: Likewise.
27895         * lib/uinttostr.c: Likewise.
27896         * lib/umaxtostr.c: Likewise.
27897         * modules/inttostr-tests: New file.
27898         * tests/test-inttostr.c: New file.  Test these functions.
27899
27900 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27901             Bruno Haible  <bruno@clisp.org>
27902
27903         Add "Extending Gnulib" chapter to manual.
27904         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27905         chapter.
27906         (Extending Gnulib): New chapter.
27907         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27908         chapter.
27909
27910 2010-06-09  Bruno Haible  <bruno@clisp.org>
27911
27912         Avoid relocwrapper link errors due to gnulib replacement functions.
27913         * lib/areadlink.c: Use the system's malloc, realloc functions.
27914         (areadlink): Set errno to ENOMEM explicitly.
27915         * modules/areadlink (Depends-on): Remove malloc-posix.
27916         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27917
27918 2010-06-09  Bruno Haible  <bruno@clisp.org>
27919
27920         Avoid relocwrapper link errors due to gnulib replacement functions.
27921         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27922         * lib/malloca.c: Likewise.
27923         * lib/relocatable.c: Likewise.
27924         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27925         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27926         * lib/setenv.c: Use the system's malloc, realloc functions.
27927         * lib/strerror.c: Use the system's sprintf function.
27928         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27929
27930 2010-06-04  Bruno Haible  <bruno@clisp.org>
27931
27932         Prefer documented low-level autoconf macro names.
27933         * m4/lib-link.m4: Use m4_translit instead of translit.
27934         * m4/environ.m4: Likewise.
27935         * m4/mathfunc.m4: Likewise.
27936         * m4/onceonly.m4: Likewise.
27937         * m4/stdint.m4: Likewise.
27938         Suggested by Eric Blake.
27939
27940 2010-06-04  Martin Lambers  <marlam@marlam.de>
27941             Bruno Haible  <bruno@clisp.org>
27942
27943         havelib: Allow library names with '+' characters.
27944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27945         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27946
27947 2010-06-09  Bruno Haible  <bruno@clisp.org>
27948
27949         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27950         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27951         realloc failed.
27952
27953 2010-06-08  Peter Simons  <simons@cryp.to>
27954
27955         maint.mk: make the news-check rule more configurable
27956         * top/maint.mk (news-check-lines-spec): New variable.
27957         (news-check): Use "sed -n 1,10p" in place of "head".
27958
27959 2010-06-07  Jim Meyering  <meyering@redhat.com>
27960
27961         do-release-commit-and-tag: fix typo in --help
27962         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27963
27964         regex: avoid new dead-code warning with gcc-4.6.0
27965         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27966         if-block containing a while-loop.  It's been unused for at least
27967         5 years.
27968
27969 2010-06-05  Bruno Haible  <bruno@clisp.org>
27970
27971         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27972         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27973
27974 2010-06-04  Bruno Haible  <bruno@clisp.org>
27975
27976         Update to GNU gettext 0.18.1.
27977         * modules/gettext (configure.ac): Require gettext infrastructure from
27978         version 0.18.1.
27979
27980 2010-06-03  Bruno Haible  <bruno@clisp.org>
27981
27982         Don't use AC_LIBOBJ with file names in subdirectories.
27983         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27984         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27985         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27986         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27987         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27988         gl_LIBUNISTRING_LIBSOURCE.
27989         (Makefile.am): Augment lib_SOURCES here, conditionally.
27990         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27991
27992 2010-06-03  Bruno Haible  <bruno@clisp.org>
27993
27994         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27995         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27996         expansion does not end with a newline.
27997         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27998         unnecessary newline.
27999
28000 2010-06-03  Bruno Haible  <bruno@clisp.org>
28001
28002         Reduce dependencies.
28003         * tests/test-quotearg.h: New file, extracted from
28004         tests/test-quotearg.c.
28005         * tests/test-quotearg-simple.c: New file, extracted from
28006         tests/test-quotearg.c.
28007         * tests/test-quotearg.c: Don't include <ctype.h>.
28008         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28009         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28010         use_quote_double_quotes, use_quotearg_colon): Moved to
28011         tests/test-quotearg.h.
28012         (results_g, flag_results, custom_quotes, custom_results): Moved
28013         to tests/test-quotearg-simple.c.
28014         (main): Moved the part that does not depend on gettext to
28015         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28016         performed.
28017         * modules/quotearg-simple: New file.
28018         * modules/quotearg-simple-tests: New file.
28019         * modules/quotearg (Depends-on): Add quotearg-simple.
28020         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28021         (Files): Add tests/test-quotearg.h.
28022         Reported by Paolo Bonzini.
28023
28024 2010-06-03  Bruno Haible  <bruno@clisp.org>
28025
28026         Reduce dependencies.
28027         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28028
28029 2010-06-03  Bruno Haible  <bruno@clisp.org>
28030
28031         time: Undefine more broken macros.
28032         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28033         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28034         Reported by Eric Blake.
28035
28036 2010-06-03  Bruno Haible  <bruno@clisp.org>
28037
28038         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28039         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28040         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28041         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28042         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28043         Reported by Ludovic Courtès <ludo@gnu.org>.
28044
28045 2010-06-02  Eric Blake  <eblake@redhat.com>
28046
28047         time: work with mingw + pthreads-win32 library
28048         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28049         if timespec is defined only in pthread.h.
28050         * modules/time (Makefile.am): Substitute it.
28051         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28052         <pthread.h>, when needed.
28053         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28054         from the library.
28055
28056 2010-05-31  Bruno Haible  <bruno@clisp.org>
28057
28058         Avoid expanding two macros in the wrong order.
28059         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28060         gl_LIBUNISTRING if it is defined.
28061         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28062         autoconf >= 2.64.
28063         Reported by Ludovic Courtès <ludo@gnu.org>.
28064
28065 2010-05-27  Jim Meyering  <meyering@redhat.com>
28066
28067         maint.mk: also prohibit "#undef" of always-defined symbols
28068         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28069         Allow more than one space before the symbol name.
28070         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28071         the regexp uses alternation.
28072
28073 2010-05-26  Eric Blake  <eblake@redhat.com>
28074
28075         maint.mk: avoid echo -e
28076         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28077         Convert all uses of echo -* to printf.
28078         Reported by Matthias Bolte.
28079
28080 2010-05-25  Bruno Haible  <bruno@clisp.org>
28081
28082         Update to GNU gettext 0.18, part 2.
28083         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28084         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28085
28086 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28087
28088         Add missing include in test-pwrite.c.
28089         * tests/test-pwrite.c: Include string.h, for strcmp.
28090
28091 2010-05-24  Bruno Haible  <bruno@clisp.org>
28092
28093         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28094
28095 2010-05-24  Bruno Haible  <bruno@clisp.org>
28096
28097         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28098         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28099         iconveh_error argument.
28100         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28101         U_STRCONV_TO_LOCALE.
28102         * lib/unistr/u16-strcoll.c: Likewise.
28103         * lib/unistr/u32-strcoll.c: Likewise.
28104         * modules/unistr/u8-strcoll (Depends-on): Add
28105         uniconv/u8-strconv-to-enc, localcharset. Remove
28106         uniconv/u8-strconv-to-locale.
28107         (configure.ac): Bump version number.
28108         * modules/unistr/u16-strcoll (Depends-on): Add
28109         uniconv/u16-strconv-to-enc, localcharset. Remove
28110         uniconv/u16-strconv-to-locale.
28111         (configure.ac): Bump version number.
28112         * modules/unistr/u32-strcoll (Depends-on): Add
28113         uniconv/u32-strconv-to-enc, localcharset. Remove
28114         uniconv/u32-strconv-to-locale.
28115         (configure.ac): Bump version number.
28116
28117 2010-05-24  Bruno Haible  <bruno@clisp.org>
28118
28119         Avoid a test failure on NetBSD 5.0.
28120         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28121         an iconv() bug.
28122
28123 2010-05-24  Bruno Haible  <bruno@clisp.org>
28124
28125         Adjust #include directive style.
28126         * modules/regex (Includes): Recommend to write <regex.h>.
28127
28128 2010-05-24  Bruno Haible  <bruno@clisp.org>
28129
28130         regex: Don't require alloca.
28131         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28132         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28133         only inside if (0).
28134
28135 2010-05-23  Jim Meyering  <meyering@redhat.com>
28136
28137         test-renameat.c: include <sys/stat.h>
28138         * tests/test-renameat.c: Include <sys/stat.h>; required for
28139         definition of S_IS* macros.
28140
28141 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28142
28143         Update maintainer documentation for 'relocatable-prog' module.
28144         * doc/relocatable-maint.texi: Update.
28145         Comments by Bruno Haible.
28146
28147 2010-05-23  Bruno Haible  <bruno@clisp.org>
28148
28149         git-merge-changelog: Enable --split-merged-entry by default.
28150         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28151         (usage): Don't mention this option any more.
28152         Reported by Ralf Wildenhues.
28153
28154 2010-05-23  Jim Meyering  <meyering@redhat.com>
28155
28156         test-pwrite: do not leave behind a test file named "out"
28157         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28158         The trivial-looking use of init.sh is really necessary.
28159         It ensures that the temporary file, "out", is created in
28160         a temporary directory, and removed upon termination.
28161         * tests/test-pwrite.sh: Re-add file.
28162         * modules/pwrite-tests: Reference it.
28163
28164 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28165
28166         Fix output redirection buglet in init.sh.
28167         * tests/init.sh: Fix redirection of stderr.
28168
28169 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28170
28171         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28172
28173 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28174
28175         * modules/valgrind-tests: New file.
28176         * m4/valgrind-tests.m4: New file.
28177         * doc/valgrind-tests.texi: New file.
28178         * doc/gnulib.texi (Running self-tests under valgrind): New
28179         section.
28180
28181 2010-05-19  Bruno Haible  <bruno@clisp.org>
28182
28183         Clean up dead code in recent commit.
28184         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28185         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28186         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28187         Suggested by Paolo Bonzini.
28188
28189 2010-05-19  Bruno Haible  <bruno@clisp.org>
28190
28191         Avoid valgrind error reports from libunistring.
28192         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28193         * modules/libunistring (Files): Add it.
28194         * modules/libunistring-optional (Files): Likewise.
28195
28196 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28197             Bruno Haible  <bruno@clisp.org>
28198
28199         New module 'libunistring-optional'.
28200         * modules/libunistring-optional: New file.
28201         * m4/libunistring-base.m4: New file.
28202         * m4/libunistring-optional.m4: New file.
28203         * lib/unicase.in.h: Renamed from lib/unicase.h.
28204         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28205         * lib/unictype.in.h: Renamed from lib/unictype.h.
28206         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28207         * lib/uniname.in.h: Renamed from lib/uniname.h.
28208         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28209         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28210         * lib/unistr.in.h: Renamed from lib/unistr.h.
28211         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28212         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28213         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28214         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28215         gl_LIBUNISTRING. If the library was found, determine the installed
28216         version and set LIBUNISTRING_VERSION.
28217         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28218         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28219         handle a configuration option --with-included-libunistring.
28220         * modules/libunistring (Files): Add m4/absolute-header.m4.
28221         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28222         Add m4/libunistring-base.m4.
28223         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28224         (Makefile.am): Build unicase.h from unicase.in.h.
28225         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28226         Add m4/libunistring-base.m4.
28227         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28228         (Makefile.am): Build uniconv.h from uniconv.in.h.
28229         * modules/unictype/base (Files): Use unictype.in.h instead of
28230         unictype.h. Add m4/libunistring-base.m4.
28231         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28232         (Makefile.am): Build unictype.h from unictype.in.h.
28233         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28234         Add m4/libunistring-base.m4.
28235         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28236         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28237         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28238         Add m4/libunistring-base.m4.
28239         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28240         (Makefile.am): Build uniname.h from uniname.in.h.
28241         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28242         Add m4/libunistring-base.m4.
28243         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28244         (Makefile.am): Build uninorm.h from uninorm.in.h.
28245         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28246         unistdio.h. Add m4/libunistring-base.m4.
28247         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28248         (Makefile.am): Build unistdio.h from unistdio.in.h.
28249         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28250         Add m4/libunistring-base.m4.
28251         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28252         (Makefile.am): Build unistr.h from unistr.in.h.
28253         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28254         Add m4/libunistring-base.m4.
28255         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28256         (Makefile.am): Build unitypes.h from unitypes.in.h.
28257         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28258         Add m4/libunistring-base.m4.
28259         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28260         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28261         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28262         uniwidth.h. Add m4/libunistring-base.m4.
28263         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28264         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28265         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28266         instead of augmenting lib_SOURCES.
28267         * modules/unicase/empty-suffix-context: Likewise.
28268         * modules/unicase/locale-language: Likewise.
28269         * modules/unicase/tolower: Likewise.
28270         * modules/unicase/totitle: Likewise.
28271         * modules/unicase/toupper: Likewise.
28272         * modules/unicase/u8-casecmp: Likewise.
28273         * modules/unicase/u8-casecoll: Likewise.
28274         * modules/unicase/u8-casefold: Likewise.
28275         * modules/unicase/u8-casexfrm: Likewise.
28276         * modules/unicase/u8-ct-casefold: Likewise.
28277         * modules/unicase/u8-ct-tolower: Likewise.
28278         * modules/unicase/u8-ct-totitle: Likewise.
28279         * modules/unicase/u8-ct-toupper: Likewise.
28280         * modules/unicase/u8-is-cased: Likewise.
28281         * modules/unicase/u8-is-casefolded: Likewise.
28282         * modules/unicase/u8-is-lowercase: Likewise.
28283         * modules/unicase/u8-is-titlecase: Likewise.
28284         * modules/unicase/u8-is-uppercase: Likewise.
28285         * modules/unicase/u8-prefix-context: Likewise.
28286         * modules/unicase/u8-suffix-context: Likewise.
28287         * modules/unicase/u8-tolower: Likewise.
28288         * modules/unicase/u8-totitle: Likewise.
28289         * modules/unicase/u8-toupper: Likewise.
28290         * modules/unicase/u16-casecmp: Likewise.
28291         * modules/unicase/u16-casecoll: Likewise.
28292         * modules/unicase/u16-casefold: Likewise.
28293         * modules/unicase/u16-casexfrm: Likewise.
28294         * modules/unicase/u16-ct-casefold: Likewise.
28295         * modules/unicase/u16-ct-tolower: Likewise.
28296         * modules/unicase/u16-ct-totitle: Likewise.
28297         * modules/unicase/u16-ct-toupper: Likewise.
28298         * modules/unicase/u16-is-cased: Likewise.
28299         * modules/unicase/u16-is-casefolded: Likewise.
28300         * modules/unicase/u16-is-lowercase: Likewise.
28301         * modules/unicase/u16-is-titlecase: Likewise.
28302         * modules/unicase/u16-is-uppercase: Likewise.
28303         * modules/unicase/u16-prefix-context: Likewise.
28304         * modules/unicase/u16-suffix-context: Likewise.
28305         * modules/unicase/u16-tolower: Likewise.
28306         * modules/unicase/u16-totitle: Likewise.
28307         * modules/unicase/u16-toupper: Likewise.
28308         * modules/unicase/u32-casecmp: Likewise.
28309         * modules/unicase/u32-casecoll: Likewise.
28310         * modules/unicase/u32-casefold: Likewise.
28311         * modules/unicase/u32-casexfrm: Likewise.
28312         * modules/unicase/u32-ct-casefold: Likewise.
28313         * modules/unicase/u32-ct-tolower: Likewise.
28314         * modules/unicase/u32-ct-totitle: Likewise.
28315         * modules/unicase/u32-ct-toupper: Likewise.
28316         * modules/unicase/u32-is-cased: Likewise.
28317         * modules/unicase/u32-is-casefolded: Likewise.
28318         * modules/unicase/u32-is-lowercase: Likewise.
28319         * modules/unicase/u32-is-titlecase: Likewise.
28320         * modules/unicase/u32-is-uppercase: Likewise.
28321         * modules/unicase/u32-prefix-context: Likewise.
28322         * modules/unicase/u32-suffix-context: Likewise.
28323         * modules/unicase/u32-tolower: Likewise.
28324         * modules/unicase/u32-totitle: Likewise.
28325         * modules/unicase/u32-toupper: Likewise.
28326         * modules/unicase/ulc-casecmp: Likewise.
28327         * modules/unicase/ulc-casecoll: Likewise.
28328         * modules/unicase/ulc-casexfrm: Likewise.
28329         * modules/uniconv/u8-conv-from-enc: Likewise.
28330         * modules/uniconv/u8-conv-to-enc: Likewise.
28331         * modules/uniconv/u8-strconv-from-enc: Likewise.
28332         * modules/uniconv/u8-strconv-from-locale: Likewise.
28333         * modules/uniconv/u8-strconv-to-enc: Likewise.
28334         * modules/uniconv/u8-strconv-to-locale: Likewise.
28335         * modules/uniconv/u16-conv-from-enc: Likewise.
28336         * modules/uniconv/u16-conv-to-enc: Likewise.
28337         * modules/uniconv/u16-strconv-from-enc: Likewise.
28338         * modules/uniconv/u16-strconv-from-locale: Likewise.
28339         * modules/uniconv/u16-strconv-to-enc: Likewise.
28340         * modules/uniconv/u16-strconv-to-locale: Likewise.
28341         * modules/uniconv/u32-conv-from-enc: Likewise.
28342         * modules/uniconv/u32-conv-to-enc: Likewise.
28343         * modules/uniconv/u32-strconv-from-enc: Likewise.
28344         * modules/uniconv/u32-strconv-from-locale: Likewise.
28345         * modules/uniconv/u32-strconv-to-enc: Likewise.
28346         * modules/uniconv/u32-strconv-to-locale: Likewise.
28347         * modules/unictype/bidicategory-byname: Likewise.
28348         * modules/unictype/bidicategory-name: Likewise.
28349         * modules/unictype/bidicategory-of: Likewise.
28350         * modules/unictype/bidicategory-test: Likewise.
28351         * modules/unictype/block-list: Likewise.
28352         * modules/unictype/block-test: Likewise.
28353         * modules/unictype/category-C: Likewise.
28354         * modules/unictype/category-Cc: Likewise.
28355         * modules/unictype/category-Cf: Likewise.
28356         * modules/unictype/category-Cn: Likewise.
28357         * modules/unictype/category-Co: Likewise.
28358         * modules/unictype/category-Cs: Likewise.
28359         * modules/unictype/category-L: Likewise.
28360         * modules/unictype/category-Ll: Likewise.
28361         * modules/unictype/category-Lm: Likewise.
28362         * modules/unictype/category-Lo: Likewise.
28363         * modules/unictype/category-Lt: Likewise.
28364         * modules/unictype/category-Lu: Likewise.
28365         * modules/unictype/category-M: Likewise.
28366         * modules/unictype/category-Mc: Likewise.
28367         * modules/unictype/category-Me: Likewise.
28368         * modules/unictype/category-Mn: Likewise.
28369         * modules/unictype/category-N: Likewise.
28370         * modules/unictype/category-Nd: Likewise.
28371         * modules/unictype/category-Nl: Likewise.
28372         * modules/unictype/category-No: Likewise.
28373         * modules/unictype/category-P: Likewise.
28374         * modules/unictype/category-Pc: Likewise.
28375         * modules/unictype/category-Pd: Likewise.
28376         * modules/unictype/category-Pe: Likewise.
28377         * modules/unictype/category-Pf: Likewise.
28378         * modules/unictype/category-Pi: Likewise.
28379         * modules/unictype/category-Po: Likewise.
28380         * modules/unictype/category-Ps: Likewise.
28381         * modules/unictype/category-S: Likewise.
28382         * modules/unictype/category-Sc: Likewise.
28383         * modules/unictype/category-Sk: Likewise.
28384         * modules/unictype/category-Sm: Likewise.
28385         * modules/unictype/category-So: Likewise.
28386         * modules/unictype/category-Z: Likewise.
28387         * modules/unictype/category-Zl: Likewise.
28388         * modules/unictype/category-Zp: Likewise.
28389         * modules/unictype/category-Zs: Likewise.
28390         * modules/unictype/category-and: Likewise.
28391         * modules/unictype/category-and-not: Likewise.
28392         * modules/unictype/category-byname: Likewise.
28393         * modules/unictype/category-name: Likewise.
28394         * modules/unictype/category-none: Likewise.
28395         * modules/unictype/category-of: Likewise.
28396         * modules/unictype/category-or: Likewise.
28397         * modules/unictype/category-test: Likewise.
28398         * modules/unictype/combining-class: Likewise.
28399         * modules/unictype/ctype-alnum: Likewise.
28400         * modules/unictype/ctype-alpha: Likewise.
28401         * modules/unictype/ctype-blank: Likewise.
28402         * modules/unictype/ctype-cntrl: Likewise.
28403         * modules/unictype/ctype-digit: Likewise.
28404         * modules/unictype/ctype-graph: Likewise.
28405         * modules/unictype/ctype-lower: Likewise.
28406         * modules/unictype/ctype-print: Likewise.
28407         * modules/unictype/ctype-punct: Likewise.
28408         * modules/unictype/ctype-space: Likewise.
28409         * modules/unictype/ctype-upper: Likewise.
28410         * modules/unictype/ctype-xdigit: Likewise.
28411         * modules/unictype/decimal-digit: Likewise.
28412         * modules/unictype/digit: Likewise.
28413         * modules/unictype/mirror: Likewise.
28414         * modules/unictype/numeric: Likewise.
28415         * modules/unictype/property-alphabetic: Likewise.
28416         * modules/unictype/property-ascii-hex-digit: Likewise.
28417         * modules/unictype/property-bidi-arabic-digit: Likewise.
28418         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28419         * modules/unictype/property-bidi-block-separator: Likewise.
28420         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28421         * modules/unictype/property-bidi-common-separator: Likewise.
28422         * modules/unictype/property-bidi-control: Likewise.
28423         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28424         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28425         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28426         * modules/unictype/property-bidi-european-digit: Likewise.
28427         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28428         * modules/unictype/property-bidi-left-to-right: Likewise.
28429         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28430         * modules/unictype/property-bidi-other-neutral: Likewise.
28431         * modules/unictype/property-bidi-pdf: Likewise.
28432         * modules/unictype/property-bidi-segment-separator: Likewise.
28433         * modules/unictype/property-bidi-whitespace: Likewise.
28434         * modules/unictype/property-byname: Likewise.
28435         * modules/unictype/property-combining: Likewise.
28436         * modules/unictype/property-composite: Likewise.
28437         * modules/unictype/property-currency-symbol: Likewise.
28438         * modules/unictype/property-dash: Likewise.
28439         * modules/unictype/property-decimal-digit: Likewise.
28440         * modules/unictype/property-default-ignorable-code-point: Likewise.
28441         * modules/unictype/property-deprecated: Likewise.
28442         * modules/unictype/property-diacritic: Likewise.
28443         * modules/unictype/property-extender: Likewise.
28444         * modules/unictype/property-format-control: Likewise.
28445         * modules/unictype/property-grapheme-base: Likewise.
28446         * modules/unictype/property-grapheme-extend: Likewise.
28447         * modules/unictype/property-grapheme-link: Likewise.
28448         * modules/unictype/property-hex-digit: Likewise.
28449         * modules/unictype/property-hyphen: Likewise.
28450         * modules/unictype/property-id-continue: Likewise.
28451         * modules/unictype/property-id-start: Likewise.
28452         * modules/unictype/property-ideographic: Likewise.
28453         * modules/unictype/property-ids-binary-operator: Likewise.
28454         * modules/unictype/property-ids-trinary-operator: Likewise.
28455         * modules/unictype/property-ignorable-control: Likewise.
28456         * modules/unictype/property-iso-control: Likewise.
28457         * modules/unictype/property-join-control: Likewise.
28458         * modules/unictype/property-left-of-pair: Likewise.
28459         * modules/unictype/property-line-separator: Likewise.
28460         * modules/unictype/property-logical-order-exception: Likewise.
28461         * modules/unictype/property-lowercase: Likewise.
28462         * modules/unictype/property-math: Likewise.
28463         * modules/unictype/property-non-break: Likewise.
28464         * modules/unictype/property-not-a-character: Likewise.
28465         * modules/unictype/property-numeric: Likewise.
28466         * modules/unictype/property-other-alphabetic: Likewise.
28467         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28468         * modules/unictype/property-other-grapheme-extend: Likewise.
28469         * modules/unictype/property-other-id-continue: Likewise.
28470         * modules/unictype/property-other-id-start: Likewise.
28471         * modules/unictype/property-other-lowercase: Likewise.
28472         * modules/unictype/property-other-math: Likewise.
28473         * modules/unictype/property-other-uppercase: Likewise.
28474         * modules/unictype/property-paired-punctuation: Likewise.
28475         * modules/unictype/property-paragraph-separator: Likewise.
28476         * modules/unictype/property-pattern-syntax: Likewise.
28477         * modules/unictype/property-pattern-white-space: Likewise.
28478         * modules/unictype/property-private-use: Likewise.
28479         * modules/unictype/property-punctuation: Likewise.
28480         * modules/unictype/property-quotation-mark: Likewise.
28481         * modules/unictype/property-radical: Likewise.
28482         * modules/unictype/property-sentence-terminal: Likewise.
28483         * modules/unictype/property-soft-dotted: Likewise.
28484         * modules/unictype/property-space: Likewise.
28485         * modules/unictype/property-terminal-punctuation: Likewise.
28486         * modules/unictype/property-test: Likewise.
28487         * modules/unictype/property-titlecase: Likewise.
28488         * modules/unictype/property-unassigned-code-value: Likewise.
28489         * modules/unictype/property-unified-ideograph: Likewise.
28490         * modules/unictype/property-uppercase: Likewise.
28491         * modules/unictype/property-variation-selector: Likewise.
28492         * modules/unictype/property-white-space: Likewise.
28493         * modules/unictype/property-xid-continue: Likewise.
28494         * modules/unictype/property-xid-start: Likewise.
28495         * modules/unictype/property-zero-width: Likewise.
28496         * modules/unictype/scripts: Likewise.
28497         * modules/unictype/syntax-c-ident: Likewise.
28498         * modules/unictype/syntax-c-whitespace: Likewise.
28499         * modules/unictype/syntax-java-ident: Likewise.
28500         * modules/unictype/syntax-java-whitespace: Likewise.
28501         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28502         * modules/unilbrk/u8-width-linebreaks: Likewise.
28503         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28504         * modules/unilbrk/u16-width-linebreaks: Likewise.
28505         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28506         * modules/unilbrk/u32-width-linebreaks: Likewise.
28507         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28508         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28509         * modules/uniname/uniname: Likewise.
28510         * modules/uninorm/canonical-decomposition: Likewise.
28511         * modules/uninorm/composition: Likewise.
28512         * modules/uninorm/decomposing-form: Likewise.
28513         * modules/uninorm/decomposition: Likewise.
28514         * modules/uninorm/filter: Likewise.
28515         * modules/uninorm/nfc: Likewise.
28516         * modules/uninorm/nfd: Likewise.
28517         * modules/uninorm/nfkc: Likewise.
28518         * modules/uninorm/nfkd: Likewise.
28519         * modules/uninorm/u8-normalize: Likewise.
28520         * modules/uninorm/u8-normcmp: Likewise.
28521         * modules/uninorm/u8-normcoll: Likewise.
28522         * modules/uninorm/u8-normxfrm: Likewise.
28523         * modules/uninorm/u16-normalize: Likewise.
28524         * modules/uninorm/u16-normcmp: Likewise.
28525         * modules/uninorm/u16-normcoll: Likewise.
28526         * modules/uninorm/u16-normxfrm: Likewise.
28527         * modules/uninorm/u32-normalize: Likewise.
28528         * modules/uninorm/u32-normcmp: Likewise.
28529         * modules/uninorm/u32-normcoll: Likewise.
28530         * modules/uninorm/u32-normxfrm: Likewise.
28531         * modules/unistdio/u8-asnprintf: Likewise.
28532         * modules/unistdio/u8-asprintf: Likewise.
28533         * modules/unistdio/u8-snprintf: Likewise.
28534         * modules/unistdio/u8-sprintf: Likewise.
28535         * modules/unistdio/u8-u8-asnprintf: Likewise.
28536         * modules/unistdio/u8-u8-asprintf: Likewise.
28537         * modules/unistdio/u8-u8-snprintf: Likewise.
28538         * modules/unistdio/u8-u8-sprintf: Likewise.
28539         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28540         * modules/unistdio/u8-u8-vasprintf: Likewise.
28541         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28542         * modules/unistdio/u8-u8-vsprintf: Likewise.
28543         * modules/unistdio/u8-vasnprintf: Likewise.
28544         * modules/unistdio/u8-vasprintf: Likewise.
28545         * modules/unistdio/u8-vsnprintf: Likewise.
28546         * modules/unistdio/u8-vsprintf: Likewise.
28547         * modules/unistdio/u16-asnprintf: Likewise.
28548         * modules/unistdio/u16-asprintf: Likewise.
28549         * modules/unistdio/u16-snprintf: Likewise.
28550         * modules/unistdio/u16-sprintf: Likewise.
28551         * modules/unistdio/u16-u16-asnprintf: Likewise.
28552         * modules/unistdio/u16-u16-asprintf: Likewise.
28553         * modules/unistdio/u16-u16-snprintf: Likewise.
28554         * modules/unistdio/u16-u16-sprintf: Likewise.
28555         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28556         * modules/unistdio/u16-u16-vasprintf: Likewise.
28557         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28558         * modules/unistdio/u16-u16-vsprintf: Likewise.
28559         * modules/unistdio/u16-vasnprintf: Likewise.
28560         * modules/unistdio/u16-vasprintf: Likewise.
28561         * modules/unistdio/u16-vsnprintf: Likewise.
28562         * modules/unistdio/u16-vsprintf: Likewise.
28563         * modules/unistdio/u32-asnprintf: Likewise.
28564         * modules/unistdio/u32-asprintf: Likewise.
28565         * modules/unistdio/u32-snprintf: Likewise.
28566         * modules/unistdio/u32-sprintf: Likewise.
28567         * modules/unistdio/u32-u32-asnprintf: Likewise.
28568         * modules/unistdio/u32-u32-asprintf: Likewise.
28569         * modules/unistdio/u32-u32-snprintf: Likewise.
28570         * modules/unistdio/u32-u32-sprintf: Likewise.
28571         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28572         * modules/unistdio/u32-u32-vasprintf: Likewise.
28573         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28574         * modules/unistdio/u32-u32-vsprintf: Likewise.
28575         * modules/unistdio/u32-vasnprintf: Likewise.
28576         * modules/unistdio/u32-vasprintf: Likewise.
28577         * modules/unistdio/u32-vsnprintf: Likewise.
28578         * modules/unistdio/u32-vsprintf: Likewise.
28579         * modules/unistdio/ulc-asnprintf: Likewise.
28580         * modules/unistdio/ulc-asprintf: Likewise.
28581         * modules/unistdio/ulc-fprintf: Likewise.
28582         * modules/unistdio/ulc-snprintf: Likewise.
28583         * modules/unistdio/ulc-sprintf: Likewise.
28584         * modules/unistdio/ulc-vasnprintf: Likewise.
28585         * modules/unistdio/ulc-vasprintf: Likewise.
28586         * modules/unistdio/ulc-vfprintf: Likewise.
28587         * modules/unistdio/ulc-vsnprintf: Likewise.
28588         * modules/unistdio/ulc-vsprintf: Likewise.
28589         * modules/unistr/u8-check: Likewise.
28590         * modules/unistr/u8-chr: Likewise.
28591         * modules/unistr/u8-cmp: Likewise.
28592         * modules/unistr/u8-cmp2: Likewise.
28593         * modules/unistr/u8-cpy: Likewise.
28594         * modules/unistr/u8-cpy-alloc: Likewise.
28595         * modules/unistr/u8-endswith: Likewise.
28596         * modules/unistr/u8-mblen: Likewise.
28597         * modules/unistr/u8-mbsnlen: Likewise.
28598         * modules/unistr/u8-mbtouc: Likewise.
28599         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28600         * modules/unistr/u8-mbtoucr: Likewise.
28601         * modules/unistr/u8-move: Likewise.
28602         * modules/unistr/u8-next: Likewise.
28603         * modules/unistr/u8-prev: Likewise.
28604         * modules/unistr/u8-set: Likewise.
28605         * modules/unistr/u8-startswith: Likewise.
28606         * modules/unistr/u8-stpcpy: Likewise.
28607         * modules/unistr/u8-stpncpy: Likewise.
28608         * modules/unistr/u8-strcat: Likewise.
28609         * modules/unistr/u8-strchr: Likewise.
28610         * modules/unistr/u8-strcmp: Likewise.
28611         * modules/unistr/u8-strcoll: Likewise.
28612         * modules/unistr/u8-strcpy: Likewise.
28613         * modules/unistr/u8-strcspn: Likewise.
28614         * modules/unistr/u8-strdup: Likewise.
28615         * modules/unistr/u8-strlen: Likewise.
28616         * modules/unistr/u8-strmblen: Likewise.
28617         * modules/unistr/u8-strmbtouc: Likewise.
28618         * modules/unistr/u8-strncat: Likewise.
28619         * modules/unistr/u8-strncmp: Likewise.
28620         * modules/unistr/u8-strncpy: Likewise.
28621         * modules/unistr/u8-strnlen: Likewise.
28622         * modules/unistr/u8-strpbrk: Likewise.
28623         * modules/unistr/u8-strrchr: Likewise.
28624         * modules/unistr/u8-strspn: Likewise.
28625         * modules/unistr/u8-strstr: Likewise.
28626         * modules/unistr/u8-strtok: Likewise.
28627         * modules/unistr/u8-to-u16: Likewise.
28628         * modules/unistr/u8-to-u32: Likewise.
28629         * modules/unistr/u8-uctomb: Likewise.
28630         * modules/unistr/u16-check: Likewise.
28631         * modules/unistr/u16-chr: Likewise.
28632         * modules/unistr/u16-cmp: Likewise.
28633         * modules/unistr/u16-cmp2: Likewise.
28634         * modules/unistr/u16-cpy: Likewise.
28635         * modules/unistr/u16-cpy-alloc: Likewise.
28636         * modules/unistr/u16-endswith: Likewise.
28637         * modules/unistr/u16-mblen: Likewise.
28638         * modules/unistr/u16-mbsnlen: Likewise.
28639         * modules/unistr/u16-mbtouc: Likewise.
28640         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28641         * modules/unistr/u16-mbtoucr: Likewise.
28642         * modules/unistr/u16-move: Likewise.
28643         * modules/unistr/u16-next: Likewise.
28644         * modules/unistr/u16-prev: Likewise.
28645         * modules/unistr/u16-set: Likewise.
28646         * modules/unistr/u16-startswith: Likewise.
28647         * modules/unistr/u16-stpcpy: Likewise.
28648         * modules/unistr/u16-stpncpy: Likewise.
28649         * modules/unistr/u16-strcat: Likewise.
28650         * modules/unistr/u16-strchr: Likewise.
28651         * modules/unistr/u16-strcmp: Likewise.
28652         * modules/unistr/u16-strcoll: Likewise.
28653         * modules/unistr/u16-strcpy: Likewise.
28654         * modules/unistr/u16-strcspn: Likewise.
28655         * modules/unistr/u16-strdup: Likewise.
28656         * modules/unistr/u16-strlen: Likewise.
28657         * modules/unistr/u16-strmblen: Likewise.
28658         * modules/unistr/u16-strmbtouc: Likewise.
28659         * modules/unistr/u16-strncat: Likewise.
28660         * modules/unistr/u16-strncmp: Likewise.
28661         * modules/unistr/u16-strncpy: Likewise.
28662         * modules/unistr/u16-strnlen: Likewise.
28663         * modules/unistr/u16-strpbrk: Likewise.
28664         * modules/unistr/u16-strrchr: Likewise.
28665         * modules/unistr/u16-strspn: Likewise.
28666         * modules/unistr/u16-strstr: Likewise.
28667         * modules/unistr/u16-strtok: Likewise.
28668         * modules/unistr/u16-to-u32: Likewise.
28669         * modules/unistr/u16-to-u8: Likewise.
28670         * modules/unistr/u16-uctomb: Likewise.
28671         * modules/unistr/u32-check: Likewise.
28672         * modules/unistr/u32-chr: Likewise.
28673         * modules/unistr/u32-cmp: Likewise.
28674         * modules/unistr/u32-cmp2: Likewise.
28675         * modules/unistr/u32-cpy: Likewise.
28676         * modules/unistr/u32-cpy-alloc: Likewise.
28677         * modules/unistr/u32-endswith: Likewise.
28678         * modules/unistr/u32-mblen: Likewise.
28679         * modules/unistr/u32-mbsnlen: Likewise.
28680         * modules/unistr/u32-mbtouc: Likewise.
28681         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28682         * modules/unistr/u32-mbtoucr: Likewise.
28683         * modules/unistr/u32-move: Likewise.
28684         * modules/unistr/u32-next: Likewise.
28685         * modules/unistr/u32-prev: Likewise.
28686         * modules/unistr/u32-set: Likewise.
28687         * modules/unistr/u32-startswith: Likewise.
28688         * modules/unistr/u32-stpcpy: Likewise.
28689         * modules/unistr/u32-stpncpy: Likewise.
28690         * modules/unistr/u32-strcat: Likewise.
28691         * modules/unistr/u32-strchr: Likewise.
28692         * modules/unistr/u32-strcmp: Likewise.
28693         * modules/unistr/u32-strcoll: Likewise.
28694         * modules/unistr/u32-strcpy: Likewise.
28695         * modules/unistr/u32-strcspn: Likewise.
28696         * modules/unistr/u32-strdup: Likewise.
28697         * modules/unistr/u32-strlen: Likewise.
28698         * modules/unistr/u32-strmblen: Likewise.
28699         * modules/unistr/u32-strmbtouc: Likewise.
28700         * modules/unistr/u32-strncat: Likewise.
28701         * modules/unistr/u32-strncmp: Likewise.
28702         * modules/unistr/u32-strncpy: Likewise.
28703         * modules/unistr/u32-strnlen: Likewise.
28704         * modules/unistr/u32-strpbrk: Likewise.
28705         * modules/unistr/u32-strrchr: Likewise.
28706         * modules/unistr/u32-strspn: Likewise.
28707         * modules/unistr/u32-strstr: Likewise.
28708         * modules/unistr/u32-strtok: Likewise.
28709         * modules/unistr/u32-to-u16: Likewise.
28710         * modules/unistr/u32-to-u8: Likewise.
28711         * modules/unistr/u32-uctomb: Likewise.
28712         * modules/uniwbrk/u8-wordbreaks: Likewise.
28713         * modules/uniwbrk/u16-wordbreaks: Likewise.
28714         * modules/uniwbrk/u32-wordbreaks: Likewise.
28715         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28716         * modules/uniwbrk/wordbreak-property: Likewise.
28717         * modules/uniwidth/u8-strwidth: Likewise.
28718         * modules/uniwidth/u8-width: Likewise.
28719         * modules/uniwidth/u16-strwidth: Likewise.
28720         * modules/uniwidth/u16-width: Likewise.
28721         * modules/uniwidth/u32-strwidth: Likewise.
28722         * modules/uniwidth/u32-width: Likewise.
28723         * modules/uniwidth/width: Likewise.
28724         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28725         with $(LIBUNISTRING).
28726         * modules/unicase/ignorable-tests: Likewise.
28727         * modules/unicase/locale-language-tests: Likewise.
28728         * modules/unicase/tolower-tests: Likewise.
28729         * modules/unicase/totitle-tests: Likewise.
28730         * modules/unicase/toupper-tests: Likewise.
28731         * modules/unicase/u8-casecmp-tests: Likewise.
28732         * modules/unicase/u8-casecoll-tests: Likewise.
28733         * modules/unicase/u8-casefold-tests: Likewise.
28734         * modules/unicase/u8-is-cased-tests: Likewise.
28735         * modules/unicase/u8-is-casefolded-tests: Likewise.
28736         * modules/unicase/u8-is-lowercase-tests: Likewise.
28737         * modules/unicase/u8-is-titlecase-tests: Likewise.
28738         * modules/unicase/u8-is-uppercase-tests: Likewise.
28739         * modules/unicase/u8-tolower-tests: Likewise.
28740         * modules/unicase/u8-totitle-tests: Likewise.
28741         * modules/unicase/u8-toupper-tests: Likewise.
28742         * modules/unicase/u16-casecmp-tests: Likewise.
28743         * modules/unicase/u16-casecoll-tests: Likewise.
28744         * modules/unicase/u16-casefold-tests: Likewise.
28745         * modules/unicase/u16-is-cased-tests: Likewise.
28746         * modules/unicase/u16-is-casefolded-tests: Likewise.
28747         * modules/unicase/u16-is-lowercase-tests: Likewise.
28748         * modules/unicase/u16-is-titlecase-tests: Likewise.
28749         * modules/unicase/u16-is-uppercase-tests: Likewise.
28750         * modules/unicase/u16-tolower-tests: Likewise.
28751         * modules/unicase/u16-totitle-tests: Likewise.
28752         * modules/unicase/u16-toupper-tests: Likewise.
28753         * modules/unicase/u32-casecmp-tests: Likewise.
28754         * modules/unicase/u32-casecoll-tests: Likewise.
28755         * modules/unicase/u32-casefold-tests: Likewise.
28756         * modules/unicase/u32-is-cased-tests: Likewise.
28757         * modules/unicase/u32-is-casefolded-tests: Likewise.
28758         * modules/unicase/u32-is-lowercase-tests: Likewise.
28759         * modules/unicase/u32-is-titlecase-tests: Likewise.
28760         * modules/unicase/u32-is-uppercase-tests: Likewise.
28761         * modules/unicase/u32-tolower-tests: Likewise.
28762         * modules/unicase/u32-totitle-tests: Likewise.
28763         * modules/unicase/u32-toupper-tests: Likewise.
28764         * modules/unicase/ulc-casecmp-tests: Likewise.
28765         * modules/unicase/ulc-casecoll-tests: Likewise.
28766         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28767         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28768         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28769         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28770         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28771         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28772         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28773         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28774         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28775         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28776         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28777         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28778         * modules/unictype/bidicategory-byname-tests: Likewise.
28779         * modules/unictype/bidicategory-name-tests: Likewise.
28780         * modules/unictype/bidicategory-of-tests: Likewise.
28781         * modules/unictype/bidicategory-test-tests: Likewise.
28782         * modules/unictype/block-list-tests: Likewise.
28783         * modules/unictype/block-of-tests: Likewise.
28784         * modules/unictype/block-test-tests: Likewise.
28785         * modules/unictype/category-C-tests: Likewise.
28786         * modules/unictype/category-Cc-tests: Likewise.
28787         * modules/unictype/category-Cf-tests: Likewise.
28788         * modules/unictype/category-Cn-tests: Likewise.
28789         * modules/unictype/category-Co-tests: Likewise.
28790         * modules/unictype/category-Cs-tests: Likewise.
28791         * modules/unictype/category-L-tests: Likewise.
28792         * modules/unictype/category-Ll-tests: Likewise.
28793         * modules/unictype/category-Lm-tests: Likewise.
28794         * modules/unictype/category-Lo-tests: Likewise.
28795         * modules/unictype/category-Lt-tests: Likewise.
28796         * modules/unictype/category-Lu-tests: Likewise.
28797         * modules/unictype/category-M-tests: Likewise.
28798         * modules/unictype/category-Mc-tests: Likewise.
28799         * modules/unictype/category-Me-tests: Likewise.
28800         * modules/unictype/category-Mn-tests: Likewise.
28801         * modules/unictype/category-N-tests: Likewise.
28802         * modules/unictype/category-Nd-tests: Likewise.
28803         * modules/unictype/category-Nl-tests: Likewise.
28804         * modules/unictype/category-No-tests: Likewise.
28805         * modules/unictype/category-P-tests: Likewise.
28806         * modules/unictype/category-Pc-tests: Likewise.
28807         * modules/unictype/category-Pd-tests: Likewise.
28808         * modules/unictype/category-Pe-tests: Likewise.
28809         * modules/unictype/category-Pf-tests: Likewise.
28810         * modules/unictype/category-Pi-tests: Likewise.
28811         * modules/unictype/category-Po-tests: Likewise.
28812         * modules/unictype/category-Ps-tests: Likewise.
28813         * modules/unictype/category-S-tests: Likewise.
28814         * modules/unictype/category-Sc-tests: Likewise.
28815         * modules/unictype/category-Sk-tests: Likewise.
28816         * modules/unictype/category-Sm-tests: Likewise.
28817         * modules/unictype/category-So-tests: Likewise.
28818         * modules/unictype/category-Z-tests: Likewise.
28819         * modules/unictype/category-Zl-tests: Likewise.
28820         * modules/unictype/category-Zp-tests: Likewise.
28821         * modules/unictype/category-Zs-tests: Likewise.
28822         * modules/unictype/category-and-not-tests: Likewise.
28823         * modules/unictype/category-and-tests: Likewise.
28824         * modules/unictype/category-byname-tests: Likewise.
28825         * modules/unictype/category-name-tests: Likewise.
28826         * modules/unictype/category-none-tests: Likewise.
28827         * modules/unictype/category-of-tests: Likewise.
28828         * modules/unictype/category-or-tests: Likewise.
28829         * modules/unictype/category-test-withtable-tests: Likewise.
28830         * modules/unictype/combining-class-tests: Likewise.
28831         * modules/unictype/ctype-alnum-tests: Likewise.
28832         * modules/unictype/ctype-alpha-tests: Likewise.
28833         * modules/unictype/ctype-blank-tests: Likewise.
28834         * modules/unictype/ctype-cntrl-tests: Likewise.
28835         * modules/unictype/ctype-digit-tests: Likewise.
28836         * modules/unictype/ctype-graph-tests: Likewise.
28837         * modules/unictype/ctype-lower-tests: Likewise.
28838         * modules/unictype/ctype-print-tests: Likewise.
28839         * modules/unictype/ctype-punct-tests: Likewise.
28840         * modules/unictype/ctype-space-tests: Likewise.
28841         * modules/unictype/ctype-upper-tests: Likewise.
28842         * modules/unictype/ctype-xdigit-tests: Likewise.
28843         * modules/unictype/decimal-digit-tests: Likewise.
28844         * modules/unictype/digit-tests: Likewise.
28845         * modules/unictype/mirror-tests: Likewise.
28846         * modules/unictype/numeric-tests: Likewise.
28847         * modules/unictype/property-alphabetic-tests: Likewise.
28848         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28849         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28850         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28851         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28852         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28853         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28854         * modules/unictype/property-bidi-control-tests: Likewise.
28855         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28856         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28857         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28858         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28859         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28860         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28861         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28862         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28863         * modules/unictype/property-bidi-pdf-tests: Likewise.
28864         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28865         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28866         * modules/unictype/property-byname-tests: Likewise.
28867         * modules/unictype/property-combining-tests: Likewise.
28868         * modules/unictype/property-composite-tests: Likewise.
28869         * modules/unictype/property-currency-symbol-tests: Likewise.
28870         * modules/unictype/property-dash-tests: Likewise.
28871         * modules/unictype/property-decimal-digit-tests: Likewise.
28872         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28873         * modules/unictype/property-deprecated-tests: Likewise.
28874         * modules/unictype/property-diacritic-tests: Likewise.
28875         * modules/unictype/property-extender-tests: Likewise.
28876         * modules/unictype/property-format-control-tests: Likewise.
28877         * modules/unictype/property-grapheme-base-tests: Likewise.
28878         * modules/unictype/property-grapheme-extend-tests: Likewise.
28879         * modules/unictype/property-grapheme-link-tests: Likewise.
28880         * modules/unictype/property-hex-digit-tests: Likewise.
28881         * modules/unictype/property-hyphen-tests: Likewise.
28882         * modules/unictype/property-id-continue-tests: Likewise.
28883         * modules/unictype/property-id-start-tests: Likewise.
28884         * modules/unictype/property-ideographic-tests: Likewise.
28885         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28886         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28887         * modules/unictype/property-ignorable-control-tests: Likewise.
28888         * modules/unictype/property-iso-control-tests: Likewise.
28889         * modules/unictype/property-join-control-tests: Likewise.
28890         * modules/unictype/property-left-of-pair-tests: Likewise.
28891         * modules/unictype/property-line-separator-tests: Likewise.
28892         * modules/unictype/property-logical-order-exception-tests: Likewise.
28893         * modules/unictype/property-lowercase-tests: Likewise.
28894         * modules/unictype/property-math-tests: Likewise.
28895         * modules/unictype/property-non-break-tests: Likewise.
28896         * modules/unictype/property-not-a-character-tests: Likewise.
28897         * modules/unictype/property-numeric-tests: Likewise.
28898         * modules/unictype/property-other-alphabetic-tests: Likewise.
28899         * modules/unictype/property-other-default-ignorable-code-point-tests:
28900         Likewise.
28901         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28902         * modules/unictype/property-other-id-continue-tests: Likewise.
28903         * modules/unictype/property-other-id-start-tests: Likewise.
28904         * modules/unictype/property-other-lowercase-tests: Likewise.
28905         * modules/unictype/property-other-math-tests: Likewise.
28906         * modules/unictype/property-other-uppercase-tests: Likewise.
28907         * modules/unictype/property-paired-punctuation-tests: Likewise.
28908         * modules/unictype/property-paragraph-separator-tests: Likewise.
28909         * modules/unictype/property-pattern-syntax-tests: Likewise.
28910         * modules/unictype/property-pattern-white-space-tests: Likewise.
28911         * modules/unictype/property-private-use-tests: Likewise.
28912         * modules/unictype/property-punctuation-tests: Likewise.
28913         * modules/unictype/property-quotation-mark-tests: Likewise.
28914         * modules/unictype/property-radical-tests: Likewise.
28915         * modules/unictype/property-sentence-terminal-tests: Likewise.
28916         * modules/unictype/property-soft-dotted-tests: Likewise.
28917         * modules/unictype/property-space-tests: Likewise.
28918         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28919         * modules/unictype/property-test-tests: Likewise.
28920         * modules/unictype/property-titlecase-tests: Likewise.
28921         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28922         * modules/unictype/property-unified-ideograph-tests: Likewise.
28923         * modules/unictype/property-uppercase-tests: Likewise.
28924         * modules/unictype/property-variation-selector-tests: Likewise.
28925         * modules/unictype/property-white-space-tests: Likewise.
28926         * modules/unictype/property-xid-continue-tests: Likewise.
28927         * modules/unictype/property-xid-start-tests: Likewise.
28928         * modules/unictype/property-zero-width-tests: Likewise.
28929         * modules/unictype/scripts-tests: Likewise.
28930         * modules/unictype/syntax-c-ident-tests: Likewise.
28931         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28932         * modules/unictype/syntax-java-ident-tests: Likewise.
28933         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28934         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28935         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28936         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28937         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28938         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28939         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28940         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28941         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28942         * modules/uniname/uniname-tests: Likewise.
28943         * modules/uninorm/canonical-decomposition-tests: Likewise.
28944         * modules/uninorm/compat-decomposition-tests: Likewise.
28945         * modules/uninorm/composition-tests: Likewise.
28946         * modules/uninorm/decomposing-form-tests: Likewise.
28947         * modules/uninorm/decomposition-tests: Likewise.
28948         * modules/uninorm/filter-tests: Likewise.
28949         * modules/uninorm/nfc-tests: Likewise.
28950         * modules/uninorm/nfd-tests: Likewise.
28951         * modules/uninorm/nfkc-tests: Likewise.
28952         * modules/uninorm/nfkd-tests: Likewise.
28953         * modules/uninorm/u8-normcmp-tests: Likewise.
28954         * modules/uninorm/u8-normcoll-tests: Likewise.
28955         * modules/uninorm/u16-normcmp-tests: Likewise.
28956         * modules/uninorm/u16-normcoll-tests: Likewise.
28957         * modules/uninorm/u32-normcmp-tests: Likewise.
28958         * modules/uninorm/u32-normcoll-tests: Likewise.
28959         * modules/unistdio/u8-asnprintf-tests: Likewise.
28960         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28961         * modules/unistdio/u8-vasprintf-tests: Likewise.
28962         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28963         * modules/unistdio/u8-vsprintf-tests: Likewise.
28964         * modules/unistdio/u16-asnprintf-tests: Likewise.
28965         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28966         * modules/unistdio/u16-vasprintf-tests: Likewise.
28967         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28968         * modules/unistdio/u16-vsprintf-tests: Likewise.
28969         * modules/unistdio/u32-asnprintf-tests: Likewise.
28970         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28971         * modules/unistdio/u32-vasprintf-tests: Likewise.
28972         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28973         * modules/unistdio/u32-vsprintf-tests: Likewise.
28974         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28975         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28976         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28977         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28978         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28979         * modules/unistr/u8-check-tests: Likewise.
28980         * modules/unistr/u8-chr-tests: Likewise.
28981         * modules/unistr/u8-cmp-tests: Likewise.
28982         * modules/unistr/u8-cmp2-tests: Likewise.
28983         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28984         * modules/unistr/u8-cpy-tests: Likewise.
28985         * modules/unistr/u8-mblen-tests: Likewise.
28986         * modules/unistr/u8-mbsnlen-tests: Likewise.
28987         * modules/unistr/u8-mbtouc-tests: Likewise.
28988         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28989         * modules/unistr/u8-mbtoucr-tests: Likewise.
28990         * modules/unistr/u8-move-tests: Likewise.
28991         * modules/unistr/u8-next-tests: Likewise.
28992         * modules/unistr/u8-prev-tests: Likewise.
28993         * modules/unistr/u8-set-tests: Likewise.
28994         * modules/unistr/u8-stpcpy-tests: Likewise.
28995         * modules/unistr/u8-stpncpy-tests: Likewise.
28996         * modules/unistr/u8-strcat-tests: Likewise.
28997         * modules/unistr/u8-strcmp-tests: Likewise.
28998         * modules/unistr/u8-strcoll-tests: Likewise.
28999         * modules/unistr/u8-strcpy-tests: Likewise.
29000         * modules/unistr/u8-strdup-tests: Likewise.
29001         * modules/unistr/u8-strlen-tests: Likewise.
29002         * modules/unistr/u8-strmblen-tests: Likewise.
29003         * modules/unistr/u8-strmbtouc-tests: Likewise.
29004         * modules/unistr/u8-strncat-tests: Likewise.
29005         * modules/unistr/u8-strncmp-tests: Likewise.
29006         * modules/unistr/u8-strncpy-tests: Likewise.
29007         * modules/unistr/u8-strnlen-tests: Likewise.
29008         * modules/unistr/u8-to-u16-tests: Likewise.
29009         * modules/unistr/u8-to-u32-tests: Likewise.
29010         * modules/unistr/u8-uctomb-tests: Likewise.
29011         * modules/unistr/u16-check-tests: Likewise.
29012         * modules/unistr/u16-chr-tests: Likewise.
29013         * modules/unistr/u16-cmp-tests: Likewise.
29014         * modules/unistr/u16-cmp2-tests: Likewise.
29015         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29016         * modules/unistr/u16-cpy-tests: Likewise.
29017         * modules/unistr/u16-mblen-tests: Likewise.
29018         * modules/unistr/u16-mbsnlen-tests: Likewise.
29019         * modules/unistr/u16-mbtouc-tests: Likewise.
29020         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29021         * modules/unistr/u16-mbtoucr-tests: Likewise.
29022         * modules/unistr/u16-move-tests: Likewise.
29023         * modules/unistr/u16-next-tests: Likewise.
29024         * modules/unistr/u16-prev-tests: Likewise.
29025         * modules/unistr/u16-set-tests: Likewise.
29026         * modules/unistr/u16-stpcpy-tests: Likewise.
29027         * modules/unistr/u16-stpncpy-tests: Likewise.
29028         * modules/unistr/u16-strcat-tests: Likewise.
29029         * modules/unistr/u16-strcmp-tests: Likewise.
29030         * modules/unistr/u16-strcoll-tests: Likewise.
29031         * modules/unistr/u16-strcpy-tests: Likewise.
29032         * modules/unistr/u16-strdup-tests: Likewise.
29033         * modules/unistr/u16-strlen-tests: Likewise.
29034         * modules/unistr/u16-strmblen-tests: Likewise.
29035         * modules/unistr/u16-strmbtouc-tests: Likewise.
29036         * modules/unistr/u16-strncat-tests: Likewise.
29037         * modules/unistr/u16-strncmp-tests: Likewise.
29038         * modules/unistr/u16-strncpy-tests: Likewise.
29039         * modules/unistr/u16-strnlen-tests: Likewise.
29040         * modules/unistr/u16-to-u32-tests: Likewise.
29041         * modules/unistr/u16-to-u8-tests: Likewise.
29042         * modules/unistr/u16-uctomb-tests: Likewise.
29043         * modules/unistr/u32-check-tests: Likewise.
29044         * modules/unistr/u32-chr-tests: Likewise.
29045         * modules/unistr/u32-cmp-tests: Likewise.
29046         * modules/unistr/u32-cmp2-tests: Likewise.
29047         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29048         * modules/unistr/u32-cpy-tests: Likewise.
29049         * modules/unistr/u32-mblen-tests: Likewise.
29050         * modules/unistr/u32-mbsnlen-tests: Likewise.
29051         * modules/unistr/u32-mbtouc-tests: Likewise.
29052         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29053         * modules/unistr/u32-mbtoucr-tests: Likewise.
29054         * modules/unistr/u32-move-tests: Likewise.
29055         * modules/unistr/u32-next-tests: Likewise.
29056         * modules/unistr/u32-prev-tests: Likewise.
29057         * modules/unistr/u32-set-tests: Likewise.
29058         * modules/unistr/u32-stpcpy-tests: Likewise.
29059         * modules/unistr/u32-stpncpy-tests: Likewise.
29060         * modules/unistr/u32-strcat-tests: Likewise.
29061         * modules/unistr/u32-strcmp-tests: Likewise.
29062         * modules/unistr/u32-strcoll-tests: Likewise.
29063         * modules/unistr/u32-strcpy-tests: Likewise.
29064         * modules/unistr/u32-strdup-tests: Likewise.
29065         * modules/unistr/u32-strlen-tests: Likewise.
29066         * modules/unistr/u32-strmblen-tests: Likewise.
29067         * modules/unistr/u32-strmbtouc-tests: Likewise.
29068         * modules/unistr/u32-strncat-tests: Likewise.
29069         * modules/unistr/u32-strncmp-tests: Likewise.
29070         * modules/unistr/u32-strncpy-tests: Likewise.
29071         * modules/unistr/u32-strnlen-tests: Likewise.
29072         * modules/unistr/u32-to-u16-tests: Likewise.
29073         * modules/unistr/u32-to-u8-tests: Likewise.
29074         * modules/unistr/u32-uctomb-tests: Likewise.
29075         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29076         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29077         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29078         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29079         * modules/uniwidth/u8-strwidth-tests: Likewise.
29080         * modules/uniwidth/u8-width-tests: Likewise.
29081         * modules/uniwidth/u16-strwidth-tests: Likewise.
29082         * modules/uniwidth/u16-width-tests: Likewise.
29083         * modules/uniwidth/u32-strwidth-tests: Likewise.
29084         * modules/uniwidth/u32-width-tests: Likewise.
29085         * modules/uniwidth/width-tests: Likewise.
29086
29087 2010-05-18  Richard Jones  <rjones@redhat.com>
29088
29089         doc: users.txt: list hivex
29090         * users.txt: Add hivex.
29091
29092 2010-05-18  Richard Jones  <rjones@redhat.com>
29093
29094         doc: users.txt: list febootstrap
29095         * users.txt: Add febootstrap.
29096
29097 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29098
29099         bootstrap: fix an error when gnulib is not used as a git submodule
29100         * build-aux/bootstrap (gnulib_path): If its length is zero then
29101         assign "gnulib" to it.
29102         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29103
29104 2010-05-16  Bruno Haible  <bruno@clisp.org>
29105
29106         Avoid autoconf warnings about AM_ICONV.
29107         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29108         2.64.
29109
29110 2010-05-16  Bruno Haible  <bruno@clisp.org>
29111
29112         absolute-header: Make the macro usable in more situations.
29113         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29114         from gl_ABSOLUTE_HEADER.
29115         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29116
29117 2010-05-16  James Youngman  <jay@gnu.org>
29118
29119         doc: update users.txt
29120         * users.txt: Add CSSC.
29121
29122 2010-05-16  Jim Meyering  <meyering@redhat.com>
29123
29124         init.sh: fix an error in the previous change; add more comments
29125         * tests/init.sh: Compare exit code in loop against 9, not 2.
29126         Patch by Bruno Haible.
29127         Make the two tests more similar by adding an empty "then" clause.
29128         Add comments.
29129
29130         init.sh: avoid unnecessary shell re-exec
29131         * tests/init.sh: Improve the re-exec-required check to first test the
29132         current shell.  If it passes the test, do not search for a shell that
29133         does pass, and do not re-exec.  This test is particularly contorted to
29134         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29135         of $(...) evokes a syntax error and causes immediate shell exit with
29136         status 2.  Bruno Haible reported that the re-exec made it impossible
29137         to single-step through any init.sh-using script.
29138
29139 2010-05-16  Bruno Haible  <bruno@clisp.org>
29140
29141         Fix collision between gnulib's and libintl's printf replacements.
29142         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29143         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29144         (printf): When using GNU C, map the __printf__ function to rpl_printf
29145         via __asm__. When not using GNU C, define rpl_printf instead of
29146         __printf__.
29147         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29148         commit.
29149         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29150         commit.
29151         * m4/asm-underscore.m4: New file.
29152         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29153         * modules/stdio (Files): Add m4/asm-underscore.m4.
29154         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29155         Reported by Ben Pfaff.
29156
29157 2010-05-16  Bruno Haible  <bruno@clisp.org>
29158
29159         verify: Avoid skipping the test on openSUSE 11.0.
29160         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29161
29162 2010-05-13  Bruno Haible  <bruno@clisp.org>
29163
29164         Avoid useless warnings from G++.
29165         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29166         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29167         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29168
29169 2010-05-11  Jim Meyering  <meyering@redhat.com>
29170
29171         maint.mk: tweak preceding change
29172         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29173         regexps tighter by anchoring at EOL, and make the new group "shy"
29174         for slightly decreased overhead.
29175
29176 2010-05-11  Eric Blake  <eblake@redhat.com>
29177
29178         maint.mk: gnulib doesn't guarantee NSIG
29179         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29180
29181 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29182
29183         test-pwrite.c: Remove unused variable declaration.
29184         * tests/test-pwrite.c (main): Remove read_buf declaration.
29185
29186         Remove useless test-pwrite.sh file.
29187         * tests/test-pwrite.sh: Delete file.
29188         * modules/pwrite-tests: Remove references.
29189         Reported by Bruno Haible.
29190
29191 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29192
29193         init.sh: fix a typo
29194         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29195
29196 2010-05-10  Jim Meyering  <meyering@redhat.com>
29197
29198         maint.mk: avoid using a temporary file in the always-defined-macros check
29199         * top/maint.mk (.re-defmac): Remove rule.
29200         (gl_trap_): Remove definition.
29201         (sc_prohibit_always-defined_macros): Rewrite not to create and
29202         depend on a temporary file.  Instead, depend on GNU grep's ability
29203         to read a list of regular expressions from stdin when given "-f -".
29204
29205 2010-05-09  Bruno Haible  <bruno@clisp.org>
29206
29207         Update to GNU gettext 0.18, part 1.
29208         * m4/gettext.m4: Update to GNU gettext 0.18.
29209         * m4/intl.m4: Likewise.
29210         * m4/po.m4: Likewise.
29211         * modules/gettext (Files): Add m4/fcntl-o.m4.
29212         (configure.ac): Require gettext infrastructure from version 0.18.
29213
29214 2010-05-09  Jim Meyering  <meyering@redhat.com>
29215
29216         init.sh: enable MALLOC_PERTURB_
29217         * tests/init.sh: Enable glibc's malloc-perturbing option.
29218
29219         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29220         With my recent change in init.sh from the two-line form:
29221             -#   : ${srcdir=.}
29222             -#   . "$srcdir/init.sh"; path_prepend_ .
29223             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29224         I noticed that using the one-line form would cause this test
29225         to fail with a false-positive, or to stop working altogether,
29226         depending on whether help-version changed or all the tests did.
29227         * top/maint.mk (_hv_regex): Remove this definition.
29228         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29229         (_hv_regex_strong): Use a stronger regex to check for conformance.
29230         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29231         Give a separate diagnostic for lack of conforming use.
29232
29233         maint.mk: prohibit definition of symbols defined by gnulib
29234         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29235         definition of symbols defined by gnulib.
29236
29237 2010-05-09  Bruno Haible  <bruno@clisp.org>
29238
29239         acl: Avoid test failure on Cygwin-hosted mingw.
29240         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29241
29242 2010-05-09  Bruno Haible  <bruno@clisp.org>
29243
29244         error: Use system's fcntl function.
29245         * lib/error.c (fcntl): Undefine.
29246
29247 2010-05-09  Jim Meyering  <meyering@redhat.com>
29248
29249         verify: adjust formatting to be more consistent
29250         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29251         argument-list '('s, and after one comma.
29252
29253 2010-05-09  Bruno Haible  <bruno@clisp.org>
29254
29255         error: More reliable output on mingw.
29256         * lib/error.c: Include <windows.h>.
29257         (is_open): New function.
29258         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29259         defined.
29260
29261 2010-05-09  Bruno Haible  <bruno@clisp.org>
29262
29263         vasnprintf: Fix syntax errors in libintl build on mingw.
29264         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29265         pad_ourselves and prec_ourselves after use.
29266
29267 2010-05-08  Bruno Haible  <bruno@clisp.org>
29268
29269         * lib/config.charset: Update comments for Cygwin 1.7.
29270         * lib/localcharset.c: Likewise.
29271
29272 2010-05-07  Jim Meyering  <meyering@redhat.com>
29273
29274         init.sh: improve comments
29275         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29276         . "${srcdir=.}/init.sh"; path_prepend_ .
29277         Add a note about path_prepend_ and the alternative of using
29278         TESTS_ENVIRONMENT.
29279
29280 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29281
29282         exclude: Unescape hashed patterns in wildcard mode.
29283         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29284         to the hash list.
29285         * tests/test-exclude8.sh: New test case.
29286         * modules/exclude-tests: Add new test.
29287
29288 2010-05-05  Eric Blake  <eblake@redhat.com>
29289
29290         verify: automate tests
29291         * modules/verify-tests: New module.
29292         * tests/test-verify.sh: New file.
29293         * tests/test-verify.c: Guard each negative test with a unique id.
29294         Also avoid warning about unused left hand of comma expressions.
29295
29296 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29297
29298         Further improvements to verify.h, suggested by Eric Blake.
29299         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29300         the GL_* versions, to avoid collision with OpenGL.
29301         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29302         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29303         than testing merely whether it's defined.
29304
29305         Modify verify.h to pacify gcc -Wredundant_decls.
29306         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29307         These use the prefix "GL_" since they're likely to be useful elsewhere.
29308         We may need to break them out into a different .h file.
29309         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29310         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29311         of verify_function__.
29312
29313 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29314
29315         Tests for module pwrite.
29316         * modules/pwrite-tests: New file.
29317         * tests/test-pwrite.sh: New file.
29318         * tests/test-pwrite.c: New file.
29319
29320         New module pwrite.
29321         * lib/unistd.in.h (pwrite): New declaration.
29322         * lib/pwrite.c: New file, from glibc with modifications.
29323         * m4/pwrite.m4: New file.
29324         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29325         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29326         REPLACE_PWRITE.
29327         * modules/pwrite: New file.
29328         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29329         REPLACE_PWRITE.
29330         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29331         * doc/posix-functions/pwrite.texi: Mention the new module.
29332
29333 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29334
29335         pread: Update documentation.
29336         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29337
29338 2010-05-04  Eric Blake  <eblake@redhat.com>
29339
29340         docs: update cygwin progress
29341         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29342         this bug.
29343         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29344         Added in cygwin 1.7.2.
29345         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29346         Likewise.
29347         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29348         Likewise.
29349         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29350         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29351         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29352         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29353         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29354         Mention nproc module.
29355         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29356         bug in cygwin 1.7.5 addition.
29357         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29358         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29359         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29360         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29361         1.7.5.
29362         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29363         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29364         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29365         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29366         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29367         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29368         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29369         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29370         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29371         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29372         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29373         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29374         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29375         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29376         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29377         Likewise.
29378         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29379         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29380         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29381         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29382         Likewise.
29383         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29384         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29385         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29386         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29387         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29388         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29389         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29390         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29391         Likewise.
29392         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29393         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29394         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29395         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29396         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29397         Likewise.
29398         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29399         Likewise.
29400         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29401         Likewise.
29402         * doc/glibc-functions/xdrrec_endofrecord.texi
29403         (xdrrec_endofrecord): Likewise.
29404         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29405         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29406         Likewise.
29407         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29408         Likewise.
29409
29410 2010-05-04  Jim Meyering  <meyering@redhat.com>
29411
29412         gendocs.sh: make its "-s FILE" option more useful
29413         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29414         $PACKAGE to reflect the probably-different basename of "FILE".
29415
29416 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29417
29418         bootstrap: don't ignore download_po_files failure
29419         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29420         failure.
29421
29422 2010-05-03  Jim Meyering  <meyering@redhat.com>
29423
29424         maint.mk: allow to pass options to gendocs.sh
29425         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29426         (gendocs_options_): New overridable variable.
29427
29428         gnu-web-doc-update: don't ignore configure or build failure
29429         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29430
29431         announce-gen: backslash-escape '@'s in --help output
29432         * build-aux/announce-gen: Fix syntax errors.
29433
29434         maint.mk, announce-gen: allow project-specific announcement mail headers
29435         * top/maint.mk (translation_project_): Define default.
29436         (announcement_Cc_, announcement_mail_headers_): Likewise.
29437         (announcement): Invoke announce-gen with new --mail-headers option.
29438         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29439
29440         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29441         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29442         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29443         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29444         line in the "err2" output file when running "make check" in verbose
29445         mode (i.e., with set -x enabled).
29446
29447 2010-05-03  Bruno Haible  <bruno@clisp.org>
29448
29449         wctob: Fix for weird platforms.
29450         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29451         argument value.
29452
29453 2010-05-03  Jim Meyering  <meyering@redhat.com>
29454
29455         maint.mk: prohibit unwarranted use of <strings.h>
29456         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29457         strings.h in a file that does not also use strcasecmp, strncasecmp,
29458         ffs or ffsll.
29459
29460         maint.mk: remove obsolete comments
29461         * top/maint.mk: Remove stale, commented-out rules.
29462
29463 2010-05-02  Bruno Haible  <bruno@clisp.org>
29464
29465         wcwidth: Declare also when it's aliased.
29466         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29467         macro.
29468
29469 2010-05-02  Bruno Haible  <bruno@clisp.org>
29470
29471         Fix regression from 2010-04-25.
29472         * gnulib-tool (func_modules_transitive_closure): Check the status of
29473         all modules, not only of the tests that are of the form foo-tests where
29474         foo is a module.
29475
29476 2010-05-02  Bruno Haible  <bruno@clisp.org>
29477
29478         wctob: Work around nasty Cygwin 1.7.2 bug.
29479         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29480         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29481
29482 2010-05-01  Bruno Haible  <bruno@clisp.org>
29483
29484         fpurge: Sharper test.
29485         * tests/test-fpurge.c (main): Add one more ftell check.
29486         * modules/fpurge-tests (Depends-on): Add ftell.
29487         Suggested by Eric Blake.
29488
29489 2010-05-01  Bruno Haible  <bruno@clisp.org>
29490
29491         ftello: Another test.
29492         * tests/test-ftello3.c: New file.
29493         * modules/ftello-tests (Files): Add it.
29494         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29495         MOSTLYCLEANFILES.
29496
29497         ftell: Another test.
29498         * tests/test-ftell3.c: New file.
29499         * modules/ftell-tests (Files): Add it.
29500         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29501         MOSTLYCLEANFILES.
29502
29503 2010-05-01  Bruno Haible  <bruno@clisp.org>
29504
29505         ftell, ftello: Work around Solaris bug.
29506         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29507         * lib/ftello.c: Include stdio-impl.h.
29508         (ftello): On Solaris, when _IOWRT is set, compute the result without
29509         looking at _IOREAD.
29510         * modules/ftello (Files): Add lib/stdio-impl.h.
29511         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29512         * doc/posix-functions/ftello.texi: Likewise.
29513         Reported by Eric Blake.
29514
29515 2010-05-01  Bruno Haible  <bruno@clisp.org>
29516
29517         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29518         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29519         the _IOWRT flag is also set.
29520
29521 2010-05-01  Bruno Haible  <bruno@clisp.org>
29522
29523         Fix doc about a HP-UX stdio bug.
29524         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29525         * doc/posix-functions/ftello.texi: Likewise.
29526
29527 2010-05-01  Bruno Haible  <bruno@clisp.org>
29528
29529         lseek test: Fix failure on Solaris.
29530         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29531         output.
29532
29533 2010-04-30  Jim Meyering  <meyering@redhat.com>
29534
29535         bootstrap: don't ignore failure to generate po*/Makevars
29536         * build-aux/bootstrap (with_gettext): Don't ignore failure
29537         to create po/Makevars or runtime-po/Makevars.
29538
29539 2010-04-29  Eric Blake  <eblake@redhat.com>
29540
29541         headers: relax license to LGPLv2+
29542         * modules/fcntl-h (License): Relax license.
29543         * modules/getopt-posix (License): Likewise.
29544         * modules/locale (License): Likewise.
29545         * modules/math (License): Likewise.
29546         * modules/pty (License): Likewise.
29547         * modules/sched (License): Likewise.
29548         * modules/search (License): Likewise.
29549         * modules/spawn (License): Likewise.
29550         * modules/stdarg (License): Likewise.
29551         * modules/sysexits (License): Likewise.
29552
29553 2010-04-29  Jim Meyering  <meyering@redhat.com>
29554
29555         inttypes: relax license to LGPLv2+
29556         * modules/inttypes (License): Relax license.
29557
29558 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29559
29560         * top/maint.mk (indent): Run twice to produce idempotent results.
29561
29562 2010-04-28  Bruno Haible  <bruno@clisp.org>
29563
29564         getdate: Generate getdate.c in the source directory.
29565         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29566         MOSTLYCLEANFILES.
29567         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29568
29569 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29570
29571         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29572         is not declared as a const *; avoid warnings in that case.
29573
29574 2010-04-28  Eric Blake  <eblake@redhat.com>
29575
29576         canonicalize-lgpl: avoid compiler warning
29577         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29578         declaration' / 'extraneous semicolon' warning with some compilers.
29579         Reported by Andreas Gruenbacher.
29580
29581 2010-04-28  Jim Meyering  <meyering@redhat.com>
29582
29583         init.sh: ensure a more reliable exit status when exiting via trap
29584         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29585         Inspired by patches from Dmitry V. Levin.
29586         Also trap on signal 3 (SIGQUIT).
29587
29588 2010-04-27  Bruno Haible  <bruno@clisp.org>
29589
29590         Update doc about utimes().
29591         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29592         'utimens' module.
29593         Reported by Andreas Gruenbacher <agruen@suse.de>.
29594
29595 2010-04-27  Eric Blake  <eblake@redhat.com>
29596
29597         full-read, full-write: relax license
29598         * modules/full-read (License): Drop to LGPLv2+.
29599         * modules/full-write (License): Likewise.
29600         * modules/safe-read (License): Likewise.
29601         * modules/safe-write (License): Likewise.
29602
29603         pthread: mention library for linking
29604         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29605
29606 2010-04-27  Jim Meyering  <meyering@redhat.com>
29607
29608         maint.mk: fix a bug introduced in last change
29609         * top/maint.mk (gl_assured_headers_): Now that all names are on
29610         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29611         is not anchored to end of word, it should be adequate.
29612
29613         maint.mk: avoid side-effect in latest syntax-check
29614         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29615         to run commands via $(shell...), and hence to incur cost only when
29616         the new rule is actually run.
29617
29618         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29619         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29620         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29621         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29622         (gl_assured_headers_, az_, AZ_): Define.
29623         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29624
29625 2010-04-26  Jim Meyering  <jim@meyering.net>
29626             Bruno Haible  <bruno@clisp.org>
29627
29628         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29629         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29630         Prompted by an exchange with Gilles Espinasse.
29631
29632 2010-04-26  Jim Meyering  <meyering@redhat.com>
29633
29634         git-version-gen: aesthetic tweak
29635         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29636         so that the command remains on a single line.
29637
29638 2010-04-26  Eric Blake  <eblake@redhat.com>
29639
29640         git-version-gen: allow use on EBCDIC hosts
29641         * build-aux/git-version-gen (dirty): Use literal rather than tying
29642         ourselves to ascii.
29643         Reported by Steve Goetze.
29644
29645 2010-04-25  Bruno Haible  <bruno@clisp.org>
29646
29647         netdb: Add support for GNULIB_POSIXCHECK.
29648         * lib/netdb.in.h: Include warn-on-use.h.
29649         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29650         functions are used when GNULIB_POSIXCHECK is defined and the
29651         getaddrinfo module is not in use.
29652         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29653         freeaddrinfo, gai_strerror, getnameinfo are declared.
29654         * modules/netdb (Depends-on): Add warn-on-use.
29655         (Makefile.am): Include warn-on-use.h in netdb.h.
29656
29657 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29658
29659         build: avoid "make check" failure without .git/ directory
29660         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29661         there is no .git/ directory.
29662
29663 2010-04-25  Bruno Haible  <bruno@clisp.org>
29664
29665         ptsname: Fix misuse of ttyname_r.
29666         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29667         of errno.
29668
29669 2010-04-25  Bruno Haible  <bruno@clisp.org>
29670
29671         ttyname_r: Make it work on Solaris 10.
29672         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29673         if the system function has the POSIX declaration. Test whether the
29674         function fails if the buffer is less than 128 bytes large.
29675         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29676         system's ttyname_r function. Provide a reasonably large buffer.
29677         * modules/ttyname_r (Depends-on): Add extensions.
29678         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29679
29680 2010-04-25  Bruno Haible  <bruno@clisp.org>
29681
29682         Use the 'extensions' module for some more functions on Solaris.
29683         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29684         module.
29685         * doc/posix-functions/ctime_r.texi: Likewise.
29686         * doc/posix-functions/getgrgid_r.texi: Likewise.
29687         * doc/posix-functions/getgrnam_r.texi: Likewise.
29688         * doc/posix-functions/getpwnam_r.texi: Likewise.
29689         * doc/posix-functions/getpwuid_r.texi: Likewise.
29690         * doc/posix-functions/readdir_r.texi: Likewise.
29691         * doc/posix-functions/sigwait.texi: Likewise.
29692         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29693         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29694
29695 2010-04-25  Bruno Haible  <bruno@clisp.org>
29696
29697         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29698         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29699         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29700         * lib/ttyname_r.c: Include <limits.h>.
29701         (ttyname_r): Define using the system's ttyname_r function, if it exists
29702         and not on Solaris.
29703         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29704         set.
29705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29706         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29707         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29708         Reported by Simon Josefsson.
29709
29710 2010-04-25  Bruno Haible  <bruno@clisp.org>
29711
29712         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29713         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29714         * doc/posix-functions/ctime_r.texi: Likewise.
29715         * doc/posix-functions/getgrgid_r.texi: Likewise.
29716         * doc/posix-functions/getgrnam_r.texi: Likewise.
29717         * doc/posix-functions/getlogin_r.texi: Likewise.
29718         * doc/posix-functions/getpwnam_r.texi: Likewise.
29719         * doc/posix-functions/getpwuid_r.texi: Likewise.
29720         * doc/posix-functions/readdir_r.texi: Likewise.
29721         * doc/posix-functions/sigwait.texi: Likewise.
29722         * doc/posix-functions/ttyname_r.texi: Likewise.
29723         Reported by Simon Josefsson.
29724
29725 2010-04-25  Bruno Haible  <bruno@clisp.org>
29726
29727         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29728         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29729         also to --create-testdir.
29730         (func_acceptable): Don't consider the status of *-tests modules here.
29731         (func_modules_transitive_closure): Consider it here, before including a
29732         test module.
29733         (func_import, func_create_testdir): Set inc_all_direct_tests,
29734         inc_all_indirect_tests.
29735         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29736         --create-testdir and --create-megatestdir.
29737
29738 2010-04-25  Bruno Haible  <bruno@clisp.org>
29739
29740         gnulib-tool: Add --without-*-tests options.
29741         * gnulib-tool (func_usage): Document the --without-*-tests options.
29742         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29743         excl_unportable_tests): New variables.
29744         Fail if they are specified with --import or --update.
29745         (func_acceptable): Respect the excl_*_tests variables.
29746         (func_import): Set the excl_*_tests variables to empty.
29747
29748 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29749             Bruno Haible  <bruno@clisp.org>
29750
29751         Work around a MacOS X 10.4 bug with openpty.
29752         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29753         * tests/test-openpty.c (main): Close the master side explicitly.
29754
29755 2010-04-25  Bruno Haible  <bruno@clisp.org>
29756
29757         strnlen: Fix a C++ test error on MacOS X and Solaris.
29758         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29759         the function is not declared.
29760         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29761         Simon Josefsson.
29762
29763 2010-04-24  Bruno Haible  <bruno@clisp.org>
29764
29765         Avoid a gcc warning.
29766         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29767         of correct type for %08lx directive.
29768         Reported by Eric Blake.
29769
29770 2010-04-24  Bruno Haible  <bruno@clisp.org>
29771
29772         vasnprintf: Correct errno value in case of out-of-memory.
29773         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29774         or sprintf. Use the errno value from SNPRINTF or sprintf.
29775         Reported by Ian Beckwith <ianb@erislabs.net>.
29776
29777 2010-04-24  Bruno Haible  <bruno@clisp.org>
29778
29779         ansi-c++-opt: Find correct compiler when cross-compiling.
29780         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29781         AC_CHECK_PROGS.
29782         Reported by Simon Josefsson.
29783
29784 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29785
29786         vc-list-files: Add support for subversion
29787         * build-aux/vc-list-files: Use "svn list" to generate the list of
29788         files controlled by subversion.
29789
29790 2010-04-23  Jim Meyering  <meyering@redhat.com>
29791
29792         vc-list-files tests: convert to use init.sh
29793         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29794         path_prepend_.
29795         Use Exit, not exit.
29796         Use skip_ rather than open coding it.
29797         Remove trap set-up and compare definitions.
29798         * tests/test-vc-list-files-git.sh: Likewise.
29799         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29800
29801 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29802
29803         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29804         backup files.
29805
29806 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29807
29808         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29809
29810 2010-04-20  Eric Blake  <eblake@redhat.com>
29811
29812         tests: be robust to ignored SIGPIPE
29813         * tests/test-select-in.sh: Consume all output.
29814         * tests/test-lseek.sh: Check correct exit status, while avoiding
29815         EPIPE.
29816
29817 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29818             Bruno Haible  <bruno@clisp.org>
29819
29820         visibility: Don't use -fvisibility if it leads to a warning.
29821         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29822         yes, don't pretend that visibility works if it leads to a warning.
29823         Reported by Mike Gran <spk121@yahoo.com>.
29824
29825 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29826
29827         * build-aux/bootstrap: Use "git -h" for testing for supported options
29828         instead of "git --help".  The short-form option only shows a summary,
29829         and doesn't layout the full man page.  Grep for the full option name
29830         in the summary, too.
29831
29832 2010-04-19  Bruno Haible  <bruno@clisp.org>
29833
29834         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29835         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29836         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29837         mention of RELOCATABLE_STRIP.
29838         Reported by Sylvain Beucler <beuc@beuc.net>.
29839
29840 2010-04-19  Bruno Haible  <bruno@clisp.org>
29841
29842         * lib/diffseq.h: Fix typo in comment.
29843         Reported by Eric Blake.
29844
29845 2010-04-19  Bruno Haible  <bruno@clisp.org>
29846
29847         ioctl: Move autoconf macro to a .m4 file.
29848         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29849         * modules/ioctl (Files): Add it.
29850         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29851         Reported by Ian Beckwith <ianb@erislabs.net>.
29852
29853 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29854             Bruno Haible  <bruno@clisp.org>
29855
29856         diffseq: Accommodate use-case with abstract arrays.
29857         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29858         is not defined.
29859         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29860         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29861
29862 2010-04-18  Bruno Haible  <bruno@clisp.org>
29863
29864         * doc/posix-headers/stdbool.texi: More precise wording.
29865
29866 2010-04-17  Jim Meyering  <meyering@redhat.com>
29867
29868         maint.mk: use gnu-style indentation in an embedded perl script
29869         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29870         Rename variable: s/two/last_two_bytes/
29871
29872 2010-04-16  Eric Blake  <eblake@redhat.com>
29873
29874         test-stdbool: skip test that fails with Solaris CC
29875         * tests/test-stdbool.c (f): Skip test that causes compilation
29876         error under buggy C++ compiler.
29877         * lib/stdbool.in.h: Document the limitation.
29878         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29879
29880         setenv: allow compilation with C++
29881         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29882         register keyword.
29883
29884         stdint: allow test to pass with C++
29885         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29886
29887         getopt: allow compilation with C++
29888         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29889         struct.
29890         * lib/getopt.c (_getopt_internal_r): Use correct type.
29891         Reported by Dagobert Michelson, via Joel E. Denny.
29892
29893 2010-04-16  Bruno Haible  <bruno@clisp.org>
29894
29895         Override netdb.h always.
29896         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29897         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29898         Reported by Ludovic Courtès <ludo@gnu.org>.
29899
29900 2010-04-15  Bruno Haible  <bruno@clisp.org>
29901
29902         openpty: Fix mistake from 2010-03-21.
29903         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29904         Reported by Simon Josefsson.
29905
29906 2010-04-15  Eric Blake  <eblake@redhat.com>
29907
29908         test-forkpty: fix expected signature
29909         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29910         Reported by Simon Josefsson.
29911
29912 2010-04-15  Jim Meyering  <meyering@redhat.com>
29913
29914         maint.mk: texinfo_suffix_re_: correct the default regexp
29915         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29916
29917         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29918         make it configurable via texinfo_suffix_re_.
29919
29920 2010-04-14  Eric Blake  <eblake@redhat.com>
29921
29922         strtok_r: relax license to LGPLv2+
29923         * modules/strtok_r (License): Relax license.
29924         Reported by Matthias Bolte.
29925
29926 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29927
29928         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29929         version 1.4.4 by default instead of requiring the libgcrypt
29930         version used during build.  This makes it possible to use the
29931         application with older but still binary compatible libgcrypt
29932         versions.
29933
29934 2010-04-13  Eric Blake  <eblake@redhat.com>
29935
29936         getopt-gnu: match recent glibc fixes and posix ruling
29937         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29938         '+' handling, when requesting extensions.
29939         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29940         'W;' handling.
29941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29942         * doc/posix-functions/getopt.texi (getopt): Document this.
29943         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29944         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29945         Likewise.
29946
29947         getopt: merge bug fixes from glibc
29948         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29949         diagnostics.  Honor '+:' correctly.  Reject ';'.
29950
29951         getopt-posix: detect MacOS bug
29952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29953         optind when missing a required argument.
29954         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29955         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29956         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29957         Likewise.
29958
29959         getopt-posix: avoid spurious failure on Solaris
29960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29961         an indicator that setting optind=1 is sufficient for reset.
29962
29963         getopt-posix: avoid spurious failure on FreeBSD
29964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29965         in POSIX mode, since the m4 test uses it.
29966
29967         gnulib-tool: silence warning on BSD sh
29968         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29969
29970 2010-04-13  Jim Meyering  <meyering@redhat.com>
29971
29972         doc: users.txt: GNU patch now uses gnulib
29973         * users.txt: Add patch.
29974
29975 2010-04-12  Jim Meyering  <meyering@redhat.com>
29976
29977         maint.mk: generate more concise timing data for syntax-check rules
29978         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29979         " done" from each line that reports a syntax-check test duration.
29980
29981 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29982
29983         git-version-gen: use "git update-index..." rather than "git status"
29984         * build-aux/git-version-gen: Use git update-index --refresh, not
29985         "git status".  With some versions of git, "git status" would fail
29986         to update the index and result in an unwarranted "-dirty" suffix.
29987
29988 2010-04-11  Jim Meyering  <meyering@redhat.com>
29989
29990         openat: correct formatting (no semantic change)
29991         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29992         Suggested by Bruno Haible.
29993
29994 2010-04-11  Bruno Haible  <bruno@clisp.org>
29995
29996         Stricter declaration checking in testdirs.
29997         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29998         If for_tests is true, augment AM_CPPFLAGS to define
29999         GNULIB_STRICT_CHECKING.
30000         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30001         GNULIB_STRICT_CHECKING is defined, verify that the function is
30002         declared.
30003
30004 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30005             Bruno Haible  <bruno@clisp.org>
30006
30007         libunistring: Improve configure output.
30008         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30009         Don't say "consider installing GNU libunistring" when checking again
30010         with libiconv.
30011
30012 2010-04-11  Bruno Haible  <bruno@clisp.org>
30013
30014         libunistring: Correct value of $LTLIBUNISTRING.
30015         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30016         correct the value of $LTLIBUNISTRING.
30017
30018 2010-04-11  Bruno Haible  <bruno@clisp.org>
30019
30020         havelib: Add static libraries to LIBS in the right order.
30021         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30022         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30023
30024 2010-04-11  Bruno Haible  <bruno@clisp.org>
30025
30026         libunistring: Detect libunistring also when it depends on libiconv.
30027         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30028         the second AC_LIB_HAVE_LINKFLAGS invocation.
30029
30030 2010-04-11  James Youngman  <jay@gnu.org>
30031
30032         close-stream: declare local scalars to be "const"
30033         * lib/close-stream.c (close_stream): Make boolean variables const
30034         to document the fact that we set but do not change them.
30035
30036 2010-04-11  Bruno Haible  <bruno@clisp.org>
30037
30038         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30039
30040 2010-04-11  Jim Meyering  <meyering@redhat.com>
30041
30042         maint.mk: don't include dist-check.mk
30043         * top/maint.mk: Remove bogus include directive.
30044
30045         maint.mk: improve empty-line-at-EOF check
30046         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30047         solution, rather than tail+Perl-based one.  The latter would read
30048         a few kilobytes from the end of each file, and did not handle empty
30049         files properly.
30050
30051         maint.mk: print the elapsed time for each syntax-check rule
30052         * top/maint.mk (sc_m_rules_): Save start time in a file.
30053         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30054         (local-check): Interpose the .z rules
30055
30056 2010-04-11  Jim Meyering  <meyering@redhat.com>
30057
30058         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30059         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30060         empty file with one that ends in an empty line.
30061
30062 2010-04-10  Bruno Haible  <bruno@clisp.org>
30063
30064         mkdir: Make it work on mingw64.
30065         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30066         * lib/mkdir.c: Update comment.
30067         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30068
30069 2010-04-10  Bruno Haible  <bruno@clisp.org>
30070
30071         Don't override improved macro from newer autoconf.
30072         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30073         autoconf >= 2.62.
30074         Reported by Joel E. Denny <jdenny@clemson.edu>.
30075
30076 2010-04-10  Jim Meyering  <meyering@redhat.com>
30077
30078         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30079         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30080
30081         maint.mk: correct a diagnostic
30082         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30083         in diagnostic; now use $prohibit.
30084
30085 2010-04-10  Bruno Haible  <address@hidden>
30086
30087         fchownat: Fix a C++ test error on Solaris 8.
30088         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30089         the function does not exist.
30090
30091 2010-04-10  Bruno Haible  <bruno@clisp.org>
30092
30093         vasnprintf: Add more tests.
30094         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30095         (test_function): Test converting an invalid wide string.
30096
30097         vasnprintf: Correct handling of unconvertible wide string arguments.
30098         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30099         VASNPRINTF.
30100         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30101         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30102         smaller than the expected maximum need for the directive. Set errno to
30103         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30104         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30106         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30107         * modules/vasnprintf (Files): Add m4/printf.m4.
30108         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30109
30110 2010-04-10  Bruno Haible  <bruno@clisp.org>
30111
30112         vasnprintf: Fix crash in %ls directive.
30113         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30114         string is passed as argument to %ls, with no precision and no width.
30115         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30116
30117 2010-04-10  Bruno Haible  <bruno@clisp.org>
30118
30119         vasnprintf: Fix multiple test failures on mingw.
30120         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30121         _snprintf, or snwprintf, not _snwprintf.
30122
30123 2010-04-10  Bruno Haible  <bruno@clisp.org>
30124
30125         write: Fix a C++ test error on mingw.
30126         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30127
30128 2010-04-10  Bruno Haible  <bruno@clisp.org>
30129
30130         vasnprintf test: Reduce code duplication.
30131         * tests/test-vasnprintf.c (test_function): New function, extracted from
30132         test_vasnprintf.
30133         (test_vasnprintf, test_asnprintf): Invoke it.
30134
30135 2010-04-10  Bruno Haible  <bruno@clisp.org>
30136
30137         strnlen: Fix warning in C++ mode on MacOS X.
30138         * lib/string.in.h (strnlen): Use the modern idiom.
30139         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30140         defining strnlen as a macro already in <config.h>.
30141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30142         REPLACE_STRNLEN.
30143         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30144         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30145
30146 2010-04-08  James Youngman  <jay@gnu.org>
30147
30148         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30149         the example.
30150
30151 2010-04-09  Jim Meyering  <meyering@redhat.com>
30152
30153         maint.mk: print better diagnostic when there is no $(_hv_file)
30154         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30155         announce that when $(_hv_file) (aka help-version) does not exist.
30156
30157         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30158         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30159         not try to interpret its random input bytes.  Jarno Rajahalme reported
30160         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30161         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30162         (mktempd_): Likewise, just in case.
30163
30164         ftruncate: add two years to projected module removal date: 2012
30165         * m4/ftruncate.m4: Adjust comments.
30166
30167         ftruncate: mark module as obsolete; even MinGW provides it, now
30168         * modules/ftruncate (Status): Obsolete.
30169         (Notice): Say that.
30170         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30171         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30172
30173 2010-04-08  Bruno Haible  <bruno@clisp.org>
30174
30175         Fix side effects from tests-related modules.
30176         * modules/dprintf-posix (Comment): New section.
30177         * modules/fprintf-posix (Comment): Likewise.
30178         * modules/obstack-printf-posix (Comment): Likewise.
30179         * modules/printf-posix (Comment): Likewise.
30180         * modules/snprintf-posix (Comment): Likewise.
30181         * modules/sprintf-posix (Comment): Likewise.
30182         * modules/vasnprintf-posix (Comment): Likewise.
30183         * modules/vasprintf-posix (Comment): Likewise.
30184         * modules/vdprintf-posix (Comment): Likewise.
30185         * modules/vfprintf-posix (Comment): Likewise.
30186         * modules/vprintf-posix (Comment): Likewise.
30187         * modules/vsnprintf-posix (Comment): Likewise.
30188         * modules/vsprintf-posix (Comment): Likewise.
30189         * modules/xprintf-posix (Comment): Likewise.
30190         * modules/xvasprintf-posix (Comment): Likewise.
30191         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30192         * modules/floorf-tests (Depends-on): Likewise.
30193         * modules/round-tests (Depends-on): Likewise.
30194         * modules/roundf-tests (Depends-on): Likewise.
30195         * modules/trunc-tests (Depends-on): Likewise.
30196         * modules/truncf-tests (Depends-on): Likewise.
30197         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30198         'fprintf-posix' module is not present.
30199         * tests/test-floorf2.c (check): Likewise.
30200         * tests/test-trunc2.c (check): Likewise.
30201         * tests/test-truncf2.c (check): Likewise.
30202         * tests/test-round2.c (equal): Likewise.
30203         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30204
30205 2010-04-07  Karl Berry  <karl@gnu.org>
30206
30207         * config/srclist.txt,
30208         * config/srclistvars.sh,
30209         * config/srclist-update: doc fixes.
30210
30211 2010-04-07  Jim Meyering  <meyering@redhat.com>
30212
30213         maint.mk: add a PATH crosschecking syntax-check rule
30214         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30215         Useful if you use a test like the one in help-version (coreutils,
30216         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30217         printed by prog --version.
30218
30219 2010-04-06  Bruno Haible  <bruno@clisp.org>
30220
30221         Fix link error on mingw.
30222         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30223         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30224
30225 2010-04-06  Bruno Haible  <bruno@clisp.org>
30226
30227         Assume rmdir exists.
30228         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30229
30230 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30231
30232         doc: update users.txt
30233         * users.txt: Add gcal.
30234
30235 2010-04-06  Jim Meyering  <meyering@redhat.com>
30236
30237         init.sh: simply unset TMPDIR rather than risking env -i
30238         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30239         although it probably works fine on all Unix-based systems, some
30240         systems (Cygwin?) cannot tolerate a totally cleared environment.
30241         Suggestion from Eric Blake.
30242
30243 2010-04-06  Jim Meyering  <meyering@redhat.com>
30244
30245         init.sh: portability fix: use env's POSIX-specified -i option not -u
30246         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30247         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30248
30249 2010-04-05  Bruno Haible  <bruno@clisp.org>
30250
30251         btowc: Work around Cygwin 1.7.2 bug.
30252         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30253         does not map NUL to 0.
30254         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30255
30256 2010-04-05  Bruno Haible  <bruno@clisp.org>
30257
30258         Make the multithread modules work on Cygwin 1.7.2.
30259         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30260         imported symbols can be declared weak, so that it returns "no" on
30261         Cygwin 1.7.2.
30262
30263 2010-04-05  Bruno Haible  <bruno@clisp.org>
30264
30265         Use the module 'strncat'.
30266         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30267
30268         Tests for module 'strncat'.
30269         * modules/strncat-tests: New file.
30270         * tests/test-strncat.c: New file.
30271
30272         New module 'strncat'.
30273         * lib/string.in.h (strncat): New declaration.
30274         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30275         * m4/strncat.m4: New file, based on m4/memchr.m4.
30276         * modules/strncat: New file.
30277         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30278         is declared.
30279         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30280         REPLACE_STRNCAT.
30281         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30282         REPLACE_STRNCAT.
30283         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30284         module.
30285         * tests/test-string-c++.cc: Check signature of strncat.
30286
30287 2010-04-05  Jim Meyering  <meyering@redhat.com>
30288
30289         xstrtoumax-tests: convert to use init.sh
30290         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30291         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30292         Use Exit, not exit.
30293         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30294
30295         xstrtoimax-tests: convert to use init.sh
30296         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30297         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30298         Use Exit, not exit.
30299         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30300
30301 2010-04-05  Bruno Haible  <bruno@clisp.org>
30302
30303         sys_socket: Avoid #define replacements in C++ mode.
30304         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30305         warning to the function if possible, rather than #defining the symbol
30306         to a dysfunctional alias.
30307
30308 2010-04-05  Bruno Haible  <bruno@clisp.org>
30309
30310         fseeko: Fix C++ test error on mingw.
30311         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30312         gl_FUNC_FSEEKO.
30313         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30314         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30315         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30316         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30317
30318 2010-04-05  Bruno Haible  <bruno@clisp.org>
30319
30320         duplocale: Improve test output.
30321         * tests/test-duplocale.c (main): Print reason for skipped test.
30322
30323 2010-04-05  Bruno Haible  <bruno@clisp.org>
30324
30325         Assume rmdir exists.
30326         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30327         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30328
30329 2010-04-05  Bruno Haible  <bruno@clisp.org>
30330
30331         Fix link error on Solaris 8 with cc.
30332         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30333
30334 2010-04-05  Bruno Haible  <bruno@clisp.org>
30335
30336         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30337         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30338
30339 2010-04-05  Bruno Haible  <bruno@clisp.org>
30340
30341         vasprintf: Update documentation.
30342         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30343
30344 2010-04-05  Bruno Haible  <bruno@clisp.org>
30345
30346         ptsname: Improve test.
30347         * tests/test-ptsname.c (main): Also try the various master names of BSD
30348         systems.
30349
30350 2010-04-05  Bruno Haible  <bruno@clisp.org>
30351
30352         memchr: Avoid a possible C++ test error.
30353         * lib/string.in.h (memchr): Provide declaration if function is missing.
30354         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30355         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30357         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30358
30359 2010-04-05  Bruno Haible  <bruno@clisp.org>
30360
30361         strtok_r: Improve idiom.
30362         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30363         AC_LIBOBJ is used.
30364
30365 2010-04-05  Bruno Haible  <bruno@clisp.org>
30366
30367         strdup: Improve idiom.
30368         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30369         AC_LIBOBJ is used.
30370         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30371         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30372         when AC_LIBOBJ is used.
30373
30374 2010-04-05  Bruno Haible  <bruno@clisp.org>
30375
30376         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30377         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30378         don't set REPLACE_MBSINIT to 1.
30379         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30380         don't set REPLACE_MBRTOWC to 1.
30381         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30382         exist, don't set REPLACE_MBSRTOWCS to 1.
30383         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30384         exist, don't set REPLACE_MBSNRTOWCS to 1.
30385         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30386         don't set REPLACE_WCRTOMB to 1.
30387         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30388         exist, don't set REPLACE_WCSRTOMBS to 1.
30389         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30390         exist, don't set REPLACE_WCSNRTOMBS to 1.
30391
30392 2010-04-05  Bruno Haible  <bruno@clisp.org>
30393
30394         ldexpl: Improve idiom.
30395         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30396         make sure to set HAVE_DECL_LDEXPL to 0.
30397
30398 2010-04-05  Jim Meyering  <meyering@redhat.com>
30399
30400         xstrtol-tests: convert to use init.sh
30401         * modules/xstrtol-tests (Files): Add tests/init.sh.
30402         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30403         Use Exit, not exit.
30404         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30405
30406         atexit-tests: convert to use init.sh
30407         * modules/atexit-tests (Files): Add tests/init.sh.
30408         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30409         Use Exit, not exit.
30410         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30411
30412         init.sh: fix typo
30413         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30414
30415         init.sh: make it easier for a test script to write to the tty, ...
30416         when using automake's parallel-tests mode.
30417         * tests/init.sh (stderr_fileno_): Define overridable variable.
30418         (warn_): New function, to use it.
30419         (fail_, skip_, framework_failure_): Use warn_.
30420
30421 2010-04-04  Bruno Haible  <bruno@clisp.org>
30422
30423         btowc: Avoid warning.
30424         * lib/btowc.c: Include <stdlib.h>.
30425         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30426
30427 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30428             Bruno Haible  <bruno@clisp.org>
30429
30430         wchar: Port to NetBSD 1.5.
30431         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30432         * lib/wctype.in.h (WEOF): Likewise.
30433
30434 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30435             Bruno Haible  <bruno@clisp.org>
30436
30437         Port extended stdio to NetBSD 1.5.
30438         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30439         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30440         older.
30441
30442 2010-04-04  Bruno Haible  <bruno@clisp.org>
30443
30444         string: Remove unused substitution.
30445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30446         HAVE_DECL_STRERROR.
30447         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30448
30449 2010-04-04  Bruno Haible  <bruno@clisp.org>
30450
30451         strtod: Avoid a possible C++ test error.
30452         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30453         set REPLACE_STRTOD.
30454
30455 2010-04-04  Bruno Haible  <bruno@clisp.org>
30456
30457         strerror: Update documentation.
30458         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30459
30460 2010-04-04  Bruno Haible  <bruno@clisp.org>
30461
30462         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30463         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30464         _GL_CXXALIAS_SYS_CAST.
30465
30466 2010-04-04  Bruno Haible  <bruno@clisp.org>
30467
30468         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30469         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30470         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30471         REPLACE_FREXPL to 1.
30472         * doc/posix-functions/frexpl.texi: Update documentation.
30473
30474 2010-04-04  Bruno Haible  <bruno@clisp.org>
30475
30476         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30477         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30478
30479 2010-04-04  Bruno Haible  <bruno@clisp.org>
30480
30481         Implement nanosleep for native Windows.
30482         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30483
30484 2010-04-04  Bruno Haible  <bruno@clisp.org>
30485
30486         math: Fix some C++ test errors on Solaris 8.
30487         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30488
30489 2010-04-04  Bruno Haible  <bruno@clisp.org>
30490
30491         math: Fix some C++ test errors on Cygwin.
30492         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30493         truncl): Provide declaration if the system does not have it.
30494         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30495         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30496         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30497         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30498         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30499         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30500         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30501         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30502         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30503         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30504         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30505         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30506         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30507         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30508         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30509         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30511         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30512         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30513         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30514         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30515         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30516
30517 2010-04-04  Bruno Haible  <bruno@clisp.org>
30518
30519         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30520         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30521         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30522         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30523         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30524         * m4/isinf.m4 (gl_ISINF): Likewise.
30525         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30526
30527 2010-04-04  Bruno Haible  <bruno@clisp.org>
30528
30529         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30530         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30531
30532 2010-04-04  Bruno Haible  <bruno@clisp.org>
30533
30534         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30535         * modules/tmpfile (configure.ac): Update.
30536
30537         tmpfile: Fix C++ test error on mingw.
30538         * lib/stdio.in.h (tmpfile): New declaration.
30539         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30540         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30541         * modules/tmpfile (Depends-on): Add stdio.
30542         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30543         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30544         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30545         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30546         REPLACE_TMPFILE.
30547         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30548
30549 2010-04-04  Bruno Haible  <bruno@clisp.org>
30550
30551         ioctl: Fix C++ test error on mingw.
30552         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30553         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30554         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30555
30556 2010-04-03  Bruno Haible  <bruno@clisp.org>
30557
30558         wcwidth: Fix C++ test error on mingw.
30559         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30561         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30562
30563 2010-04-03  Bruno Haible  <bruno@clisp.org>
30564
30565         nanosleep: Fix C++ test error on mingw.
30566         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30567         * lib/time.in.h (nanosleep): Use modern idiom.
30568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30569         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30570         REPLACE_NANOSLEEP to 1.
30571         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30572         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30573
30574 2010-04-03  Bruno Haible  <bruno@clisp.org>
30575
30576         strptime: Fix C++ test error on mingw.
30577         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30578         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30579         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30580         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30581         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30582         not REPLACE_STRPTIME.
30583         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30584         REPLACE_STRPTIME.
30585
30586 2010-04-03  Bruno Haible  <bruno@clisp.org>
30587
30588         timegm: Fix C++ test error on mingw.
30589         * lib/time.in.h (timegm): Use modern idiom.
30590         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30591         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30592         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30593         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30594
30595 2010-04-03  Bruno Haible  <bruno@clisp.org>
30596
30597         timegm: Assume declaration if function exists.
30598         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30599         if it exists. Don't clobber ac_cv_func_timegm.
30600
30601 2010-04-03  Bruno Haible  <bruno@clisp.org>
30602
30603         time_r: Fix C++ test error on mingw.
30604         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30605         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30606         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30607         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30608         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30609
30610 2010-04-03  Bruno Haible  <bruno@clisp.org>
30611
30612         time_r: Minor updates.
30613         * modules/time_r (Description): Mention the provided functions.
30614         * lib/time_r.c: Don't include <string.h>.
30615         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30616         * doc/posix-functions/localtime_r.texi: Likewise.
30617
30618 2010-04-03  Bruno Haible  <bruno@clisp.org>
30619
30620         time: Fix regression introduced on 2010-03-08.
30621         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30622         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30623
30624 2010-04-03  Jim Meyering  <meyering@redhat.com>
30625
30626         maint.mk: don't silently disable project-specific syntax-check rules
30627         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30628         that they need to convert their project-specific syntax-check rules
30629         to use the new _sc_search_regexp.
30630
30631 2010-04-03  Bruno Haible  <bruno@clisp.org>
30632
30633         fchdir: Fix regression introduced on 2010-03-08.
30634         * lib/unistd.in.h (fchdir): Fix declaration.
30635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30637         REPLACE_FCHDIR.
30638         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30639         REPLACE_FCHDIR.
30640
30641 2010-04-03  Bruno Haible  <bruno@clisp.org>
30642
30643         getpagesize: Fix C++ test error on mingw.
30644         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30645         system does not declare the function.
30646         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30647         declared.
30648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30649         HAVE_DECL_GETPAGESIZE.
30650         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30651
30652 2010-04-03  Bruno Haible  <bruno@clisp.org>
30653
30654         stdio: Make C++ tests work on mingw.
30655         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30656         does not declare the function.
30657
30658 2010-04-03  Bruno Haible  <bruno@clisp.org>
30659
30660         ftello: Fix C++ test error on mingw.
30661         * lib/stdio.in.h (ftello): Use modern idiom.
30662         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30663         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30664         is missing and that it needs to be replaced.
30665         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30667         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30668
30669 2010-04-03  Bruno Haible  <bruno@clisp.org>
30670
30671         fseeko: Fix C++ test error on mingw.
30672         * lib/stdio.in.h (fseeko): Use modern idiom.
30673         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30674         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30675         is missing and that it needs to be replaced.
30676         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30678         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30679
30680 2010-04-03  Bruno Haible  <bruno@clisp.org>
30681
30682         mkstemp: Fix C++ test error on mingw.
30683         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30684         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30685         function is missing and that it needs to be replaced.
30686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30687         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30688
30689 2010-04-03  Bruno Haible  <bruno@clisp.org>
30690
30691         stpncpy: Fix C++ test error on mingw.
30692         * lib/string.in.h (stpncpy): Use modern idiom.
30693         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30694         function is missing and that it needs to be replaced.
30695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30696         REPLACE_STPNCPY.
30697         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30698
30699 2010-04-03  Bruno Haible  <bruno@clisp.org>
30700
30701         sys_stat: Fix C++ test error on mingw.
30702         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30703         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30704
30705 2010-04-03  Bruno Haible  <bruno@clisp.org>
30706
30707         pty: Update doc.
30708         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30709
30710 2010-04-03  Bruno Haible  <bruno@clisp.org>
30711
30712         unistd: Fix C++ test error on mingw.
30713         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30714
30715 2010-04-03  Bruno Haible  <bruno@clisp.org>
30716
30717         Update doc regarding mingw.
30718         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30719         * doc/glibc-functions/login_tty.texi: Likewise.
30720         * doc/glibc-functions/forkpty.texi: Likewise.
30721
30722 2010-04-03  Bruno Haible  <bruno@clisp.org>
30723
30724         stdlib: Avoid compilation failure of c-strtold on mingw.
30725         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30726
30727 2010-04-03  Bruno Haible  <bruno@clisp.org>
30728
30729         locale: Make C++ tests work on Cygwin and mingw.
30730         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30731         cannot provide the function.
30732         Reported by Simon Josefsson.
30733
30734 2010-04-03  Bruno Haible  <bruno@clisp.org>
30735
30736         localename: Port to MacOS X 10.6.
30737         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30738         memory layout of the locales in MacOS X 10.6 as well.
30739         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30740
30741 2010-04-02  Bruno Haible  <bruno@clisp.org>
30742
30743         gnulib-tool: Ensure that long-running tests are executed last.
30744         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30745         running tests after the one for the other tests.
30746
30747 2010-04-02  Bruno Haible  <bruno@clisp.org>
30748
30749         gnulib-tool: Ensure the tests in the main directory are executed first.
30750         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30751         start with the current directory.
30752
30753 2010-04-02  Bruno Haible  <bruno@clisp.org>
30754
30755         Tests for module 'havelib', moved here from GNU gettext.
30756         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30757         modifications.
30758         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30759         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30760         with modifications.
30761         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30762         modifications.
30763         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30764         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30765         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30766         with modifications.
30767         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30768         with modifications.
30769         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30770         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30771         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30772         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30773         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30774         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30775         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30776         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30777         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30778         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30779         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30780         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30781         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30782         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30783         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30784         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30785         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30786         with modifications.
30787         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30788         with modifications.
30789         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30790         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30791         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30792         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30793         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30794         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30795         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30796         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30797         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30798         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30799         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30800         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30801         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30802         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30803         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30804         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30805         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30806         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30807         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30808         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30809         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30810         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30811         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30812         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30813         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30814         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30815         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30816         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30817         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30818         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30819         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30820         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30821         * tests/havelib/rpathx/rpathx.c: New file, from
30822         gettext/autoconf-lib-link.
30823         * tests/havelib/rpathx/Makefile.am: New file, from
30824         gettext/autoconf-lib-link.
30825         * tests/havelib/rpathx/configure.ac: New file, from
30826         gettext/autoconf-lib-link with modifications.
30827         * tests/havelib/rpathy/rpathy.c: New file, from
30828         gettext/autoconf-lib-link.
30829         * tests/havelib/rpathy/Makefile.am: New file, from
30830         gettext/autoconf-lib-link.
30831         * tests/havelib/rpathy/configure.ac: New file, from
30832         gettext/autoconf-lib-link with modifications.
30833         * tests/havelib/rpathz/rpathz.c: New file, from
30834         gettext/autoconf-lib-link.
30835         * tests/havelib/rpathz/Makefile.am: New file, from
30836         gettext/autoconf-lib-link.
30837         * tests/havelib/rpathz/configure.ac: New file, from
30838         gettext/autoconf-lib-link with modifications.
30839         * tests/havelib/rpathlx/usex.c: New file, from
30840         gettext/autoconf-lib-link.
30841         * tests/havelib/rpathlx/Makefile.am: New file, from
30842         gettext/autoconf-lib-link.
30843         * tests/havelib/rpathlx/configure.ac: New file, from
30844         gettext/autoconf-lib-link with modifications.
30845         * tests/havelib/rpathly/usey.c: New file, from
30846         gettext/autoconf-lib-link.
30847         * tests/havelib/rpathly/Makefile.am: New file, from
30848         gettext/autoconf-lib-link.
30849         * tests/havelib/rpathly/configure.ac: New file, from
30850         gettext/autoconf-lib-link with modifications.
30851         * tests/havelib/rpathlz/usez.c: New file, from
30852         gettext/autoconf-lib-link.
30853         * tests/havelib/rpathlz/Makefile.am: New file, from
30854         gettext/autoconf-lib-link.
30855         * tests/havelib/rpathlz/configure.ac: New file, from
30856         gettext/autoconf-lib-link with modifications.
30857         * tests/havelib/rpathlyx/usey.c: New file, from
30858         gettext/autoconf-lib-link.
30859         * tests/havelib/rpathlyx/Makefile.am: New file, from
30860         gettext/autoconf-lib-link.
30861         * tests/havelib/rpathlyx/configure.ac: New file, from
30862         gettext/autoconf-lib-link with modifications.
30863         * tests/havelib/rpathlzyx/usez.c: New file, from
30864         gettext/autoconf-lib-link.
30865         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30866         gettext/autoconf-lib-link.
30867         * tests/havelib/rpathlzyx/configure.ac: New file, from
30868         gettext/autoconf-lib-link with modifications.
30869         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30870         with modifications.
30871
30872 2010-04-02  Bruno Haible  <bruno@clisp.org>
30873
30874         gnulib-tool: Create distributed built sources also for the tests.
30875         * gnulib-tool (func_create_testdir): Also generate distributed built
30876         sources in the tests directory.
30877
30878 2010-04-02  Bruno Haible  <bruno@clisp.org>
30879
30880         gnulib-tool: Obey user's environment variables.
30881         * gnulib-tool (func_create_testdir): When creating built sources,
30882         respect the environment variables for autoconf, automake, etc. given by
30883         the user.
30884
30885 2010-04-02  Bruno Haible  <bruno@clisp.org>
30886
30887         gnulib-tool: Provide the value of --m4-base to modules.
30888         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30889         of gl_m4_base.
30890
30891 2010-04-02  Eric Blake  <eblake@redhat.com>
30892
30893         maint.mk: fix some fallout
30894         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30895         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30896
30897 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30898
30899         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30900         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30901         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30902         (sc_cast_of_x_alloc_return_value): Likewise.
30903         (sc_cast_of_alloca_return_value): Likewise.
30904         (sc_space_tab): Likewise.
30905         (sc_prohibit_atoi_atof): Likewise.
30906         (sc_prohibit_magic_number_exit): Likewise.
30907         (sc_error_exit_success): Likewise.
30908         (sc_file_system): Likewise.
30909         (sc_prohibit_have_config_h): Likewise.
30910         (sc_require_config_h): Likewise.
30911         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30912         (sc_obsolete_symbols): Likewise.
30913         (sc_changelog): Likewise.
30914         (sc_program_name): Likewise.
30915         (sc_the_the): Likewise.
30916         (sc_trailing_blank): Likewise.
30917         (sc_two_space_separator_in_usage): Likewise.
30918         (sc_useless_cpp_parens): Likewise.
30919         (sc_GPL_version): Likewise.
30920         (sc_GFDL_version): Likewise.
30921         (sc_texinfo_acronym): Likewise.
30922         (sc_prohibit_cvs_keyword): Likewise.
30923         (sc_prohibit_stat_st_blocks): Likewise.
30924         (sc_prohibit_S_IS_definition): Likewise.
30925         (sc_redundant_const): Likewise.
30926         (sc_makefile_TAB_only_indentation): Likewise.
30927         (sc_m4_quote_check): Likewise.
30928         (sc_makefile_path_separator_check): Likewise.
30929         (sc_copyright_check): Likewise.
30930         (sc_Wundef_boolean): Likewise.
30931         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30932
30933         maint.mk: match 0 or more whitespace-before-function-call '('
30934         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30935         that have zero or two-and-more spaces between the function name
30936         and the open parenthesis.
30937         (sc_error_message_warn_fatal): Likewise.
30938         (sc_error_message_uppercase): Likewise.
30939         (sc_error_message_period): Likewise.
30940
30941 2010-03-31  Eric Blake  <eblake@redhat.com>
30942
30943         maint.mk: check for [ as well as test
30944         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30945         Based on a libvirt report by Matthias Bolte.
30946
30947         gnumakefile: don't squelch _version output
30948         * top/GNUmakefile (_version): Create one-shot dependency rather
30949         than using $(shell) when version must be regenerated.
30950         (_autoreconf): Run verbosely, by default.
30951
30952         sys_time: avoid compiler warnings
30953         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30954         unconditional, fixing regression from 2010-03-29.
30955         Reported by Simon Josefsson.
30956
30957 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30958
30959         maint.mk: s/_header_without_use/_sc_header_without_use/
30960         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30961         (sc_prohibit_assert_without_use): Use the new name.
30962         (sc_prohibit_close_stream_without_use): Likewise.
30963         (sc_prohibit_getopt_without_use): Likewise.
30964         (sc_prohibit_quotearg_without_use): Likewise.
30965         (sc_prohibit_quote_without_use): Likewise.
30966         (sc_prohibit_long_options_without_use): Likewise.
30967         (sc_prohibit_inttostr_without_use): Likewise.
30968         (sc_prohibit_ignore_value_without_use): Likewise.
30969         (sc_prohibit_error_without_use): Likewise.
30970         (sc_prohibit_xalloc_without_use): Likewise.
30971         (sc_prohibit_hash_without_use): Likewise.
30972         (sc_prohibit_hash_pjw_without_use): Likewise.
30973         (sc_prohibit_safe_read_without_use): Likewise.
30974         (sc_prohibit_argmatch_without_use): Likewise.
30975         (sc_prohibit_canonicalize_without_use): Likewise.
30976         (sc_prohibit_root_dev_ino_without_use): Likewise.
30977         (sc_prohibit_openat_without_use): Likewise.
30978         (sc_prohibit_c_ctype_without_use): Likewise.
30979         (sc_prohibit_signal_without_use): Likewise.
30980         (sc_prohibit_intprops_without_use): Likewise.
30981
30982 2010-03-30  Eric Blake  <eblake@redhat.com>
30983
30984         maint: improve module indicators
30985         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30986         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30987         columns, and avoid extra macro expansion.
30988
30989         fdopendir: work around FreeBSD bug
30990         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30991         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30992         * modules/dirent (Makefile.am): Substitute it.
30993         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30994         declaration.
30995         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30996         fix.
30997         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30998
30999 2010-03-29  Bruno Haible  <bruno@clisp.org>
31000
31001         Emit #pragma system_header after the inclusion guard, not before.
31002         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31003         guard that spans the entire file, not before. This enables an
31004         optimization in GCC's preprocessor.
31005         * lib/ctype.in.h: Likewise.
31006         * lib/dirent.in.h: Likewise.
31007         * lib/errno.in.h: Likewise.
31008         * lib/float.in.h: Likewise.
31009         * lib/getopt.in.h: Likewise.
31010         * lib/iconv.in.h: Likewise.
31011         * lib/langinfo.in.h: Likewise.
31012         * lib/locale.in.h: Likewise.
31013         * lib/math.in.h: Likewise.
31014         * lib/netdb.in.h: Likewise.
31015         * lib/netinet_in.in.h: Likewise.
31016         * lib/pty.in.h: Likewise.
31017         * lib/sched.in.h: Likewise.
31018         * lib/se-selinux.in.h: Likewise.
31019         * lib/search.in.h: Likewise.
31020         * lib/spawn.in.h: Likewise.
31021         * lib/stdarg.in.h: Likewise.
31022         * lib/stdint.in.h: Likewise.
31023         * lib/string.in.h: Likewise.
31024         * lib/strings.in.h: Likewise.
31025         * lib/sys_file.in.h: Likewise.
31026         * lib/sys_ioctl.in.h: Likewise.
31027         * lib/sys_time.in.h: Likewise.
31028         * lib/sys_times.in.h: Likewise.
31029         * lib/sys_utsname.in.h: Likewise.
31030         * lib/sys_wait.in.h: Likewise.
31031         * lib/sysexits.in.h: Likewise.
31032         * lib/wctype.in.h: Likewise.
31033
31034 2010-03-28  James Youngman  <jay@gnu.org>
31035
31036         save-cwd: don't leak a file descriptor when the caller execs.
31037         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31038         saved file descriptor.
31039         * modules/save-cwd (Depends-on): Depend on cloexec.
31040
31041 2010-03-29  Bruno Haible  <bruno@clisp.org>
31042
31043         Remove vestiges of fts-lgpl module.
31044         * lib/fts_.h: Assume GNULIB_FTS is 1.
31045         * lib/fts.c: Likewise.
31046         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31047
31048 2010-03-28  Bruno Haible  <bruno@clisp.org>
31049
31050         Fix definition of tests witness macro.
31051         * gnulib-tool (func_import): Fix definition of witness macro.
31052
31053 2010-03-28  Bruno Haible  <bruno@clisp.org>
31054
31055         Fix ioctl's protoype on glibc systems.
31056         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31057         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31058         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31059         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31060         signature. If not, arrange to replace the ioctl function.
31061         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31062         REPLACE_IOCTL.
31063         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31064         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31065         Reported by Ludovic Courtès <ludo@gnu.org>.
31066
31067 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31068
31069         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31070         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31071         made it so grep -r --include=GLOB* ... did not work.
31072
31073 2010-03-26  Jim Meyering  <meyering@redhat.com>
31074             Eric Blake  <eblake@redhat.com>
31075
31076         maint.mk: prohibit use of test's -o and -a operators
31077         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31078
31079 2010-03-28  Bruno Haible  <bruno@clisp.org>
31080
31081         Remove unused GNULIB_XYZ macro definitions.
31082         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31083         invocation.
31084
31085 2010-03-28  Bruno Haible  <bruno@clisp.org>
31086
31087         Mark privileged tests modules.
31088         * modules/idpriv-drop-tests (Status): New section.
31089         * modules/idpriv-droptemp-tests (Status): New section.
31090
31091 2010-03-28  Bruno Haible  <bruno@clisp.org>
31092
31093         Split C++ tests into separate tests modules.
31094         * modules/dirent-c++-tests: New file, extracted from
31095         modules/dirent-tests.
31096         * modules/dirent-tests: Depend on it.
31097         * modules/fcntl-h-c++-tests: New file, extracted from
31098         modules/fcntl-h-tests.
31099         * modules/fcntl-h-tests: Depend on it.
31100         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31101         * modules/glob-tests: Depend on it.
31102         * modules/iconv-h-c++-tests: New file, extracted from
31103         modules/iconv-h-tests.
31104         * modules/iconv-h-tests: Depend on it.
31105         * modules/langinfo-c++-tests: New file, extracted from
31106         modules/langinfo-tests.
31107         * modules/langinfo-tests: Depend on it.
31108         * modules/locale-c++-tests: New file, extracted from
31109         modules/locale-tests.
31110         * modules/locale-tests: Depend on it.
31111         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31112         * modules/math-tests: Depend on it.
31113         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31114         * modules/pty-tests: Depend on it.
31115         * modules/search-c++-tests: New file, extracted from
31116         modules/search-tests.
31117         * modules/search-tests: Depend on it.
31118         * modules/signal-c++-tests: New file, extracted from
31119         modules/signal-tests.
31120         * modules/signal-tests: Depend on it.
31121         * modules/spawn-c++-tests: New file, extracted from
31122         modules/spawn-tests.
31123         * modules/spawn-tests: Depend on it.
31124         * modules/stdio-c++-tests: New file, extracted from
31125         modules/stdio-tests.
31126         * modules/stdio-tests: Depend on it.
31127         * modules/stdlib-c++-tests: New file, extracted from
31128         modules/stdlib-tests.
31129         * modules/stdlib-tests: Depend on it.
31130         * modules/string-c++-tests: New file, extracted from
31131         modules/string-tests.
31132         * modules/string-tests: Depend on it.
31133         * modules/sys_ioctl-c++-tests: New file, extracted from
31134         modules/sys_ioctl-tests.
31135         * modules/sys_ioctl-tests: Depend on it.
31136         * modules/sys_select-c++-tests: New file, extracted from
31137         modules/sys_select-tests.
31138         * modules/sys_select-tests: Depend on it.
31139         * modules/sys_socket-c++-tests: New file, extracted from
31140         modules/sys_socket-tests.
31141         * modules/sys_socket-tests: Depend on it.
31142         * modules/sys_stat-c++-tests: New file, extracted from
31143         modules/sys_stat-tests.
31144         * modules/sys_stat-tests: Depend on it.
31145         * modules/sys_time-c++-tests: New file, extracted from
31146         modules/sys_time-tests.
31147         * modules/sys_time-tests: Depend on it.
31148         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31149         * modules/time-tests: Depend on it.
31150         * modules/unistd-c++-tests: New file, extracted from
31151         modules/unistd-tests.
31152         * modules/unistd-tests: Depend on it.
31153         * modules/wchar-c++-tests: New file, extracted from
31154         modules/wchar-tests.
31155         * modules/wchar-tests: Depend on it.
31156         * modules/wctype-c++-tests: New file, extracted from
31157         modules/wctype-tests.
31158         * modules/wctype-tests: Depend on it.
31159         Reported by Simon Josefsson.
31160
31161 2010-03-28  Bruno Haible  <bruno@clisp.org>
31162
31163         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31164         * gnulib-tool (func_exists_module): New function, extracted from
31165         func_verify_module.
31166         (func_verify_module): Use it.
31167         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31168         'foo' only if 'foo' exists.
31169         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31170         module.
31171
31172 2010-03-28  Bruno Haible  <bruno@clisp.org>
31173
31174         gnulib-tool: Add support for special categories of tests.
31175         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31176         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31177         (func_usage): Document them.
31178         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31179         inc_unportable_tests, inc_all_tests): New variables.
31180         (func_acceptable): Consider these variables.
31181         (func_modules_transitive_closure): Make it work when the 'Status' field
31182         consists of multiple words.
31183         (func_import): Store and restore the values of inc_cxx_tests,
31184         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31185         inc_all_tests in gnulib-comp.m4.
31186         (func_create_testdir): Set inc_all_tests to true.
31187         * doc/gnulib.texi (Extra tests modules): New section.
31188         Suggested by Jim Meyering.
31189
31190 2010-03-28  Bruno Haible  <bruno@clisp.org>
31191
31192         ansi-c++-opt: Allow turning off the C++ build by default.
31193         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31194         gl_CXX_CHOICE_DEFAULT_NO is defined.
31195         Requested by Eric Blake.
31196
31197 2010-03-28  Bruno Haible  <bruno@clisp.org>
31198
31199         unistd: Avoid #define replacements in C++ mode.
31200         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31201         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31202         setsockopt, shutdown, select): In C++, attach a warning to the function
31203         if possible, rather than #defining the symbol to a dysfunctional alias.
31204         Reported by John W. Eaton <jwe@gnu.org>.
31205
31206 2010-03-28  Bruno Haible  <bruno@clisp.org>
31207
31208         Fix link errors on mingw.
31209         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31210         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31211         $(LIBSOCKET).
31212         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31213         $(LIBSOCKET).
31214
31215 2010-03-28  Bruno Haible  <bruno@clisp.org>
31216             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31217
31218         lib-ignore: Determine different options for different compilers.
31219         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31220         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31221         Add comments.
31222         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31223         * NEWS: Mention the change.
31224
31225 2010-03-27  Bruno Haible  <bruno@clisp.org>
31226
31227         Remove unused GNULIB_XYZ macro definitions.
31228         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31229         * modules/fseek (configure.ac): Likewise.
31230         * modules/ioctl (configure.ac): Likewise.
31231         * modules/open (configure.ac): Likewise.
31232         * modules/stdlib-safer (configure.ac): Likewise.
31233
31234 2010-03-27  Bruno Haible  <bruno@clisp.org>
31235
31236         Add a remark about certain modules.
31237         * modules/malloc (Comment): New section.
31238         * modules/realloc (Comment): Likewise.
31239         * modules/sigpipe (Comment): Likewise.
31240
31241 2010-03-27  Bruno Haible  <bruno@clisp.org>
31242
31243         Resolve conflict between the two kinds of module indicators.
31244         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31245         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31246         * modules/canonicalize (configure.ac): Invoke
31247         gl_MODULE_INDICATOR_FOR_TESTS.
31248         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31249         GNULIB_XYZ.
31250         * tests/test-dirent-c++.cc: Likewise.
31251         * tests/test-dirent-safer.c: Likewise.
31252         * tests/test-dup2.c: Likewise.
31253         * tests/test-fchdir.c: Likewise.
31254         * tests/test-fcntl-h-c++.cc: Likewise.
31255         * tests/test-getopt.c: Likewise.
31256         * tests/test-getopt.h: Likewise.
31257         * tests/test-langinfo-c++.cc: Likewise.
31258         * tests/test-locale-c++.cc: Likewise.
31259         * tests/test-math-c++.cc: Likewise.
31260         * tests/test-pty-c++.cc: Likewise.
31261         * tests/test-search-c++.cc: Likewise.
31262         * tests/test-signal-c++.cc: Likewise.
31263         * tests/test-spawn-c++.cc: Likewise.
31264         * tests/test-stdio-c++.cc: Likewise.
31265         * tests/test-stdlib-c++.cc: Likewise.
31266         * tests/test-string-c++.cc: Likewise.
31267         * tests/test-sys_ioctl-c++.cc: Likewise.
31268         * tests/test-sys_select-c++.cc: Likewise.
31269         * tests/test-sys_socket-c++.cc: Likewise.
31270         * tests/test-sys_stat-c++.cc: Likewise.
31271         * tests/test-sys_time-c++.cc: Likewise.
31272         * tests/test-time-c++.cc: Likewise.
31273         * tests/test-unistd-c++.cc: Likewise.
31274         * tests/test-wchar-c++.cc: Likewise.
31275         * tests/uninorm/test-u8-nfc.c: Likewise.
31276         * tests/uninorm/test-u8-nfd.c: Likewise.
31277         * tests/uninorm/test-u8-nfkc.c: Likewise.
31278         * tests/uninorm/test-u8-nfkd.c: Likewise.
31279         * tests/uninorm/test-u16-nfc.c: Likewise.
31280         * tests/uninorm/test-u16-nfd.c: Likewise.
31281         * tests/uninorm/test-u16-nfkc.c: Likewise.
31282         * tests/uninorm/test-u16-nfkd.c: Likewise.
31283         * tests/uninorm/test-u32-nfc.c: Likewise.
31284         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31285         * tests/uninorm/test-u32-nfd.c: Likewise.
31286         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31287         * tests/uninorm/test-u32-nfkc.c: Likewise.
31288         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31289         * tests/uninorm/test-u32-nfkd.c: Likewise.
31290         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31291         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31292
31293 2010-03-27  Bruno Haible  <bruno@clisp.org>
31294
31295         Distinguish two kinds of module indicators.
31296         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31297         gl_MODULE_INDICATOR.
31298         (gl_MODULE_INDICATOR): New macro.
31299         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31300         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31301         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31302         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31303         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31304         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31305         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31306         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31307         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31308         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31309         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31310         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31312         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31313         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31314         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31315         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31316         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31317         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31318         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31319         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31320         * modules/cloexec (configure.ac): Likewise.
31321         * modules/getopt-gnu (configure.ac): Likewise.
31322         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31323         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31324         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31325         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31326
31327 2010-03-27  Bruno Haible  <bruno@clisp.org>
31328
31329         New module description field 'Comment'.
31330         * gnulib-tool: New option --extract-comment.
31331         (func_usage): Document it.
31332         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31333         (func_get_comment): New function.
31334         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31335
31336 2010-03-27  Bruno Haible  <bruno@clisp.org>
31337
31338         Addendum to 2010-02-07 commit.
31339         * gnulib-tool (func_usage): Document --extract-applicability option.
31340
31341 2010-03-27  Bruno Haible  <bruno@clisp.org>
31342
31343         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31344         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31345         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31346         rather than link errors.
31347
31348 2010-03-27  Bruno Haible  <bruno@clisp.org>
31349
31350         Avoid side effects from tests-related modules on the compilation of lib.
31351         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31352         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31353         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31354         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31355         macro.
31356         (func_import): Define a witness macro. Assign it a value that depends
31357         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31358         tests-related modules.
31359         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31360         Reported by Jim Meyering.
31361
31362 2010-03-27  Bruno Haible  <bruno@clisp.org>
31363
31364         Factorize common .m4 code.
31365         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31366         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31367         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31368         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31369         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31370         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31371         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31372         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31373         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31374         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31375         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31376         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31377         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31378         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31379         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31380         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31381         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31382         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31383         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31384         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31385         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31387         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31388         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31389         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31390         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31391         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31392         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31393         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31394         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31395         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31396         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31397
31398 2010-03-27  Bruno Haible  <bruno@clisp.org>
31399
31400         Fix a compilation error on Cygwin with g++ >= 4.3.
31401         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31402         if it is undefined or if we alias it to chmod.
31403         (lstat): Don't warn about the use of this function if it is undefined
31404         or if we alias it to stat.
31405         Reported by Simon Josefsson.
31406
31407 2010-03-27  Bruno Haible  <bruno@clisp.org>
31408
31409         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31410         * modules/getlogin (configure.ac): Update.
31411
31412         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31413         * modules/getlogin_r (configure.ac): Update.
31414
31415         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31417         * modules/inet_ntop (configure.ac): Update.
31418
31419         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31420         * modules/inet_pton (configure.ac): Update.
31421
31422         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31423         * modules/mbslen (configure.ac): Update.
31424
31425         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31426         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31427         * modules/forkpty (configure.ac): Update.
31428         * modules/openpty (configure.ac): Update.
31429
31430 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31431
31432         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31433         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31434
31435 2010-03-25  Eric Blake  <eblake@redhat.com>
31436
31437         maint: use pragma consistently across replacement headers
31438         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31439         * lib/dirent.in.h (system_header): Likewise.
31440         * lib/errno.in.h (system_header): Likewise.
31441         * lib/float.in.h (system_header): Likewise.
31442         * lib/getopt.in.h (system_header): Likewise.
31443         * lib/iconv.in.h (system_header): Likewise.
31444         * lib/inttypes.in.h (system_header): Likewise.
31445         * lib/langinfo.in.h (system_header): Likewise.
31446         * lib/locale.in.h (system_header): Likewise.
31447         * lib/math.in.h (system_header): Likewise.
31448         * lib/netdb.in.h (system_header): Likewise.
31449         * lib/netinet_in.in.h (system_header): Likewise.
31450         * lib/pty.in.h (system_header): Likewise.
31451         * lib/sched.in.h (system_header): Likewise.
31452         * lib/se-selinux.in.h (system_header): Likewise.
31453         * lib/search.in.h (system_header): Likewise.
31454         * lib/spawn.in.h (system_header): Likewise.
31455         * lib/stdarg.in.h (system_header): Likewise.
31456         * lib/stdint.in.h (system_header): Likewise.
31457         * lib/string.in.h (system_header): Likewise.
31458         * lib/strings.in.h (system_header): Likewise.
31459         * lib/sys_file.in.h (system_header): Likewise.
31460         * lib/sys_ioctl.in.h (system_header): Likewise.
31461         * lib/sys_socket.in.h (system_header): Likewise.
31462         * lib/sys_times.in.h (system_header): Likewise.
31463         * lib/sys_utsname.in.h (system_header): Likewise.
31464         * lib/sys_wait.in.h (system_header): Likewise.
31465         * lib/sysexits.in.h (system_header): Likewise.
31466         * lib/unistd.in.h (system_header): Likewise.
31467         * lib/wctype.in.h (system_header): Likewise.
31468
31469         arpa/inet: fix mingw compilation warning
31470         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31471         Reported by Matthew Bolte.
31472
31473 2010-03-25  Bruno Haible  <bruno@clisp.org>
31474
31475         Avoid collision between gnulib wrapper and libintl wrapper.
31476         * lib/printf.c (printf): Don't define if a printf wrapper is already
31477         defined in intl/printf.c.
31478         Reported by Michel Boaventura <michel@michelboaventura.com>.
31479
31480 2010-03-25  Bruno Haible  <bruno@clisp.org>
31481
31482         Use ANSI C.
31483         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31484
31485 2010-03-25  Bruno Haible  <bruno@clisp.org>
31486
31487         Minor formatting changes.
31488         * lib/acosl.c: Insert space before function argument list.
31489         * lib/argz.c: Likewise.
31490         * lib/asinl.c: Likewise.
31491         * lib/expl.c: Likewise.
31492         * lib/gen-uni-tables.c: Likewise.
31493         * lib/gettext.h: Likewise.
31494         * lib/glthread/lock.h: Likewise.
31495         * lib/tanl.c: Likewise.
31496         * lib/uniname/uniname.c: Likewise.
31497         * tests/test-idpriv-drop.c: Likewise.
31498         * tests/test-idpriv-droptemp.c: Likewise.
31499         * tests/test-lock.c: Likewise.
31500         * tests/test-tls.c: Likewise.
31501         * lib/argp-help.c: Insert space before function-like macro argument
31502         list.
31503         * lib/memcmp.c: Likewise.
31504         * tests/test-base64.c: Likewise.
31505         * lib/localename.c: Insert space before sizeof's argument list.
31506         * lib/safe-alloc.h: Likewise.
31507         * lib/file-set.h: Insert space before macro argument list.
31508         * tests/test-argp.c: Likewise.
31509         * lib/argp-namefrob.h: Insert space before function parameter list.
31510         * lib/getaddrinfo.c: Likewise.
31511         * lib/netdb.in.h: Likewise.
31512         * lib/parse-duration.h: Likewise.
31513         * lib/parse-duration.c: Likewise.
31514         * lib/poll.c: Likewise.
31515         * lib/select.c: Likewise.
31516         * lib/trim.h: Likewise.
31517         * tests/test-usleep.c: Likewise.
31518         * lib/ldexpl.c: Insert space before function parameter list and before
31519         function argument list.
31520         * lib/logl.c: Likewise.
31521         * lib/sqrtl.c: Likewise.
31522         * lib/trim.c: Likewise.
31523         * lib/cosl.c: Use GNU style indentation. Insert space before function
31524         argument list.
31525         * lib/sinl.c: Likewise.
31526         * lib/tsearch.c: Insert space after 'for'.
31527         Reported by Jim Meyering.
31528
31529 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31530
31531         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31532         config header before grepping, as it's not present before
31533         autoreconf/configure are run.  Reported by Simon Josefsson.
31534
31535 2010-03-23  Bruno Haible  <bruno@clisp.org>
31536
31537         pt_chown: Make it work with automake < 1.11.
31538         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31539         Reported by Simon Josefsson.
31540
31541 2010-03-23  Bruno Haible  <bruno@clisp.org>
31542
31543         pt_chown: Don't depend on GPLed modules.
31544         * lib/pt_chown.c: Don't include idpriv.h.
31545         (main): Don't drop privileges.
31546         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31547         Reported by Simon Josefsson.
31548
31549 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31550
31551         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31552         suggestions from karl@freefriends.org (Karl Berry).
31553
31554 2010-03-22  Eric Blake  <eblake@redhat.com>
31555
31556         gethostname: further tweaks
31557         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31558         are overriding gethostname.
31559         Suggested by Bruno Haible.
31560
31561 2010-03-21  Bruno Haible  <bruno@clisp.org>
31562
31563         Fix comments.
31564         * lib/forkpty.c (rpl_forkpty): Fix comment.
31565         * lib/openpty.c (rpl_openpty): Likewise.
31566         Reported by Eric Blake.
31567
31568 2010-03-22  Eric Blake  <eblake@redhat.com>
31569
31570         gethostname: fix build on mingw
31571         * lib/unistd.in.h (includes): Work around fact that mingw
31572         <winsock2.h> re-includes <unistd.h>, by avoiding any
31573         redeclarations if we are being included by <winsock2.h>.
31574         Reported by Matthias Bolte.
31575
31576 2010-03-21  Bruno Haible  <bruno@clisp.org>
31577
31578         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31579         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31580         modifications.
31581         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31582         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31583         provide the replacement.
31584         * modules/forkpty (Depends-on): Add openpty, login_tty.
31585         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31586         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31587         * doc/glibc-functions/forkpty.texi: More supported platforms.
31588         * config/srclist.txt: Add forkpty.c (commented).
31589
31590 2010-03-21  Bruno Haible  <bruno@clisp.org>
31591
31592         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31593         (Makefile.am): Verify that PTY_LIB is defined.
31594
31595         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31596
31597 2010-03-21  Bruno Haible  <bruno@clisp.org>
31598
31599         Tests for module 'login_tty'.
31600         * modules/login_tty-tests: New file.
31601         * tests/test-login_tty.c: New file.
31602
31603         New module 'login_tty'.
31604         * lib/login_tty.c: New file.
31605         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31606         * modules/login_tty: New file.
31607         * doc/glibc-functions/login_tty.texi: Mention the new module.
31608
31609 2010-03-21  Bruno Haible  <bruno@clisp.org>
31610
31611         login_tty: Documentation.
31612         * doc/glibc-functions/login_tty.texi: New file.
31613         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31614
31615 2010-03-21  Bruno Haible  <bruno@clisp.org>
31616
31617         pty: Consistent macro naming.
31618         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31619         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31620         * modules/pty (configure.ac): Update.
31621
31622 2010-03-21  Bruno Haible  <bruno@clisp.org>
31623
31624         Tests for openpty: Make stricter.
31625         * tests/test-openpty.c (main): Add test of canonical processing and
31626         erase.
31627         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31628
31629         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31630         * lib/openpty.c (openpty): New replacement function.
31631         * lib/pty.in.h: Include <termios.h>.
31632         (openpty): Update declaration. Add comments.
31633         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31634         is not declared, arrange to provide the replacement. Check for _getpty
31635         and posix_openpt.
31636         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31637         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31638         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31639         * modules/pty-tests (test_pty_c___LDADD): New variable.
31640         * doc/glibc-functions/openpty.texi: More supported platforms.
31641
31642 2010-03-21  Bruno Haible  <bruno@clisp.org>
31643
31644         setenv: Tweaks.
31645         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31646         the test program.
31647         * doc/posix-functions/setenv.texi: Update platforms list.
31648
31649 2010-03-21  Bruno Haible  <bruno@clisp.org>
31650
31651         New module 'unlockpt'.
31652         * lib/unlockpt.c: New file, from glibc with modifications.
31653         * m4/unlockpt.m4: New file.
31654         * modules/unlockpt: New file.
31655         * lib/stdlib.in.h (unlockpt): New declaration.
31656         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31657         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31658         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31659         HAVE_UNLOCKPT.
31660         * doc/posix-functions/unlockpt.texi: Mention the new module.
31661         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31662         * config/srclist.txt: Add unlockpt.c (commented).
31663
31664 2010-03-21  Jim Meyering  <meyering@redhat.com>
31665
31666         maint.mk: prohibit inclusion of "intprops.h" without use
31667         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31668
31669 2010-03-21  Bruno Haible  <bruno@clisp.org>
31670
31671         New module 'grantpt'.
31672         * lib/grantpt.c: New file, from glibc with modifications.
31673         * m4/grantpt.m4: New file.
31674         * modules/grantpt: New file.
31675         * lib/stdlib.in.h (grantpt): New declaration.
31676         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31677         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31678         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31679         HAVE_GRANTPT.
31680         * doc/posix-functions/grantpt.texi: Mention the new module.
31681         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31682         * config/srclist.txt: Add grantpt.c (commented).
31683
31684 2010-03-21  Bruno Haible  <bruno@clisp.org>
31685
31686         New module 'pt_chown'.
31687         * lib/pt_chown.c: New file, from glibc with modifications.
31688         * lib/pty-private.h: New file, from glibc with modifications.
31689         * modules/pt_chown: New file.
31690         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31691
31692 2010-03-21  Bruno Haible  <bruno@clisp.org>
31693
31694         Tests for module 'ptsname'.
31695         * modules/ptsname-tests: New file.
31696         * tests/test-ptsname.c: New file.
31697
31698         New module 'ptsname'.
31699         * lib/ptsname.c: New file, from glibc with modifications.
31700         * m4/ptsname.m4: New file.
31701         * modules/ptsname: New file.
31702         * lib/stdlib.in.h (ptsname): New declaration.
31703         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31704         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31705         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31706         HAVE_PTSNAME.
31707         * doc/posix-functions/ptsname.texi: Mention the new module.
31708         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31709         * config/srclist.txt: Add ptsname.c (commented).
31710
31711 2010-03-21  Bruno Haible  <bruno@clisp.org>
31712
31713         Tests for module 'ttyname_r'.
31714         * modules/ttyname_r-tests: New file.
31715         * tests/test-ttyname_r.c: New file.
31716
31717         New module 'ttyname_r'.
31718         * lib/ttyname_r.c: New file.
31719         * m4/ttyname_r.m4: New file.
31720         * modules/ttyname_r: New file.
31721         * lib/unistd.in.h (ttyname_r): New declaration.
31722         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31723         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31724         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31725         HAVE_TTYNAME_R.
31726         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31727         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31728
31729 2010-03-20  Bruno Haible  <bruno@clisp.org>
31730
31731         signal: Undefine macro definitions in C++ mode.
31732         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31733         sigfillset): Undefine macro definitions from the system header in C++
31734         mode.
31735         Reported by John W. Eaton <jwe@gnu.org>.
31736
31737 2010-03-20  Bruno Haible  <bruno@clisp.org>
31738
31739         Ensure no #include statements inside extern "C" { ... }.
31740         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31741         contain #include statements.
31742         * lib/time.in.h: Likewise.
31743
31744 2010-03-20  Bruno Haible  <bruno@clisp.org>
31745
31746         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31747         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31748         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31749         Reported by John W. Eaton <jwe@gnu.org>.
31750
31751 2010-03-20  Bruno Haible  <bruno@clisp.org>
31752
31753         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31754         Reported by Jim Meyering.
31755
31756 2010-03-20  Bruno Haible  <bruno@clisp.org>
31757
31758         pipe: Set errno upon failure.
31759         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31760         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31761         errno value in error message.
31762
31763 2010-03-20  Bruno Haible  <bruno@clisp.org>
31764             Jim Meyering  <meyering@redhat.com>
31765
31766         lchown: Avoid "unused variable" warning.
31767         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31768
31769 2010-03-20  Bruno Haible  <bruno@clisp.org>
31770
31771         Work around unlink() bug on MacOS X 10.5.6.
31772         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31773         attempting to unlink a parent directory.
31774         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31775         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31776         activate for the replacement function.
31777         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31778
31779 2010-03-20  Bruno Haible  <bruno@clisp.org>
31780
31781         Fix link errors on Solaris 8.
31782         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31783         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31784
31785 2010-03-19  Jim Meyering  <meyering@redhat.com>
31786
31787         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31788         The _LIBC implementation of build_range_exp correctly honors the
31789         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31790         However, the non-_LIBC implementation would ignore that syntax-bit
31791         flag and return REG_ERANGE unconditionally.
31792         This change makes it honor that flag.
31793         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31794         Make two pointer parameters "const".
31795         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31796         (parse_bracket_exp): Update caller.
31797
31798         regex.m4: correct the reversed range endpoint ([b-a]) test
31799         * m4/regex.m4: When requiring that [b-a] evoke failure,
31800         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31801         test pass once again for x86-based systems.
31802
31803 2010-03-19  Bruno Haible  <bruno@clisp.org>
31804
31805         scandir: Fix link error on Solaris 8.
31806         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31807         macros.
31808
31809 2010-03-19  Bruno Haible  <bruno@clisp.org>
31810
31811         getusershell: Fix documentation.
31812         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31813         module.
31814         * doc/glibc-functions/setusershell.texi: Likewise.
31815
31816         getusershell: Provide declaration, missing on Solaris 9.
31817         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31818         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31819         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31820         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31822         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31823         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31824         HAVE_GETUSERSHELL.
31825         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31826
31827 2010-03-19  Bruno Haible  <bruno@clisp.org>
31828
31829         wctype: Provide iswblank function.
31830         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31831         exists and is fine.
31832         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31833         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31834         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31835         * doc/posix-functions/iswblank.texi: Update.
31836
31837 2010-03-19  Bruno Haible  <bruno@clisp.org>
31838
31839         Tests of module 'pty' in C++ mode.
31840         * modules/pty-tests: New file.
31841         * tests/test-pty-c++.cc: New file.
31842         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31843
31844 2010-03-19  Eric Blake  <eblake@redhat.com>
31845
31846         logb: fix documentation
31847         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31848         1.5 declaration bug.
31849
31850         forkpty, openpty: prefer glibc's const-safe prototype
31851         * lib/forkpty.c (rpl_forkpty): New file.
31852         * lib/openpty.c (rpl_openpty): Likewise.
31853         * modules/forkpty (Files): Distribute it.
31854         * modules/openpty (Files): Likewise.
31855         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31856         check...
31857         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31858         replacement for for non-const BSD signature.
31859         * modules/pty (Makefile.am): Substitute witnesses.
31860         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31861         * tests/test-forkpty.c: Update signature check.
31862         * tests/test-openpty.c: Likewise.
31863         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31864         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31865
31866         forkpty, openpty: split functions into new modules
31867         * modules/pty (Makefile.am): Substitute new witnesses.
31868         (Libraries): Move library detection...
31869         * modules/forkpty: ...into new module.
31870         * modules/openpty: Another new module.
31871         * modules/pty-tests: Rename and split...
31872         * modules/forkpty-tests: ...to this...
31873         * modules/openpty-tests: ...and this.
31874         * tests/test-pty.c: Rename and split...
31875         * tests/test-forkpty.c: ...to this...
31876         * tests/test-openpty.c: ...and this.
31877         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31878         (gl_PTY): Split library searching...
31879         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31880         (gl_FORKPTY, gl_OPENPTY): New macros.
31881         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31882         * NEWS: Mention the split.
31883         * MODULES.html.sh (Misc): Document the modules.
31884         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31885         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31886
31887         pty: improve replacement header
31888         * lib/pty.in.h: New file.
31889         * modules/pty (Files): Ship it.
31890         (Makefile.am): Always build replacement.
31891         * m4/pty.m4: Rename...
31892         * m4/pty_h.m4: ...to this.
31893         (gl_PTY): Modernize setting of witness macros; update check of
31894         forkpty to take proper advantage of cache.
31895         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31896
31897         getopt: avoid compiler warning
31898         * lib/getopt.c (attribute_hidden): Remove unused macro.
31899
31900 2010-03-18  Bruno Haible  <bruno@clisp.org>
31901
31902         Fix link errors on Solaris 8.
31903         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31904         * modules/search-tests (test_search_c___LDADD): Likewise.
31905         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31906         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31907         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31908         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31909         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31910         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31911         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31912
31913 2010-03-18  Bruno Haible  <bruno@clisp.org>
31914
31915         Fix bug introduced on 2010-03-14.
31916         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31917         (gl_SPAWN_H): Require it.
31918         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31919         Reported by Simon Josefsson.
31920
31921 2010-03-18  Bruno Haible  <bruno@clisp.org>
31922
31923         Fix typo introduced on 2009-12-31.
31924         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31925         posix_spawn_file_actions_adddup2.
31926
31927 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31928         and Eric Blake  <eblake@redhat.com>
31929
31930         test-vc-list-files-git: make more robust
31931         * tests/test-vc-list-files-git.sh: Unset problematic environment
31932         variables.  Chain commands together.
31933
31934 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31935
31936         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31937         `AC_CHECK_DECL' invocation.
31938
31939 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31940
31941         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31942         appears before executable statements. Suggested by Petr Sumbera
31943         <Petr.Sumbera@Sun.COM>.
31944
31945 2010-03-14  Bruno Haible  <bruno@clisp.org>
31946
31947         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31948         portability problems. Instead use a simpler test.
31949         (main): Check that invalid arguments are rejected only on Linux.
31950
31951 2010-03-14  Bruno Haible  <bruno@clisp.org>
31952
31953         Fix bug introduced on 2009-12-31.
31954         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31955         gl_PREREQ_SYS_H_WINSOCK2 always.
31956         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31957         SYS_SOCKET_H variable.
31958         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31959         Update comments.
31960         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31961         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31962         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31963         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31964         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31965
31966 2010-03-14  Bruno Haible  <bruno@clisp.org>
31967
31968         Fix values returned by sinl, cosl.
31969         * lib/trigl.h: Add specification comments.
31970         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31971         that combines the values from the precomputed table with the values of
31972         the Chebyshev polynomials.
31973
31974 2010-03-14  Bruno Haible  <bruno@clisp.org>
31975
31976         Fix compilation error when modules 'posix_spawn[p]' are not used.
31977         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31978         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31979
31980 2010-03-14  Bruno Haible  <bruno@clisp.org>
31981
31982         Fix compilation error on mingw when module 'time_r' is not used.
31983         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31984         is 1.
31985         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31986         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31987         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31988         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31989
31990 2010-03-14  Bruno Haible  <bruno@clisp.org>
31991
31992         Fix compilation error with Sun C.
31993         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31994         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31995         instead of GCC specific ULONG_LONG_MAX.
31996         * lib/xstrtoll.c: Likewise.
31997         * lib/xstrtoull.c: Likewise.
31998
31999 2010-03-13  Bruno Haible  <bruno@clisp.org>
32000
32001         Allow the user to disable C++ code and tests.
32002         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32003         (gl_PROG_ANSI_CXX): Require it.
32004
32005 2010-03-13  Bruno Haible  <bruno@clisp.org>
32006
32007         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32008         cases.
32009
32010 2010-03-13  Bruno Haible  <bruno@clisp.org>
32011
32012         Test that gnulib does not break the standard C++ headers.
32013         * tests/test-locale-c++2.cc: New file.
32014         * modules/locale-tests (Files): Add it.
32015         (Makefile.am): Compile it for test-locale-c++.
32016         * tests/test-math-c++2.cc: New file.
32017         * modules/math-tests (Files): Add it.
32018         (Makefile.am): Compile it for test-math-c++.
32019         * tests/test-signal-c++2.cc: New file.
32020         * modules/signal-tests (Files): Add it.
32021         (Makefile.am): Compile it for test-signal-c++.
32022         * tests/test-stdio-c++2.cc: New file.
32023         * modules/stdio-tests (Files): Add it.
32024         (Makefile.am): Compile it for test-stdio-c++.
32025         * tests/test-stdlib-c++2.cc: New file.
32026         * modules/stdlib-tests (Files): Add it.
32027         (Makefile.am): Compile it for test-stdlib-c++.
32028         * tests/test-string-c++2.cc: New file.
32029         * modules/string-tests (Files): Add it.
32030         (Makefile.am): Compile it for test-string-c++.
32031         * tests/test-time-c++2.cc: New file.
32032         * modules/time-tests (Files): Add it.
32033         (Makefile.am): Compile it for test-time-c++.
32034         Reported by John W. Eaton <jwe@gnu.org>.
32035
32036 2010-03-13  Bruno Haible  <bruno@clisp.org>
32037
32038         * gnulib-tool (func_usage): Clarify which options are available for
32039         --create-testdir and --create-megatestdir.
32040
32041 2010-03-13  Bruno Haible  <bruno@clisp.org>
32042
32043         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32044         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32045         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32046         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32047         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32048         when appropriate.
32049         Reported by Jim Meyering.
32050
32051 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32052
32053         * gnulib-tool (func_import): Explain origin of code.
32054
32055 2010-03-12  Bruno Haible  <bruno@clisp.org>
32056
32057         Fix problem with automake's definition of CXXLINK.
32058         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32059         Reported by Simon Josefsson and Ludovic Courtès.
32060
32061 2010-03-12  Bruno Haible  <bruno@clisp.org>
32062
32063         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32064         stable releases.
32065
32066 2010-03-11  Bruno Haible  <bruno@clisp.org>
32067
32068         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32069         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32070         whether the system provides one variant or multiple variants of the
32071         function.
32072         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32073         C++ compilers.
32074         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32075         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32076         Reported by Jim Meyering.
32077
32078 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32079
32080         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32081
32082 2010-03-08  Bruno Haible  <bruno@clisp.org>
32083
32084         gnulib-tool: Add support for --libtool in --create-testdir.
32085         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32086         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32087
32088 2010-03-08  Eric Blake  <eblake@redhat.com>
32089
32090         gnulib-tool.texi: mention possibility of git submodule
32091         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32092         submodules.
32093         * doc/.gitignore: Ignore another generated file.
32094
32095 2010-03-08  Karl Berry  <karl@gnu.org>
32096
32097         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32098         of committing gnulib files while skipping others.
32099
32100 2010-03-07  Bruno Haible  <bruno@clisp.org>
32101
32102         Tests of module 'wctype' in C++ mode.
32103         * tests/test-wctype-c++.cc: New file.
32104         * modules/wctype-tests (Files): Add it and tests/signature.h.
32105         (Depends-on): Add ansi-c++-opt.
32106         (Makefile.am): Arrange to compile and run test-wctype-c++.
32107
32108         Tests of module 'wchar' in C++ mode.
32109         * tests/test-wchar-c++.cc: New file.
32110         * modules/wchar-tests (Files): Add it and tests/signature.h.
32111         (Depends-on): Add ansi-c++-opt.
32112         (Makefile.am): Arrange to compile and run test-wchar-c++.
32113         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32114         gl_MODULE_INDICATOR.
32115
32116         Tests of module 'unistd' in C++ mode.
32117         * tests/test-unistd-c++.cc: New file.
32118         * modules/unistd-tests (Files): Add it and tests/signature.h.
32119         (Depends-on): Add ansi-c++-opt.
32120         (Makefile.am): Arrange to compile and run test-unistd-c++.
32121         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32122         gl_MODULE_INDICATOR.
32123
32124         Tests of module 'time' in C++ mode.
32125         * tests/test-time-c++.cc: New file.
32126         * modules/time-tests (Files): Add it and tests/signature.h.
32127         (Depends-on): Add ansi-c++-opt.
32128         (Makefile.am): Arrange to compile and run test-time-c++.
32129         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32130
32131         Tests of module 'sys_time' in C++ mode.
32132         * tests/test-sys_time-c++.cc: New file.
32133         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32134         (Depends-on): Add ansi-c++-opt.
32135         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32136         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32137         gl_MODULE_INDICATOR.
32138
32139         Tests of module 'sys_stat' in C++ mode.
32140         * tests/test-sys_stat-c++.cc: New file.
32141         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32142         (Depends-on): Add ansi-c++-opt.
32143         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32144         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32145         gl_MODULE_INDICATOR.
32146
32147         Tests of module 'sys_socket' in C++ mode.
32148         * tests/test-sys_socket-c++.cc: New file.
32149         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32150         (Depends-on): Add ansi-c++-opt.
32151         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32152         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32153         gl_MODULE_INDICATOR.
32154
32155         Tests of module 'sys_select' in C++ mode.
32156         * tests/test-sys_select-c++.cc: New file.
32157         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32158         (Depends-on): Add ansi-c++-opt.
32159         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32160         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32161         gl_MODULE_INDICATOR.
32162
32163         Tests of module 'sys_ioctl' in C++ mode.
32164         * tests/test-sys_ioctl-c++.cc: New file.
32165         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32166         (Depends-on): Add ansi-c++-opt.
32167         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32168         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32169         gl_MODULE_INDICATOR.
32170
32171         Tests of module 'string' in C++ mode.
32172         * tests/test-string-c++.cc: New file.
32173         * modules/string-tests (Files): Add it and tests/signature.h.
32174         (Depends-on): Add ansi-c++-opt.
32175         (Makefile.am): Arrange to compile and run test-string-c++.
32176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32177         gl_MODULE_INDICATOR.
32178
32179         Tests of module 'stdlib' in C++ mode.
32180         * tests/test-stdlib-c++.cc: New file.
32181         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32182         (Depends-on): Add ansi-c++-opt.
32183         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32184         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32185         gl_MODULE_INDICATOR.
32186
32187         Tests of module 'stdio' in C++ mode.
32188         * tests/test-stdio-c++.cc: New file.
32189         * modules/stdio-tests (Files): Add it and tests/signature.h.
32190         (Depends-on): Add ansi-c++-opt.
32191         (Makefile.am): Arrange to compile and run test-stdio-c++.
32192         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32193         gl_MODULE_INDICATOR.
32194
32195         Tests of module 'spawn' in C++ mode.
32196         * tests/test-spawn-c++.cc: New file.
32197         * modules/spawn-tests (Files): Add it and tests/signature.h.
32198         (Depends-on): Add ansi-c++-opt.
32199         (Makefile.am): Arrange to compile and run test-spawn-c++.
32200         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32201         gl_MODULE_INDICATOR.
32202
32203         Tests of module 'signal' in C++ mode.
32204         * tests/test-signal-c++.cc: New file.
32205         * modules/signal-tests (Files): Add it and tests/signature.h.
32206         (Depends-on): Add ansi-c++-opt.
32207         (Makefile.am): Arrange to compile and run test-signal-c++.
32208         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32209         gl_MODULE_INDICATOR.
32210
32211         Tests of module 'search' in C++ mode.
32212         * tests/test-search-c++.cc: New file.
32213         * modules/search-tests (Files): Add it and tests/signature.h.
32214         (Depends-on): Add ansi-c++-opt.
32215         (Makefile.am): Arrange to compile and run test-search-c++.
32216         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32217         gl_MODULE_INDICATOR.
32218
32219         Tests of module 'math' in C++ mode.
32220         * tests/test-math-c++.cc: New file.
32221         * modules/math-tests (Files): Add it and tests/signature.h.
32222         (Depends-on): Add ansi-c++-opt.
32223         (Makefile.am): Arrange to compile and run test-math-c++.
32224         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32225
32226         Tests of module 'locale' in C++ mode.
32227         * tests/test-locale-c++.cc: New file.
32228         * modules/locale-tests (Files): Add it and tests/signature.h.
32229         (Depends-on): Add ansi-c++-opt.
32230         (Makefile.am): Arrange to compile and run test-locale-c++.
32231         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32232         gl_MODULE_INDICATOR.
32233
32234         Tests of module 'langinfo' in C++ mode.
32235         * tests/test-langinfo-c++.cc: New file.
32236         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32237         (Depends-on): Add ansi-c++-opt.
32238         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32239         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32240         gl_MODULE_INDICATOR.
32241
32242         Tests of module 'iconv-h' in C++ mode.
32243         * tests/test-iconv-h-c++.cc: New file.
32244         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32245         (Depends-on): Add ansi-c++-opt.
32246         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32247
32248         Tests of module 'glob' in C++ mode.
32249         * tests/test-glob-c++.cc: New file.
32250         * modules/glob-tests (Files): Add it.
32251         (Depends-on): Add ansi-c++-opt.
32252         (Makefile.am): Arrange to compile and run test-glob-c++.
32253
32254         Tests of module 'fcntl-h' in C++ mode.
32255         * tests/test-fcntl-h-c++.cc: New file.
32256         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32257         (Depends-on): Add ansi-c++-opt.
32258         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32259         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32260         gl_MODULE_INDICATOR.
32261
32262         Tests of module 'dirent' in C++ mode.
32263         * tests/test-dirent-c++.cc: New file.
32264         * modules/dirent-tests (Files): Add it and tests/signature.h.
32265         (Depends-on): Add ansi-c++-opt.
32266         (Makefile.am): Arrange to compile and run test-dirent-c++.
32267         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32268         gl_MODULE_INDICATOR.
32269
32270         New module 'ansi-c++-opt'.
32271         * modules/ansi-c++-opt: New file.
32272         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32273
32274         Document C++ namespace mode.
32275         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32276
32277         wctype: Avoid #define replacements in C++ mode.
32278         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32279         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32280         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32281         In C++, define a namespaced alias symbol.
32282         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32283         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32284         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32285         rule.
32286
32287         wchar: Avoid #define replacements in C++ mode.
32288         * lib/wchar.in.h: Include c++defs.h.
32289         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32290         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32291         symbol.
32292         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32293         * modules/wchar (Depends-on): Add c++defs.
32294         (Makefile.am): Update wchar.h rule.
32295
32296         unistd: Avoid #define replacements in C++ mode.
32297         * lib/unistd.in.h: Include c++defs.h.
32298         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32299         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32300         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32301         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32302         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32303         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32304         symbol.
32305         (environ): Update.
32306         * modules/unistd (Depends-on): Add c++defs.
32307         (Makefile.am): Update unistd.h rule.
32308
32309         time: Avoid #define replacements in C++ mode.
32310         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32311         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32312         define a namespaced alias symbol.
32313         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32314         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32315         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32316         * modules/time (Depends-on): Add c++defs, warn-on-use.
32317         (Makefile.am): Update time.h rule.
32318         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32319         * modules/nanosleep (configure.ac): Likewise.
32320         * modules/strptime (configure.ac): Likewise.
32321         * modules/timegm (configure.ac): Likewise.
32322
32323         sys_time: Avoid #define replacements in C++ mode.
32324         * lib/sys_time.in.h: Include c++defs.h.
32325         (gettimeofday): In C++, define a namespaced alias symbol.
32326         * modules/sys_time (Depends-on): Add c++defs.
32327         (Makefile.am): Update sys/time.h rule.
32328
32329         sys_stat: Avoid #define replacements in C++ mode.
32330         * lib/sys_stat.in.h: Include c++defs.h.
32331         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32332         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32333         namespaced alias symbol.
32334         In C++, define a namespaced alias symbol.
32335         * modules/sys_stat (Depends-on): Add c++defs.
32336         (Makefile.am): Update sys/stat.h rule.
32337
32338         sys_socket: Avoid #define replacements in C++ mode.
32339         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32340         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32341         definitions also when the system has a <sys/socket.h>.
32342         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32343         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32344         In C++, define a namespaced alias symbol.
32345         * modules/sys_socket (Depends-on): Add c++defs.
32346         (Makefile.am): Update sys/socket.h rule.
32347
32348         sys_select: Avoid #define replacements in C++ mode.
32349         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32350         definitions also when the system has a <sys/select.h>.
32351         (select): In C++, define a namespaced alias symbol.
32352         * modules/sys_select (Depends-on): Add c++defs.
32353         (Makefile.am): Update sys/select.h rule.
32354
32355         sys_ioctl: Avoid #define replacements in C++ mode.
32356         * lib/sys_ioctl.in.h: Include c++defs.h.
32357         (ioctl): In C++, define a namespaced alias symbol.
32358         * modules/sys_ioctl (Depends-on): Add c++defs.
32359         (Makefile.am): Update sys/ioctl.h rule.
32360
32361         string: Avoid #define replacements in C++ mode.
32362         * lib/string.in.h: Include c++defs.h.
32363         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32364         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32365         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32366         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32367         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32368         * modules/string (Depends-on): Add c++defs.
32369         (Makefile.am): Update string.h rule.
32370
32371         stdlib: Avoid #define replacements in C++ mode.
32372         * lib/stdlib.in.h: Include c++defs.h.
32373         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32374         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32375         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32376         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32377         symbol.
32378         * modules/stdlib (Depends-on): Add c++defs.
32379         (Makefile.am): Update stdlib.h rule.
32380
32381         stdio: Avoid #define replacements in C++ mode.
32382         * lib/stdio.in.h: Include c++defs.h.
32383         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32384         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32385         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32386         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32387         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32388         namespaced alias symbol.
32389         * modules/stdio (Depends-on): Add c++defs.
32390         (Makefile.am): Update stdio.h rule.
32391
32392         spawn: Avoid #define replacements in C++ mode.
32393         * lib/spawn.in.h: Include c++defs.h.
32394         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32395         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32396         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32397         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32398         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32399         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32400         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32401         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32402         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32403         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32404         In C++, define a namespaced alias symbol.
32405         * modules/spawn (Depends-on): Add c++defs.
32406         (Makefile.am): Update spawn.h rule.
32407
32408         signal: Avoid #define replacements in C++ mode.
32409         * lib/signal.in.h: Include c++defs.h.
32410         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32411         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32412         namespaced alias symbol.
32413         * modules/signal (Depends-on): Add c++defs.
32414         (Makefile.am): Update signal.h rule.
32415
32416         search: Avoid #define replacements in C++ mode.
32417         * lib/search.in.h: Include c++defs.h.
32418         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32419         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32420         symbol.
32421         * modules/search (Depends-on): Add c++defs.
32422         (Makefile.am): Update search.h rule.
32423
32424         math: Avoid #define replacements in C++ mode.
32425         * lib/math.in.h: Include c++defs.h.
32426         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32427         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32428         trunc, truncl): In C++, define a namespaced alias symbol.
32429         * modules/math (Depends-on): Add c++defs.
32430         (Makefile.am): Update math.h rule.
32431
32432         locale: Avoid #define replacements in C++ mode.
32433         * lib/locale.in.h: Include c++defs.h.
32434         (duplocale): In C++, define a namespaced alias symbol.
32435         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32436         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32437         * modules/locale (Depends-on): Add c++defs.
32438         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32439
32440         langinfo: Avoid #define replacements in C++ mode.
32441         * lib/langinfo.in.h: Include c++defs.h.
32442         (nl_langinfo): In C++, define a namespaced alias symbol.
32443         * modules/langinfo (Depends-on): Add c++defs.
32444         (Makefile.am): Update langinfo.h rule.
32445
32446         iconv-h: Avoid #define replacements in C++ mode.
32447         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32448         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32449         symbol.
32450         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32451         whenever iconv is present.
32452         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32453         (Makefile.am): Update iconv.h rule.
32454
32455         glob: Avoid #define replacements in C++ mode.
32456         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32457         (_gl_glob_errfunc_fn): New type.
32458         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32459         symbol.
32460         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32461         (Makefile.am): Update glob.h rule.
32462
32463         fcntl-h: Avoid #define replacements in C++ mode.
32464         * lib/fcntl.in.h: Include c++defs.h.
32465         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32466         * modules/fcntl-h (Depends-on): Add c++defs.
32467         (Makefile.am): Update fcntl.h rule.
32468
32469         dirent: Avoid #define replacements in C++ mode.
32470         * lib/dirent.in.h: Include c++defs.h.
32471         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32472         namespaced alias symbol.
32473         (dirfd): Update declaration.
32474         * modules/dirent (Depends-on): Add c++defs.
32475         (Makefile.am): Update dirent.h rule.
32476
32477         ctype: Make it usable in C++ code.
32478         * lib/ctype.in.h: Include c++defs.h.
32479         (isblank): Declare as extern "C".
32480         * modules/ctype (Depends-on): Add c++defs.
32481         (Makefile.am): Update ctype.h rule.
32482
32483         New module 'c++defs'.
32484         * modules/c++defs: New file.
32485         * build-aux/c++defs.h: New file.
32486         Reported by John W. Eaton <jwe@gnu.org>.
32487
32488 2010-03-07  Bruno Haible  <bruno@clisp.org>
32489
32490         logb: Provide missing declaration for Cygwin.
32491         * lib/math.in.h (logb): New declaration.
32492         * m4/logb.m4: New file.
32493         * modules/logb (Files): Add m4/logb.m4.
32494         (Depends-on): Add math.
32495         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32496         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32498         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32499         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32500
32501 2010-03-07  Bruno Haible  <bruno@clisp.org>
32502
32503         Fix test-cond link error.
32504         * tests/test-cond.c: Include <stdio.h>.
32505
32506 2010-03-07  Bruno Haible  <bruno@clisp.org>
32507
32508         Fix test-dirent-safer link error.
32509         * modules/dirent-safer-tests (Makefile.am): Define
32510         test_dirent_safer_LDADD.
32511
32512 2010-03-07  Bruno Haible  <bruno@clisp.org>
32513
32514         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32515         among default module list.
32516
32517 2010-03-07  Bruno Haible  <bruno@clisp.org>
32518
32519         Fix link error on platforms with GNU libiconv.
32520         * modules/unistr/u8-strcoll-tests (Makefile): Define
32521         test_u8_strcoll_LDADD.
32522         * modules/unistr/u16-strcoll-tests (Makefile): Define
32523         test_u16_strcoll_LDADD.
32524         * modules/unistr/u32-strcoll-tests (Makefile): Define
32525         test_u32_strcoll_LDADD.
32526
32527 2010-03-07  Bruno Haible  <bruno@clisp.org>
32528
32529         Use POSIX declarations for socket functions.
32530         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32531         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32532         rpl_sendto): Change declaration to match POSIX.
32533         * lib/connect.c (rpl_connect): Likewise.
32534         * lib/accept.c (rpl_accept): Likewise.
32535         * lib/bind.c (rpl_bind): Likewise.
32536         * lib/getpeername.c (rpl_getpeername): Likewise.
32537         * lib/getsockname.c (rpl_getsockname): Likewise.
32538         * lib/recv.c (rpl_recv): Likewise.
32539         * lib/send.c (rpl_send): Likewise.
32540         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32541         * lib/sendto.c (rpl_sendto): Likewise.
32542
32543 2010-03-06  Bruno Haible  <bruno@clisp.org>
32544
32545         Clarify access, euidaccess, faccessat.
32546         * doc/posix-functions/faccessat.texi: Mention security problem under
32547         "Other problems", not "Portability problems".
32548         * doc/posix-functions/access.texi: Likewise. Mention a related security
32549         problem.
32550         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32551         * lib/euidaccess.c: Add comments about platforms.
32552         * lib/unistd.in.h (access, euidaccess): Add warnings.
32553
32554 2010-03-07  Bruno Haible  <bruno@clisp.org>
32555
32556         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32557         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32558         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32559         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32560         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32561         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32562         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32563         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32564         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32565         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32566         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32567         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32568         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32569         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32570         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32571         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32572         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32573         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32574         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32575         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32576         Likewise.
32577         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32578         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32579         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32580         Likewise.
32581         * tests/test-spawn.c (main): Make it work when
32582         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32583
32584 2010-03-07  Bruno Haible  <bruno@clisp.org>
32585
32586         Fix incorrect Makefile.am generation in German locale.
32587         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32588         Execute sed command with character range in C locale.
32589
32590 2010-03-06  Bruno Haible  <bruno@clisp.org>
32591
32592         Tests for module 'iconv-h'.
32593         * modules/iconv-h-tests: New file.
32594         * tests/test-iconv-h.c: New file.
32595
32596         New module 'iconv-h'.
32597         * modules/iconv-h: New file.
32598         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32599         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32600         (configure.ac): Remove gl_ICONV_H.
32601         (Makefile.am): Remove rule for iconv.h.
32602
32603 2010-03-06  Bruno Haible  <bruno@clisp.org>
32604
32605         More consistent naming of *.m4 files.
32606         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32607         * modules/wctype (Files): Update.
32608
32609         More consistent naming of *.m4 files.
32610         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32611         * modules/wchar (Files): Update.
32612
32613 2010-03-06  Jim Meyering  <meyering@redhat.com>
32614
32615         euidaccess: relax license to LGPLv2+
32616         * modules/euidaccess (License): Relax to LGPLv2+.
32617
32618 2010-03-06  Bruno Haible  <bruno@clisp.org>
32619
32620         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32621         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32622         (Makefile.am): Augment lib_SOURCES instead.
32623
32624 2010-03-04  Jim Meyering  <meyering@redhat.com>
32625
32626         utime: remove obsolete module
32627         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32628         unnecessary for years, and has been marked as obsolete for 10 months.
32629         * modules/utime: Remove file.
32630         * lib/utime.c: Remove file.
32631         * m4/utime.m4: Remove file.
32632         * m4/utimes-null.m4: Remove file.
32633         * doc/posix-functions/utime.texi (utime): Remove reference to
32634         the module.  Move the sole "fixed by gnulib" item into the
32635         "problems not fixed by Gnulib" list.
32636         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32637
32638 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32639
32640         * modules/exit (License): Relax license to LGPLv2+.
32641         (Status): Mark as obsolete.
32642         * NEWS: Mention deprecated 'exit' module.
32643         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32644         of now obsolete 'exit'.
32645
32646 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32647
32648         fts-lgpl: remove unused module
32649         * modules/fts-lgpl: Remove.
32650         * MODULES.html.sh (func_all_modules): Adjust.
32651         * check-module (find_included_lib_files): Adjust.
32652         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32653
32654 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32655
32656         copy-acl: enhance Solaris ACL error handling
32657         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32658         * lib/set-mode-acl.c (qset_acl): Likewise.
32659
32660 2010-03-02  Bruno Haible  <bruno@clisp.org>
32661
32662         spawn: Don't override the system defined values on FreeBSD 8.
32663         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32664         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32665         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32666         if HAVE_POSIX_SPAWN is 1.
32667         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32668
32669 2010-03-01  Bruno Haible  <bruno@clisp.org>
32670
32671         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32672         regarding Automake.
32673
32674 2010-02-25  Bruno Haible  <bruno@clisp.org>
32675
32676         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32677         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32678         setting, not afterwards.
32679         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32680
32681 2010-02-24  Eric Blake  <eblake@redhat.com>
32682
32683         bootstrap, git-version-gen: use timestamp
32684         * build-aux/git-version-gen (scriptversion): Force UTC.
32685         * build-aux/bootstrap (scriptversion): New variable.
32686
32687         bootstrap: allow older git
32688         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32689         older than 1.6.4.  Requested by the libvirt project.
32690
32691 2010-02-23  Eric Blake  <eblake@redhat.com>
32692
32693         warn-on-use: work with old autoconf
32694         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32695         AS_VAR semantics of autoconf 2.60.
32696         Reported by Bruno Haible.
32697
32698         bootstrap: improve some comments
32699         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32700         clarification comments.
32701
32702         gettimeofday: provide correct function
32703         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32704         when replacement is declared, otherwise provide gettimeofday.
32705         Reported by Michael Goffioul.
32706
32707 2010-02-23  Jim Meyering  <meyering@redhat.com>
32708
32709         lib-ignore: relax license to "unlimited", not LGPLv2+
32710         * modules/lib-ignore (License): Relax to "unlimited".
32711
32712 2010-02-23  Jim Meyering  <meyering@redhat.com>
32713
32714         lib-ignore: relax license to LGPLv2+
32715         * modules/lib-ignore (License): Relax to LGPLv2+.
32716
32717 2010-02-22  Eric Blake  <eblake@redhat.com>
32718
32719         lseek: avoid bash 3.2 broken pipe bug
32720         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32721         warning from bash 3.2.
32722         Reported by Ben Pfaff, with analysis from Bruno Haible.
32723
32724         bootstrap: support non-FSF copyright holder
32725         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32726         bootstrap.conf override of COPYRIGHT_HOLDER.
32727         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32728
32729         bootstrap: interoperate with gettext 0.14.1
32730         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32731
32732         bootstrap: allow for alternate submodule location
32733         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32734         hardcoding submodule location.
32735         (gnulib_mk): Allow direct use of Makefile.am.
32736
32737         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32738         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32739         rather than reconfiguring where the submodule points.
32740
32741         gettimeofday: restore support for platforms that lack function
32742         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32743         replacement if function is missing.
32744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32745         * modules/sys_time (Makefile.am): Substitute it.
32746         * lib/sys_time.in.h (gettimeofday): Check it.
32747         Reported by Michael Goffioul.
32748
32749 2010-02-21  Bruno Haible  <bruno@clisp.org>
32750
32751         * lib/stdio.in.h (obstack_printf): Fix typo.
32752
32753 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32754
32755         vc-list-files: use bzr ls's -R option
32756         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32757         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32758
32759 2010-02-21  Jim Meyering  <meyering@redhat.com>
32760
32761         init.sh: fix EXEEXT shims to work also for names like test-prog
32762         * tests/init.sh: Re-exec a better shell, when needed.
32763         If the current shell lacks support for posix $(...), an init.sh-using
32764         test will now try to find a shell that supports that.  If EXEEXT is
32765         nonempty, we also require support for hyphen-in-alias-name and shell
32766         substitutions like ${var#glob}.  Failure to find such a shell results
32767         in a skipped test.
32768
32769 2010-02-21  Bruno Haible  <bruno@clisp.org>
32770
32771         Really work around around "broken pipe" error message from bash 3.2.
32772         * gnulib-tool (func_reset_sigpipe): Remove function.
32773         (echo): In bash 3.2, define to a function that uses printf.
32774         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32775
32776 2010-02-20  Bruno Haible  <bruno@clisp.org>
32777
32778         Restore support for automake 1.9.6 with autoconf 2.61.
32779         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32780         Reported by James Youngman <jay@gnu.org>.
32781
32782 2010-02-20  Bruno Haible  <bruno@clisp.org>
32783
32784         Improve *printf warning condition.
32785         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32786         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32787         and the function is overridden due to SIGPIPE emulation.
32788
32789 2010-02-20  Bruno Haible  <bruno@clisp.org>
32790
32791         * lib/stdio.in.h: Tweak comments.
32792
32793 2010-02-19  Bruno Haible  <bruno@clisp.org>
32794
32795         Make it easier to find modules. New gnulib-tool option '--find'.
32796         * gnulib-tool: New option --find.
32797         (func_usage): Document it.
32798         (func_sanitize_modulelist): New function, extracted from
32799         func_all_modules.
32800         (func_all_modules): Invoke it.
32801         * doc/gnulib-tool.texi (Which modules?): New node.
32802
32803 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32804
32805         * lib/sys_select.in.h: Provide select replacement even if
32806         sys/select.h exists on a system, for Interix.
32807
32808 2010-02-18  Jim Meyering  <meyering@redhat.com>
32809
32810         init.sh: don't use $(...) just yet
32811         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32812         to accommodate e.g., Solaris' /bin/sh.
32813
32814 2010-02-17  Bruno Haible  <bruno@clisp.org>
32815
32816         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32817         Reported by Ludovic Courtès <ludo@gnu.org>.
32818
32819 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32820
32821         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32822         linking with -lintl.
32823
32824 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32825
32826         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32827         if not provided by the system's netdb.h.  Reported by
32828         ludo@gnu.org (Ludovic Courtès).
32829
32830 2010-02-15  Jim Meyering  <meyering@redhat.com>
32831
32832         init.sh: improve portability and efficiency
32833         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32834         "dummy" in a for loop.
32835         Use '!', not '^' to select the complement of a character set used
32836         in a "case" statement.
32837         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32838         Suggestions from Eric Blake.
32839
32840         init.sh: automatically accommodate programs with the .exe suffix
32841         Automatically arrange for an invocation of "prog" to execute the
32842         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32843         may use the simpler "prog", yet still work when built on a system
32844         that requires specifying the added suffix.
32845         Do this by constructing a function named "prog" that invokes
32846         "prog.exe" for each .exe file in selected directories.
32847         * tests/init.sh (find_exe_basenames_): New function.
32848         (create_exe_shim_functions_): New function.
32849         (path_prepend_): Use it.
32850
32851         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32852         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32853         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32854
32855 2010-02-14  Jim Meyering  <meyering@redhat.com>
32856
32857         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32858         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32859         (sc_prohibit_hash_pjw_without_use): New rule.
32860
32861         maint.mk: allow the default upload destination dir to be overridden
32862         * top/maint.mk (upload_dest_dir_): Define with a default that
32863         preserves the status quo.
32864         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32865         Reported by Peter Simons.
32866
32867         maint.mk: prohibit inclusion of "hash.h" without_use
32868         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32869
32870 2010-02-10  Jim Meyering  <meyering@redhat.com>
32871
32872         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32873         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32874
32875 2010-02-09  Eric Blake  <ebb9@byu.net>
32876         and Bruno Haible  <bruno@clisp.org>
32877
32878         obstack-printf-posix: ensure declaration
32879         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32880         extracted from gl_FUNC_OBSTACK_PRINTF.
32881         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32882         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32883         Likewise.
32884         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32885         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32886         0.
32887
32888 2010-02-08  Bruno Haible  <bruno@clisp.org>
32889
32890         gnulib-tool: Fix typo in 2010-02-07 commit.
32891         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32892         Reported by Eric Blake.
32893
32894 2010-02-07  Bruno Haible  <bruno@clisp.org>
32895
32896         gnulib-tool: Fix up caching patches.
32897         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32898         option --no-cache. Use associative arrays when supported by the shell.
32899         (sed_comments): New variable.
32900         (modcache): Renamed from do_cache.
32901         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32902         abbreviate unnecessarily.
32903         (have_associative): New variable.
32904         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32905         way also for ksh and zsh.
32906         (func_init_sed_convert_to_cache_statements): New function, extracted
32907         from func_cache_lookup_module. Add support for associative arrays.
32908         Don't set the c_MODULE_cached variable here. Ignore all lines before
32909         the first field header. Remove only the final newline, not all trailing
32910         newlines. Support empty fields correctly. Limit the use of 'eval' to
32911         assignments.
32912         (func_get_description, func_get_status, func_get_notice,
32913         func_get_applicability, func_get_filelist, func_get_dependencies,
32914         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32915         func_get_automake_snippet, func_get_include_directive,
32916         func_get_link_directive, func_get_license, func_get_maintainer):
32917         Update documentation. List the unoptimized code first. Add support for
32918         associative arrays. Limit the use of 'eval' to assignments.
32919         (func_get_applicability): Undo stylistic pessimisations.
32920         (func_get_automake_snippet, func_get_include_directive): Reduce code
32921         duplication.
32922         (func_modules_transitive_closure, func_modules_add_dummy,
32923         func_modules_notice, func_modules_to_filelist, func_add_file,
32924         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32925         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32926         func_create_testdir, func_create_megatestdir): Update documentation.
32927
32928 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32929
32930         * gnulib-tool (func_cache_lookup_module): Store the module name
32931         belonging to the cache variable; error out if two different
32932         module names map to the same cache variable name.
32933
32934 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32935
32936         gnulib-tool: Make caching optional.
32937         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32938         Update matching short versions of --no-changelog.
32939         (func_usage): Update.
32940         (sed_extract_cache_prog): Renamed from ...
32941         (sed_extract_prog): ... this; revert to old extraction script.
32942         (func_get_description, func_get_status)
32943         (func_get_notice, func_get_applicability, func_get_filelist)
32944         (func_get_dependencies, func_get_autoconf_early_snippet)
32945         (func_get_autoconf_snippet, func_get_automake_snippet)
32946         (func_get_include_directive, func_get_link_directive)
32947         (func_get_license, func_get_maintainer): If $do_cache is false,
32948         use old, non-caching extraction scripts.
32949         Suggestion by Bruno Haible.
32950
32951 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32952
32953         gnulib-tool: cache module metainformation.
32954         * gnulib-tool (sed_extract_prog): Match newline before each
32955         header, and rewrite header to a shell variable suffix.
32956         (func_cache_var, func_cache_lookup_module): New functions,
32957         to turn a module name into a cache variable prefix, and to
32958         look up and cache module metainformation.
32959         (func_get_description, func_get_status)
32960         (func_get_notice, func_get_applicability, func_get_filelist)
32961         (func_get_dependencies, func_get_autoconf_early_snippet)
32962         (func_get_autoconf_snippet, func_get_automake_snippet)
32963         (func_get_include_directive, func_get_link_directive)
32964         (func_get_license, func_get_maintainer): Use
32965         func_cache_lookup_module.
32966
32967 2010-02-07  Bruno Haible  <bruno@clisp.org>
32968
32969         fnctl: Fix missing dependency.
32970         * modules/fcntl (Depends-on): Add getdtablesize.
32971         Reported by John W. Eaton <jwe@gnu.org>.
32972
32973 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32974
32975         Argp: fix recognition of short alias options.
32976
32977         * lib/argp-parse.c (convert_options): Fix improper use of
32978         `|' between character values.
32979         * tests/test-argp.c (group1_option): New alias option
32980         --read (-r).
32981         (group1_parser): Special handling for 'r'.
32982         (test15): New test case.
32983         (test_fun): Add test15.
32984         * tests/test-argp-2.sh: Update expected --help and --usage
32985         outputs.
32986
32987 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32988
32989         * tests/test-argp.c: Fix indentation.
32990
32991 2010-02-04  Eric Blake  <ebb9@byu.net>
32992
32993         gettimeofday: expose type of second argument
32994         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32995         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32996         * tests/test-gettimeofday.c: Use it to silence warning.
32997         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32998         the issue.
32999
33000 2010-02-03  Jim Meyering  <meyering@redhat.com>
33001
33002         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33003         * lib/regcomp.c (TYPE_SIGNED): Define.
33004         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33005
33006         regcomp.c: avoid a new -Wshadow warning
33007         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33008
33009 2010-02-01  Jim Meyering  <meyering@redhat.com>
33010
33011         removing useless parentheses in cpp #define directives
33012         For motivation, see commit c0221df4, "define STREQ(a,b)
33013         consistently, removing useless parentheses"
33014         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33015         * lib/mountlist.c (MNT_IGNORE): Likewise.
33016         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33017
33018 2010-02-01  Eric Blake  <ebb9@byu.net>
33019
33020         sys_time: use link-warning
33021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33022         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33023         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33024         * modules/sys_time (Depends-on): Add warn-on-use.
33025         (Makefile.am): Always build replacement.
33026         (configure.ac): Update substitutions.
33027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33028         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33029         bother with SYS_TIME_H.
33030         * modules/gettimeofday (configure.ac): Declare indicator.
33031         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33032         in use.
33033
33034         closein-tests: silence compiler warning
33035         * tests/test-closein.c (main): Ignore fread result.
33036         * modules/closein-tests (Depends-on): Add ignore-value.
33037
33038         tests: silence warning about system return
33039         * tests/test-areadlink-with-size.c (main): Ignore system result.
33040         * tests/test-areadlink.c (main): Likewise.
33041         * tests/test-areadlinkat-with-size.c (main): Likewise.
33042         * tests/test-areadlinkat.c (main): Likewise.
33043         * tests/test-canonicalize-lgpl.c (main): Likewise.
33044         * tests/test-canonicalize.c (main): Likewise.
33045         * tests/test-chown.c (main): Likewise.
33046         * tests/test-fchownat.c (main): Likewise.
33047         * tests/test-fdutimensat.c (main): Likewise.
33048         * tests/test-fstatat.c (main): Likewise.
33049         * tests/test-futimens.c (main): Likewise.
33050         * tests/test-lchown.c (main): Likewise.
33051         * tests/test-link.c (main): Likewise.
33052         * tests/test-linkat.c (main): Likewise.
33053         * tests/test-lstat.c (main): Likewise.
33054         * tests/test-mkdir.c (main): Likewise.
33055         * tests/test-mkdirat.c (main): Likewise.
33056         * tests/test-mkfifo.c (main): Likewise.
33057         * tests/test-mkfifoat.c (main): Likewise.
33058         * tests/test-mknod.c (main): Likewise.
33059         * tests/test-readlink.c (main): Likewise.
33060         * tests/test-remove.c (main): Likewise.
33061         * tests/test-rename.c (main): Likewise.
33062         * tests/test-renameat.c (main): Likewise.
33063         * tests/test-rmdir.c (main): Likewise.
33064         * tests/test-symlink.c (main): Likewise.
33065         * tests/test-symlinkat.c (main): Likewise.
33066         * tests/test-unlink.c (main): Likewise.
33067         * tests/test-unlinkat.c (main): Likewise.
33068         * tests/test-utimens.c (main): Likewise.
33069         * tests/test-utimensat.c (main): Likewise.
33070         * modules/areadlink-tests (Depends-on): Add ignore-value.
33071         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33072         * modules/areadlinkat-tests (Depends-on): Likewise.
33073         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33074         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33075         * modules/canonicalize-tests (Depends-on): Likewise.
33076         * modules/chown-tests (Depends-on): Likewise.
33077         * modules/fdutimensat-tests (Depends-on): Likewise.
33078         * modules/futimens-tests (Depends-on): Likewise.
33079         * modules/lchown-tests (Depends-on): Likewise.
33080         * modules/link-tests (Depends-on): Likewise.
33081         * modules/linkat-tests (Depends-on): Likewise.
33082         * modules/lstat-tests (Depends-on): Likewise.
33083         * modules/mkdir-tests (Depends-on): Likewise.
33084         * modules/mkfifo-tests (Depends-on): Likewise.
33085         * modules/mkfifoat-tests (Depends-on): Likewise.
33086         * modules/mknod-tests (Depends-on): Likewise.
33087         * modules/openat-tests (Depends-on): Likewise.
33088         * modules/readlink-tests (Depends-on): Likewise.
33089         * modules/remove-tests (Depends-on): Likewise.
33090         * modules/rename-tests (Depends-on): Likewise.
33091         * modules/renameat-tests (Depends-on): Likewise.
33092         * modules/rmdir-tests (Depends-on): Likewise.
33093         * modules/symlink-tests (Depends-on): Likewise.
33094         * modules/symlinkat-tests (Depends-on): Likewise.
33095         * modules/unlink-tests (Depends-on): Likewise.
33096         * modules/utimens-tests (Depends-on): Likewise.
33097         * modules/utimensat-tests (Depends-on): Likewise.
33098
33099 2010-01-31  Bruno Haible  <bruno@clisp.org>
33100
33101         Perform the same test for many <math.h> functions.
33102         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33103         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33104         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33105         of gl_MATHFUNC.
33106         * modules/acos (configure.ac): Likewise.
33107         * modules/asin (configure.ac): Likewise.
33108         * modules/atan (configure.ac): Likewise.
33109         * modules/atan2 (configure.ac): Likewise.
33110         * modules/cbrt (configure.ac): Likewise.
33111         * modules/copysign (configure.ac): Likewise.
33112         * modules/cos (configure.ac): Likewise.
33113         * modules/cosh (configure.ac): Likewise.
33114         * modules/erf (configure.ac): Likewise.
33115         * modules/erfc (configure.ac): Likewise.
33116         * modules/exp (configure.ac): Likewise.
33117         * modules/fmod (configure.ac): Likewise.
33118         * modules/hypot (configure.ac): Likewise.
33119         * modules/j0 (configure.ac): Likewise.
33120         * modules/j1 (configure.ac): Likewise.
33121         * modules/jn (configure.ac): Likewise.
33122         * modules/lgamma (configure.ac): Likewise.
33123         * modules/log (configure.ac): Likewise.
33124         * modules/log10 (configure.ac): Likewise.
33125         * modules/log1p (configure.ac): Likewise.
33126         * modules/pow (configure.ac): Likewise.
33127         * modules/remainder (configure.ac): Likewise.
33128         * modules/sin (configure.ac): Likewise.
33129         * modules/sinh (configure.ac): Likewise.
33130         * modules/tan (configure.ac): Likewise.
33131         * modules/tanh (configure.ac): Likewise.
33132         * modules/y0 (configure.ac): Likewise.
33133         * modules/y1 (configure.ac): Likewise.
33134         * modules/yn (configure.ac): Likewise.
33135         Suggested by Paolo Bonzini.
33136
33137 2010-01-31  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33140
33141 2010-01-31  Bruno Haible  <bruno@clisp.org>
33142
33143         Work around getdelim() bug on FreeBSD 8.0.
33144         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33145         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33146         not work.
33147         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33148         is 1.
33149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33150         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33151         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33152         a non-zero size.
33153         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33154
33155 2010-01-31  Bruno Haible  <bruno@clisp.org>
33156
33157         Work around getline() bug on FreeBSD 8.0.
33158         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33159         and a non-zero size.
33160         * tests/test-getline.c (main): Likewise.
33161         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33162         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33163
33164 2010-01-28  Eric Blake  <ebb9@byu.net>
33165
33166         regex: fix build failure
33167         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33168         platforms.
33169
33170 2010-01-28  Jim Meyering  <meyering@redhat.com>
33171
33172         regex: do not ignore memory allocation failure
33173         * lib/regex_internal.c (create_cd_newstate): Detect
33174         re_node_set_init_copy failure.   Extracted from glibc commit
33175         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33176
33177         regex: sync more white-space changes from libc
33178         * lib/regex_internal.c: White-space only changes.
33179         * lib/regexec.c: Likewise.
33180
33181         regex: add many uses of __attribute_warn_unused_result__
33182         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33183         * lib/regexec.c: Likewise.
33184         Extracted from a messy glibc commit.
33185
33186         regcomp.c: spelling and merge-artifact from glibc
33187         * lib/regcomp.c: Merge remainder of glibc's
33188         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33189
33190         regcomp.c: sync white-space changes from glibc
33191         * lib/regcomp.c: Merge to accommodate white space
33192         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33193
33194         regcomp.c: do not ignore internal return values
33195         * lib/regcomp.c: Do not ignore internal return values.
33196         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33197         but without its white-space changes and spelling fixes.
33198
33199         regex_internal.h: define __attribute_warn_unused_result__
33200         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33201
33202         maint: add a syntax-check rule to check for vulnerable Makefile.in
33203         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33204
33205 2010-01-27  Jim Meyering  <meyering@redhat.com>
33206
33207         ncftpput-ftp: clean up spaces
33208         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33209         Remove trailing blanks.
33210
33211 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33212
33213         * build-aux/git-version-gen: Fix copyright statement.
33214         * build-aux/gnupload: Likewise.
33215         * tests/test-arcfour.c: Likewise.
33216         * tests/test-arctwo.c: Likewise.
33217         * tests/test-count-one-bits.c: Likewise.
33218         * tests/test-crc.c: Likewise.
33219         * tests/test-des.c: Likewise.
33220         * tests/test-gc-arcfour.c: Likewise.
33221         * tests/test-gc-arctwo.c: Likewise.
33222         * tests/test-gc-des.c: Likewise.
33223         * tests/test-gc-hmac-md5.c: Likewise.
33224         * tests/test-gc-hmac-sha1.c: Likewise.
33225         * tests/test-gc-md2.c: Likewise.
33226         * tests/test-gc-md4.c: Likewise.
33227         * tests/test-gc-md5.c: Likewise.
33228         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33229         * tests/test-gc-rijndael.c: Likewise.
33230         * tests/test-gc-sha1.c: Likewise.
33231         * tests/test-gc.c: Likewise.
33232         * tests/test-gethostname.c: Likewise.
33233         * tests/test-gettimeofday.c: Likewise.
33234         * tests/test-hash.c: Likewise.
33235         * tests/test-hmac-md5.c: Likewise.
33236         * tests/test-hmac-sha1.c: Likewise.
33237         * tests/test-md2.c: Likewise.
33238         * tests/test-md4.c: Likewise.
33239         * tests/test-md5.c: Likewise.
33240         * tests/test-memchr.c: Likewise.
33241         * tests/test-memchr2.c: Likewise.
33242         * tests/test-memcmp.c: Likewise.
33243         * tests/test-memmem.c: Likewise.
33244         * tests/test-memrchr.c: Likewise.
33245         * tests/test-rawmemchr.c: Likewise.
33246         * tests/test-read-file.c: Likewise.
33247         * tests/test-rijndael.c: Likewise.
33248         * tests/test-sockets.c: Likewise.
33249         * tests/test-strchrnul.c: Likewise.
33250         * tests/test-strstr.c: Likewise.
33251         * tests/test-strtod.c: Likewise.
33252         * build-aux/ncftpput-ftp: Likewise.
33253
33254 2010-01-26  Eric Blake  <ebb9@byu.net>
33255
33256         ignore-value: update recommended header name
33257         * modules/ignore-value (Include): Only use <> for headers that
33258         exist in glibc.
33259
33260 2010-01-26  Jim Meyering  <meyering@redhat.com>
33261
33262         test-userspec.c: avoid compiler warnings
33263         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33264         and "initialization discards qualifiers..." warnings.
33265         Put the first "uid" in its own scope, and make char* members "const".
33266
33267 2010-01-25  Bruno Haible  <bruno@clisp.org>
33268
33269         gnulib-tool: Make warning diagnostics consistent.
33270         * gnulib-tool (func_warning): New function.
33271         Use it everywhere where gnulib-tool produces output to stderr and it is
33272         not a fatal error.
33273
33274 2010-01-25  Bruno Haible  <bruno@clisp.org>
33275
33276         Fix test dependencies.
33277         * modules/xstrtol-tests (Depends-on): Add inttypes.
33278         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33279
33280 2010-01-25 Pádraig Brady <P@draigBrady.com>
33281
33282         syntax-check: detect incorrect boolean macro values in config.h
33283         * modules/maintainer-makefile (configure.ac): Parameterize the location
33284         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33285         The logic is from Eric Blake and the location indicated by Jim Meyering.
33286         Note the more natural CONFIG_HEADER name is prohibited by automake
33287         for backwards compatibility reasons.
33288         * top/maint.mk (sc_Wundef_boolean): New rule.
33289
33290 2010-01-25  Jim Meyering  <meyering@redhat.com>
33291
33292         bootstrap: detect MacOS 10.6's shasum, too
33293         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33294         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33295
33296 2010-01-23  Jim Meyering  <meyering@redhat.com>
33297
33298         xstrtoll: new module
33299         * modules/xstrtoll: New file.
33300         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33301         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33302         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33303         ./configure fails if you use this module and lack "long long".
33304         * modules/xstrtoll-tests: New module.
33305         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33306         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33307         new init.sh-based test framework.
33308
33309 2010-01-24  Bruno Haible  <bruno@clisp.org>
33310
33311         Tests for module 'yn'.
33312         * modules/yn-tests: New file.
33313         * tests/test-yn.c: New file.
33314
33315         Tests for module 'y1'.
33316         * modules/y1-tests: New file.
33317         * tests/test-y1.c: New file.
33318
33319         Tests for module 'y0'.
33320         * modules/y0-tests: New file.
33321         * tests/test-y0.c: New file.
33322
33323         Tests for module 'tanh'.
33324         * modules/tanh-tests: New file.
33325         * tests/test-tanh.c: New file.
33326
33327         Tests for module 'tan'.
33328         * modules/tan-tests: New file.
33329         * tests/test-tan.c: New file.
33330
33331         Tests for module 'sqrt'.
33332         * modules/sqrt-tests: New file.
33333         * tests/test-sqrt.c: New file.
33334
33335         Tests for module 'sinh'.
33336         * modules/sinh-tests: New file.
33337         * tests/test-sinh.c: New file.
33338
33339         Tests for module 'sin'.
33340         * modules/sin-tests: New file.
33341         * tests/test-sin.c: New file.
33342
33343         Tests for module 'rint'.
33344         * modules/rint-tests: New file.
33345         * tests/test-rint.c: New file.
33346
33347         Tests for module 'remainder'.
33348         * modules/remainder-tests: New file.
33349         * tests/test-remainder.c: New file.
33350
33351         Tests for module 'pow'.
33352         * modules/pow-tests: New file.
33353         * tests/test-pow.c: New file.
33354
33355         Tests for module 'nextafter'.
33356         * modules/nextafter-tests: New file.
33357         * tests/test-nextafter.c: New file.
33358
33359         Tests for module 'modf'.
33360         * modules/modf-tests: New file.
33361         * tests/test-modf.c: New file.
33362
33363         Tests for module 'logb'.
33364         * modules/logb-tests: New file.
33365         * tests/test-logb.c: New file.
33366
33367         Tests for module 'log1p'.
33368         * modules/log1p-tests: New file.
33369         * tests/test-log1p.c: New file.
33370
33371         Tests for module 'log10'.
33372         * modules/log10-tests: New file.
33373         * tests/test-log10.c: New file.
33374
33375         Tests for module 'log'.
33376         * modules/log-tests: New file.
33377         * tests/test-log.c: New file.
33378
33379         Tests for module 'lgamma'.
33380         * modules/lgamma-tests: New file.
33381         * tests/test-lgamma.c: New file.
33382
33383         Tests for module 'ldexp'.
33384         * modules/ldexp-tests: New file.
33385         * tests/test-ldexp.c: New file.
33386
33387         Tests for module 'jn'.
33388         * modules/jn-tests: New file.
33389         * tests/test-jn.c: New file.
33390
33391         Tests for module 'j1'.
33392         * modules/j1-tests: New file.
33393         * tests/test-j1.c: New file.
33394
33395         Tests for module 'j0'.
33396         * modules/j0-tests: New file.
33397         * tests/test-j0.c: New file.
33398
33399         Tests for module 'hypot'.
33400         * modules/hypot-tests: New file.
33401         * tests/test-hypot.c: New file.
33402
33403         Tests for module 'fmod'.
33404         * modules/fmod-tests: New file.
33405         * tests/test-fmod.c: New file.
33406
33407         Tests for module 'fabs'.
33408         * modules/fabs-tests: New file.
33409         * tests/test-fabs.c: New file.
33410
33411         Tests for module 'exp'.
33412         * modules/exp-tests: New file.
33413         * tests/test-exp.c: New file.
33414
33415         Tests for module 'erfc'.
33416         * modules/erfc-tests: New file.
33417         * tests/test-erfc.c: New file.
33418
33419         Tests for module 'erf'.
33420         * modules/erf-tests: New file.
33421         * tests/test-erf.c: New file.
33422
33423         Tests for module 'cosh'.
33424         * modules/cosh-tests: New file.
33425         * tests/test-cosh.c: New file.
33426
33427         Tests for module 'cos'.
33428         * modules/cos-tests: New file.
33429         * tests/test-cos.c: New file.
33430
33431         Tests for module 'copysign'.
33432         * modules/copysign-tests: New file.
33433         * tests/test-copysign.c: New file.
33434
33435         Tests for module 'cbrt'.
33436         * modules/cbrt-tests: New file.
33437         * tests/test-cbrt.c: New file.
33438
33439         Tests for module 'atan2'.
33440         * modules/atan2-tests: New file.
33441         * tests/test-atan2.c: New file.
33442
33443         Tests for module 'atan'.
33444         * modules/atan-tests: New file.
33445         * tests/test-atan.c: New file.
33446
33447         Tests for module 'asin'.
33448         * modules/asin-tests: New file.
33449         * tests/test-asin.c: New file.
33450
33451         Tests for module 'acos'.
33452         * modules/acos-tests: New file.
33453         * tests/test-acos.c: New file.
33454
33455 2010-01-24  Bruno Haible  <bruno@clisp.org>
33456
33457         Fix tests for common <math.h> functions.
33458         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33459         code snippet that references the function pointer, rather than merely
33460         calling the function. Substitute the FUNC_LIBM variable.
33461         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33462         * modules/acos (configure.ac): Likewise.
33463         * modules/asin (configure.ac): Likewise.
33464         * modules/atan (configure.ac): Likewise.
33465         * modules/atan2 (configure.ac): Likewise.
33466         * modules/cbrt (configure.ac): Likewise.
33467         * modules/copysign (configure.ac): Likewise.
33468         * modules/cos (configure.ac): Likewise.
33469         * modules/cosh (configure.ac): Likewise.
33470         * modules/erf (configure.ac): Likewise.
33471         * modules/erfc (configure.ac): Likewise.
33472         * modules/exp (configure.ac): Likewise.
33473         * modules/fabs (configure.ac): Likewise.
33474         * modules/fmod (configure.ac): Likewise.
33475         * modules/hypot (configure.ac): Likewise.
33476         * modules/j0 (configure.ac): Likewise.
33477         * modules/j1 (configure.ac): Likewise.
33478         * modules/jn (configure.ac): Likewise.
33479         * modules/ldexp (configure.ac): Likewise.
33480         * modules/lgamma (configure.ac): Likewise.
33481         * modules/log (configure.ac): Likewise.
33482         * modules/log10 (configure.ac): Likewise.
33483         * modules/log1p (configure.ac): Likewise.
33484         * modules/logb (configure.ac): Likewise.
33485         * modules/modf (configure.ac): Likewise.
33486         * modules/nextafter (configure.ac): Likewise.
33487         * modules/pow (configure.ac): Likewise.
33488         * modules/remainder (configure.ac): Likewise.
33489         * modules/rint (configure.ac): Likewise.
33490         * modules/sin (configure.ac): Likewise.
33491         * modules/sinh (configure.ac): Likewise.
33492         * modules/tan (configure.ac): Likewise.
33493         * modules/tanh (configure.ac): Likewise.
33494         * modules/y0 (configure.ac): Likewise.
33495         * modules/y1 (configure.ac): Likewise.
33496         * modules/yn (configure.ac): Likewise.
33497
33498 2010-01-24  Bruno Haible  <bruno@clisp.org>
33499
33500         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33501         * tests/test-acosl.c (x): New variable.
33502         (main): Store argument in x and fetch it from x.
33503         * tests/test-asinl.c (x): New variable.
33504         (main): Store argument in x and fetch it from x.
33505         * tests/test-atanl.c (x): New variable.
33506         (main): Store argument in x and fetch it from x.
33507         * tests/test-cosl.c (x): New variable.
33508         (main): Store argument in x and fetch it from x.
33509         * tests/test-expl.c (x): New variable.
33510         (main): Store argument in x and fetch it from x.
33511         * tests/test-logl.c (x): New variable.
33512         (main): Store argument in x and fetch it from x.
33513         * tests/test-sinl.c (x): New variable.
33514         (main): Store argument in x and fetch it from x.
33515         * tests/test-sqrtl.c (x): New variable.
33516         (main): Store argument in x and fetch it from x.
33517         * tests/test-tanl.c (x): New variable.
33518         (main): Store argument in x and fetch it from x.
33519
33520 2010-01-24  Bruno Haible  <bruno@clisp.org>
33521
33522         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33523         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33524         assignments to the initial TESTS_ENVIRONMENT.
33525         * doc/gnulib.texi (Unit test modules): Document it.
33526         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33527         TESTS_ENVIRONMENT.
33528         * modules/btowc-tests (Makefile.am): Likewise.
33529         * modules/c-stack-tests (Makefile.am): Likewise.
33530         * modules/c-strcase-tests (Makefile.am): Likewise.
33531         * modules/copy-file-tests (Makefile.am): Likewise.
33532         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33533         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33534         * modules/mbrtowc-tests (Makefile.am): Likewise.
33535         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33536         * modules/mbscasestr-tests (Makefile.am): Likewise.
33537         * modules/mbschr-tests (Makefile.am): Likewise.
33538         * modules/mbscspn-tests (Makefile.am): Likewise.
33539         * modules/mbsinit-tests (Makefile.am): Likewise.
33540         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33541         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33542         * modules/mbspbrk-tests (Makefile.am): Likewise.
33543         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33544         * modules/mbsrchr-tests (Makefile.am): Likewise.
33545         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33546         * modules/mbsspn-tests (Makefile.am): Likewise.
33547         * modules/mbsstr-tests (Makefile.am): Likewise.
33548         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33549         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33550         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33551         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33552         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33553         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33554         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33555         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33556         * modules/wcrtomb-tests (Makefile.am): Likewise.
33557         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33558         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33559         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33560         assignments from TESTS_ENVIRONMENT.
33561         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33562         augmentation.
33563         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33564         * modules/atexit-tests (Makefile.am): Likewise.
33565         * modules/binary-io-tests (Makefile.am): Likewise.
33566         * modules/closein-tests (Makefile.am): Likewise.
33567         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33568         * modules/exclude-tests (Makefile.am): Likewise.
33569         * modules/fflush-tests (Makefile.am): Likewise.
33570         * modules/fpending-tests (Makefile.am): Likewise.
33571         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33572         * modules/freadahead-tests (Makefile.am): Likewise.
33573         * modules/freadptr-tests (Makefile.am): Likewise.
33574         * modules/freadseek-tests (Makefile.am): Likewise.
33575         * modules/fseek-tests (Makefile.am): Likewise.
33576         * modules/fseeko-tests (Makefile.am): Likewise.
33577         * modules/ftell-tests (Makefile.am): Likewise.
33578         * modules/ftello-tests (Makefile.am): Likewise.
33579         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33580         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33581         * modules/lseek-tests (Makefile.am): Likewise.
33582         * modules/parse-duration-tests (Makefile.am): Likewise.
33583         * modules/perror-tests (Makefile.am): Likewise.
33584         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33585         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33586         * modules/pipe-tests (Makefile.am): Likewise.
33587         * modules/pread-tests (Makefile.am): Likewise.
33588         * modules/printf-posix-tests (Makefile.am): Likewise.
33589         * modules/select-tests (Makefile.am): Likewise.
33590         * modules/sigpipe-tests (Makefile.am): Likewise.
33591         * modules/tsearch-tests (Makefile.am): Likewise.
33592         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33593         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33594         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33595         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33596         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33597         * modules/version-etc-tests (Makefile.am): Likewise.
33598         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33599         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33600         * modules/xalloc-die-tests (Makefile.am): Likewise.
33601         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33602         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33603         * modules/xstrtol-tests (Makefile.am): Likewise.
33604         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33605         * modules/yesno-tests (Makefile.am): Likewise.
33606         Suggested by Jim Meyering.
33607
33608 2010-01-24  Bruno Haible  <bruno@clisp.org>
33609
33610         More documentation.
33611         * doc/gnulib.texi (Writing modules): New chapter.
33612         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33613         the new chapter.
33614
33615 2010-01-24  Jim Meyering  <meyering@redhat.com>
33616
33617         maint.mk: do not prepend "./" after filtering
33618         * top/maint.mk (_prepend_srcdir_prefix): New variable
33619         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33620         "./" when $(srcdir) is ".".
33621
33622         define STREQ(a,b) consistently, removing useless parentheses
33623         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33624         since the only risk is that "a" or "b" contains an unparenthesized
33625         comma, but if either did that, STREQ would have 3 or more arguments.
33626         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33627         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33628         * lib/hash-triple.c (STREQ): Likewise.
33629         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33630         * lib/getugroups.c (STREQ): Likewise.
33631
33632 2010-01-23  Jim Meyering  <meyering@redhat.com>
33633
33634         maint.mk: fix syntax-check in a non-srcdir build directory
33635         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33636         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33637
33638 2010-01-22  Jim Meyering  <meyering@redhat.com>
33639
33640         userspec: add unit tests
33641         * tests/test-userspec.c: New file.
33642         * modules/userspec-tests: Likewise.
33643
33644 2010-01-21  Jim Meyering  <meyering@redhat.com>
33645
33646         maint.mk: handle source file names containing "." robustly
33647         * top/maint.mk (_dot_escaped_srcdir): Define.
33648         (VC_LIST): Use it in LHS of sed substitution.
33649
33650 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33651
33652         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33653         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33654         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33655         from a non-srcdir build.
33656
33657 2010-01-20  Eric Blake  <ebb9@byu.net>
33658
33659         warn-on-use: use instead of link-warning
33660         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33661         * modules/unistd (Depends-on, Makefile.am): Likewise.
33662         * modules/arpa_inet (Depends-on): Replace link-warning with
33663         warn-on-use.
33664         (Makefile.am): Update rules accordingly.
33665         * modules/ctype (Depends-on, Makefile.am): Likewise.
33666         * modules/dirent (Depends-on, Makefile.am): Likewise.
33667         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33668         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33669         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33670         * modules/locale (Depends-on, Makefile.am): Likewise.
33671         * modules/math (Depends-on, Makefile.am): Likewise.
33672         * modules/search (Depends-on, Makefile.am): Likewise.
33673         * modules/signal (Depends-on, Makefile.am): Likewise.
33674         * modules/spawn (Depends-on, Makefile.am): Likewise.
33675         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33676         * modules/string (Depends-on, Makefile.am): Likewise.
33677         * modules/strings (Depends-on, Makefile.am): Likewise.
33678         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33679         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33680         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33681         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33682         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33683         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33684         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33685         * modules/wchar (Depends-on, Makefile.am): Likewise.
33686         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33687         should be poisoned.
33688         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33689         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33690         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33691         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33692         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33693         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33694         * m4/math_h.m4 (gl_MATH_H): Likewise.
33695         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33696         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33697         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33698         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33699         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33700         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33701         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33702         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33703         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33704         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33705         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33706         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33707         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33709         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33710         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33711         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33712         GL_LINK_WARNING.
33713         * lib/ctype.in.h: Likewise.
33714         * lib/dirent.in.h: Likewise.
33715         * lib/fcntl.in.h: Likewise.
33716         * lib/inttypes.in.h: Likewise.
33717         * lib/langinfo.in.h: Likewise.
33718         * lib/locale.in.h: Likewise.
33719         * lib/math.in.h: Likewise.
33720         * lib/search.in.h: Likewise.
33721         * lib/signal.in.h: Likewise.
33722         * lib/spawn.in.h: Likewise.
33723         * lib/stdio.in.h: Likewise.
33724         * lib/stdlib.in.h: Likewise.
33725         * lib/string.in.h: Likewise.
33726         * lib/strings.in.h: Likewise.
33727         * lib/sys_file.in.h: Likewise.
33728         * lib/sys_ioctl.in.h: Likewise.
33729         * lib/sys_select.in.h: Likewise.
33730         * lib/sys_socket.in.h: Likewise.
33731         * lib/sys_stat.in.h: Likewise.
33732         * lib/sys_times.in.h: Likewise.
33733         * lib/sys_utsname.in.h: Likewise.
33734         * lib/unistd.in.h: Likewise.
33735         * lib/wchar.in.h: Likewise.
33736
33737 2010-01-20  Bruno Haible  <bruno@clisp.org>
33738
33739         Avoid duplicate -lm.
33740         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33741         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33742         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33743         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33744         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33745         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33746         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33747         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33748         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33749         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33750         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33751         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33752         Reported by Paolo Bonzini.
33753
33754 2010-01-19  Bruno Haible  <bruno@clisp.org>
33755
33756         langinfo, nl_langinfo: Relicense under LGPLv2+.
33757         * modules/langinfo (License): Change to LGPLv2+.
33758         * modules/nl_langinfo (License): Likewise.
33759         Patch by David Lutterkort <lutter@redhat.com>.
33760
33761 2010-01-19  Bruno Haible  <bruno@clisp.org>
33762
33763         Avoid compilation error with cc on OSF/1 5.1.
33764         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33765         statement, not before.
33766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33767
33768 2010-01-18  Bruno Haible  <bruno@clisp.org>
33769
33770         Avoid a link error due to the __printf__ symbol.
33771         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33772         and 2.6.x.
33773         (__format__, __printf__): Remove definitions.
33774         * lib/argp-fmtstream.h: Likewise.
33775         * lib/argp.h: Likewise.
33776         * lib/error.h: Likewise.
33777         * lib/vasnprintf.h: Likewise.
33778         * lib/xprintf.h: Likewise.
33779         * lib/xvasprintf.h: Likewise.
33780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33781
33782 2010-01-18  Bruno Haible  <bruno@clisp.org>
33783
33784         Tests for module 'tanl'.
33785         * modules/tanl-tests: New file.
33786         * tests/test-tanl.c: New file.
33787
33788         Tests for module 'sqrtl'.
33789         * modules/sqrtl-tests: New file.
33790         * tests/test-sqrtl.c: New file.
33791
33792         Tests for module 'sinl'.
33793         * modules/sinl-tests: New file.
33794         * tests/test-sinl.c: New file.
33795
33796         Tests for module 'logl'.
33797         * modules/logl-tests: New file.
33798         * tests/test-logl.c: New file.
33799
33800         Tests for module 'expl'.
33801         * modules/expl-tests: New file.
33802         * tests/test-expl.c: New file.
33803
33804         Tests for module 'cosl'.
33805         * modules/cosl-tests: New file.
33806         * tests/test-cosl.c: New file.
33807
33808         Tests for module 'atanl'.
33809         * modules/atanl-tests: New file.
33810         * tests/test-atanl.c: New file.
33811
33812         Tests for module 'asinl'.
33813         * modules/asinl-tests: New file.
33814         * tests/test-asinl.c: New file.
33815
33816         Tests for module 'acosl'.
33817         * modules/acosl-tests: New file.
33818         * tests/test-acosl.c: New file.
33819
33820         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33821         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33822         tanl): Use the standard gnulib idiom.
33823         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33824         * lib/sinl.c: Likewise.
33825         * lib/tanl.c: Don't include trigl.c.
33826         (kernel_tanl): Make static.
33827         * lib/sincosl.c: Include trigl.h first.
33828         * lib/trigl.c: Likewise.
33829         * m4/acosl.m4: New file.
33830         * m4/asinl.m4: New file.
33831         * m4/atanl.m4: New file.
33832         * m4/cosl.m4: New file.
33833         * m4/expl.m4: New file.
33834         * m4/logl.m4: New file.
33835         * m4/sinl.m4: New file.
33836         * m4/sqrtl.m4: New file.
33837         * m4/tanl.m4: New file.
33838         * m4/mathl.m4: Remove file.
33839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33840         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33841         Don't initialize GNULIB_MATHL.
33842         * modules/acosl: New file.
33843         * modules/asinl: New file.
33844         * modules/atanl: New file.
33845         * modules/cosl: New file.
33846         * modules/expl: New file.
33847         * modules/logl: New file.
33848         * modules/sinl: New file.
33849         * modules/sqrtl: New file.
33850         * modules/tanl: New file.
33851         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33852         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33853         substitute GNULIB_MATHL.
33854         * modules/mathl: Rewritten.
33855         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33856         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33857         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33858         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33859         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33860         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33861         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33862         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33863         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33864
33865 2010-01-18  Bruno Haible  <bruno@clisp.org>
33866
33867         sqrt: Make gl_FUNC_SQRT requirable.
33868         * m4/sqrt.m4: New file.
33869         * modules/sqrt (Files): Add it.
33870         (configure.ac): Invoke gl_FUNC_SQRT.
33871
33872 2010-01-18  Bruno Haible  <bruno@clisp.org>
33873
33874         New modules for common <math.h> functions.
33875         * m4/mathfunc.m4: New file.
33876         * modules/acos: New file.
33877         * modules/asin: New file.
33878         * modules/atan: New file.
33879         * modules/atan2: New file.
33880         * modules/cbrt: New file.
33881         * modules/copysign: New file.
33882         * modules/cos: New file.
33883         * modules/cosh: New file.
33884         * modules/erf: New file.
33885         * modules/erfc: New file.
33886         * modules/exp: New file.
33887         * modules/fabs: New file.
33888         * modules/fmod: New file.
33889         * modules/hypot: New file.
33890         * modules/j0: New file.
33891         * modules/j1: New file.
33892         * modules/jn: New file.
33893         * modules/ldexp: New file.
33894         * modules/lgamma: New file.
33895         * modules/log: New file.
33896         * modules/log10: New file.
33897         * modules/log1p: New file.
33898         * modules/logb: New file.
33899         * modules/modf: New file.
33900         * modules/nextafter: New file.
33901         * modules/pow: New file.
33902         * modules/remainder: New file.
33903         * modules/rint: New file.
33904         * modules/sin: New file.
33905         * modules/sinh: New file.
33906         * modules/sqrt: New file.
33907         * modules/tan: New file.
33908         * modules/tanh: New file.
33909         * modules/y0: New file.
33910         * modules/y1: New file.
33911         * modules/yn: New file.
33912         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33913         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33914         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33915         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33916         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33917         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33918         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33919         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33920         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33921         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33922         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33923         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33924         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33925         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33926         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33927         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33928         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33929         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33930         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33931         * doc/posix-functions/log.texi: Mention the 'log' module.
33932         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33933         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33934         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33935         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33936         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33937         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33938         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33939         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33940         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33941         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33942         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33943         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33944         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33945         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33946         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33947         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33948
33949 2010-01-18  Jim Meyering  <meyering@redhat.com>
33950
33951         ignore-value: relax license to LGPLv2+
33952         * modules/ignore-value (License): Relax to LGPLv2+.
33953
33954         getdate: don't leak when TZ contains two or more '"'s
33955         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33956         double quote in TZ after the first one.
33957
33958         readtokens: do not leak internal token_lengths buffer
33959         * lib/readtokens.c (readtokens): Free the local, lengths,
33960         when the supplied "token_lengths" parameter is NULL.
33961
33962 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33963
33964         Fix a couple of missing LIBTHREAD link failures on AIX.
33965         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33966         $(LIBTHREAD).
33967         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33968
33969         Link test-poll against INET_PTON_LIB.
33970         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33971         for inet_pton on Solaris 10.
33972
33973 2010-01-17  Bruno Haible  <bruno@clisp.org>
33974
33975         unistdio/*-sprintf: Fix typo in module description.
33976         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33977         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33978         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33979         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33980         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33981         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33982         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33983         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33984
33985 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33986
33987         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33988         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33989         variables in shell case patterns, for AIX and HP-UX ksh.
33990
33991         Split large sed scripts, for HP-UX sed.
33992         * modules/stdio: Split sed scripts around 50 sed commands,
33993         to avoid HP-UX limit of 99 commands, in the near future.
33994         * modules/string: Likewise.
33995         * modules/unistd: Likewise.
33996
33997         gnulib-tool: avoid writing in the current directory.
33998         * gnulib-tool (func_emit_lib_Makefile_am)
33999         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34000         not in the current directory, so concurrent gnulib-tool
34001         instances do not interfere.
34002
34003 2010-01-16  Jim Meyering  <meyering@redhat.com>
34004
34005         doc: update users.txt
34006         * users.txt: Add grep.
34007         (diffutils, gzip): Update URLs.
34008
34009 2010-01-12  Bruno Haible  <bruno@clisp.org>
34010
34011         posix_spawn: Avoid test failure on Cygwin.
34012         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34013         characters.
34014         Reported by Simon Josefsson.
34015
34016 2010-01-12  Bruno Haible  <bruno@clisp.org>
34017
34018         * tests/test-cond.c (main): When skipping the test, show the reason.
34019
34020 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34021
34022         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34023
34024 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34025
34026         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34027         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34028
34029 2010-01-12  Eric Blake  <ebb9@byu.net>
34030
34031         build: guarantee AS_VAR_IF
34032         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34033         (gl_AS_VAR_IF): Move...
34034         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34035         Reported by Simon Josefsson.
34036
34037 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34038
34039         * lib/stdio.in.h: Fix typo.
34040
34041 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34042
34043         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34044         libgpg-error.
34045
34046 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34047
34048         * tests/test-xalloc-die.sh: Use $EXEEXT.
34049
34050 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34051             Bruno Haible  <bruno@clisp.org>
34052
34053         getlogin, getlogin_r: Avoid test failure.
34054         * tests/test-getlogin.c: Include <stdio.h>.
34055         (main): Skip the test when the function fails because stdin is not a
34056         tty.
34057         * tests/test-getlogin_r.c: Include <stdio.h>.
34058         (main): Skip the test when the function fails because stdin is not a
34059         tty.
34060
34061 2010-01-11  Eric Blake  <ebb9@byu.net>
34062
34063         tests: avoid more large file warnings
34064         * tests/test-fflush.c: Avoid warning about ftell use.
34065         * tests/test-fseek.c: Avoid warning about fseek use.
34066
34067 2010-01-10  Bruno Haible  <bruno@clisp.org>
34068
34069         nproc: Work better on Linux when /proc and /sys are not mounted.
34070         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34071         as lower bound when, on glibc/Linux systems,
34072         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34073         Suggested by Pádraig Brady <P@draigbrady.com>.
34074         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34075
34076         nproc: Refactor.
34077         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34078         extracted from num_processors.
34079         (num_processors): Call it.
34080
34081 2010-01-11  Jim Meyering  <meyering@redhat.com>
34082
34083         utimecmp: avoid new warning from upcoming gcc-4.5.0
34084         * lib/utimecmp.c (BILLION): Define using #define rather than an
34085         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34086
34087 2010-01-11  Eric Blake  <ebb9@byu.net>
34088
34089         math: add portability warnings for classification macros
34090         * modules/math (Depends-on): Add warn-on-use.
34091         (Makefile.am): Provide new substitutions.
34092         * m4/math_h.m4 (gl_MATH_H): Require inline.
34093         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34094         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34095         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34096         implement warnings.
34097
34098         unistd: warn on use of environ without module
34099         * modules/unistd (Depends-on): Add warn-on-use.
34100         (Makefile.am): Provide new substitutions.
34101         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34102         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34103
34104         stdio: warn on suspicious uses
34105         * modules/stdio (Depends-on): Add warn-on-use.
34106         (Makefile.am): Provide new substitutions.
34107         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34108         fseeko.
34109         * lib/stdio.in.h (gets): Always warn on use.
34110         (fseek, ftell): Adjust when warnings are issued, and honor
34111         _GL_NO_LARGE_FILES as a way to silence the warning.
34112         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34113         any warning about large file offsets.
34114         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34115         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34116         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34117         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34118         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34119         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34120         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34121         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34122
34123         warn-on-use: new module
34124         * modules/warn-on-use: New file.
34125         * build-aux/warn-on-use.h: Likewise.
34126         * m4/warn-on-use.m4: Likewise.
34127         * MODULES.html.sh (Support for building): Mention it.
34128
34129 2010-01-10  Bruno Haible  <bruno@clisp.org>
34130
34131         Tests for module 'unistr/u32-strdup'.
34132         * modules/unistr/u32-strdup-tests: New file.
34133         * tests/unistr/test-u32-strdup.c: New file.
34134
34135         Tests for module 'unistr/u16-strdup'.
34136         * modules/unistr/u16-strdup-tests: New file.
34137         * tests/unistr/test-u16-strdup.c: New file.
34138
34139         Tests for module 'unistr/u8-strdup'.
34140         * modules/unistr/u8-strdup-tests: New file.
34141         * tests/unistr/test-u8-strdup.c: New file.
34142         * tests/unistr/test-strdup.h: New file.
34143
34144         Tests for module 'unistr/u32-strncmp'.
34145         * modules/unistr/u32-strncmp-tests: New file.
34146         * tests/unistr/test-u32-strncmp.c: New file.
34147
34148         Tests for module 'unistr/u16-strncmp'.
34149         * modules/unistr/u16-strncmp-tests: New file.
34150         * tests/unistr/test-u16-strncmp.c: New file.
34151
34152         Tests for module 'unistr/u8-strncmp'.
34153         * modules/unistr/u8-strncmp-tests: New file.
34154         * tests/unistr/test-u8-strncmp.c: New file.
34155         * tests/unistr/test-strncmp.h: New file.
34156
34157         Tests for module 'unistr/u32-strcoll'.
34158         * modules/unistr/u32-strcoll-tests: New file.
34159         * tests/unistr/test-u32-strcoll.c: New file.
34160
34161         Tests for module 'unistr/u16-strcoll'.
34162         * modules/unistr/u16-strcoll-tests: New file.
34163         * tests/unistr/test-u16-strcoll.c: New file.
34164
34165         Tests for module 'unistr/u8-strcoll'.
34166         * modules/unistr/u8-strcoll-tests: New file.
34167         * tests/unistr/test-u8-strcoll.c: New file.
34168
34169         Tests for module 'unistr/u32-strcmp'.
34170         * modules/unistr/u32-strcmp-tests: New file.
34171         * tests/unistr/test-u32-strcmp.c: New file.
34172         * tests/unistr/test-u32-strcmp.h: New file.
34173
34174         Tests for module 'unistr/u16-strcmp'.
34175         * modules/unistr/u16-strcmp-tests: New file.
34176         * tests/unistr/test-u16-strcmp.c: New file.
34177         * tests/unistr/test-u16-strcmp.h: New file.
34178
34179         Tests for module 'unistr/u8-strcmp'.
34180         * modules/unistr/u8-strcmp-tests: New file.
34181         * tests/unistr/test-u8-strcmp.c: New file.
34182         * tests/unistr/test-u8-strcmp.h: New file.
34183         * tests/unistr/test-strcmp.h: New file.
34184
34185         Tests for module 'unistr/u32-strncat'.
34186         * modules/unistr/u32-strncat-tests: New file.
34187         * tests/unistr/test-u32-strncat.c: New file.
34188
34189         Tests for module 'unistr/u16-strncat'.
34190         * modules/unistr/u16-strncat-tests: New file.
34191         * tests/unistr/test-u16-strncat.c: New file.
34192
34193         Tests for module 'unistr/u8-strncat'.
34194         * modules/unistr/u8-strncat-tests: New file.
34195         * tests/unistr/test-u8-strncat.c: New file.
34196         * tests/unistr/test-strncat.h: New file.
34197
34198         Tests for module 'unistr/u32-strcat'.
34199         * modules/unistr/u32-strcat-tests: New file.
34200         * tests/unistr/test-u32-strcat.c: New file.
34201
34202         Tests for module 'unistr/u16-strcat'.
34203         * modules/unistr/u16-strcat-tests: New file.
34204         * tests/unistr/test-u16-strcat.c: New file.
34205
34206         Tests for module 'unistr/u8-strcat'.
34207         * modules/unistr/u8-strcat-tests: New file.
34208         * tests/unistr/test-u8-strcat.c: New file.
34209         * tests/unistr/test-strcat.h: New file.
34210
34211         Tests for module 'unistr/u32-stpncpy'.
34212         * modules/unistr/u32-stpncpy-tests: New file.
34213         * tests/unistr/test-u32-stpncpy.c: New file.
34214
34215         Tests for module 'unistr/u16-stpncpy'.
34216         * modules/unistr/u16-stpncpy-tests: New file.
34217         * tests/unistr/test-u16-stpncpy.c: New file.
34218
34219         Tests for module 'unistr/u8-stpncpy'.
34220         * modules/unistr/u8-stpncpy-tests: New file.
34221         * tests/unistr/test-u8-stpncpy.c: New file.
34222         * tests/unistr/test-stpncpy.h: New file.
34223
34224         Tests for module 'unistr/u32-strncpy'.
34225         * modules/unistr/u32-strncpy-tests: New file.
34226         * tests/unistr/test-u32-strncpy.c: New file.
34227
34228         Tests for module 'unistr/u16-strncpy'.
34229         * modules/unistr/u16-strncpy-tests: New file.
34230         * tests/unistr/test-u16-strncpy.c: New file.
34231
34232         Tests for module 'unistr/u8-strncpy'.
34233         * modules/unistr/u8-strncpy-tests: New file.
34234         * tests/unistr/test-u8-strncpy.c: New file.
34235         * tests/unistr/test-strncpy.h: New file.
34236
34237         Tests for module 'unistr/u32-stpcpy'.
34238         * modules/unistr/u32-stpcpy-tests: New file.
34239         * tests/unistr/test-u32-stpcpy.c: New file.
34240
34241         Tests for module 'unistr/u16-stpcpy'.
34242         * modules/unistr/u16-stpcpy-tests: New file.
34243         * tests/unistr/test-u16-stpcpy.c: New file.
34244
34245         Tests for module 'unistr/u8-stpcpy'.
34246         * modules/unistr/u8-stpcpy-tests: New file.
34247         * tests/unistr/test-u8-stpcpy.c: New file.
34248         * tests/unistr/test-stpcpy.h: New file.
34249
34250         Tests for module 'unistr/u32-strcpy'.
34251         * modules/unistr/u32-strcpy-tests: New file.
34252         * tests/unistr/test-u32-strcpy.c: New file.
34253
34254         Tests for module 'unistr/u16-strcpy'.
34255         * modules/unistr/u16-strcpy-tests: New file.
34256         * tests/unistr/test-u16-strcpy.c: New file.
34257
34258         Tests for module 'unistr/u8-strcpy'.
34259         * modules/unistr/u8-strcpy-tests: New file.
34260         * tests/unistr/test-u8-strcpy.c: New file.
34261         * tests/unistr/test-strcpy.h: New file.
34262
34263         Tests for module 'unistr/u32-strnlen'.
34264         * modules/unistr/u32-strnlen-tests: New file.
34265         * tests/unistr/test-u32-strnlen.c: New file.
34266
34267         Tests for module 'unistr/u16-strnlen'.
34268         * modules/unistr/u16-strnlen-tests: New file.
34269         * tests/unistr/test-u16-strnlen.c: New file.
34270
34271         Tests for module 'unistr/u8-strnlen'.
34272         * modules/unistr/u8-strnlen-tests: New file.
34273         * tests/unistr/test-u8-strnlen.c: New file.
34274         * tests/unistr/test-strnlen.h: New file.
34275
34276         Tests for module 'unistr/u32-strlen'.
34277         * modules/unistr/u32-strlen-tests: New file.
34278         * tests/unistr/test-u32-strlen.c: New file.
34279
34280         Tests for module 'unistr/u16-strlen'.
34281         * modules/unistr/u16-strlen-tests: New file.
34282         * tests/unistr/test-u16-strlen.c: New file.
34283
34284         Tests for module 'unistr/u8-strlen'.
34285         * modules/unistr/u8-strlen-tests: New file.
34286         * tests/unistr/test-u8-strlen.c: New file.
34287
34288         Tests for module 'unistr/u32-prev'.
34289         * modules/unistr/u32-prev-tests: New file.
34290         * tests/unistr/test-u32-prev.c: New file.
34291
34292         Tests for module 'unistr/u16-prev'.
34293         * modules/unistr/u16-prev-tests: New file.
34294         * tests/unistr/test-u16-prev.c: New file.
34295
34296         Tests for module 'unistr/u8-prev'.
34297         * modules/unistr/u8-prev-tests: New file.
34298         * tests/unistr/test-u8-prev.c: New file.
34299
34300         Tests for module 'unistr/u32-next'.
34301         * modules/unistr/u32-next-tests: New file.
34302         * tests/unistr/test-u32-next.c: New file.
34303
34304         Tests for module 'unistr/u16-next'.
34305         * modules/unistr/u16-next-tests: New file.
34306         * tests/unistr/test-u16-next.c: New file.
34307
34308         Tests for module 'unistr/u8-next'.
34309         * modules/unistr/u8-next-tests: New file.
34310         * tests/unistr/test-u8-next.c: New file.
34311
34312         Tests for module 'unistr/u32-strmbtouc'.
34313         * modules/unistr/u32-strmbtouc-tests: New file.
34314         * tests/unistr/test-u32-strmbtouc.c: New file.
34315
34316         Tests for module 'unistr/u16-strmbtouc'.
34317         * modules/unistr/u16-strmbtouc-tests: New file.
34318         * tests/unistr/test-u16-strmbtouc.c: New file.
34319
34320         Tests for module 'unistr/u8-strmbtouc'.
34321         * modules/unistr/u8-strmbtouc-tests: New file.
34322         * tests/unistr/test-u8-strmbtouc.c: New file.
34323
34324         Tests for module 'unistr/u32-strmblen'.
34325         * modules/unistr/u32-strmblen-tests: New file.
34326         * tests/unistr/test-u32-strmblen.c: New file.
34327
34328         Tests for module 'unistr/u16-strmblen'.
34329         * modules/unistr/u16-strmblen-tests: New file.
34330         * tests/unistr/test-u16-strmblen.c: New file.
34331
34332         Tests for module 'unistr/u8-strmblen'.
34333         * modules/unistr/u8-strmblen-tests: New file.
34334         * tests/unistr/test-u8-strmblen.c: New file.
34335
34336         Tests for module 'unistr/u32-cpy-alloc'.
34337         * modules/unistr/u32-cpy-alloc-tests: New file.
34338         * tests/unistr/test-u32-cpy-alloc.c: New file.
34339
34340         Tests for module 'unistr/u16-cpy-alloc'.
34341         * modules/unistr/u16-cpy-alloc-tests: New file.
34342         * tests/unistr/test-u16-cpy-alloc.c: New file.
34343
34344         Tests for module 'unistr/u8-cpy-alloc'.
34345         * modules/unistr/u8-cpy-alloc-tests: New file.
34346         * tests/unistr/test-u8-cpy-alloc.c: New file.
34347         * tests/unistr/test-cpy-alloc.h: New file.
34348
34349         Tests for module 'unistr/u32-mbsnlen'.
34350         * modules/unistr/u32-mbsnlen-tests: New file.
34351         * tests/unistr/test-u32-mbsnlen.c: New file.
34352
34353         Tests for module 'unistr/u16-mbsnlen'.
34354         * modules/unistr/u16-mbsnlen-tests: New file.
34355         * tests/unistr/test-u16-mbsnlen.c: New file.
34356
34357         Tests for module 'unistr/u8-mbsnlen'.
34358         * modules/unistr/u8-mbsnlen-tests: New file.
34359         * tests/unistr/test-u8-mbsnlen.c: New file.
34360
34361         Tests for module 'unistr/u32-chr'.
34362         * modules/unistr/u32-chr-tests: New file.
34363         * tests/unistr/test-u32-chr.c: New file.
34364
34365         Tests for module 'unistr/u16-chr'.
34366         * modules/unistr/u16-chr-tests: New file.
34367         * tests/unistr/test-u16-chr.c: New file.
34368
34369         Tests for module 'unistr/u8-chr'.
34370         * modules/unistr/u8-chr-tests: New file.
34371         * tests/unistr/test-u8-chr.c: New file.
34372         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34373
34374         Tests for module 'unistr/u32-cmp2'.
34375         * modules/unistr/u32-cmp2-tests: New file.
34376         * tests/unistr/test-u32-cmp2.c: New file.
34377
34378         Tests for module 'unistr/u16-cmp2'.
34379         * modules/unistr/u16-cmp2-tests: New file.
34380         * tests/unistr/test-u16-cmp2.c: New file.
34381
34382         Tests for module 'unistr/u8-cmp2'.
34383         * modules/unistr/u8-cmp2-tests: New file.
34384         * tests/unistr/test-u8-cmp2.c: New file.
34385         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34386
34387         Tests for module 'unistr/u32-cmp'.
34388         * modules/unistr/u32-cmp-tests: New file.
34389         * tests/unistr/test-u32-cmp.c: New file.
34390
34391         Tests for module 'unistr/u16-cmp'.
34392         * modules/unistr/u16-cmp-tests: New file.
34393         * tests/unistr/test-u16-cmp.c: New file.
34394
34395         Tests for module 'unistr/u8-cmp'.
34396         * modules/unistr/u8-cmp-tests: New file.
34397         * tests/unistr/test-u8-cmp.c: New file.
34398         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34399
34400         Tests for module 'unistr/u32-set'.
34401         * modules/unistr/u32-set-tests: New file.
34402         * tests/unistr/test-u32-set.c: New file.
34403
34404         Tests for module 'unistr/u16-set'.
34405         * modules/unistr/u16-set-tests: New file.
34406         * tests/unistr/test-u16-set.c: New file.
34407
34408         Tests for module 'unistr/u8-set'.
34409         * modules/unistr/u8-set-tests: New file.
34410         * tests/unistr/test-u8-set.c: New file.
34411         * tests/unistr/test-set.h: New file.
34412
34413         Tests for module 'unistr/u32-move'.
34414         * modules/unistr/u32-move-tests: New file.
34415         * tests/unistr/test-u32-move.c: New file.
34416
34417         Tests for module 'unistr/u16-move'.
34418         * modules/unistr/u16-move-tests: New file.
34419         * tests/unistr/test-u16-move.c: New file.
34420
34421         Tests for module 'unistr/u8-move'.
34422         * modules/unistr/u8-move-tests: New file.
34423         * tests/unistr/test-u8-move.c: New file.
34424         * tests/unistr/test-move.h: New file.
34425
34426         Tests for module 'unistr/u32-cpy'.
34427         * modules/unistr/u32-cpy-tests: New file.
34428         * tests/unistr/test-u32-cpy.c: New file.
34429
34430         Tests for module 'unistr/u16-cpy'.
34431         * modules/unistr/u16-cpy-tests: New file.
34432         * tests/unistr/test-u16-cpy.c: New file.
34433
34434         Tests for module 'unistr/u8-cpy'.
34435         * modules/unistr/u8-cpy-tests: New file.
34436         * tests/unistr/test-u8-cpy.c: New file.
34437         * tests/unistr/test-cpy.h: New file.
34438
34439 2010-01-09  Bruno Haible  <bruno@clisp.org>
34440
34441         Tests for module 'unistr/u32-uctomb'.
34442         * modules/unistr/u32-uctomb-tests: New file.
34443         * tests/unistr/test-u32-uctomb.c: New file.
34444
34445         Tests for module 'unistr/u16-uctomb'.
34446         * modules/unistr/u16-uctomb-tests: New file.
34447         * tests/unistr/test-u16-uctomb.c: New file.
34448
34449         Tests for module 'unistr/u8-uctomb'.
34450         * modules/unistr/u8-uctomb-tests: New file.
34451         * tests/unistr/test-u8-uctomb.c: New file.
34452
34453         Tests for module 'unistr/u32-mbtoucr'.
34454         * modules/unistr/u32-mbtoucr-tests: New file.
34455         * tests/unistr/test-u32-mbtoucr.c: New file.
34456
34457         Tests for module 'unistr/u16-mbtoucr'.
34458         * modules/unistr/u16-mbtoucr-tests: New file.
34459         * tests/unistr/test-u16-mbtoucr.c: New file.
34460
34461         Tests for module 'unistr/u8-mbtoucr'.
34462         * modules/unistr/u8-mbtoucr-tests: New file.
34463         * tests/unistr/test-u8-mbtoucr.c: New file.
34464
34465         Tests for module 'unistr/u32-mbtouc'.
34466         * modules/unistr/u32-mbtouc-tests: New file.
34467         * tests/unistr/test-u32-mbtouc.c: New file.
34468
34469         Tests for module 'unistr/u16-mbtouc'.
34470         * modules/unistr/u16-mbtouc-tests: New file.
34471         * tests/unistr/test-u16-mbtouc.c: New file.
34472
34473         Tests for module 'unistr/u8-mbtouc'.
34474         * modules/unistr/u8-mbtouc-tests: New file.
34475         * tests/unistr/test-u8-mbtouc.c: New file.
34476
34477         Tests for module 'unistr/u32-mbtouc-unsafe'.
34478         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34479         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34480         * tests/unistr/test-u32-mbtouc.h: New file.
34481
34482         Tests for module 'unistr/u16-mbtouc-unsafe'.
34483         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34484         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34485         * tests/unistr/test-u16-mbtouc.h: New file.
34486
34487         Tests for module 'unistr/u8-mbtouc-unsafe'.
34488         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34489         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34490         * tests/unistr/test-u8-mbtouc.h: New file.
34491
34492         Tests for module 'unistr/u32-mblen'.
34493         * modules/unistr/u32-mblen-tests: New file.
34494         * tests/unistr/test-u32-mblen.c: New file.
34495
34496         Tests for module 'unistr/u16-mblen'.
34497         * modules/unistr/u16-mblen-tests: New file.
34498         * tests/unistr/test-u16-mblen.c: New file.
34499
34500         Tests for module 'unistr/u8-mblen'.
34501         * modules/unistr/u8-mblen-tests: New file.
34502         * tests/unistr/test-u8-mblen.c: New file.
34503
34504         Tests for module 'unistr/u32-to-u16'.
34505         * modules/unistr/u32-to-u16-tests: New file.
34506         * tests/unistr/test-u32-to-u16.c: New file.
34507
34508         Tests for module 'unistr/u32-to-u8'.
34509         * modules/unistr/u32-to-u8-tests: New file.
34510         * tests/unistr/test-u32-to-u8.c: New file.
34511
34512         Tests for module 'unistr/u16-to-u32'.
34513         * modules/unistr/u16-to-u32-tests: New file.
34514         * tests/unistr/test-u16-to-u32.c: New file.
34515
34516         Tests for module 'unistr/u16-to-u8'.
34517         * modules/unistr/u16-to-u8-tests: New file.
34518         * tests/unistr/test-u16-to-u8.c: New file.
34519
34520         Tests for module 'unistr/u8-to-u32'.
34521         * modules/unistr/u8-to-u32-tests: New file.
34522         * tests/unistr/test-u8-to-u32.c: New file.
34523
34524         Tests for module 'unistr/u8-to-u16'.
34525         * modules/unistr/u8-to-u16-tests: New file.
34526         * tests/unistr/test-u8-to-u16.c: New file.
34527
34528         Tests for module 'unistr/u32-check'.
34529         * modules/unistr/u32-check-tests: New file.
34530         * tests/unistr/test-u32-check.c: New file.
34531
34532         Tests for module 'unistr/u16-check'.
34533         * modules/unistr/u16-check-tests: New file.
34534         * tests/unistr/test-u16-check.c: New file.
34535
34536         Tests for module 'unistr/u8-check'.
34537         * modules/unistr/u8-check-tests: New file.
34538         * tests/unistr/test-u8-check.c: New file.
34539
34540         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34541         (category_equals): New function.
34542         (main): Add more tests.
34543         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34544
34545         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34546
34547 2010-01-10  Bruno Haible  <bruno@clisp.org>
34548
34549         unistr/u*-strcoll: Try harder to distinguish different strings.
34550         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34551         compare s1 and s2 to see if they are different.
34552
34553 2010-01-10  Bruno Haible  <bruno@clisp.org>
34554
34555         unistr/u*-stpncpy: Fix the return value.
34556         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34557         description of the return value consistent with stpncpy in glibc.
34558         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34559         written non-NUL unit.
34560
34561 2010-01-10  Bruno Haible  <bruno@clisp.org>
34562
34563         unistr/u*-next: Add missing dependencies.
34564         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34565         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34566         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34567
34568 2010-01-10  Bruno Haible  <bruno@clisp.org>
34569
34570         unistr/u8-mbsnlen: Fix return value for incomplete character.
34571         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34572         u8_mblen.
34573         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34574         Remove unistr/u8-mblen.
34575         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34576         u16_mblen.
34577         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34578         Remove unistr/u16-mblen.
34579
34580 2010-01-10  Bruno Haible  <bruno@clisp.org>
34581
34582         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34583         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34584         Reported by Brian Gough <bjg@gnu.org> and
34585         Chris Clayton <chris2553@googlemail.com> via
34586         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34587
34588 2010-01-09  Bruno Haible  <bruno@clisp.org>
34589
34590         unistr/u16-to-u32: Reject invalid input.
34591         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34592         u16_mbtouc.
34593         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34594         Remove unistr/u16-mbtouc.
34595
34596         unistr/u16-to-u8: Reject invalid input.
34597         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34598         u16_mbtouc.
34599         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34600         Remove unistr/u16-mbtouc.
34601
34602         unistr/u8-to-u32: Reject invalid input.
34603         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34604         u8_mbtouc.
34605         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34606         Remove unistr/u8-mbtouc.
34607
34608         unistr/u8-to-u16: Reject invalid input.
34609         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34610         u8_mbtouc.
34611         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34612         Remove unistr/u8-mbtouc.
34613
34614 2010-01-09  Bruno Haible  <bruno@clisp.org>
34615
34616         Tests for module 'getlogin'.
34617         * modules/getlogin-tests: New file.
34618         * tests/test-getlogin.c: New file.
34619
34620         New module 'getlogin'.
34621         * lib/unistd.in.h (getlogin): New declaration.
34622         * lib/getlogin.c: New file.
34623         * m4/getlogin.m4: New file.
34624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34625         HAVE_GETLOGIN.
34626         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34627         HAVE_GETLOGIN.
34628         * modules/getlogin: New file.
34629         * doc/posix-functions/getlogin.texi: Mention the new module.
34630         Reported by John W. Eaton <jwe@gnu.org>.
34631
34632 2010-01-09  Bruno Haible  <bruno@clisp.org>
34633
34634         getlogin_r: Support for native Windows.
34635         * lib/getlogin_r.c: Include <windows.h>
34636         (getlogin_r): Implement for native Windows.
34637         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34638         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34639         via John W. Eaton <jwe@gnu.org>.
34640
34641 2010-01-09  Bruno Haible  <bruno@clisp.org>
34642
34643         getlogin_r: Small fixes.
34644         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34645         succeeds.
34646         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34647         before testing whether getlogin_r is declared. No need to set
34648         HAVE_DECL_GETLOGIN_R to 1.
34649         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34650
34651 2010-01-09  Bruno Haible  <bruno@clisp.org>
34652
34653         * lib/unistd.in.h (getlogin_r): Add comment.
34654
34655 2010-01-09  Bruno Haible  <bruno@clisp.org>
34656
34657         Tests for module 'getlogin_r'.
34658         * modules/getlogin_r-tests: New file.
34659         * tests/test-getlogin_r.c: New file.
34660
34661 2010-01-09  Jim Meyering  <meyering@redhat.com>
34662
34663         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34664         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34665         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34666
34667 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34668
34669         * lib/dup2.c (rpl_dup2): Improve comment.
34670
34671 2010-01-08  Eric Blake  <ebb9@byu.net>
34672
34673         maint.mk: allow packages to add makefile @@ exceptions
34674         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34675         (sc_makefile_check): Rename...
34676         (sc_makefile_at_at_check): ...to this, and use hook.
34677
34678         dup2: work around mingw bug
34679         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34680         Reported by Simon Josefsson.
34681
34682 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34683
34684         glob: Fix C++ compilation.
34685         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34686         C++.
34687
34688 2010-01-07  Bruno Haible  <bruno@clisp.org>
34689
34690         Fix indentation of wctype.in.h, broken since 2007-01-06.
34691         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34692
34693 2010-01-07  Bruno Haible  <bruno@clisp.org>
34694
34695         mbslen: Avoid collision with system function.
34696         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34697         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34698         * m4/mbslen.m4: New file.
34699         * modules/mbslen (Files): Add it.
34700         (configure.ac): Invoke gl_MBSLEN.
34701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34702         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34703         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34704         via Ian Beckwith <ianb@erislabs.net>.
34705
34706 2010-01-07  Bruno Haible  <bruno@clisp.org>
34707
34708         dirent: Document the last fix.
34709         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34710
34711 2010-01-07  Bruno Haible  <bruno@clisp.org>
34712
34713         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34714         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34715         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34716         va_list are defined.
34717         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34718         Reported by Eric Blake.
34719
34720 2010-01-07  Bruno Haible  <bruno@clisp.org>
34721
34722         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34723         * modules/xlist (Depends-on): Add 'list',
34724         * modules/xoset (Depends-on): Add 'oset'.
34725         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34726
34727 2010-01-07  Bruno Haible  <bruno@clisp.org>
34728
34729         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34730         * doc/posix-functions/strncasecmp.texi: Likewise.
34731
34732 2010-01-07  Bruno Haible  <bruno@clisp.org>
34733
34734         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34735
34736 2010-01-07  John W. Eaton  <jwe@octave.org>
34737
34738         wctype: allow C++ use
34739         * lib/wctype.in.h: Add extern "C" block for C++.
34740
34741 2010-01-06  Eric Blake  <ebb9@byu.net>
34742
34743         maint.mk: detect incorrect GFDL usage
34744         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34745
34746 2010-01-06  Jim Meyering  <meyering@redhat.com>
34747         and Eric Blake  <ebb9@byu.net>
34748
34749         maint.mk: ignore multi-line copyright in NEWS
34750         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34751
34752 2010-01-06  Eric Blake  <ebb9@byu.net>
34753
34754         select: add missing dependency
34755         * modules/select-tests (Depends-on): Move sockets dependency...
34756         * modules/select (Depends-on): ...here.
34757         Reported by Ian Beckwith.
34758
34759         doc: regenerate INSTALL
34760         * doc/INSTALL: Reflect recent autoconf update.
34761         * doc/INSTALL.ISO: Likewise.
34762         * doc/INSTALL.UTF-8: Likewise.
34763
34764         pread: fix compilation on glibc
34765         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34766         Reported by Ralf Wildenhues.
34767
34768         dirent: fix test failure
34769         * lib/dirent.in.h (includes): Guarantee ino_t.
34770         Reported by Ralf Wildenhues.
34771
34772 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34773
34774         linkat, renameat: avoid bad free
34775         * lib/at-func2.c (at_func2): Fix typo.
34776         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34777
34778 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34779
34780         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34781         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34782         to avoid failure of symlink test later.
34783
34784 2010-01-06  Eric Blake  <ebb9@byu.net>
34785
34786         stdio, unistd: guarantee ssize_t
34787         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34788         2008 are exposed when needed.
34789         * lib/stdio.in.h (includes): Likewise.
34790         Reported by Ralf Wildenhues.
34791
34792 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34793
34794         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34795         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34796         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34797
34798 2010-01-06  Jim Meyering  <meyering@redhat.com>
34799
34800         readtokens: this module *does* require xalloc.h
34801         It uses only functions that were omitted by the old syntax-check rule.
34802         * lib/readtokens.c: Include "xalloc.h" once again.
34803         * modules/readtokens (Depends-on): Add xalloc.
34804         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34805
34806 2010-01-05  Eric Blake  <ebb9@byu.net>
34807
34808         maint: support 'make announcement' from a VPATH build
34809         * top/maint.mk (announcement): Look for correct NEWS file.
34810
34811 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34812
34813         utimens (fdutimens): ignore a negative FD, per contract
34814         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34815         when we have a valid file descriptor.  Otherwise, using a brand
34816         new glibc (with just-patched futimens that now fails with EBADF)
34817         would cause this function to fail with ENOSYS.
34818         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34819         See also http://bugzilla.redhat.com/552320.
34820
34821 2010-01-05  Eric Blake  <ebb9@byu.net>
34822
34823         strcase: document what it provides
34824         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34825         gnulib module.
34826         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34827         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34828
34829 2010-01-05  Jim Meyering  <meyering@redhat.com>
34830
34831         maint: remove useless inclusions of "xalloc.h"
34832         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34833         * lib/readtokens.c: Likewise.
34834         * lib/same.c: Likewise.
34835         * modules/getloadavg (Depends-on): Remove xalloc.
34836         * modules/readtokens: Likewise.
34837         * modules/same: Likewise.
34838
34839         maint.mk: include 4 more function names in alloca.h-checking regexp
34840         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34841         regexp.  Before, we would give a false-positive (saying alloca.h
34842         is included unnecessarily) when the only uses involved omitted symbols.
34843
34844         xalloc.h: use consistent formatting
34845         * lib/xalloc.h: Move declarations to start in the first column.
34846
34847 2010-01-05  Eric Blake  <ebb9@byu.net>
34848
34849         mkdir: avoid xalloc
34850         * lib/mkdir.c (includes): Drop unused header.
34851         Reported by John W. Eaton.
34852
34853 2010-01-04  Jim Meyering  <meyering@redhat.com>
34854
34855         nl_langinfo: avoid configure-time syntax error
34856         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34857         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34858         the empty string.  Don't let that provoke a shell syntax error.
34859
34860         regcomp, regexec, fnmatch: avoid array bounds read error
34861         * lib/regcomp.c (build_equiv_class): From glibc:
34862         Use only the low 24 bits of a findidx return value as an index
34863         into the weights array.  Patch by Ulrich Drepper:
34864         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34865         * lib/regexec.c (check_node_accept_bytes): Likewise.
34866         * lib/fnmatch_loop.c (FCT): Likewise.
34867
34868         regcomp: skip collseq lookup when there are no rules
34869         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34870         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34871
34872         regcomp: recognize ill-formed { } expressions
34873         * lib/regcomp.c (parse_dup_op): From glibc:
34874         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34875
34876         regcomp: fix typo in comment
34877         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34878         s/satisfy/satisfies/.
34879
34880         regcomp: sync from glibc: remove dead store
34881         * lib/regcomp.c (duplicate_node_closure): Remove useless
34882         search_duplicated_node call and dead store.
34883
34884         regcomp: sync from glibc; always use nl_langinfo
34885         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34886         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34887         * modules/regex (Depends-on): Add nl_langinfo.
34888
34889 2010-01-04  Eric Blake  <ebb9@byu.net>
34890
34891         fdopendir: fix configure test
34892         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34893
34894 2010-01-01  Bruno Haible  <bruno@clisp.org>
34895
34896         wchar: Remove unused configure check.
34897         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34898
34899 2010-01-01  Eric Blake  <ebb9@byu.net>
34900
34901         headers: make check of system header explicit
34902         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34903         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34904         ourselves.
34905         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34906         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34907         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34908         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34909         internals.
34910         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34911         missing.
34912         Suggested by Bruno Haible.
34913
34914 2010-01-01  Jim Meyering  <meyering@redhat.com>
34915
34916         ChangeLog: tweak to eliminate unnecessary copyright line
34917         * ChangeLog: Remove a copyright line that was mistakenly updated
34918         by today's update-copyright run.  Reported by Eric Blake.
34919
34920         test-update-copyright: don't let envvar setting cause test failure
34921         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34922
34923 2010-01-01  Bruno Haible  <bruno@clisp.org>
34924
34925         localename: Avoid gcc warning.
34926         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34927         function if it is not used.
34928
34929 2010-01-01  Jim Meyering  <meyering@redhat.com>
34930
34931         update nearly all FSF copyright year lists to include 2010
34932         Use the same procedure as for 2009, outlined in
34933         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34934
34935         version-etc: set COPYRIGHT_YEAR to 2010
34936         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34937
34938 2009-12-31  Eric Blake  <ebb9@byu.net>
34939
34940         doc: correct availability of cygwin 1.5.x getopt
34941         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34942         variables.
34943         * doc/posix-functions/opterr.texi (opterr): Likewise.
34944         * doc/posix-functions/optind.texi (optind): Likewise.
34945         * doc/posix-functions/optopt.texi (optopt): Likewise.
34946         * doc/posix-functions/tzname.texi (tzname): Likewise.
34947
34948         openat: update maintainer
34949         * modules/openat (Maintainer): Add myself.
34950
34951         utimens: avoid shadowing warning
34952         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34953         buffers into one, to avoid shadowing, as well as avoiding a
34954         redundant stat.
34955         Reported by Jim Meyering.
34956
34957         test-dup2: avoid compiler warning
34958         * tests/test-dup2.c (is_inheritable): Only define if used.
34959
34960 2010-01-01  Bruno Haible  <bruno@clisp.org>
34961
34962         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34963         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34964         defined, use wctomb instead of wcrtomb.
34965
34966 2010-01-01  Bruno Haible  <bruno@clisp.org>
34967
34968         iconv: Reject native Solaris iconv.
34969         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34970         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34971
34972 2009-12-31  Bruno Haible  <bruno@clisp.org>
34973
34974         * tests/test-signal.c (main): Remove test of 'SIG'.
34975
34976 2009-12-31  Bruno Haible  <bruno@clisp.org>
34977
34978         spawn: Fix incomplete fix.
34979         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34980         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34981         warnings for GNULIB_POSIXCHECK again.
34982         Reported by Eric Blake.
34983
34984 2009-12-31  Bruno Haible  <bruno@clisp.org>
34985
34986         Avoid namespace pollution on glibc systems.
34987         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34988         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34989         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34990         glibc systems.
34991
34992 2009-12-31  Bruno Haible  <bruno@clisp.org>
34993
34994         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34995         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34996         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34997         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34998         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34999         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35000         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35001
35002 2009-12-31  Bruno Haible  <bruno@clisp.org>
35003
35004         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35005         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35006         afterwards.
35007
35008 2009-12-31  Bruno Haible  <bruno@clisp.org>
35009
35010         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35011         SYS_UTSNAME_H.
35012
35013 2009-12-31  Bruno Haible  <bruno@clisp.org>
35014
35015         spawn: Fix misapplied patch.
35016         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35017         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35018         warnings for GNULIB_POSIXCHECK.
35019
35020 2009-12-31  Bruno Haible  <bruno@clisp.org>
35021
35022         times: Update after sys_times changed.
35023         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35024         * modules/times (Files): Add it.
35025         (configure.ac): Invoke gl_FUNC_TIMES.
35026
35027 2009-12-31  Bruno Haible  <bruno@clisp.org>
35028
35029         Use AC_C_INLINE where necessary.
35030         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35031         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35032         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35033         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35034         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35035         * m4/mbiter.m4 (gl_MBITER): Likewise.
35036         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35037         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35038         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35039         * modules/u64 (configure.ac): Likewise.
35040
35041 2009-12-31  Bruno Haible  <bruno@clisp.org>
35042
35043         Use AC_C_INLINE instead of module 'inline' where possible.
35044         * modules/inline (Description): Clarify purpose.
35045         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35046         * modules/count-one-bits (Depends-on): Remove inline.
35047         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35048         * modules/openat (Depends-on): Remove inline.
35049         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35050         instead of depending on module 'inline'.
35051         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35052         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35053         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35054         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35055         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35056         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35057         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35058         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35059         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35060         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35061         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35062         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35063         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35064         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35065         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35066         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35067         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35068         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35069         Likewise.
35070         * modules/unictype/property-ascii-hex-digit (Depends-on,
35071         configure.ac): Likewise.
35072         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35073         configure.ac): Likewise.
35074         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35075         configure.ac): Likewise.
35076         * modules/unictype/property-bidi-block-separator (Depends-on,
35077         configure.ac): Likewise.
35078         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35079         configure.ac): Likewise.
35080         * modules/unictype/property-bidi-common-separator (Depends-on,
35081         configure.ac): Likewise.
35082         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35083         Likewise.
35084         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35085         configure.ac): Likewise.
35086         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35087         configure.ac): Likewise.
35088         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35089         configure.ac): Likewise.
35090         * modules/unictype/property-bidi-european-digit (Depends-on,
35091         configure.ac): Likewise.
35092         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35093         configure.ac): Likewise.
35094         * modules/unictype/property-bidi-left-to-right (Depends-on,
35095         configure.ac): Likewise.
35096         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35097         configure.ac): Likewise.
35098         * modules/unictype/property-bidi-other-neutral (Depends-on,
35099         configure.ac): Likewise.
35100         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35101         Likewise.
35102         * modules/unictype/property-bidi-segment-separator (Depends-on,
35103         configure.ac): Likewise.
35104         * modules/unictype/property-bidi-whitespace (Depends-on,
35105         configure.ac): Likewise.
35106         * modules/unictype/property-combining (Depends-on, configure.ac):
35107         Likewise.
35108         * modules/unictype/property-composite (Depends-on, configure.ac):
35109         Likewise.
35110         * modules/unictype/property-currency-symbol (Depends-on,
35111         configure.ac): Likewise.
35112         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35113         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35114         Likewise.
35115         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35116         configure.ac): Likewise.
35117         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35118         Likewise.
35119         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35120         Likewise.
35121         * modules/unictype/property-extender (Depends-on, configure.ac):
35122         Likewise.
35123         * modules/unictype/property-format-control (Depends-on, configure.ac):
35124         Likewise.
35125         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35126         Likewise.
35127         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35128         Likewise.
35129         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35130         Likewise.
35131         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35132         Likewise.
35133         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35134         Likewise.
35135         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35136         Likewise.
35137         * modules/unictype/property-id-start (Depends-on, configure.ac):
35138         Likewise.
35139         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35140         Likewise.
35141         * modules/unictype/property-ids-binary-operator (Depends-on,
35142         configure.ac): Likewise.
35143         * modules/unictype/property-ids-trinary-operator (Depends-on,
35144         configure.ac): Likewise.
35145         * modules/unictype/property-ignorable-control (Depends-on,
35146         configure.ac): Likewise.
35147         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35148         Likewise.
35149         * modules/unictype/property-join-control (Depends-on, configure.ac):
35150         Likewise.
35151         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35152         Likewise.
35153         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35154         Likewise.
35155         * modules/unictype/property-logical-order-exception (Depends-on,
35156         configure.ac): Likewise.
35157         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35158         Likewise.
35159         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35160         * modules/unictype/property-non-break (Depends-on, configure.ac):
35161         Likewise.
35162         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35163         Likewise.
35164         * modules/unictype/property-numeric (Depends-on, configure.ac):
35165         Likewise.
35166         * modules/unictype/property-other-alphabetic (Depends-on,
35167         configure.ac): Likewise.
35168         * modules/unictype/property-other-default-ignorable-code-point
35169         (Depends-on, configure.ac): Likewise.
35170         * modules/unictype/property-other-grapheme-extend (Depends-on,
35171         configure.ac): Likewise.
35172         * modules/unictype/property-other-id-continue (Depends-on,
35173         configure.ac): Likewise.
35174         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35175         Likewise.
35176         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35177         Likewise.
35178         * modules/unictype/property-other-math (Depends-on, configure.ac):
35179         Likewise.
35180         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35181         Likewise.
35182         * modules/unictype/property-paired-punctuation (Depends-on,
35183         configure.ac): Likewise.
35184         * modules/unictype/property-paragraph-separator (Depends-on,
35185         configure.ac): Likewise.
35186         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35187         Likewise.
35188         * modules/unictype/property-pattern-white-space (Depends-on,
35189         configure.ac): Likewise.
35190         * modules/unictype/property-private-use (Depends-on, configure.ac):
35191         Likewise.
35192         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35193         Likewise.
35194         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35195         Likewise.
35196         * modules/unictype/property-radical (Depends-on, configure.ac):
35197         Likewise.
35198         * modules/unictype/property-sentence-terminal (Depends-on,
35199         configure.ac): Likewise.
35200         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35201         Likewise.
35202         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35203         * modules/unictype/property-terminal-punctuation (Depends-on,
35204         configure.ac): Likewise.
35205         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35206         Likewise.
35207         * modules/unictype/property-unassigned-code-value (Depends-on,
35208         configure.ac): Likewise.
35209         * modules/unictype/property-unified-ideograph (Depends-on,
35210         configure.ac): Likewise.
35211         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35212         Likewise.
35213         * modules/unictype/property-variation-selector (Depends-on,
35214         configure.ac): Likewise.
35215         * modules/unictype/property-white-space (Depends-on, configure.ac):
35216         Likewise.
35217         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35218         Likewise.
35219         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35220         Likewise.
35221         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35222         Likewise.
35223         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35224         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35225         Likewise.
35226
35227 2009-12-31  Bruno Haible  <bruno@clisp.org>
35228
35229         Remove unnecessary AC_C_INLINE invocation.
35230         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35231         since 2009-08-21.
35232
35233 2009-12-31  Jim Meyering  <meyering@redhat.com>
35234
35235         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35236         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35237         With this change, we can all remove the gpg_key_ID = ... definition
35238         from our respective cfg.mk files.
35239
35240         maint.mk: create announcement template in ~/, not in /tmp
35241         * top/maint.mk (emit_upload_commands): Adjust.
35242         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35243         Remove temporary file, .ci-msg.
35244
35245 2009-12-31  Eric Blake  <ebb9@byu.net>
35246
35247         link-warning: always build headers with link warnings
35248         * modules/arpa_inet (Makefile.am): Always build replacement
35249         header.
35250         * modules/ctype (Makefile.am): Likewise.
35251         * modules/dirent (Makefile.am): Likewise.
35252         * modules/inttypes (Makefile.am): Likewise.
35253         * modules/langinfo (Makefile.am): Likewise.
35254         * modules/locale (Makefile.am): Likewise.
35255         * modules/spawn (Makefile.am): Likewise.
35256         * modules/sys_file (Makefile.am): Likewise.
35257         * modules/sys_ioctl (Makefile.am): Likewise.
35258         * modules/sys_select (Makefile.am): Likewise.
35259         * modules/sys_socket (Makefile.am): Likewise.
35260         * modules/sys_times (Makefile.am): Likewise.
35261         * modules/sys_utsname (Makefile.am): Likewise.
35262         * modules/sys_wait (Makefile.am): Likewise.
35263         * modules/wchar (Makefile.am): Likewise.
35264         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35265         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35266         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35267         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35268         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35269         Likewise.
35270         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35271         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35272         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35273         Likewise.
35274         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35275         Likewise.
35276         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35277         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35278         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35279         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35280         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35281         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35282         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35283         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35284         (gl_WCHAR_H_DEFAULTS): Likewise.
35285
35286 2009-12-31  Eric Blake  <ebb9@byu.net>
35287
35288         signal, spawn: use link warnings
35289         * lib/signal.in.h (sigset_t): Make unconditional.
35290         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35291         (sigpending, sigprocmask, sigaction): Add link warnings.
35292         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35293         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35294         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35295         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35296         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35297         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35298         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35299         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35300         (posix_spawn_file_actions_destroy)
35301         (posix_spawn_file_actions_addopen)
35302         (posix_spawn_file_actions_addclose)
35303         (posix_spawn_file_actions_adddup2): Likewise.
35304         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35305         * tests/test-signal.c (main): Enhance test.
35306
35307         spawn: improve wrapper support
35308         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35309         (gl_SPAWN_H_DEFAULTS): New defaults.
35310         * modules/spawn (Makefile.am): Substitute them.
35311         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35312         Only declare if missing or broken.
35313
35314         sys_times, sys_utsname: use include_next
35315         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35316         header.
35317         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35318         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35319         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35320         * modules/sys_times (Depends-on): Add include_next.
35321         (Makefile.am): Substitute additional values.
35322         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35323         * lib/sys_times.in.h (includes): Include native header, if
35324         available.
35325         * lib/sys_utsname.in.h (includes): Likewise.
35326         * tests/test-sys_times.c (main): Enhance test.
35327
35328         fdutimensat: revert prior patch
35329         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35330         utimens.h.
35331         Reported by Bruno Haible.
35332
35333 2009-12-30  Eric Blake  <ebb9@byu.net>
35334
35335         sys_wait: drop link-warning dependency
35336         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35337         link-warning efforts.
35338         * lib/sys_wait.in.h: Likewise.
35339
35340         fdutimensat: remove bogus dependency
35341         * modules/fdutimensat (Depends-on): Drop inline.
35342
35343         unistd: fix typo
35344         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35345
35346 2009-12-30  Bruno Haible  <bruno@clisp.org>
35347
35348         Fix compilation error with Solaris cc.
35349         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35350         * lib/unicase/u16-is-invariant.c: Likewise.
35351         * lib/unicase/u32-is-invariant.c: Likewise.
35352         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35353
35354 2009-12-30  Bruno Haible  <bruno@clisp.org>
35355
35356         Fix test crash.
35357         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35358         locales.
35359         Reported by Simon Josefsson <simon@josefsson.org>.
35360
35361 2009-12-30  Bruno Haible  <bruno@clisp.org>
35362
35363         Fix compilation error on most platforms.
35364         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35365         Reported by Simon Josefsson <simon@josefsson.org>
35366         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35367
35368 2009-12-30  Eric Blake  <ebb9@byu.net>
35369
35370         futimens, utimensat: work around ntfs-3g bug
35371         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35372         a ctime bug is present, and expand workaround to cover ntfs-3g.
35373         * lib/utimens.c (fdutimens, lutimens): Likewise.
35374         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35375         (validate_timespec): Adjust return value.
35376         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35377         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35378         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35379
35380 2009-12-29  Eric Blake  <ebb9@byu.net>
35381
35382         link-warning: make usage consistent
35383         * modules/ctype (Depends-on): Add link-warning.
35384         (Makefile.am): Update rules accordingly.
35385         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35386         * modules/locale (Depends-on, Makefile.am): Likewise.
35387         * modules/sys_file (Makefile.am): Likewise.
35388         * modules/getopt-posix (Makefile.am): Delete unused link warning
35389         efforts.
35390         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35391         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35392         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35393         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35394
35395         stdio: remove unused variables
35396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35397         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35398         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35399
35400         tests: test more substitute headers
35401         * modules/ctype-tests: New file.
35402         * modules/dirent-tests: Likewise.
35403         * modules/spawn-tests: Likewise.
35404         * modules/sys_file-tests: Likewise.
35405         * modules/sys_ioctl-tests: Likewise.
35406         * modules/sys_wait-tests: Likewise.
35407         * tests/test-ctype.c: Likewise.
35408         * tests/test-dirent.c: Likewise.
35409         * tests/test-spawn.c: Likewise.
35410         * tests/test-sys_file.c: Likewise.
35411         * tests/test-sys_ioctl.c: Likewise.
35412         * tests/test-sys_wait.c: Likewise.
35413         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35414         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35415         whether or not flock is in use.
35416
35417         tests: remove License section from module
35418         * modules/arpa_inet-tests: Remove unneeded section.
35419         * modules/byteswap-tests: Likewise.
35420         * modules/ceilf-tests: Likewise.
35421         * modules/ceill-tests: Likewise.
35422         * modules/crypto/des-tests: Likewise.
35423         * modules/crypto/gc-arcfour-tests: Likewise.
35424         * modules/crypto/gc-arctwo-tests: Likewise.
35425         * modules/crypto/gc-des-tests: Likewise.
35426         * modules/crypto/gc-hmac-md5-tests: Likewise.
35427         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35428         * modules/crypto/gc-md2-tests: Likewise.
35429         * modules/crypto/gc-md4-tests: Likewise.
35430         * modules/crypto/gc-md5-tests: Likewise.
35431         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35432         * modules/crypto/gc-rijndael-tests: Likewise.
35433         * modules/crypto/gc-sha1-tests: Likewise.
35434         * modules/crypto/gc-tests: Likewise.
35435         * modules/crypto/md2-tests: Likewise.
35436         * modules/crypto/md4-tests: Likewise.
35437         * modules/fcntl-h-tests: Likewise.
35438         * modules/floorf-tests: Likewise.
35439         * modules/floorl-tests: Likewise.
35440         * modules/frexp-nolibm-tests: Likewise.
35441         * modules/frexp-tests: Likewise.
35442         * modules/frexpl-nolibm-tests: Likewise.
35443         * modules/frexpl-tests: Likewise.
35444         * modules/getaddrinfo-tests: Likewise.
35445         * modules/inttypes-tests: Likewise.
35446         * modules/isfinite-tests: Likewise.
35447         * modules/isinf-tests: Likewise.
35448         * modules/ldexpl-tests: Likewise.
35449         * modules/locale-tests: Likewise.
35450         * modules/math-tests: Likewise.
35451         * modules/netdb-tests: Likewise.
35452         * modules/netinet_in-tests: Likewise.
35453         * modules/printf-frexp-tests: Likewise.
35454         * modules/printf-frexpl-tests: Likewise.
35455         * modules/priv-set-tests: Likewise.
35456         * modules/random_r-tests: Likewise.
35457         * modules/round-tests: Likewise.
35458         * modules/roundf-tests: Likewise.
35459         * modules/roundl-tests: Likewise.
35460         * modules/search-tests: Likewise.
35461         * modules/select-tests: Likewise.
35462         * modules/signal-tests: Likewise.
35463         * modules/stdbool-tests: Likewise.
35464         * modules/stddef-tests: Likewise.
35465         * modules/stdint-tests: Likewise.
35466         * modules/stdio-tests: Likewise.
35467         * modules/stdlib-tests: Likewise.
35468         * modules/string-tests: Likewise.
35469         * modules/strings-tests: Likewise.
35470         * modules/sys_select-tests: Likewise.
35471         * modules/sys_socket-tests: Likewise.
35472         * modules/sys_stat-tests: Likewise.
35473         * modules/sys_time-tests: Likewise.
35474         * modules/sys_utsname-tests: Likewise.
35475         * modules/sysexits-tests: Likewise.
35476         * modules/time-tests: Likewise.
35477         * modules/trunc-tests: Likewise.
35478         * modules/truncf-tests: Likewise.
35479         * modules/truncl-tests: Likewise.
35480         * modules/tsearch-tests: Likewise.
35481         * modules/unistd-tests: Likewise.
35482         * modules/wchar-tests: Likewise.
35483         * modules/wctype-tests: Likewise.
35484
35485         tests: fix license on several tests
35486         * tests/test-des.c: Update to GPLv3+.
35487         * tests/test-flock.c: Likewise.
35488         * tests/test-fsync.c: Likewise.
35489         * tests/test-futimens.h: Likewise.
35490         * tests/test-gc-arcfour.c: Likewise.
35491         * tests/test-gc-arctwo.c: Likewise.
35492         * tests/test-gc-des.c: Likewise.
35493         * tests/test-gc-hmac-md5.c: Likewise.
35494         * tests/test-gc-hmac-sha1.c: Likewise.
35495         * tests/test-gc-md2.c: Likewise.
35496         * tests/test-gc-md4.c: Likewise.
35497         * tests/test-gc-md5.c: Likewise.
35498         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35499         * tests/test-gc-rijndael.c: Likewise.
35500         * tests/test-gc-sha1.c: Likewise.
35501         * tests/test-gc.c: Likewise.
35502         * tests/test-getcwd.c: Likewise.
35503         * tests/test-link.c: Likewise.
35504         * tests/test-link.h: Likewise.
35505         * tests/test-lutimens.h: Likewise.
35506         * tests/test-md2.c: Likewise.
35507         * tests/test-md4.c: Likewise.
35508         * tests/test-mkdir.h: Likewise.
35509         * tests/test-rename.c: Likewise.
35510         * tests/test-rename.h: Likewise.
35511         * tests/test-safe-alloc.c: Likewise.
35512         * tests/test-utimens-common.h: Likewise.
35513         * tests/test-utimens.h: Likewise.
35514
35515         maint: sync license texts
35516         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35517         * doc/gpl-3.0.texi: Revert copyright year update.
35518         * doc/lgpl-3.0.texi: Likewise.
35519
35520 2009-12-29  Jim Meyering  <meyering@redhat.com>
35521
35522         update nearly all FSF copyright year lists to include 2009
35523         The files named by the following are exempted:
35524             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35525               test -f "$dst" && { echo "$dst"; continue; }
35526               test -d "$dst" || continue
35527               echo "$dst"/$(basename "$src")
35528             done > exempt
35529             git ls-files tests/unictype >> exempt
35530         In the remaining files, convert to all-interval notation if
35531         - there is already at least one year interval like 2000-2003
35532         - the file is maintained by me
35533         - the file is in lib/uni*/, where that style already prevails
35534         Otherwise, use update-copyright's default.
35535
35536 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35537         and Eric Blake  <ebb9@byu.net>
35538
35539         tests: don't require debug system() to pass
35540         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35541         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35542         * tests/test-unlink.h (test_unlink_func): Likewise.
35543         * tests/test-fstatat.c (main): ...into callers.
35544         * tests/test-lstat.c (main): Likewise.
35545         * tests/test-rmdir.c (main): Likewise.
35546         * tests/test-unlink.c (main): Likewise.
35547         * tests/test-unlinkat.c (main): Likewise.
35548         * tests/test-areadlink-with-size.c (main): Don't require a
35549         debug-only system call to pass, aiding cross-testing to mingw.
35550         * tests/test-areadlink.c (main): Likewise.
35551         * tests/test-areadlinkat-with-size.c (main): Likewise.
35552         * tests/test-areadlinkat.c (main): Likewise.
35553         * tests/test-canonicalize-lgpl.c (main): Likewise.
35554         * tests/test-canonicalize.c (main): Likewise.
35555         * tests/test-chown.c (main): Likewise.
35556         * tests/test-fchownat.c (main): Likewise.
35557         * tests/test-lchown.c (main): Likewise.
35558         * tests/test-fdutimensat.c (main): Likewise.
35559         * tests/test-futimens.c (main): Likewise.
35560         * tests/test-link.c (main): Likewise.
35561         * tests/test-linkat.c (main): Likewise.
35562         * tests/test-mkdir.c (main): Likewise.
35563         * tests/test-mkdirat.c (main): Likewise.
35564         * tests/test-mkfifo.c (main): Likewise.
35565         * tests/test-mkfifoat.c (main): Likewise.
35566         * tests/test-mknod.c (main): Likewise.
35567         * tests/test-readlink.c (main): Likewise.
35568         * tests/test-remove.c (main): Likewise.
35569         * tests/test-rename.c (main): Likewise.
35570         * tests/test-renameat.c (main): Likewise.
35571         * tests/test-symlink.c (main): Likewise.
35572         * tests/test-symlinkat.c (main): Likewise.
35573         * tests/test-utimens.c (main): Likewise.
35574         * tests/test-utimensat.c (main): Likewise.
35575
35576 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35577
35578         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35579         on $(UNUSED_PARAMETER_H) to avoid build failure.
35580
35581 2009-12-28  Jim Meyering  <meyering@redhat.com>
35582
35583         update-copyright: you may specify a max. line length other than 72
35584         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35585
35586         maint: use consistent FSF copyright line syntax
35587         * lib/posixtm.c: Add missing comma in FSF copyright line.
35588         * lib/posixtm.h: Likewise.
35589         * lib/getugroups.c: Add missing ", Inc.".
35590
35591         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35592         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35593         FSF copyright line.  Remove trailing blanks.
35594
35595 2009-12-28  Eric Blake  <ebb9@byu.net>
35596
35597         test-dup2: reduce dependencies
35598         * modules/cloexec (Configure.ac): Set witness.
35599         * modules/dup2-tests (Depends-on): Drop cloexec.
35600         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35601         not present.
35602         Suggested by Bruno Haible.
35603
35604 2009-12-26  Bruno Haible  <bruno@clisp.org>
35605
35606         Remove an unneeded dependency.
35607         * modules/fseterr (Depends-on): Remove dup2.
35608
35609 2009-12-26  Eric Blake  <ebb9@byu.net>
35610
35611         tests: use macros.h in more places
35612         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35613         (ASSERT_STREAM): Provide default of stderr.
35614         * tests/test-dirent-safer.c: Include macros.h, using alternate
35615         stream for assertions.
35616         * tests/test-dup-safer.c: Likewise.
35617         * tests/test-freopen-safer.c: Likewise.
35618         * tests/test-getopt.c: Likewise.
35619         * tests/test-openat-safer.c: Likewise.
35620         * tests/test-pipe.c: Likewise.
35621         * tests/test-popen-safer.c: Likewise.
35622         * modules/dirent-safer-tests (Files): Include macros.h.
35623         * modules/unistd-safer-tests (Files): Likewise.
35624         * modules/freopen-safer-tests (Files): Likewise.
35625         * modules/getopt-posix-tests (Files): Likewise.
35626         * modules/openat-safer-tests (Files): Likewise.
35627         * modules/pipe-tests (Files): Likewise.
35628
35629 2009-12-26  Bruno Haible  <bruno@clisp.org>
35630
35631         javacomp: Portability fix.
35632         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35633         that it also works on Solaris.
35634
35635 2009-12-26  Bruno Haible  <bruno@clisp.org>
35636
35637         localename: Fix storage allocation of gl_locale_name_thread's result.
35638         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35639         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35640         all platforms that have 'uselocale'.
35641         (gl_locale_name_thread_unsafe): New function, extracted from
35642         gl_locale_name_thread.
35643         (gl_locale_name_thread): Call struniq on all platforms that have
35644         'uselocale'.
35645         * tests/test-localename.c (test_locale_name_thread): Check that the
35646         resulting strings are permanently allocated.
35647         * modules/localename-tests (Depends-on): Add strdup.
35648
35649 2009-12-26  Bruno Haible  <bruno@clisp.org>
35650
35651         * tests/test-localename.c (categories): Fill in the strings.
35652
35653 2009-12-26  Jim Meyering  <meyering@redhat.com>
35654
35655         isdir: complete the removal of m4/isdir.m4
35656         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35657
35658         isdir: clean up, since at least grep still uses it
35659         * lib/isdir.c: Include "isdir.h".
35660         (S_ISDIR): Remove now-unneeded definition.
35661         * modules/isdir (Files): Add lib/isdir.h.
35662         * lib/isdir.h: New file, with declaration.
35663         * m4/isdir.m4: Remove file -- unneeded.
35664
35665 2009-12-25  Bruno Haible  <bruno@clisp.org>
35666
35667         selinux-h: Make generated .h files standalone.
35668         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35669         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35670         * lib/se-selinux.in.h: Likewise.
35671         * modules/selinux-h (Depends-on): Add unused-parameter.
35672         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35673         selinux/selinux.h and selinux/context.h.
35674         Suggested by Eric Blake.
35675
35676 2009-12-25  Bruno Haible  <bruno@clisp.org>
35677
35678         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35679         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35680         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35681         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35682         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35683
35684 2009-12-24  Bruno Haible  <bruno@clisp.org>
35685
35686         openat: Fix warning.
35687         * lib/openat-proc.c: Include <unistd.h>.
35688
35689 2009-12-24  Bruno Haible  <bruno@clisp.org>
35690
35691         New module 'unused-parameter'.
35692         * build-aux/unused-parameter.h: New file, extracted from earlier
35693         gnulib-common.m4.
35694         * modules/unused-parameter: New file.
35695         * lib/unistr.h: Include unused-parameter.h.
35696         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35697         _GL_UNUSED.
35698         * modules/unistr/base (Depends-on): Add unused-parameter.
35699
35700 2009-12-24  Bruno Haible  <bruno@clisp.org>
35701
35702         Add missing dependencies to 'extensions' module.
35703         * m4/extensions.m4: Add comment.
35704         * modules/accept4 (Depends-on): Add extensions.
35705         * modules/dup3 (Depends-on): Likewise.
35706         * modules/fcntl (Depends-on): Likewise.
35707         * modules/futimens (Depends-on): Likewise.
35708         * modules/mknod (Depends-on): Likewise.
35709         * modules/pipe2 (Depends-on): Likewise.
35710         * modules/stat-time (Depends-on): Likewise.
35711         * modules/strcasestr-simple (Depends-on): Likewise.
35712         * modules/strsignal (Depends-on): Likewise.
35713         * modules/utimensat (Depends-on): Likewise.
35714         * modules/localcharset (Depends-on): Likewise. Needed because of
35715         gl_FCNTL_O_FLAGS.
35716         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35717         AC_TYPE_MBSTATE_T.
35718         * modules/wcsnrtombs (Depends-on): Likewise.
35719         * modules/wcsrtombs (Depends-on): Likewise.
35720
35721 2009-12-24  Bruno Haible  <bruno@clisp.org>
35722
35723         binary-io: Avoid gcc warning due to SET_BINARY.
35724         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35725         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35726
35727 2009-12-24  Bruno Haible  <bruno@clisp.org>
35728
35729         Avoid future namespace pollution on glibc systems.
35730         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35731         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35732         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35733         glibc systems.
35734
35735 2009-12-24  Bruno Haible  <bruno@clisp.org>
35736
35737         Refactor common macros used in tests.
35738         * tests/macros.h: New file.
35739         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35740         and/or <stdlib.h>, if appropriate.
35741         (ASSERT, SIZEOF): Remove macros.
35742         * tests/test-areadlink-with-size.c: Likewise.
35743         * tests/test-areadlinkat.c: Likewise.
35744         * tests/test-areadlinkat-with-size.c: Likewise.
35745         * tests/test-argmatch.c: Likewise.
35746         * tests/test-argv-iter.c: Likewise.
35747         * tests/test-array-mergesort.c: Likewise.
35748         * tests/test-array_list.c: Likewise.
35749         * tests/test-array_oset.c: Likewise.
35750         * tests/test-avltree_list.c: Likewise.
35751         * tests/test-avltree_oset.c: Likewise.
35752         * tests/test-avltreehash_list.c: Likewise.
35753         * tests/test-base64.c: Likewise.
35754         * tests/test-binary-io.c: Likewise.
35755         * tests/test-bitrotate.c: Likewise.
35756         * tests/test-btowc.c: Likewise.
35757         * tests/test-byteswap.c: Likewise.
35758         * tests/test-c-ctype.c: Likewise.
35759         * tests/test-c-stack.c: Likewise.
35760         * tests/test-c-strcasecmp.c: Likewise.
35761         * tests/test-c-strcasestr.c: Likewise.
35762         * tests/test-c-strncasecmp.c: Likewise.
35763         * tests/test-c-strstr.c: Likewise.
35764         * tests/test-canonicalize-lgpl.c: Likewise.
35765         * tests/test-canonicalize.c: Likewise.
35766         * tests/test-carray_list.c: Likewise.
35767         * tests/test-ceilf1.c: Likewise.
35768         * tests/test-ceilf2.c: Likewise.
35769         * tests/test-ceill.c: Likewise.
35770         * tests/test-chown.c: Likewise.
35771         * tests/test-cloexec.c: Likewise.
35772         * tests/test-copy-acl.c: Likewise.
35773         * tests/test-copy-file.c: Likewise.
35774         * tests/test-count-one-bits.c: Likewise.
35775         * tests/test-dprintf-posix.c: Likewise.
35776         * tests/test-dup2.c: Likewise.
35777         * tests/test-dup3.c: Likewise.
35778         * tests/test-duplocale.c: Likewise.
35779         * tests/test-fbufmode.c: Likewise.
35780         * tests/test-fchdir.c: Likewise.
35781         * tests/test-fchownat.c: Likewise.
35782         * tests/test-fcntl-safer.c: Likewise.
35783         * tests/test-fcntl.c: Likewise.
35784         * tests/test-fdopendir.c: Likewise.
35785         * tests/test-fdutimensat.c: Likewise.
35786         * tests/test-fflush2.c: Likewise.
35787         * tests/test-file-has-acl.c: Likewise.
35788         * tests/test-filevercmp.c: Likewise.
35789         * tests/test-flock.c: Likewise.
35790         * tests/test-floorf1.c: Likewise.
35791         * tests/test-floorf2.c: Likewise.
35792         * tests/test-floorl.c: Likewise.
35793         * tests/test-fnmatch.c: Likewise.
35794         * tests/test-fopen.h: Likewise.
35795         * tests/test-fpending.c: Likewise.
35796         * tests/test-fprintf-posix.c: Likewise.
35797         * tests/test-fpurge.c: Likewise.
35798         * tests/test-freadable.c: Likewise.
35799         * tests/test-freadahead.c: Likewise.
35800         * tests/test-freading.c: Likewise.
35801         * tests/test-freadptr.c: Likewise.
35802         * tests/test-freadptr2.c: Likewise.
35803         * tests/test-freadseek.c: Likewise.
35804         * tests/test-freopen.c: Likewise.
35805         * tests/test-frexp.c: Likewise.
35806         * tests/test-frexpl.c: Likewise.
35807         * tests/test-fseek.c: Likewise.
35808         * tests/test-fseeko.c: Likewise.
35809         * tests/test-fstatat.c: Likewise.
35810         * tests/test-fstrcmp.c: Likewise.
35811         * tests/test-fsync.c: Likewise.
35812         * tests/test-ftell.c: Likewise.
35813         * tests/test-ftello.c: Likewise.
35814         * tests/test-func.c: Likewise.
35815         * tests/test-futimens.c: Likewise.
35816         * tests/test-fwritable.c: Likewise.
35817         * tests/test-fwriting.c: Likewise.
35818         * tests/test-getcwd.c: Likewise.
35819         * tests/test-getdate.c: Likewise.
35820         * tests/test-getdelim.c: Likewise.
35821         * tests/test-getdtablesize.c: Likewise.
35822         * tests/test-getgroups.c: Likewise.
35823         * tests/test-getline.c: Likewise.
35824         * tests/test-getndelim2.c: Likewise.
35825         * tests/test-glob.c: Likewise.
35826         * tests/test-hash.c: Likewise.
35827         * tests/test-i-ring.c: Likewise.
35828         * tests/test-iconv-utf.c: Likewise.
35829         * tests/test-iconv.c: Likewise.
35830         * tests/test-idpriv-drop.c: Likewise.
35831         * tests/test-idpriv-droptemp.c: Likewise.
35832         * tests/test-inet_ntop.c: Likewise.
35833         * tests/test-inet_pton.c: Likewise.
35834         * tests/test-isblank.c: Likewise.
35835         * tests/test-isfinite.c: Likewise.
35836         * tests/test-isinf.c: Likewise.
35837         * tests/test-isnan.c: Likewise.
35838         * tests/test-isnand.h: Likewise.
35839         * tests/test-isnanf.h: Likewise.
35840         * tests/test-isnanl.h: Likewise.
35841         * tests/test-lchown.c: Likewise.
35842         * tests/test-ldexpl.c: Likewise.
35843         * tests/test-link.c: Likewise.
35844         * tests/test-linkat.c: Likewise.
35845         * tests/test-linked_list.c: Likewise.
35846         * tests/test-linkedhash_list.c: Likewise.
35847         * tests/test-localename.c: Likewise.
35848         * tests/test-lseek.c: Likewise.
35849         * tests/test-lstat.c: Likewise.
35850         * tests/test-mbmemcasecmp.c: Likewise.
35851         * tests/test-mbmemcasecoll.c: Likewise.
35852         * tests/test-mbrtowc.c: Likewise.
35853         * tests/test-mbscasecmp.c: Likewise.
35854         * tests/test-mbscasestr1.c: Likewise.
35855         * tests/test-mbscasestr2.c: Likewise.
35856         * tests/test-mbscasestr3.c: Likewise.
35857         * tests/test-mbscasestr4.c: Likewise.
35858         * tests/test-mbschr.c: Likewise.
35859         * tests/test-mbscspn.c: Likewise.
35860         * tests/test-mbsinit.c: Likewise.
35861         * tests/test-mbsncasecmp.c: Likewise.
35862         * tests/test-mbsnrtowcs.c: Likewise.
35863         * tests/test-mbspbrk.c: Likewise.
35864         * tests/test-mbspcasecmp.c: Likewise.
35865         * tests/test-mbsrchr.c: Likewise.
35866         * tests/test-mbsrtowcs.c: Likewise.
35867         * tests/test-mbsspn.c: Likewise.
35868         * tests/test-mbsstr1.c: Likewise.
35869         * tests/test-mbsstr2.c: Likewise.
35870         * tests/test-mbsstr3.c: Likewise.
35871         * tests/test-memchr.c: Likewise.
35872         * tests/test-memchr2.c: Likewise.
35873         * tests/test-memcmp.c: Likewise.
35874         * tests/test-memmem.c: Likewise.
35875         * tests/test-memrchr.c: Likewise.
35876         * tests/test-mkdir.c: Likewise.
35877         * tests/test-mkdirat.c: Likewise.
35878         * tests/test-mkfifo.c: Likewise.
35879         * tests/test-mkfifoat.c: Likewise.
35880         * tests/test-mknod.c: Likewise.
35881         * tests/test-nanosleep.c: Likewise.
35882         * tests/test-nl_langinfo.c: Likewise.
35883         * tests/test-obstack-printf.c: Likewise.
35884         * tests/test-open.c: Likewise.
35885         * tests/test-openat.c: Likewise.
35886         * tests/test-pipe-filter-gi1.c: Likewise.
35887         * tests/test-pipe-filter-gi2-main.c: Likewise.
35888         * tests/test-pipe-filter-ii1.c: Likewise.
35889         * tests/test-pipe-filter-ii2-main.c: Likewise.
35890         * tests/test-pipe2.c: Likewise.
35891         * tests/test-popen.h: Likewise.
35892         * tests/test-posixtm.c: Likewise.
35893         * tests/test-pread.c: Likewise.
35894         * tests/test-printf-frexp.c: Likewise.
35895         * tests/test-printf-frexpl.c: Likewise.
35896         * tests/test-printf-posix.c: Likewise.
35897         * tests/test-priv-set.c: Likewise.
35898         * tests/test-quotearg.c: Likewise.
35899         * tests/test-random_r.c: Likewise.
35900         * tests/test-rawmemchr.c: Likewise.
35901         * tests/test-rbtree_list.c: Likewise.
35902         * tests/test-rbtree_oset.c: Likewise.
35903         * tests/test-rbtreehash_list.c: Likewise.
35904         * tests/test-readlink.c: Likewise.
35905         * tests/test-remove.c: Likewise.
35906         * tests/test-rename.c: Likewise.
35907         * tests/test-renameat.c: Likewise.
35908         * tests/test-rmdir.c: Likewise.
35909         * tests/test-round1.c: Likewise.
35910         * tests/test-roundf1.c: Likewise.
35911         * tests/test-roundl.c: Likewise.
35912         * tests/test-safe-alloc.c: Likewise.
35913         * tests/test-sameacls.c: Likewise.
35914         * tests/test-set-mode-acl.c: Likewise.
35915         * tests/test-setenv.c: Likewise.
35916         * tests/test-sigaction.c: Likewise.
35917         * tests/test-signbit.c: Likewise.
35918         * tests/test-sleep.c: Likewise.
35919         * tests/test-snprintf-posix.c: Likewise.
35920         * tests/test-snprintf.c: Likewise.
35921         * tests/test-sprintf-posix.c: Likewise.
35922         * tests/test-stat-time.c: Likewise.
35923         * tests/test-stat.c: Likewise.
35924         * tests/test-strcasestr.c: Likewise.
35925         * tests/test-strchrnul.c: Likewise.
35926         * tests/test-strerror.c: Likewise.
35927         * tests/test-striconv.c: Likewise.
35928         * tests/test-striconveh.c: Likewise.
35929         * tests/test-striconveha.c: Likewise.
35930         * tests/test-strsignal.c: Likewise.
35931         * tests/test-strstr.c: Likewise.
35932         * tests/test-strtod.c: Likewise.
35933         * tests/test-strverscmp.c: Likewise.
35934         * tests/test-symlink.c: Likewise.
35935         * tests/test-symlinkat.c: Likewise.
35936         * tests/test-trunc1.c: Likewise.
35937         * tests/test-trunc2.c: Likewise.
35938         * tests/test-truncf1.c: Likewise.
35939         * tests/test-truncf2.c: Likewise.
35940         * tests/test-truncl.c: Likewise.
35941         * tests/test-uname.c: Likewise.
35942         * tests/test-unlink.c: Likewise.
35943         * tests/test-unlinkat.c: Likewise.
35944         * tests/test-unsetenv.c: Likewise.
35945         * tests/test-usleep.c: Likewise.
35946         * tests/test-utimens.c: Likewise.
35947         * tests/test-utimensat.c: Likewise.
35948         * tests/test-vasnprintf-posix.c: Likewise.
35949         * tests/test-vasnprintf-posix2.c: Likewise.
35950         * tests/test-vasnprintf.c: Likewise.
35951         * tests/test-vasprintf-posix.c: Likewise.
35952         * tests/test-vasprintf.c: Likewise.
35953         * tests/test-vdprintf-posix.c: Likewise.
35954         * tests/test-vfprintf-posix.c: Likewise.
35955         * tests/test-vprintf-posix.c: Likewise.
35956         * tests/test-vsnprintf-posix.c: Likewise.
35957         * tests/test-vsnprintf.c: Likewise.
35958         * tests/test-vsprintf-posix.c: Likewise.
35959         * tests/test-wcrtomb.c: Likewise.
35960         * tests/test-wcsnrtombs.c: Likewise.
35961         * tests/test-wcsrtombs.c: Likewise.
35962         * tests/test-wctype.c: Likewise.
35963         * tests/test-wcwidth.c: Likewise.
35964         * tests/test-xfprintf-posix.c: Likewise.
35965         * tests/test-xmemdup0.c: Likewise.
35966         * tests/test-xprintf-posix.c: Likewise.
35967         * tests/test-xvasprintf.c: Likewise.
35968         * tests/unicase/test-locale-language.c: Likewise.
35969         * tests/unicase/test-mapping-part1.h: Likewise.
35970         * tests/unicase/test-predicate-part1.h: Likewise.
35971         * tests/unicase/test-u8-casecmp.c: Likewise.
35972         * tests/unicase/test-u8-casecoll.c: Likewise.
35973         * tests/unicase/test-u8-casefold.c: Likewise.
35974         * tests/unicase/test-u8-is-cased.c: Likewise.
35975         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35976         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35977         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35978         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35979         * tests/unicase/test-u8-tolower.c: Likewise.
35980         * tests/unicase/test-u8-totitle.c: Likewise.
35981         * tests/unicase/test-u8-toupper.c: Likewise.
35982         * tests/unicase/test-u16-casecmp.c: Likewise.
35983         * tests/unicase/test-u16-casecoll.c: Likewise.
35984         * tests/unicase/test-u16-casefold.c: Likewise.
35985         * tests/unicase/test-u16-is-cased.c: Likewise.
35986         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35987         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35988         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35989         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35990         * tests/unicase/test-u16-tolower.c: Likewise.
35991         * tests/unicase/test-u16-totitle.c: Likewise.
35992         * tests/unicase/test-u16-toupper.c: Likewise.
35993         * tests/unicase/test-u32-casecmp.c: Likewise.
35994         * tests/unicase/test-u32-casecoll.c: Likewise.
35995         * tests/unicase/test-u32-casefold.c: Likewise.
35996         * tests/unicase/test-u32-is-cased.c: Likewise.
35997         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35998         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35999         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36000         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36001         * tests/unicase/test-u32-tolower.c: Likewise.
36002         * tests/unicase/test-u32-totitle.c: Likewise.
36003         * tests/unicase/test-u32-toupper.c: Likewise.
36004         * tests/unicase/test-ulc-casecmp.c: Likewise.
36005         * tests/unicase/test-ulc-casecoll.c: Likewise.
36006         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36007         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36008         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36009         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36010         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36011         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36012         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36013         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36014         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36015         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36016         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36017         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36018         * tests/unictype/test-bidi_byname.c: Likewise.
36019         * tests/unictype/test-bidi_name.c: Likewise.
36020         * tests/unictype/test-bidi_of.c: Likewise.
36021         * tests/unictype/test-bidi_test.c: Likewise.
36022         * tests/unictype/test-block_list.c: Likewise.
36023         * tests/unictype/test-block_of.c: Likewise.
36024         * tests/unictype/test-block_test.c: Likewise.
36025         * tests/unictype/test-categ_and.c: Likewise.
36026         * tests/unictype/test-categ_and_not.c: Likewise.
36027         * tests/unictype/test-categ_byname.c: Likewise.
36028         * tests/unictype/test-categ_name.c: Likewise.
36029         * tests/unictype/test-categ_none.c: Likewise.
36030         * tests/unictype/test-categ_of.c: Likewise.
36031         * tests/unictype/test-categ_or.c: Likewise.
36032         * tests/unictype/test-categ_test_withtable.c: Likewise.
36033         * tests/unictype/test-combining.c: Likewise.
36034         * tests/unictype/test-decdigit.c: Likewise.
36035         * tests/unictype/test-digit.c: Likewise.
36036         * tests/unictype/test-mirror.c: Likewise.
36037         * tests/unictype/test-numeric.c: Likewise.
36038         * tests/unictype/test-pr_byname.c: Likewise.
36039         * tests/unictype/test-pr_test.c: Likewise.
36040         * tests/unictype/test-predicate-part1.h: Likewise.
36041         * tests/unictype/test-scripts.c: Likewise.
36042         * tests/unictype/test-sy_c_ident.c: Likewise.
36043         * tests/unictype/test-sy_java_ident.c: Likewise.
36044         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36045         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36046         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36047         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36048         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36049         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36050         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36051         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36052         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36053         * tests/uninorm/test-compat-decomposition.c: Likewise.
36054         * tests/uninorm/test-composition.c: Likewise.
36055         * tests/uninorm/test-decomposing-form.c: Likewise.
36056         * tests/uninorm/test-decomposition.c: Likewise.
36057         * tests/uninorm/test-u8-nfc.c: Likewise.
36058         * tests/uninorm/test-u8-nfd.c: Likewise.
36059         * tests/uninorm/test-u8-nfkc.c: Likewise.
36060         * tests/uninorm/test-u8-nfkd.c: Likewise.
36061         * tests/uninorm/test-u8-normcmp.c: Likewise.
36062         * tests/uninorm/test-u8-normcoll.c: Likewise.
36063         * tests/uninorm/test-u16-nfc.c: Likewise.
36064         * tests/uninorm/test-u16-nfd.c: Likewise.
36065         * tests/uninorm/test-u16-nfkc.c: Likewise.
36066         * tests/uninorm/test-u16-nfkd.c: Likewise.
36067         * tests/uninorm/test-u16-normcmp.c: Likewise.
36068         * tests/uninorm/test-u16-normcoll.c: Likewise.
36069         * tests/uninorm/test-u32-nfc.c: Likewise.
36070         * tests/uninorm/test-u32-nfd.c: Likewise.
36071         * tests/uninorm/test-u32-nfkc.c: Likewise.
36072         * tests/uninorm/test-u32-nfkd.c: Likewise.
36073         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36074         * tests/uninorm/test-u32-normcmp.c: Likewise.
36075         * tests/uninorm/test-u32-normcoll.c: Likewise.
36076         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36077         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36078         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36079         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36080         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36081         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36082         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36083         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36084         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36085         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36086         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36087         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36088         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36089         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36090         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36091         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36092         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36093         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36094         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36095         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36096         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36097         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36098         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36099         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36100         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36101         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36102         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36103         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36104         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36105         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36106         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36107         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36108         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36109         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36110         * tests/uniwidth/test-u8-width.c: Likewise.
36111         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36112         * tests/uniwidth/test-u16-width.c: Likewise.
36113         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36114         * tests/uniwidth/test-u32-width.c: Likewise.
36115         * tests/uniwidth/test-uc_width.c: Likewise.
36116         * tests/uniwidth/test-uc_width2.c: Likewise.
36117         * modules/acl-tests (Files): Add tests/macros.h.
36118         * modules/areadlink-tests (Files): Likewise.
36119         * modules/areadlink-with-size-tests (Files): Likewise.
36120         * modules/areadlinkat-tests (Files): Likewise.
36121         * modules/areadlinkat-with-size-tests (Files): Likewise.
36122         * modules/argmatch-tests (Files): Likewise.
36123         * modules/argv-iter-tests (Files): Likewise.
36124         * modules/array-list-tests (Files): Likewise.
36125         * modules/array-mergesort-tests (Files): Likewise.
36126         * modules/array-oset-tests (Files): Likewise.
36127         * modules/avltree-list-tests (Files): Likewise.
36128         * modules/avltree-oset-tests (Files): Likewise.
36129         * modules/avltreehash-list-tests (Files): Likewise.
36130         * modules/base64-tests (Files): Likewise.
36131         * modules/binary-io-tests (Files): Likewise.
36132         * modules/bitrotate-tests (Files): Likewise.
36133         * modules/btowc-tests (Files): Likewise.
36134         * modules/byteswap-tests (Files): Likewise.
36135         * modules/c-ctype-tests (Files): Likewise.
36136         * modules/c-stack-tests (Files): Likewise.
36137         * modules/c-strcase-tests (Files): Likewise.
36138         * modules/c-strcasestr-tests (Files): Likewise.
36139         * modules/c-strstr-tests (Files): Likewise.
36140         * modules/canonicalize-lgpl-tests (Files): Likewise.
36141         * modules/canonicalize-tests (Files): Likewise.
36142         * modules/carray-list-tests (Files): Likewise.
36143         * modules/ceilf-tests (Files): Likewise.
36144         * modules/ceill-tests (Files): Likewise.
36145         * modules/chown-tests (Files): Likewise.
36146         * modules/cloexec-tests (Files): Likewise.
36147         * modules/copy-file-tests (Files): Likewise.
36148         * modules/count-one-bits-tests (Files): Likewise.
36149         * modules/dprintf-posix-tests (Files): Likewise.
36150         * modules/dup2-tests (Files): Likewise.
36151         * modules/dup3-tests (Files): Likewise.
36152         * modules/duplocale-tests (Files): Likewise.
36153         * modules/fbufmode-tests (Files): Likewise.
36154         * modules/fchdir-tests (Files): Likewise.
36155         * modules/fcntl-safer-tests (Files): Likewise.
36156         * modules/fcntl-tests (Files): Likewise.
36157         * modules/fdopendir-tests (Files): Likewise.
36158         * modules/fdutimensat-tests (Files): Likewise.
36159         * modules/fflush-tests (Files): Likewise.
36160         * modules/filevercmp-tests (Files): Likewise.
36161         * modules/flock-tests (Files): Likewise.
36162         * modules/floorf-tests (Files): Likewise.
36163         * modules/floorl-tests (Files): Likewise.
36164         * modules/fnmatch-tests (Files): Likewise.
36165         * modules/fopen-safer-tests (Files): Likewise.
36166         * modules/fopen-tests (Files): Likewise.
36167         * modules/fpending-tests (Files): Likewise.
36168         * modules/fprintf-posix-tests (Files): Likewise.
36169         * modules/fpurge-tests (Files): Likewise.
36170         * modules/freadable-tests (Files): Likewise.
36171         * modules/freadahead-tests (Files): Likewise.
36172         * modules/freading-tests (Files): Likewise.
36173         * modules/freadptr-tests (Files): Likewise.
36174         * modules/freadseek-tests (Files): Likewise.
36175         * modules/freopen-tests (Files): Likewise.
36176         * modules/frexp-nolibm-tests (Files): Likewise.
36177         * modules/frexp-tests (Files): Likewise.
36178         * modules/frexpl-nolibm-tests (Files): Likewise.
36179         * modules/frexpl-tests (Files): Likewise.
36180         * modules/fseek-tests (Files): Likewise.
36181         * modules/fseeko-tests (Files): Likewise.
36182         * modules/fstrcmp-tests (Files): Likewise.
36183         * modules/fsync-tests (Files): Likewise.
36184         * modules/ftell-tests (Files): Likewise.
36185         * modules/ftello-tests (Files): Likewise.
36186         * modules/func-tests (Files): Likewise.
36187         * modules/futimens-tests (Files): Likewise.
36188         * modules/fwritable-tests (Files): Likewise.
36189         * modules/fwriting-tests (Files): Likewise.
36190         * modules/getcwd-tests (Files): Likewise.
36191         * modules/getdate-tests (Files): Likewise.
36192         * modules/getdelim-tests (Files): Likewise.
36193         * modules/getdtablesize-tests (Files): Likewise.
36194         * modules/getgroups-tests (Files): Likewise.
36195         * modules/getline-tests (Files): Likewise.
36196         * modules/getndelim2-tests (Files): Likewise.
36197         * modules/glob-tests (Files): Likewise.
36198         * modules/hash-tests (Files): Likewise.
36199         * modules/i-ring-tests (Files): Likewise.
36200         * modules/iconv-tests (Files): Likewise.
36201         * modules/iconv_open-utf-tests (Files): Likewise.
36202         * modules/idpriv-drop-tests (Files): Likewise.
36203         * modules/idpriv-droptemp-tests (Files): Likewise.
36204         * modules/inet_ntop-tests (Files): Likewise.
36205         * modules/inet_pton-tests (Files): Likewise.
36206         * modules/isblank-tests (Files): Likewise.
36207         * modules/isfinite-tests (Files): Likewise.
36208         * modules/isinf-tests (Files): Likewise.
36209         * modules/isnan-tests (Files): Likewise.
36210         * modules/isnand-nolibm-tests (Files): Likewise.
36211         * modules/isnand-tests (Files): Likewise.
36212         * modules/isnanf-nolibm-tests (Files): Likewise.
36213         * modules/isnanf-tests (Files): Likewise.
36214         * modules/isnanl-nolibm-tests (Files): Likewise.
36215         * modules/isnanl-tests (Files): Likewise.
36216         * modules/lchown-tests (Files): Likewise.
36217         * modules/ldexpl-tests (Files): Likewise.
36218         * modules/link-tests (Files): Likewise.
36219         * modules/linkat-tests (Files): Likewise.
36220         * modules/linked-list-tests (Files): Likewise.
36221         * modules/linkedhash-list-tests (Files): Likewise.
36222         * modules/localename-tests (Files): Likewise.
36223         * modules/lseek-tests (Files): Likewise.
36224         * modules/lstat-tests (Files): Likewise.
36225         * modules/mbmemcasecmp-tests (Files): Likewise.
36226         * modules/mbmemcasecoll-tests (Files): Likewise.
36227         * modules/mbrtowc-tests (Files): Likewise.
36228         * modules/mbscasecmp-tests (Files): Likewise.
36229         * modules/mbscasestr-tests (Files): Likewise.
36230         * modules/mbschr-tests (Files): Likewise.
36231         * modules/mbscspn-tests (Files): Likewise.
36232         * modules/mbsinit-tests (Files): Likewise.
36233         * modules/mbsncasecmp-tests (Files): Likewise.
36234         * modules/mbsnrtowcs-tests (Files): Likewise.
36235         * modules/mbspbrk-tests (Files): Likewise.
36236         * modules/mbspcasecmp-tests (Files): Likewise.
36237         * modules/mbsrchr-tests (Files): Likewise.
36238         * modules/mbsrtowcs-tests (Files): Likewise.
36239         * modules/mbsspn-tests (Files): Likewise.
36240         * modules/mbsstr-tests (Files): Likewise.
36241         * modules/memchr-tests (Files): Likewise.
36242         * modules/memchr2-tests (Files): Likewise.
36243         * modules/memcmp-tests (Files): Likewise.
36244         * modules/memmem-tests (Files): Likewise.
36245         * modules/memrchr-tests (Files): Likewise.
36246         * modules/mkdir-tests (Files): Likewise.
36247         * modules/mkfifo-tests (Files): Likewise.
36248         * modules/mkfifoat-tests (Files): Likewise.
36249         * modules/mknod-tests (Files): Likewise.
36250         * modules/nanosleep-tests (Files): Likewise.
36251         * modules/nl_langinfo-tests (Files): Likewise.
36252         * modules/obstack-printf-tests (Files): Likewise.
36253         * modules/open-tests (Files): Likewise.
36254         * modules/openat-tests (Files): Likewise.
36255         * modules/pipe-filter-gi-tests (Files): Likewise.
36256         * modules/pipe-filter-ii-tests (Files): Likewise.
36257         * modules/pipe2-tests (Files): Likewise.
36258         * modules/popen-safer-tests (Files): Likewise.
36259         * modules/popen-tests (Files): Likewise.
36260         * modules/posixtm-tests (Files): Likewise.
36261         * modules/pread-tests (Files): Likewise.
36262         * modules/printf-frexp-tests (Files): Likewise.
36263         * modules/printf-frexpl-tests (Files): Likewise.
36264         * modules/printf-posix-tests (Files): Likewise.
36265         * modules/priv-set-tests (Files): Likewise.
36266         * modules/quotearg-tests (Files): Likewise.
36267         * modules/random_r-tests (Files): Likewise.
36268         * modules/rawmemchr-tests (Files): Likewise.
36269         * modules/rbtree-list-tests (Files): Likewise.
36270         * modules/rbtree-oset-tests (Files): Likewise.
36271         * modules/rbtreehash-list-tests (Files): Likewise.
36272         * modules/readlink-tests (Files): Likewise.
36273         * modules/remove-tests (Files): Likewise.
36274         * modules/rename-tests (Files): Likewise.
36275         * modules/renameat-tests (Files): Likewise.
36276         * modules/rmdir-tests (Files): Likewise.
36277         * modules/round-tests (Files): Likewise.
36278         * modules/roundf-tests (Files): Likewise.
36279         * modules/roundl-tests (Files): Likewise.
36280         * modules/safe-alloc-tests (Files): Likewise.
36281         * modules/setenv-tests (Files): Likewise.
36282         * modules/sigaction-tests (Files): Likewise.
36283         * modules/signbit-tests (Files): Likewise.
36284         * modules/sleep-tests (Files): Likewise.
36285         * modules/snprintf-posix-tests (Files): Likewise.
36286         * modules/snprintf-tests (Files): Likewise.
36287         * modules/sprintf-posix-tests (Files): Likewise.
36288         * modules/stat-tests (Files): Likewise.
36289         * modules/stat-time-tests (Files): Likewise.
36290         * modules/strcasestr-tests (Files): Likewise.
36291         * modules/strchrnul-tests (Files): Likewise.
36292         * modules/strerror-tests (Files): Likewise.
36293         * modules/striconv-tests (Files): Likewise.
36294         * modules/striconveh-tests (Files): Likewise.
36295         * modules/striconveha-tests (Files): Likewise.
36296         * modules/strsignal-tests (Files): Likewise.
36297         * modules/strstr-tests (Files): Likewise.
36298         * modules/strtod-tests (Files): Likewise.
36299         * modules/strverscmp-tests (Files): Likewise.
36300         * modules/symlink-tests (Files): Likewise.
36301         * modules/symlinkat-tests (Files): Likewise.
36302         * modules/trunc-tests (Files): Likewise.
36303         * modules/truncf-tests (Files): Likewise.
36304         * modules/truncl-tests (Files): Likewise.
36305         * modules/uname-tests (Files): Likewise.
36306         * modules/unicase/cased-tests (Files): Likewise.
36307         * modules/unicase/ignorable-tests (Files): Likewise.
36308         * modules/unicase/locale-language-tests (Files): Likewise.
36309         * modules/unicase/tolower-tests (Files): Likewise.
36310         * modules/unicase/totitle-tests (Files): Likewise.
36311         * modules/unicase/toupper-tests (Files): Likewise.
36312         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36313         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36314         * modules/unicase/u8-casefold-tests (Files): Likewise.
36315         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36316         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36317         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36318         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36319         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36320         * modules/unicase/u8-tolower-tests (Files): Likewise.
36321         * modules/unicase/u8-totitle-tests (Files): Likewise.
36322         * modules/unicase/u8-toupper-tests (Files): Likewise.
36323         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36324         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36325         * modules/unicase/u16-casefold-tests (Files): Likewise.
36326         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36327         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36328         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36329         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36330         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36331         * modules/unicase/u16-tolower-tests (Files): Likewise.
36332         * modules/unicase/u16-totitle-tests (Files): Likewise.
36333         * modules/unicase/u16-toupper-tests (Files): Likewise.
36334         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36335         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36336         * modules/unicase/u32-casefold-tests (Files): Likewise.
36337         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36338         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36339         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36340         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36341         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36342         * modules/unicase/u32-tolower-tests (Files): Likewise.
36343         * modules/unicase/u32-totitle-tests (Files): Likewise.
36344         * modules/unicase/u32-toupper-tests (Files): Likewise.
36345         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36346         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36347         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36348         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36349         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36350         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36351         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36352         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36353         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36354         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36355         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36356         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36357         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36358         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36359         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36360         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36361         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36362         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36363         * modules/unictype/block-list-tests (Files): Likewise.
36364         * modules/unictype/block-of-tests (Files): Likewise.
36365         * modules/unictype/block-test-tests (Files): Likewise.
36366         * modules/unictype/category-C-tests (Files): Likewise.
36367         * modules/unictype/category-Cc-tests (Files): Likewise.
36368         * modules/unictype/category-Cf-tests (Files): Likewise.
36369         * modules/unictype/category-Cn-tests (Files): Likewise.
36370         * modules/unictype/category-Co-tests (Files): Likewise.
36371         * modules/unictype/category-Cs-tests (Files): Likewise.
36372         * modules/unictype/category-L-tests (Files): Likewise.
36373         * modules/unictype/category-Ll-tests (Files): Likewise.
36374         * modules/unictype/category-Lm-tests (Files): Likewise.
36375         * modules/unictype/category-Lo-tests (Files): Likewise.
36376         * modules/unictype/category-Lt-tests (Files): Likewise.
36377         * modules/unictype/category-Lu-tests (Files): Likewise.
36378         * modules/unictype/category-M-tests (Files): Likewise.
36379         * modules/unictype/category-Mc-tests (Files): Likewise.
36380         * modules/unictype/category-Me-tests (Files): Likewise.
36381         * modules/unictype/category-Mn-tests (Files): Likewise.
36382         * modules/unictype/category-N-tests (Files): Likewise.
36383         * modules/unictype/category-Nd-tests (Files): Likewise.
36384         * modules/unictype/category-Nl-tests (Files): Likewise.
36385         * modules/unictype/category-No-tests (Files): Likewise.
36386         * modules/unictype/category-P-tests (Files): Likewise.
36387         * modules/unictype/category-Pc-tests (Files): Likewise.
36388         * modules/unictype/category-Pd-tests (Files): Likewise.
36389         * modules/unictype/category-Pe-tests (Files): Likewise.
36390         * modules/unictype/category-Pf-tests (Files): Likewise.
36391         * modules/unictype/category-Pi-tests (Files): Likewise.
36392         * modules/unictype/category-Po-tests (Files): Likewise.
36393         * modules/unictype/category-Ps-tests (Files): Likewise.
36394         * modules/unictype/category-S-tests (Files): Likewise.
36395         * modules/unictype/category-Sc-tests (Files): Likewise.
36396         * modules/unictype/category-Sk-tests (Files): Likewise.
36397         * modules/unictype/category-Sm-tests (Files): Likewise.
36398         * modules/unictype/category-So-tests (Files): Likewise.
36399         * modules/unictype/category-Z-tests (Files): Likewise.
36400         * modules/unictype/category-Zl-tests (Files): Likewise.
36401         * modules/unictype/category-Zp-tests (Files): Likewise.
36402         * modules/unictype/category-Zs-tests (Files): Likewise.
36403         * modules/unictype/category-and-not-tests (Files): Likewise.
36404         * modules/unictype/category-and-tests (Files): Likewise.
36405         * modules/unictype/category-byname-tests (Files): Likewise.
36406         * modules/unictype/category-name-tests (Files): Likewise.
36407         * modules/unictype/category-none-tests (Files): Likewise.
36408         * modules/unictype/category-of-tests (Files): Likewise.
36409         * modules/unictype/category-or-tests (Files): Likewise.
36410         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36411         * modules/unictype/combining-class-tests (Files): Likewise.
36412         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36413         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36414         * modules/unictype/ctype-blank-tests (Files): Likewise.
36415         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36416         * modules/unictype/ctype-digit-tests (Files): Likewise.
36417         * modules/unictype/ctype-graph-tests (Files): Likewise.
36418         * modules/unictype/ctype-lower-tests (Files): Likewise.
36419         * modules/unictype/ctype-print-tests (Files): Likewise.
36420         * modules/unictype/ctype-punct-tests (Files): Likewise.
36421         * modules/unictype/ctype-space-tests (Files): Likewise.
36422         * modules/unictype/ctype-upper-tests (Files): Likewise.
36423         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36424         * modules/unictype/decimal-digit-tests (Files): Likewise.
36425         * modules/unictype/digit-tests (Files): Likewise.
36426         * modules/unictype/mirror-tests (Files): Likewise.
36427         * modules/unictype/numeric-tests (Files): Likewise.
36428         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36429         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36430         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36431         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36432         Likewise.
36433         * modules/unictype/property-bidi-block-separator-tests (Files):
36434         Likewise.
36435         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36436         Likewise.
36437         * modules/unictype/property-bidi-common-separator-tests (Files):
36438         Likewise.
36439         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36440         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36441         Likewise.
36442         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36443         Likewise.
36444         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36445         Likewise.
36446         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36447         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36448         Likewise.
36449         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36450         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36451         Likewise.
36452         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36453         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36454         * modules/unictype/property-bidi-segment-separator-tests (Files):
36455         Likewise.
36456         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36457         * modules/unictype/property-byname-tests (Files): Likewise.
36458         * modules/unictype/property-combining-tests (Files): Likewise.
36459         * modules/unictype/property-composite-tests (Files): Likewise.
36460         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36461         * modules/unictype/property-dash-tests (Files): Likewise.
36462         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36463         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36464         Likewise.
36465         * modules/unictype/property-deprecated-tests (Files): Likewise.
36466         * modules/unictype/property-diacritic-tests (Files): Likewise.
36467         * modules/unictype/property-extender-tests (Files): Likewise.
36468         * modules/unictype/property-format-control-tests (Files): Likewise.
36469         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36470         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36471         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36472         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36473         * modules/unictype/property-hyphen-tests (Files): Likewise.
36474         * modules/unictype/property-id-continue-tests (Files): Likewise.
36475         * modules/unictype/property-id-start-tests (Files): Likewise.
36476         * modules/unictype/property-ideographic-tests (Files): Likewise.
36477         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36478         * modules/unictype/property-ids-trinary-operator-tests (Files):
36479         Likewise.
36480         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36481         * modules/unictype/property-iso-control-tests (Files): Likewise.
36482         * modules/unictype/property-join-control-tests (Files): Likewise.
36483         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36484         * modules/unictype/property-line-separator-tests (Files): Likewise.
36485         * modules/unictype/property-logical-order-exception-tests (Files):
36486         Likewise.
36487         * modules/unictype/property-lowercase-tests (Files): Likewise.
36488         * modules/unictype/property-math-tests (Files): Likewise.
36489         * modules/unictype/property-non-break-tests (Files): Likewise.
36490         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36491         * modules/unictype/property-numeric-tests (Files): Likewise.
36492         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36493         * modules/unictype/property-other-default-ignorable-code-point-tests
36494         (Files): Likewise.
36495         * modules/unictype/property-other-grapheme-extend-tests (Files):
36496         Likewise.
36497         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36498         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36499         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36500         * modules/unictype/property-other-math-tests (Files): Likewise.
36501         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36502         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36503         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36504         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36505         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36506         * modules/unictype/property-private-use-tests (Files): Likewise.
36507         * modules/unictype/property-punctuation-tests (Files): Likewise.
36508         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36509         * modules/unictype/property-radical-tests (Files): Likewise.
36510         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36511         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36512         * modules/unictype/property-space-tests (Files): Likewise.
36513         * modules/unictype/property-terminal-punctuation-tests (Files):
36514         Likewise.
36515         * modules/unictype/property-test-tests (Files): Likewise.
36516         * modules/unictype/property-titlecase-tests (Files): Likewise.
36517         * modules/unictype/property-unassigned-code-value-tests (Files):
36518         Likewise.
36519         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36520         * modules/unictype/property-uppercase-tests (Files): Likewise.
36521         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36522         * modules/unictype/property-white-space-tests (Files): Likewise.
36523         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36524         * modules/unictype/property-xid-start-tests (Files): Likewise.
36525         * modules/unictype/property-zero-width-tests (Files): Likewise.
36526         * modules/unictype/scripts-tests (Files): Likewise.
36527         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36528         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36529         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36530         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36531         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36532         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36533         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36534         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36535         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36536         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36537         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36538         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36539         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36540         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36541         * modules/uninorm/composition-tests (Files): Likewise.
36542         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36543         * modules/uninorm/decomposition-tests (Files): Likewise.
36544         * modules/uninorm/filter-tests (Files): Likewise.
36545         * modules/uninorm/nfc-tests (Files): Likewise.
36546         * modules/uninorm/nfd-tests (Files): Likewise.
36547         * modules/uninorm/nfkc-tests (Files): Likewise.
36548         * modules/uninorm/nfkd-tests (Files): Likewise.
36549         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36550         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36551         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36552         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36553         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36554         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36555         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36556         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36557         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36558         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36559         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36560         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36561         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36562         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36563         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36564         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36565         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36566         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36567         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36568         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36569         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36570         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36571         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36572         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36573         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36574         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36575         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36576         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36577         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36578         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36579         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36580         * modules/uniwidth/u8-width-tests (Files): Likewise.
36581         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36582         * modules/uniwidth/u16-width-tests (Files): Likewise.
36583         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36584         * modules/uniwidth/u32-width-tests (Files): Likewise.
36585         * modules/uniwidth/width-tests (Files): Likewise.
36586         * modules/unlink-tests (Files): Likewise.
36587         * modules/unsetenv-tests (Files): Likewise.
36588         * modules/usleep-tests (Files): Likewise.
36589         * modules/utimens-tests (Files): Likewise.
36590         * modules/utimensat-tests (Files): Likewise.
36591         * modules/vasnprintf-posix-tests (Files): Likewise.
36592         * modules/vasnprintf-tests (Files): Likewise.
36593         * modules/vasprintf-posix-tests (Files): Likewise.
36594         * modules/vasprintf-tests (Files): Likewise.
36595         * modules/vdprintf-posix-tests (Files): Likewise.
36596         * modules/vfprintf-posix-tests (Files): Likewise.
36597         * modules/vprintf-posix-tests (Files): Likewise.
36598         * modules/vsnprintf-posix-tests (Files): Likewise.
36599         * modules/vsnprintf-tests (Files): Likewise.
36600         * modules/vsprintf-posix-tests (Files): Likewise.
36601         * modules/wcrtomb-tests (Files): Likewise.
36602         * modules/wcsnrtombs-tests (Files): Likewise.
36603         * modules/wcsrtombs-tests (Files): Likewise.
36604         * modules/wctype-tests (Files): Likewise.
36605         * modules/wcwidth-tests (Files): Likewise.
36606         * modules/xmemdup0-tests (Files): Likewise.
36607         * modules/xprintf-posix-tests (Files): Likewise.
36608         * modules/xvasprintf-tests (Files): Likewise.
36609
36610 2009-12-24  Eric Blake  <ebb9@byu.net>
36611
36612         test-nanosleep: fix typo
36613         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36614         patch.
36615         Reported by Bruno Haible.
36616
36617 2009-12-24  Bruno Haible  <bruno@clisp.org>
36618
36619         Reduce namespace pollution on glibc systems.
36620         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36621         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36622         systems.
36623         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36624         <getopt.h> on glibc systems.
36625         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36626         systems.
36627         * lib/fcntl.c: Include <unistd.h> here instead.
36628
36629 2009-12-24  Bruno Haible  <bruno@clisp.org>
36630
36631         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36632
36633 2009-12-24  Eric Blake  <ebb9@byu.net>
36634
36635         tests: add signature checks
36636         * tests/signature.h (SIGNATURE_CHECK): New file.
36637         * modules/atexit-tests (Files): Use it.
36638         * modules/btowc-tests (Files): Likewise.
36639         * modules/canonicalize-lgpl-tests (Files): Likewise.
36640         * modules/ceilf-tests (Files): Likewise.
36641         * modules/ceill-tests (Files): Likewise.
36642         * modules/chown-tests (Files): Likewise.
36643         * modules/dprintf-posix-tests (Files): Likewise.
36644         * modules/dup2-tests (Files): Likewise.
36645         * modules/dup3-tests (Files): Likewise.
36646         * modules/duplocale-tests (Files): Likewise.
36647         * modules/fchdir-tests (Files): Likewise.
36648         * modules/fcntl-tests (Files): Likewise.
36649         * modules/fdopendir-tests (Files): Likewise.
36650         * modules/fflush-tests (Files): Likewise.
36651         * modules/flock-tests (Files): Likewise.
36652         * modules/floorf-tests (Files): Likewise.
36653         * modules/floorl-tests (Files): Likewise.
36654         * modules/fnmatch-tests (Files): Likewise.
36655         * modules/fopen-tests (Files): Likewise.
36656         * modules/fprintf-posix-tests (Files): Likewise.
36657         * modules/freopen-tests (Files): Likewise.
36658         * modules/frexp-nolibm-tests (Files): Likewise.
36659         * modules/frexp-tests (Files): Likewise.
36660         * modules/frexpl-nolibm-tests (Files): Likewise.
36661         * modules/frexpl-tests (Files): Likewise.
36662         * modules/fseek-tests (Files): Likewise.
36663         * modules/fseeko-tests (Files): Likewise.
36664         * modules/fsync-tests (Files): Likewise.
36665         * modules/ftell-tests (Files): Likewise.
36666         * modules/ftello-tests (Files): Likewise.
36667         * modules/futimens-tests (Files): Likewise.
36668         * modules/getaddrinfo-tests (Files): Likewise.
36669         * modules/getcwd-tests (Files): Likewise.
36670         * modules/getdelim-tests (Files): Likewise.
36671         * modules/getdtablesize-tests (Files): Likewise.
36672         * modules/getgroups-tests (Files): Likewise.
36673         * modules/gethostname-tests (Files): Likewise.
36674         * modules/getline-tests (Files): Likewise.
36675         * modules/getopt-posix-tests (Files): Likewise.
36676         * modules/gettimeofday-tests (Files): Likewise.
36677         * modules/glob-tests (Files): Likewise.
36678         * modules/iconv-tests (Files): Likewise.
36679         * modules/inet_ntop-tests (Files): Likewise.
36680         * modules/inet_pton-tests (Files): Likewise.
36681         * modules/isblank-tests (Files): Likewise.
36682         * modules/lchown-tests (Files): Likewise.
36683         * modules/ldexpl-tests (Files): Likewise.
36684         * modules/link-tests (Files): Likewise.
36685         * modules/linkat-tests (Files): Likewise.
36686         * modules/lseek-tests (Files): Likewise.
36687         * modules/lstat-tests (Files): Likewise.
36688         * modules/mbrtowc-tests (Files): Likewise.
36689         * modules/mbsinit-tests (Files): Likewise.
36690         * modules/mbsnrtowcs-tests (Files): Likewise.
36691         * modules/mbsrtowcs-tests (Files): Likewise.
36692         * modules/memchr-tests (Files): Likewise.
36693         * modules/memcmp-tests (Files): Likewise.
36694         * modules/memmem-tests (Files): Likewise.
36695         * modules/memrchr-tests (Files): Likewise.
36696         * modules/mkdir-tests (Files): Likewise.
36697         * modules/mkfifo-tests (Files): Likewise.
36698         * modules/mkfifoat-tests (Files): Likewise.
36699         * modules/mknod-tests (Files): Likewise.
36700         * modules/nanosleep-tests (Files): Likewise.
36701         * modules/nl_langinfo-tests (Files): Likewise.
36702         * modules/obstack-printf-tests (Files): Likewise.
36703         * modules/open-tests (Files): Likewise.
36704         * modules/openat-tests (Files): Likewise.
36705         * modules/perror-tests (Files): Likewise.
36706         * modules/pipe2-tests (Files): Likewise.
36707         * modules/poll-tests (Files): Likewise.
36708         * modules/popen-tests (Files): Likewise.
36709         * modules/posix_spawn-tests (Files): Likewise.
36710         * modules/posix_spawnp-tests (Files): Likewise.
36711         * modules/pread-tests (Files): Likewise.
36712         * modules/printf-posix-tests (Files): Likewise.
36713         * modules/pty-tests (Files): Likewise.
36714         * modules/random_r-tests (Files): Likewise.
36715         * modules/rawmemchr-tests (Files): Likewise.
36716         * modules/readlink-tests (Files): Likewise.
36717         * modules/remove-tests (Files): Likewise.
36718         * modules/rename-tests (Files): Likewise.
36719         * modules/renameat-tests (Files): Likewise.
36720         * modules/rmdir-tests (Files): Likewise.
36721         * modules/round-tests (Files): Likewise.
36722         * modules/roundf-tests (Files): Likewise.
36723         * modules/roundl-tests (Files): Likewise.
36724         * modules/select-tests (Files): Likewise.
36725         * modules/setenv-tests (Files): Likewise.
36726         * modules/sigaction-tests (Files): Likewise.
36727         * modules/sleep-tests (Files): Likewise.
36728         * modules/snprintf-posix-tests (Files): Likewise.
36729         * modules/snprintf-tests (Files): Likewise.
36730         * modules/sprintf-posix-tests (Files): Likewise.
36731         * modules/stat-tests (Files): Likewise.
36732         * modules/strcasestr-tests (Files): Likewise.
36733         * modules/strchrnul-tests (Files): Likewise.
36734         * modules/strerror-tests (Files): Likewise.
36735         * modules/strsignal-tests (Files): Likewise.
36736         * modules/strstr-tests (Files): Likewise.
36737         * modules/strtod-tests (Files): Likewise.
36738         * modules/strverscmp-tests (Files): Likewise.
36739         * modules/symlink-tests (Files): Likewise.
36740         * modules/symlinkat-tests (Files): Likewise.
36741         * modules/times-tests (Files): Likewise.
36742         * modules/trunc-tests (Files): Likewise.
36743         * modules/truncf-tests (Files): Likewise.
36744         * modules/truncl-tests (Files): Likewise.
36745         * modules/tsearch-tests (Files): Likewise.
36746         * modules/uname-tests (Files): Likewise.
36747         * modules/unlink-tests (Files): Likewise.
36748         * modules/unsetenv-tests (Files): Likewise.
36749         * modules/usleep-tests (Files): Likewise.
36750         * modules/utimensat-tests (Files): Likewise.
36751         * modules/vasprintf-tests (Files): Likewise.
36752         * modules/vdprintf-posix-tests (Files): Likewise.
36753         * modules/vfprintf-posix-tests (Files): Likewise.
36754         * modules/vprintf-posix-tests (Files): Likewise.
36755         * modules/vsnprintf-posix-tests (Files): Likewise.
36756         * modules/vsnprintf-tests (Files): Likewise.
36757         * modules/vsprintf-posix-tests (Files): Likewise.
36758         * modules/wcrtomb-tests (Files): Likewise.
36759         * modules/wcsnrtombs-tests (Files): Likewise.
36760         * modules/wcsrtombs-tests (Files): Likewise.
36761         * modules/wcwidth-tests (Files): Likewise.
36762         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36763         * tests/test-isinf.c (isinf): Likewise.
36764         * tests/test-isnan.c (isnan): Likewise.
36765         * tests/test-signbit.c (signbit): Likewise.
36766         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36767         declaration, either as macro or with correct signature.
36768         (select): Ensure function under test is declared with correct
36769         signature in correct header.
36770         * tests/test-atexit.c (atexit): Likewise.
36771         * tests/test-btowc.c (btowc): Likewise.
36772         * tests/test-canonicalize-lgpl.c (realpath)
36773         (canonicalize_file_name): Likewise.
36774         * tests/test-ceilf1.c (ceilf): Likewise.
36775         * tests/test-ceill.c (ceill): Likewise.
36776         * tests/test-chown.c (chown): Likewise.
36777         * tests/test-dprintf-posix.c (dprintf): Likewise.
36778         * tests/test-dup2.c (dup2): Likewise.
36779         * tests/test-dup3.c (dup3): Likewise.
36780         * tests/test-duplocale.c (duplocale): Likewise.
36781         * tests/test-fchdir.c (fchdir): Likewise.
36782         * tests/test-fchownat.c (fchownat): Likewise.
36783         * tests/test-fcntl.c (fcntl): Likewise.
36784         * tests/test-fdopendir.c (fdopendir): Likewise.
36785         * tests/test-fflush.c (fflush): Likewise.
36786         * tests/test-flock.c (flock): Likewise.
36787         * tests/test-floorf1.c (floorf): Likewise.
36788         * tests/test-floorl.c (floorl): Likewise.
36789         * tests/test-fnmatch.c (fnmatch): Likewise.
36790         * tests/test-fopen.c (fopen): Likewise.
36791         * tests/test-fprintf-posix.c (fprintf): Likewise.
36792         * tests/test-freopen.c (freopen): Likewise.
36793         * tests/test-frexp.c (frexp): Likewise.
36794         * tests/test-frexpl.c (frexpl): Likewise.
36795         * tests/test-fseek.c (fseek): Likewise.
36796         * tests/test-fseeko.c (fseeko): Likewise.
36797         * tests/test-fstatat.c (fstatat): Likewise.
36798         * tests/test-fsync.c (fsync): Likewise.
36799         * tests/test-ftell.c (ftell): Likewise.
36800         * tests/test-ftello.c (ftello): Likewise.
36801         * tests/test-futimens.c (futimens): Likewise.
36802         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36803         (gai_strerror): Likewise.
36804         * tests/test-getcwd.c (getcwd): Likewise.
36805         * tests/test-getdelim.c (getdelim): Likewise.
36806         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36807         * tests/test-getgroups.c (getgroups): Likewise.
36808         * tests/test-gethostname.c (gethostname): Likewise.
36809         * tests/test-getline.c (getline): Likewise.
36810         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36811         Likewise.
36812         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36813         * tests/test-glob.c (glob, globfree): Likewise.
36814         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36815         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36816         * tests/test-inet_pton.c (inet_pton): Likewise.
36817         * tests/test-isblank.c (isblank): Likewise.
36818         * tests/test-lchown.c (lchown): Likewise.
36819         * tests/test-ldexpl.c (ldexpl): Likewise.
36820         * tests/test-link.c (link): Likewise.
36821         * tests/test-linkat.c (linkat): Likewise.
36822         * tests/test-lseek.c (lseek): Likewise.
36823         * tests/test-lstat.c (lstat): Likewise.
36824         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36825         * tests/test-mbsinit.c (mbsinit): Likewise.
36826         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36827         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36828         * tests/test-memchr.c (memchr): Likewise.
36829         * tests/test-memcmp.c (memcmp): Likewise.
36830         * tests/test-memmem.c (memmem): Likewise.
36831         * tests/test-memrchr.c (memrchr): Likewise.
36832         * tests/test-mkdir.c (mkdir): Likewise.
36833         * tests/test-mkdirat.c (mkdirat): Likewise.
36834         * tests/test-mkfifo.c (mkfifo): Likewise.
36835         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36836         * tests/test-mknod.c (mknod): Likewise.
36837         * tests/test-nanosleep.c (nanosleep): Likewise.
36838         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36839         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36840         Likewise.
36841         * tests/test-open.c (open): Likewise.
36842         * tests/test-openat.c (openat): Likewise.
36843         * tests/test-perror.c (perror): Likewise.
36844         * tests/test-pipe2.c (pipe2): Likewise.
36845         * tests/test-poll.c (poll): Likewise.
36846         * tests/test-popen.c (popen, pclose): Likewise.
36847         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36848         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36849         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36850         (posix_spawn_file_actions_destroy)
36851         (posix_spawn_file_actions_addclose)
36852         (posix_spawn_file_actions_addopen)
36853         (posix_spawn_file_actions_adddup2): Likewise.
36854         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36855         * tests/test-pread.c (pread): Likewise.
36856         * tests/test-printf-posix.c (printf): Likewise.
36857         * tests/test-pty.c (openpty, forkpty): Likewise.
36858         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36859         (random_r): Likewise.
36860         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36861         * tests/test-readlink.c (readlink): Likewise.
36862         * tests/test-remove.c (remove): Likewise.
36863         * tests/test-rename.c (rename): Likewise.
36864         * tests/test-renameat.c (renameat): Likewise.
36865         * tests/test-rmdir.c (rmdir): Likewise.
36866         * tests/test-round1.c (round): Likewise.
36867         * tests/test-roundf1.c (roundf): Likewise.
36868         * tests/test-roundl.c (roundl): Likewise.
36869         * tests/test-setenv.c (setenv): Likewise.
36870         * tests/test-sigaction.c (sigaction): Likewise.
36871         * tests/test-sleep.c (sleep): Likewise.
36872         * tests/test-snprintf.c (snprintf): Likewise.
36873         * tests/test-sprintf-posix.c (sprintf): Likewise.
36874         * tests/test-stat.c (stat): Likewise.
36875         * tests/test-stpncpy.c (stpncpy): Likewise.
36876         * tests/test-strcasestr.c (strcasestr): Likewise.
36877         * tests/test-strchrnul.c (strchrnul): Likewise.
36878         * tests/test-strerror.c (strerror): Likewise.
36879         * tests/test-strsignal.c (strsignal): Likewise.
36880         * tests/test-strstr.c (strstr): Likewise.
36881         * tests/test-strtod.c (strtod): Likewise.
36882         * tests/test-strverscmp.c (strverscmp): Likewise.
36883         * tests/test-symlink.c (symlink): Likewise.
36884         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36885         * tests/test-times.c (times): Likewise.
36886         * tests/test-trunc1.c (trunc): Likewise.
36887         * tests/test-truncf1.c (truncf): Likewise.
36888         * tests/test-truncl.c (truncl): Likewise.
36889         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36890         Likewise.
36891         * tests/test-uname.c (uname): Likewise.
36892         * tests/test-unlink.c (unlink): Likewise.
36893         * tests/test-unlinkat.c (unlinkat): Likewise.
36894         * tests/test-unsetenv.c (unsetenv): Likewise.
36895         * tests/test-usleep.c (usleep): Likewise.
36896         * tests/test-utimensat.c (utimensat): Likewise.
36897         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36898         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36899         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36900         * tests/test-vprintf-posix.c (vprintf): Likewise.
36901         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36902         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36903         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36904         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36905         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36906         * tests/test-wcwidth.c (wcwidth): Likewise.
36907
36908         build: pull in conditional headers during GNULIB_POSIXCHECK
36909         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36910         definitions from any conditionally-included headers.
36911         * lib/stdlib.in.h (includes): Likewise.
36912         * lib/unistd.in.h (includes): Likewise.
36913
36914 2009-12-24  Bruno Haible  <bruno@clisp.org>
36915
36916         * tests/test-argv-iter.c: Include header file being tested immediately
36917         after config.h.
36918         * tests/test-base64.c: Likewise.
36919         * tests/test-flock.c: Likewise.
36920         * tests/test-fsync.c: Likewise.
36921         * tests/test-getdate.c: Likewise.
36922         * tests/test-getndelim2.c: Likewise.
36923         * tests/test-isfinite.c: Likewise.
36924         * tests/test-isinf.c: Likewise.
36925         * tests/test-strerror.c: Likewise.
36926         * tests/test-strsignal.c: Likewise.
36927
36928 2009-12-23  Eric Blake  <ebb9@byu.net>
36929
36930         unistd: work around cygwin bug
36931         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36932         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36933         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36934
36935 2009-12-23  Bruno Haible  <bruno@clisp.org>
36936
36937         localename: More tests.
36938         * tests/test-localename.c (SIZEOF): New macro.
36939         (categories): New variable.
36940         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36941         test_locale_name_default): Add test w.r.t. thread locale.
36942         (test_locale_name_thread): New function.
36943         (main): Invoke it.
36944
36945         localename: Make aware of thread locale.
36946         * lib/localename.h (gl_locale_name_thread): New declaration.
36947         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36948         behaviour with respect to thread locale.
36949         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36950         <langinfo.h>, glthread/lock.h.
36951         (SIZE_BITS): New macro.
36952         (string_hash): New function.
36953         (struct hash_node): New type.
36954         (HASH_TABLE_SIZE): New macro.
36955         (struniq_hash_table, struniq_lock): New variables.
36956         (struniq): New function.
36957         (gl_locale_name_thread): New function.
36958         (gl_locale_name): Invoke it.
36959         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36960         * modules/localename (Depends-on): Add lock.
36961         Reported by Mike Gran <spk121@yahoo.com>.
36962
36963 2009-12-23  Eric Blake  <ebb9@byu.net>
36964
36965         va-args: new module
36966         * modules/va-args: New file.
36967         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36968         * MODULES.html.sh (Core language properties): Mention it.
36969
36970         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36971         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36972         named alias for __attribute__((__unused__)).
36973         * lib/chown.c: Update client.
36974         * lib/fchmodat.c: Likewise.
36975         * lib/fts.c: Likewise.
36976         * lib/getdate.y: Likewise.
36977         * lib/getgroups.c: Likewise.
36978         * lib/getopt.c: Likewise.
36979         * lib/getugroups.c: Likewise.
36980         * lib/mkdir.c: Likewise.
36981         * lib/mkfifo.c: Likewise.
36982         * lib/mkfifoat.c: Likewise.
36983         * lib/mknod.c: Likewise.
36984         * lib/mknodat.c: Likewise.
36985         * lib/readlink.c: Likewise.
36986         * lib/se-context.in.h: Likewise.
36987         * lib/se-selinux.in.h: Likewise.
36988         * lib/sockets.c: Likewise.
36989         * lib/symlink.c: Likewise.
36990         * lib/symlinkat.c: Likewise.
36991         * lib/unicodeio.c: Likewise.
36992         * lib/unistr.h: Likewise.
36993         * tests/test-areadlink.c: Likewise.
36994         * tests/test-areadlinkat.c: Likewise.
36995         * tests/test-filenamecat.c: Likewise.
36996         * tests/test-fseeko.c: Likewise.
36997         * tests/test-ftello.c: Likewise.
36998         * tests/test-getdate.c: Likewise.
36999         * tests/test-getgroups.c: Likewise.
37000         * tests/test-gethostname.c: Likewise.
37001         * tests/test-quotearg.c: Likewise.
37002         * tests/test-version-etc.c: Likewise.
37003         * tests/test-xalloc-die.c: Likewise.
37004         * tests/test-xfprintf-posix.c: Likewise.
37005         * tests/test-xprintf-posix.c: Likewise.
37006         * tests/test-xvasprintf.c: Likewise.
37007
37008         tests: avoid compiler warnings
37009         * tests/test-fcntl.c (main): Delete unused parameters.
37010         * tests/test-freopen-safer.c (main): Likewise.
37011         * tests/test-xalloc-die.c (main): Mark unused parameters.
37012         * tests/test-fseeko.c (main): Likewise.
37013         * tests/test-ftello.c (main): Likewise.
37014         * tests/test-nanosleep.c (main): Avoid declaration warning.
37015         * tests/test-sleep.c (main): Likewise.
37016         * tests/test-unsetenv.c (main): Silence warning about string
37017         literal.
37018         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37019
37020 2009-12-23  Bruno Haible  <bruno@clisp.org>
37021
37022         * tests/test-localename.c (test_locale_name): New function, extracted
37023         from main. Also test mixed situations.
37024         (test_locale_name_posix, test_locale_name_environ,
37025         test_locale_name_default): New functions.
37026         (main): Invoke them all.
37027         * modules/localename-tests (configure.ac): Test for newlocale.
37028
37029 2009-12-23  Bruno Haible  <bruno@clisp.org>
37030
37031         unistd: Ensure getcwd gets declared before being overridden.
37032         * lib/unistd.in.h: Conditionally include <io.h>.
37033
37034 2009-12-22  Bruno Haible  <bruno@clisp.org>
37035
37036         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37037         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37038         (gl_WCHAR_H): Invoke it.
37039         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37040         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37041         Reported by Karl Berry <karl@freefriends.org>.
37042
37043 2009-12-22  Eric Blake  <ebb9@byu.net>
37044
37045         math, unistd: avoid redundant includes
37046         * lib/math.in.h (isnan): No need to re-include <math.h>.
37047         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37048
37049         getsubopt: work around cygwin bug
37050         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37051         avoid conflicting with system getsubopt.
37052         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37053         bug.
37054
37055         getopt: synchronize from glibc
37056         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37057         parameter order.  Adjust all callers.
37058         (_getopt_internal_r, main): Adjust quoting in error messages.
37059         Drop considerations for outdated POSIX 1003.2 error message.
37060         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37061         callers.
37062         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37063
37064         test-getopt: test stderr behavior
37065         * modules/getopt-posix-tests (Depends-on): Add dup2.
37066         * tests/test-getopt.c (ASSERT): Avoid stderr.
37067         (main): Move stderr to a temporary file.
37068         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37069         Instead, add parameter to inform caller if output occurred.
37070         (test_getopt): Adjust all existing tests to expect silence, and
37071         add new tests of leading ":".
37072         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37073         glibc shortcomings with leading "-:" or "+:" in optstring.
37074         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37075         Likewise.
37076         * doc/posix-functions/getopt.texi (getopt): Likewise.
37077
37078         test-getopt: enhance test
37079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37080         supports optind=0.
37081         * tests/test-getopt.c (OPTIND_MIN): Move...
37082         * tests/test-getopt.h (OPTIND_MIN): ...here.
37083         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37084         Require that optind=0 works, since modern BSD supports it in
37085         addition to optreset, and since coreutils expects it.
37086         (test_getopt_long_only): New test.
37087         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37088         glibc shortcomings with 'W;', and enforcement of optind=0.
37089         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37090         Likewise.
37091
37092 2009-12-21  Bruno Haible  <bruno@clisp.org>
37093
37094         localename: Improvements for MacOS X and Cygwin.
37095         * lib/localename.h (gl_locale_name_environ): New declaration.
37096         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37097         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37098         (gl_locale_name_posix): Invoke it.
37099         (gl_locale_name_default): Add comments. Use Windows native API also on
37100         Cygwin.
37101
37102 2009-12-21  Bruno Haible  <bruno@clisp.org>
37103
37104         Update list of Win32 locale ids.
37105         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37106         (LANG_SAMI): Renamed from LANG_SAAMI.
37107         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37108         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37109         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37110         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37111         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37112         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37113         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37114         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37115         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37116         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37117         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37118         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37119         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37120         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37121         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37122         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37123         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37124         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37125         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37126         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37127         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37128         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37129         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37130         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37131         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37132         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37133         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37134         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37135         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37136         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37137         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37138         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37139         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37140         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37141         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37142         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37143         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37144         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37145         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37146         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37147         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37148         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37149         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37150         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37151         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37152         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37153         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37154         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37155         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37156         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37157         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37158         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37159         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37160         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37161         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37162         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37163         Add more languages and countries for Sami, Sorbian. Add more countries
37164         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37165         for Pashto. Change country for Syriac, Tswana.
37166
37167 2009-12-21  Eric Blake  <ebb9@byu.net>
37168
37169         test-utimens: avoid spurious failure
37170         * tests/test-chown.h (nap): Factor...
37171         * tests/nap.h: ...into new file.
37172         * tests/test-lchown.h (nap): Avoid duplication.
37173         * tests/test-utimens-common.h (nap): Use shared implementation,
37174         necessary on file systems with 1-second resolution.
37175         * modules/chown-tests (Files): Include new file.
37176         * modules/fdutimensat-tests (Files): Likewise.
37177         * modules/futimens-tests (Files): Likewise.
37178         * modules/lchown-tests (Files): Likewise.
37179         * modules/openat-tests (Files): Likewise.
37180         * modules/utimens-tests (Files): Likewise.
37181         * modules/utimensat-tests (Files): Likewise.
37182
37183 2009-12-19  Eric Blake  <ebb9@byu.net>
37184
37185         futimens, utimensat: work around Linux bug
37186         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37187         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37188         * lib/utimensat.c (rpl_utimensat): Work around it.
37189         * lib/futimens.c (rpl_futimens): Adjust comment.
37190
37191         utimens: work around Linux ctime bug
37192         * lib/utimens.c (detect_ctime_bug): New helper function.
37193         (update_timespec): Differentiate between workaround needed for
37194         this bug vs. what is needed for systems that lack utimensat.
37195         (fdutimens, lutimens): Work around bug.
37196
37197         utimens: check for ctime update
37198         * tests/test-utimens-common.h (check_ctime): Define.
37199         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37200         * tests/test-futimens.h (test_futimens): Likewise.
37201         * tests/test-lutimens.h (test_lutimens): Likewise.
37202         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37203         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37204
37205 2009-12-19  Bruno Haible  <bruno@clisp.org>
37206
37207         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37208         * tests/test-dprintf-posix2.sh: New file.
37209         * tests/test-dprintf-posix2.c: New file.
37210         * modules/dprintf-posix-tests (Files): Add them.
37211         (configure.ac): Check for getrlimit and setrlimit.
37212         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37213
37214 2009-12-19  Bruno Haible  <bruno@clisp.org>
37215
37216         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37217         * tests/test-fprintf-posix3.sh: New file.
37218         * tests/test-fprintf-posix3.c: New file.
37219         * modules/fprintf-posix-tests (Files): Add them.
37220         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37221
37222 2009-12-19  Eric Blake  <ebb9@byu.net>
37223
37224         dirfd: fix prototype
37225         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37226         * lib/dirfd.c (dirfd): Likewise.
37227
37228         canonicalize: reduce memory usage
37229         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37230         allocation to size.
37231         Reported by Solar Designer <solar@openwall.com>.
37232
37233 2009-12-19  Bruno Haible  <bruno@clisp.org>
37234
37235         New module attribute 'Applicability'.
37236         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37237         * gnulib-tool: New option --extract-applicability.
37238         (func_usage): Document it.
37239         (sed_extract_prog): Recognize it.
37240         (func_get_applicability): New function.
37241         (func_import): Generalize handling of 'link-warning' module.
37242         * modules/link-warning (Applicability): New section.
37243         * modules/arg-nonnull (Applicability): New section.
37244         Repoted by Simon Josefsson <simon@josefsson.org>.
37245
37246 2009-12-19  Bruno Haible  <bruno@clisp.org>
37247
37248         fflush: tweak
37249         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37250         * lib/fseeko.c (rpl_fseeko): Likewise.
37251
37252 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37253
37254         * lib/gl_list.h: Fix typo in comment.
37255
37256 2009-12-16  Eric Blake  <ebb9@byu.net>
37257
37258         fcntl: use to simplify other modules
37259         * modules/cloexec (Depends-on): Add fcntl.
37260         * modules/fchdir (Depends-on): Likewise.
37261         * modules/fd-safer-flag (Depends-on): Likewise.
37262         * modules/unistd-safer (Depends-on): Likewise.
37263         * modules/dup3 (configure.ac): Set module indicator.
37264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37265         missing.
37266         * lib/fchdir.c (_gl_register_dup): Fix comment.
37267         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37268         * lib/dup-safer.c (dup_safer): Likewise.
37269         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37270         * lib/dup3.c (dup3): Likewise.
37271         * tests/test-fchdir.c (main): Enhance test.
37272         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37273
37274         fcntl: port portions of fcntl to mingw
37275         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37276         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37277         replacement for mingw.
37278         * modules/fcntl (Description): Update.
37279         (Depends-on): Add dup2.
37280         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37281         * modules/fcntl-h (Makefile.am): Substitute it.
37282         * lib/fcntl.in.h (fcntl): Update declaration.
37283         (F_DUPFD, F_GETFD): New macros, when needed.
37284         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37285         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37286         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37287         we now guarantee.
37288
37289         fcntl: work around cygwin bug in F_DUPFD
37290         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37291         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37292         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37293         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37294         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37295
37296         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37297         * modules/fcntl (Files): List new files.
37298         (configure.ac): Run a test.
37299         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37300         * lib/fcntl.c (rpl_fcntl): Likewise.
37301         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37302         (gl_FCNTL_H): Always replace fcntl.h.
37303         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37304         * lib/fcntl.in.h (fcntl): Declare replacement.
37305         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37306         needed, plus a witness.
37307         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37308         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37309         * tests/test-fcntl.c: New file.
37310         * modules/fcntl-tests: Likewise.
37311
37312         binary-io: avoid potential compilation warning
37313         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37314         directives.
37315
37316         fflush: avoid compilation error on NetBSD
37317         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37318         between off_t and fpos_t, since the latter is sometimes a struct.
37319         * lib/fseeko.c (rpl_fseeko): Likewise.
37320         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37321
37322 2009-12-15  Eric Blake  <ebb9@byu.net>
37323
37324         fcntl-h, stdio, sys_ioctl: fix declarations
37325         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37326         function must not take arguments.
37327         * lib/sys_ioctl.in.h (ioctl): Likewise.
37328         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37329         (open): Add a link warning.
37330
37331 2009-12-15  Jim Meyering  <meyering@redhat.com>
37332
37333         areadlink, areadlink-with-size: relax license to LGPLv2+
37334         * modules/areadlink (License): Relax to LGPLv2+.
37335         * modules/areadlink-with-size (License): Likewise.
37336
37337 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37338             Bruno Haible  <bruno@clisp.org>
37339
37340         *printf: Fix memory leak.
37341         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37342         * lib/vfprintf.c (vfprintf): Likewise.
37343         * lib/dprintf.c (dprintf): Likewise.
37344         * lib/vdprintf.c (vdprintf): Likewise.
37345
37346 2009-12-14  Eric Blake  <ebb9@byu.net>
37347
37348         accept4: adjust module dependencies
37349         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37350
37351         utimens: one more try at avoiding compiler warning
37352         * lib/utimens.c (lutimens): Lower scope of result.
37353
37354 2009-12-13  Bruno Haible  <bruno@clisp.org>
37355
37356         Move the malloc checking from module 'list' to new module 'xlist'.
37357         * modules/xlist: New file.
37358         * lib/gl_xlist.h: New file.
37359         * lib/gl_xlist.c: New file.
37360         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37361         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37362         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37363         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37364         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37365         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37366         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37367         gl_sortedlist_nx_add): New declarations.
37368         (struct gl_list_implementation): Rename and change methods accordingly.
37369         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37370         (gl_list_nx_create): Renamed from gl_list_create.
37371         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37372         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37373         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37374         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37375         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37376         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37377         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37378         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37379         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37380         gl_list_create_empty.
37381         (gl_list_nx_create): Renamed from gl_list_create.
37382         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37383         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37384         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37385         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37386         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37387         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37388         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37389         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37390         * lib/gl_array_list.c: Don't include xalloc.h.
37391         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37392         NULL upon out-of-memory.
37393         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37394         out-of-memory.
37395         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37396         Change return type to 'int'.
37397         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37398         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37399         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37400         upon out-of-memory.
37401         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37402         upon out-of-memory.
37403         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37404         upon out-of-memory.
37405         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37406         upon out-of-memory.
37407         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37408         out-of-memory.
37409         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37410         Update.
37411         (gl_array_list_implementation): Update.
37412         * lib/gl_carray_list.c: Don't include xalloc.h.
37413         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37414         Return NULL upon out-of-memory.
37415         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37416         out-of-memory.
37417         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37418         Change return type to 'int'.
37419         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37420         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37421         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37422         upon out-of-memory.
37423         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37424         upon out-of-memory.
37425         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37426         out-of-memory.
37427         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37428         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37429         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37430         Update.
37431         (gl_carray_list_implementation): Update.
37432         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37433         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37434         gl_linked_create_empty. Return NULL upon out-of-memory.
37435         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37436         out-of-memory.
37437         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37438         Change return type to 'int'. Return -1 upon out-of-memory.
37439         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37440         out-of-memory.
37441         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37442         upon out-of-memory.
37443         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37444         upon out-of-memory.
37445         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37446         NULL upon out-of-memory.
37447         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37448         upon out-of-memory.
37449         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37450         out-of-memory.
37451         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37452         Update.
37453         * lib/gl_linked_list.c: Don't include xalloc.h.
37454         (gl_linked_list_implementation): Update.
37455         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37456         (add_to_bucket): Change return type to 'int'.
37457         (gl_linkedhash_list_implementation): Update.
37458         * lib/gl_anytree_list1.h (free_subtree): New function.
37459         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37460         gl_tree_create_empty. Return NULL upon out-of-memory.
37461         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37462         Change return type to 'int'. Return -1 upon out-of-memory.
37463         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37464         out-of-memory.
37465         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37466         (gl_tree_remove_node): New function, moved here from
37467         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37468         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37469         Update.
37470         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37471         malloc, not xmalloc. Return NULL upon out-of-memory.
37472         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37473         out-of-memory.
37474         (gl_tree_remove_node_from_tree): New function, extracted from
37475         gl_tree_remove_node.
37476         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37477         upon out-of-memory.
37478         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37479         out-of-memory.
37480         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37481         upon out-of-memory.
37482         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37483         upon out-of-memory.
37484         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37485         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37486         not xmalloc. Return NULL upon out-of-memory.
37487         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37488         out-of-memory.
37489         (gl_tree_remove_node_from_tree): New function, extracted from
37490         gl_tree_remove_node.
37491         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37492         upon out-of-memory.
37493         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37494         out-of-memory.
37495         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37496         upon out-of-memory.
37497         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37498         upon out-of-memory.
37499         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37500         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37501         gl_anytree_list1.h before gl_anyavltree_list2.h.
37502         (gl_avltree_list_implementation): Update.
37503         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37504         gl_anytree_list1.h before gl_anyavltree_list2.h.
37505         (gl_rbtree_list_implementation): Update.
37506         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37507         Change return type to 'int'. Return -1 upon out-of-memory. Use
37508         __builtin_expect.
37509         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37510         (gl_avltreehash_list_implementation): Update.
37511         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37512         (gl_rbtreehash_list_implementation): Update.
37513         * modules/array-list (Depends-on): Remove xalloc.
37514         * modules/carray-list (Depends-on): Likewise.
37515         * modules/linked-list (Depends-on): Likewise.
37516         * modules/linkedhash-list (Depends-on): Likewise.
37517         * modules/avltree-list (Depends-on): Likewise.
37518         * modules/rbtree-list (Depends-on): Likewise.
37519         * modules/avltreehash-list (Depends-on): Likewise.
37520         * modules/rbtreehash-list (Depends-on): Likewise.
37521
37522         * modules/xsublist: New file.
37523         * lib/gl_xsublist.h: New file.
37524         * lib/gl_xsublist.c: New file.
37525         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37526         (gl_sublist_nx_create): New declaration.
37527         * lib/gl_sublist.c: Don't include xalloc.h.
37528         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37529         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37530         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37531         Change return type to 'int'. Return -1 upon out-of-memory.
37532         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37533         upon out-of-memory.
37534         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37535         NULL upon out-of-memory.
37536         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37537         upon out-of-memory.
37538         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37539         NULL upon out-of-memory.
37540         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37541         NULL upon out-of-memory.
37542         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37543         upon out-of-memory.
37544         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37545         (gl_sublist_list_implementation): Update.
37546         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37547         upon out-of-memory.
37548         * modules/sublist (Depends-on): Remove xalloc.
37549
37550         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37551         * tests/test-carray_list.c: Likewise.
37552         * tests/test-linked_list.c: Likewise.
37553         * tests/test-linkedhash_list.c: Likewise.
37554         * tests/test-avltree_list.c: Likewise.
37555         * tests/test-rbtree_list.c: Likewise.
37556         * tests/test-avltreehash_list.c: Likewise.
37557         * tests/test-rbtreehash_list.c: Likewise.
37558         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37559         * modules/carray-list-tests (Makefile.am): Likewise.
37560         * modules/linked-list-tests (Makefile.am): Likewise.
37561         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37562         * modules/avltree-list-tests (Makefile.am): Likewise.
37563         * modules/rbtree-list-tests (Makefile.am): Likewise.
37564         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37565         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37566
37567         * NEWS: Mention the changes.
37568
37569         * lib/clean-temp.c: Include gl_xlist.h.
37570         * modules/clean-temp (Depends-on): Add xlist.
37571
37572         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37573         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37574
37575         * tests/test-array_oset.c: Include gl_xlist.h.
37576         * modules/array-oset-tests (Depends-on): Add xlist.
37577
37578         Reported by José E. Marchesi <jemarch@gnu.org>.
37579
37580 2009-12-13  Bruno Haible  <bruno@clisp.org>
37581
37582         Move the malloc checking from module 'oset' to new module 'xoset'.
37583         * modules/xoset: New file.
37584         * lib/gl_xoset.h: New file.
37585         * lib/gl_xoset.c: New file.
37586         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37587         declarations.
37588         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37589         (struct gl_oset_implementation): Rename and change methods accordingly.
37590         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37591         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37592         'int'. Mark as __warn_unused_result__.
37593         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37594         gl_oset_create_empty.
37595         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37596         'int'.
37597         * lib/gl_array_oset.c: Don't include xalloc.h.
37598         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37599         malloc, not xmalloc.
37600         (grow): Change return type to 'int'. Don't call xalloc_die.
37601         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37602         to 'int'.
37603         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37604         'int'.
37605         (gl_array_oset_implementation): Update.
37606         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37607         gl_tree_create_empty.
37608         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37609         'int'.
37610         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37611         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37612         xmalloc.
37613         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37614         not xmalloc.
37615         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37616         xmalloc.
37617         (gl_avltree_oset_implementation): Update.
37618         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37619         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37620         xmalloc.
37621         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37622         not xmalloc.
37623         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37624         xmalloc.
37625         (gl_rbtree_oset_implementation): Update.
37626         * modules/array-oset (Depends-on): Remove xalloc.
37627         * modules/avltree-oset (Depends-on): Likewise.
37628         * modules/rbtree-oset (Depends-on): Likewise.
37629         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37630         * tests/test-avltree_oset.c: Likewise.
37631         * tests/test-rbtree_oset.c: Likewise.
37632         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37633         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37634         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37635         * NEWS: Mention the change.
37636
37637 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37638
37639         maint.mk: allow a project to override release-prep commands
37640         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37641         commands into a new rule.
37642         (release-prep): New rule.
37643         (release-prep-hook): New overridable variable.
37644
37645 2009-12-13  Bruno Haible  <bruno@clisp.org>
37646
37647         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37648
37649 2009-12-13  Jim Meyering  <meyering@redhat.com>
37650
37651         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37652         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37653
37654 2009-12-12  Bruno Haible  <bruno@clisp.org>
37655
37656         duplocale: Tweak.
37657         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37658
37659 2009-12-12  Karl Berry  <karl@gnu.org>
37660
37661         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37662
37663 2009-12-12  Bruno Haible  <bruno@clisp.org>
37664
37665         * m4/po.m4: Undo incorrect untabification.
37666
37667 2009-12-12  Bruno Haible  <bruno@clisp.org>
37668
37669         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37670         * modules/c-strtod (Depends-on): Add locale.
37671         * modules/c-strtold (Depends-on): Likewise.
37672
37673 2009-12-12  Bruno Haible  <bruno@clisp.org>
37674
37675         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37676
37677 2009-12-11  Eric Blake  <ebb9@byu.net>
37678
37679         setenv: relax requirement in light of POSIX ruling
37680         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37681         not NULL.
37682         * tests/test-setenv.c (main): Relax test.
37683         * tests/test-unsetenv.c (main): Likewise.
37684         * doc/posix-functions/setenv.texi (setenv): Document this.
37685         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37686
37687 2009-12-11  Bruno Haible  <bruno@clisp.org>
37688
37689         New module 'fd-safer-flag'.
37690         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37691         * lib/dup-safer.c (dup_safer_flag): Remove function.
37692         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37693         * lib/fd-safer.c (fd_safer_flag): Remove function.
37694         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37695         * modules/cloexec (configure.ac): Drop indicator macro.
37696         * modules/fd-safer-flag: New file.
37697         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37698         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37699         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37700
37701 2009-12-11  Bruno Haible  <bruno@clisp.org>
37702
37703         Tests for module 'nl_langinfo'.
37704         * modules/nl_langinfo-tests: New file.
37705         * tests/test-nl_langinfo.sh: New file.
37706         * tests/test-nl_langinfo.c: New file.
37707
37708         New module 'nl_langinfo'.
37709         * lib/nl_langinfo.c: New file.
37710         * m4/nl_langinfo.m4: New file.
37711         * modules/nl_langinfo: New file.
37712         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37713
37714 2009-12-11  Bruno Haible  <bruno@clisp.org>
37715
37716         Tests for module 'langinfo'.
37717         * modules/langinfo-tests: New file.
37718         * tests/test-langinfo.c: New file.
37719
37720         New module 'langinfo'.
37721         * lib/langinfo.in.h: New file.
37722         * m4/langinfo_h.m4: New file.
37723         * modules/langinfo: New file.
37724         * doc/posix-headers/langinfo.texi: Mention the new module.
37725
37726 2009-12-11  Bruno Haible  <bruno@clisp.org>
37727
37728         * lib/config.charset: Untabify.
37729
37730 2009-12-11  Bruno Haible  <bruno@clisp.org>
37731
37732         * modules/unistd-safer (configure.ac): Drop indicator macro.
37733
37734 2009-12-11  Bruno Haible  <bruno@clisp.org>
37735
37736         Move pipe2-safer code to its own file.
37737         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37738         * lib/pipe-safer.c (pipe2_safer): Remove function.
37739         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37740         (Makefile.am): Add it to lib_SOURCES.
37741
37742 2009-12-10  Bruno Haible  <bruno@clisp.org>
37743
37744         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37745
37746 2009-12-10  Bruno Haible  <bruno@clisp.org>
37747
37748         Declare which arguments expect non-NULL values, for GCC and clang.
37749         * build-aux/arg-nonnull.h: New file.
37750         * modules/arg-nonnull: New file.
37751         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37752         (inet_ntop, inet_pton): Use it.
37753         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37754         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37755         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37756         (open, openat): Use it.
37757         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37758         (fnmatch): Use it.
37759         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37760         (getopt, getopt_long, getopt_long_only): Use it.
37761         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37762         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37763         Use it.
37764         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37765         (iconv_open): Use it.
37766         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37767         (strtoimax, strtoumax): Use it.
37768         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37769         (duplocale): Use it.
37770         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37771         (frexp, frexpl): Use it.
37772         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37773         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37774         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37775         (tsearch, tfind, tdelete, twalk): Use it.
37776         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37777         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37778         sigpending): Use it.
37779         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37780         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37781         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37782         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37783         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37784         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37785         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37786         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37787         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37788         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37789         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37790         Use it.
37791         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37792         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37793         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37794         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37795         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37796         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37797         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37798         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37799         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37800         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37801         strtoull, unsetenv): Use it.
37802         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37803         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37804         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37805         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37806         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37807         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37808         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37809         (strcasecmp, strncasecmp): Use it.
37810         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37811         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37812         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37813         rpl_setsockopt): Use it.
37814         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37815         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37816         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37817         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37818         (gettimeofday): Use it.
37819         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37820         (times): Use it.
37821         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37822         (uname): Use it.
37823         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37824         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37825         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37826         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37827         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37828         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37829         unlinkat, write): Use it.
37830         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37831         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37832         * lib/argv-iter.h: Include arg-nonnull.h.
37833         (_ATTRIBUTE_NONNULL_): Remove macro.
37834         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37835         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37836         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37837         optimization.
37838         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37839         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37840         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37841         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37842         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37843         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37844         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37845         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37846         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37847         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37848         * modules/dirent (Depends-on): Add arg-nonnull.
37849         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37850         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37851         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37852         * modules/fnmatch (Depends-on): Add arg-nonnull.
37853         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37854         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37855         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37856         * modules/glob (Depends-on): Add arg-nonnull.
37857         (Makefile.am): Insert arg-nonnull.h into glob.h.
37858         * modules/iconv_open (Depends-on): Add arg-nonnull.
37859         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37860         * modules/inttypes (Depends-on): Add arg-nonnull.
37861         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37862         * modules/locale (Depends-on): Add arg-nonnull.
37863         (Makefile.am): Insert arg-nonnull.h into locale.h.
37864         * modules/math (Depends-on): Add arg-nonnull.
37865         (Makefile.am): Insert arg-nonnull.h into math.h.
37866         * modules/netdb (Depends-on): Add arg-nonnull.
37867         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37868         * modules/search (Depends-on): Add arg-nonnull.
37869         (Makefile.am): Insert arg-nonnull.h into search.h.
37870         * modules/signal (Depends-on): Add arg-nonnull.
37871         (Makefile.am): Insert arg-nonnull.h into signal.h.
37872         * modules/spawn (Depends-on): Add arg-nonnull.
37873         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37874         * modules/stdio (Depends-on): Add arg-nonnull.
37875         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37876         * modules/stdlib (Depends-on): Add arg-nonnull.
37877         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37878         * modules/string (Depends-on): Add arg-nonnull.
37879         (Makefile.am): Insert arg-nonnull.h into string.h.
37880         * modules/strings (Depends-on): Add arg-nonnull.
37881         (Makefile.am): Insert arg-nonnull.h into strings.h.
37882         * modules/sys_socket (Depends-on): Add arg-nonnull.
37883         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37884         * modules/sys_stat (Depends-on): Add arg-nonnull.
37885         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37886         * modules/sys_time (Depends-on): Add arg-nonnull.
37887         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37888         * modules/sys_times (Depends-on): Add arg-nonnull.
37889         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37890         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37891         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37892         * modules/time (Depends-on): Add arg-nonnull.
37893         (Makefile.am): Insert arg-nonnull.h into time.h.
37894         * modules/unistd (Depends-on): Add arg-nonnull.
37895         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37896         * modules/wchar (Depends-on): Add arg-nonnull.
37897         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37898         * modules/argv-iter (Depends-on): Add arg-nonnull.
37899         * tests/test-canonicalize.c (null_ptr): New function.
37900         (main): Use it.
37901         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37902         (main): Use it.
37903         * tests/test-memmem.c (null_ptr): New function.
37904         (main): Use it.
37905         Reported by Jim Meyering.
37906
37907 2009-12-10  Bruno Haible  <bruno@clisp.org>
37908
37909         Use spaces for indentation, not tabs.
37910         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37911         * m4/*.m4: Untabify.
37912         * build-aux/*.h: Untabify.
37913         * tests/**/*.[hc]: Untabify.
37914         * README: New section "Indent with spaces, not TABs", based on
37915         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37916         * NEWS: Mention the change.
37917
37918 2009-12-10  Bruno Haible  <bruno@clisp.org>
37919
37920         pty test: Fix link error.
37921         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37922         test_pty_LDADD.
37923
37924 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37925
37926         * modules/pty: New file.
37927         * modules/pty-tests: New file.
37928         * m4/pty.m4: New file.
37929         * tests/test-pty.c: New file.
37930         * doc/glibc-headers/pty.texi: Modified.
37931         * doc/glibc-functions/forkpty.texi: Modified.
37932         * doc/glibc-functions/openpty.texi: Modified.
37933
37934 2009-12-10  Bruno Haible  <bruno@clisp.org>
37935
37936         Avoid syntax error in C++ mode.
37937         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37938
37939 2009-12-10  Bruno Haible  <bruno@clisp.org>
37940
37941         Use sed with option -e.
37942         * gnulib-tool (func_version, func_emit_copyright_notice,
37943         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37944         option -e to sed.
37945         * modules/link-warning (Makefile.am): Likewise.
37946
37947 2009-12-10  Jim Meyering  <meyering@redhat.com>
37948
37949         mgetgroups: do not write bytes beyond end of malloc'd buffer
37950         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37951         username, we call getgroups with a one-element-shorter buffer,
37952         but still told it the length was original, max_n_groups.
37953
37954 2009-12-09  Eric Blake  <ebb9@byu.net>
37955
37956         cloexec: relax license
37957         * modules/cloexec (Maintainer): Add myself.
37958         (License): Use LGPL, not GPL.
37959
37960         link-warning: optimize generation
37961         * modules/link-warning (Makefile.am): Reduce process usage.
37962
37963 2009-12-09  Bruno Haible  <bruno@clisp.org>
37964
37965         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37966         workaround was added on 2009-11-17.
37967
37968 2009-12-09  Jim Meyering  <meyering@redhat.com>
37969             Bruno Haible  <bruno@clisp.org>
37970
37971         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37972         * modules/link-warning (Makefile.am): Make the comment-removing sed
37973         command more robust in the face of bootstrap-prepended comment lines.
37974
37975 2009-12-09  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37978         most one group.
37979
37980 2009-12-09  Simon Josefsson <simon@josefsson.org>
37981             Bruno Haible  <bruno@clisp.org>
37982
37983         * build-aux/link-warning.h: Add copyright notice.
37984         * modules/link-warning (Makefile.am): Generate link-warning.h from
37985         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37986         * NEWS: Mention change in link-warning module.
37987         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37988         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37989         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37990         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37991         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37992         * modules/math (Makefile.am): Add dependency to math.h.
37993         * modules/search (Makefile.am): Add dependency to search.h.
37994         * modules/signal (Makefile.am): Add dependency to signal.h.
37995         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37996         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37997         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37998         * modules/string (Makefile.am): Add dependency to string.h.
37999         * modules/strings (Makefile.am): Add dependency to strings.h.
38000         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38001         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38002         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38003         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38004         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38005         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38006         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38007         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38008         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38009
38010 2009-12-09  Bruno Haible  <bruno@clisp.org>
38011
38012         fchdir: Optimize away rpl_fstat when possible.
38013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38014         REPLACE_OPEN_DIRECTORY.
38015         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38016
38017 2009-12-09  Bruno Haible  <bruno@clisp.org>
38018
38019         * lib/fchdir.c: Update comment.
38020
38021 2009-12-09  Bruno Haible  <bruno@clisp.org>
38022
38023         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38024
38025 2009-12-08  Eric Blake  <ebb9@byu.net>
38026
38027         fchdir: avoid memory leak on re-registration.
38028         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38029
38030 2009-12-08  Jim Meyering  <meyering@redhat.com>
38031
38032         init.sh: avoid Solaris 10 /bin/sh portability problem
38033         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38034         sourced script:
38035           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38036           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38037           bar
38038         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38039         and two tests used that idiom.
38040         * tests/init.sh: Update suggested usage comments.
38041         (path_prepend_): New function, to be used in place
38042         of the --src-path=DIR option.
38043         (setup_): Move PATH-prepending code into path_prepend_.
38044         * tests/test-pread.sh: Adapt to new usage.
38045         * tests/test-xalloc-die.sh: Likewise.
38046
38047 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38048
38049         * doc/gnulib.texi (Glibc pty.h): Add.
38050         * doc/glibc-functions/forkpty.texi: Add.
38051         * doc/glibc-functions/openpty.texi: Add.
38052         Suggested by Bruno Haible.
38053
38054 2009-12-08  Eric Blake  <ebb9@byu.net>
38055
38056         fchdir: fix logic bugs
38057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38058         * tests/test-fchdir.c (main): Enhance test.
38059         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38060         is in use.
38061
38062         dup2: fix logic bugs
38063         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38064         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38065         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38066         exists.
38067         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38068
38069 2009-12-07  Eric Blake  <ebb9@byu.net>
38070
38071         unlink: fix m4 detection
38072         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38073
38074         unistd-safer: add unit test
38075         * modules/unistd-safer-tests: New file.
38076         * tests/test-dup-safer.c: Likewise.
38077         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38078         * tests/test-dup2.c (setmode): Likewise.
38079         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38080
38081         cloexec: preserve text vs. binary across dup_cloexec
38082         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38083         mode.
38084         * modules/dup2-tests (Depends-on): Add binary-io.
38085         * modules/cloexec-tests (Depends-on): Likewise.
38086         * tests/test-dup2.c (setmode, is_mode): New helpers.
38087         (main): Add tests that translation mode is preserved.
38088         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38089         Reported by Bruno Haible.
38090
38091         mgetgroups: reduce duplicate listings
38092         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38093         resulting array.
38094         * tests/test-chown.h (test_chown): Simplify client.
38095         * tests/test-lchown.h (test_lchown): Likewise.
38096
38097 2009-12-06  Bruno Haible  <bruno@clisp.org>
38098
38099         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38100         value.
38101
38102 2009-12-06  Bruno Haible  <bruno@clisp.org>
38103
38104         * lib/progname.c: Include stdio.h, stdlib.h.
38105         (set_program_name): Reject a NULL argument.
38106
38107 2009-12-05  Eric Blake  <ebb9@byu.net>
38108
38109         pipe2-safer: new module
38110         * modules/pipe2-safer: New file.
38111         * lib/unistd-safer.h (pipe2_safer): New prototype.
38112         * lib/unistd--.h (pipe2): New wrapper.
38113         * lib/pipe-safer.c (pipe2_safer): New function.
38114         * modules/pipe (Depends-on): Add pipe2-safer.
38115         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38116
38117         stdlib-safer: preserve cloexec flag for mkostemp[s]
38118         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38119         fd_safer_flag.
38120
38121         unistd-safer: allow preservation of cloexec status via flag
38122         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38123         prototypes.
38124         * lib/dup-safer.c (dup_safer_flag): New function.
38125         * lib/fd-safer.c (fd_safer_flag): Likewise.
38126         * modules/cloexec (configure.ac): Set witness.
38127
38128         test-dup2: enhance test
38129         * modules/dup2-tests (Depends-on): Add cloexec.
38130         * tests/test-dup2.c (main): Enhance test.
38131
38132         cloexec: add dup_cloexec
38133         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38134         header and comments.
38135         * lib/cloexec.c (set_cloexec_flag): Add comments.
38136         (dup_cloexec): New function, with mingw implementation borrowed
38137         from...
38138         * lib/w32spawn.h (dup_noinherit): ...here.
38139         * modules/execute (Depends-on): Add cloexec.
38140         * modules/pipe (Depends-on): Likewise.
38141         * modules/cloexec (Depends-on): Add dup2.
38142         * modules/cloexec-tests (Files): New file.
38143         * tests/test-cloexec.c: Likewise.
38144
38145         test-xalloc-die: fix test for mingw
38146         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38147         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38148         directory and .exe suffix off argv[0] output.
38149
38150         test-fseeko: fix test for mingw
38151         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38152         than undefining fseek, so test will pass on mingw.
38153
38154 2009-12-05  Bruno Haible  <bruno@clisp.org>
38155
38156         * lib/progname.h (set_program_name): Clarify specification.
38157         * lib/progname.c (set_program_name): Likewise.
38158         Reported by Jim Meyering.
38159
38160 2009-12-05  Jim Meyering  <meyering@redhat.com>
38161
38162         maint.mk: backslash-escape parens in default regexp
38163         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38164         backslash-escape the literal parentheses.
38165
38166         maint.mk: news-date-check: use grep -E
38167         * top/maint.mk (today): Define a Make variable, not a...
38168         (news-date-check): ...shell variable.
38169         (news-date-regexp): Use the Make variable.
38170         Use grep's -E option.  Change the failing diagnostic to mention
38171         the variable, $(news-date-regexp).
38172
38173 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38174
38175         maintainer-makefile: allow customization of NEWS entry format
38176         * top/maint.mk (news-date-regexp): New overridable variable.
38177         (news-date-check): Use it.
38178
38179 2009-12-04  Eric Blake  <ebb9@byu.net>
38180
38181         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38182         * lib/mgetgroups.h (xgetgroups): New prototype.
38183         * lib/mgetgroups.c (xgetgroups): New wrapper.
38184         (mgetgroups): Handle ENOSYS.
38185         * modules/mgetgroups (Depends-on): Add realloc.
38186         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38187
38188         mgetgroups: avoid argument promotion issues with -1
38189         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38190         for invalid gid_t.
38191         * tests/test-chown.h (getegid, test_chown): Likewise.
38192         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38193
38194 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38195
38196         exclude: Fix header file problems.
38197         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38198
38199 2009-12-01  Jim Meyering  <meyering@redhat.com>
38200
38201         fts: fts_open: do not let an empty string cause immediate failure
38202         This is required in support of GNU rm, for which the command
38203         "rm A '' B" must process and remove both A and B, in spite of
38204         the empty string argument.
38205         * lib/fts.c (fts_open): Do not let the presence of an empty string
38206         cause fts_open to fail immediately.  Most fts-using tools must be
38207         able to process all arguments, in order, and can be expected to
38208         diagnose such arguments themselves.
38209
38210 2009-11-30  Eric Blake  <ebb9@byu.net>
38211
38212         utimens: fix compilation error
38213         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38214         Declare variable at right scope.
38215
38216 2009-11-29  Jim Meyering  <meyering@redhat.com>
38217
38218         bootstrap: handle perl-5.11's changed --version output
38219         * build-aux/bootstrap (get_version): Handle perl separately,
38220         since perl-5.11's --version output is different.
38221
38222 2009-11-28  Jim Meyering  <meyering@redhat.com>
38223
38224         userspec: depend on the inttostr module, too
38225         * modules/userspec (Depends-on): Add inttostr.
38226
38227         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38228         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38229         number of MAXUID when it evaluates to (uid_t) -1.
38230         Likewise for group ID.  Reported by Matt McCutchen in
38231         <http://savannah.gnu.org/bugs/?28113>
38232
38233         userspec: reformat to use spaces, not TABs
38234         * lib/userspec.c: Expand TABs to spaces.
38235         Add Emacs' "indent-tabs-mode: nil" hint.
38236
38237 2009-11-27  Eric Blake  <ebb9@byu.net>
38238
38239         getopt-gnu: flush out another BSD bug
38240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38241         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38242         flush out BSD bug.
38243         * tests/test-getopt.h (test_getopt): End lists with NULL.
38244         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38245         (test_getopt_long_posix): Enhance test.
38246         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38247         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38248         getopt-gnu.
38249         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38250         Likewise.
38251
38252 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38253
38254         * modules/idpriv-droptemp-tests (Notice): Fix text.
38255
38256 2009-11-27  Jim Meyering  <meyering@redhat.com>
38257
38258         test-xalloc-die: avoid spurious failure due to libtool argv difference
38259         In a libtool-enabled project, this test would fail due to a difference
38260         in the emitted program name, e.g.,
38261         -test-xalloc-die: memory exhausted
38262         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38263         Use program to avoid that.
38264         * modules/xalloc-die-tests (Depends-on): Add progname.
38265         * tests/test-xalloc-die.c: Include progname.h".
38266         (program_name): Remove decl.
38267         (main): Call set_program_name.
38268         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38269
38270 2009-11-26  Richard Jones  <rjones@redhat.com>
38271
38272         w32sock: leave win32 error in place.
38273         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38274
38275 2009-11-26  Eric Blake  <ebb9@byu.net>
38276
38277         init.sh: suggest to use skip_ and fail_ functions in comments
38278         * tests/init.sh: Add a sentence.
38279
38280 2009-11-25  Bruno Haible  <bruno@clisp.org>
38281
38282         init.sh: add documentation in comments
38283         * tests/init.sh: Add some developer and user documentation.
38284
38285 2009-11-26  Jim Meyering  <meyering@redhat.com>
38286
38287         init.sh: accommodate even those who specify bogus srcdir manually
38288         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38289         configure-time tests to be sanitized, so that there is no need to
38290         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38291         (with no double quotes) suffices.  However, since tests may be
38292         invoked manually, and since you may explicitly set srcdir to the
38293         name of a directory containing spaces, do quote its uses here.
38294         * tests/test-pread.sh: Likewise.
38295         Suggested by Bruno Haible.
38296
38297         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38298         * tests/test-pread.sh: Write no data into the pipe, because
38299         test-pread actually reads none.  This avoids a diagnostic,
38300         "bash: echo: write error: Broken pipe", that arises in the unusual
38301         event something is ignoring SIGPIPE, and might be interpreted
38302         as some sort of failure.  Reported by Bruno Haible.
38303
38304 2009-11-25  Jim Meyering  <meyering@redhat.com>
38305
38306         test-pread: cover failure with ESPIPE and EINVAL
38307         * tests/test-pread.c (main): Test for failure, too.
38308         * tests/test-pread.sh: Invoke with stdin on a pipe.
38309         Suggested by Eric Blake.
38310
38311         pread: improvement and fix
38312         * modules/pread (Depends-on): Depend on lseek, for portability to
38313         e.g., mingw.  Suggested by Eric Blake.
38314         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38315
38316         unistd.in.h: correct declaration of pread
38317         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38318         Reported by Richard W.M. Jones.
38319
38320         test-pread.sh: distribute the test script
38321         * modules/pread-tests (Files): Include test-pread.sh.
38322
38323         test-pread.sh: clean up
38324         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38325         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38326         That is unnecessary, since it's always ".".
38327         Suggestion from Eric Blake.
38328
38329         test-pread.sh: make executable
38330         * tests/test-pread.sh: Set executable bit.
38331         Reported by Eric Blake.
38332
38333         correct typo in test-pread.sh
38334         * tests/test-pread.sh: Add #! line.
38335
38336         test pread
38337         * tests/test-pread.c: New file.
38338         * tests/test-pread.sh: Likewise.
38339         * modules/pread-tests: Likewise.
38340
38341         pread: new module
38342         * modules/pread: New file.
38343         * lib/unistd.in.h (pread): Define/declare.
38344         * lib/pread.c (pread): New file.
38345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38346         * modules/unistd (Makefile.am): Substitute witnesses.
38347         * doc/posix-functions/pread.texi (pread): Update.
38348         * MODULES.html.sh: Add pread.
38349
38350 2009-11-25  Jim Meyering  <meyering@redhat.com>
38351
38352         tests/init.sh: new file to be used via most *.sh tests
38353         * tests/init.sh: New file.
38354
38355 2009-11-25  Eric Blake  <ebb9@byu.net>
38356
38357         utimens: work around older Linux failure with symlinks
38358         * lib/utimens.c (lutimensat_works_really): New variable.
38359         (fdutimens, lutimens): Use it to manage kernels that support
38360         nanosecond times on files, but not on symlinks.
38361         Reported by OndÅ™ej Vašík.
38362
38363         utimes: fix configure grammar
38364         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38365
38366 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38367
38368         regex: Fix fastmap for multibyte character ranges.
38369         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38370         characters when a multibyte character range is included.
38371
38372 2009-11-22  Andy Wingo  <wingo@pobox.com>
38373
38374         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38375         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38376
38377 2009-11-24  Bruno Haible  <bruno@clisp.org>
38378
38379         doc: Most *_l functions exist in MacOS X 10.5.
38380         * doc/posix-functions/duplocale.texi: Update platforms list.
38381         * doc/posix-functions/freelocale.texi: Likewise.
38382         * doc/posix-functions/newlocale.texi: Likewise.
38383         * doc/posix-functions/uselocale.texi: Likewise.
38384         * doc/posix-functions/isalnum_l.texi: Likewise.
38385         * doc/posix-functions/isalpha_l.texi: Likewise.
38386         * doc/posix-functions/isblank_l.texi: Likewise.
38387         * doc/posix-functions/iscntrl_l.texi: Likewise.
38388         * doc/posix-functions/isdigit_l.texi: Likewise.
38389         * doc/posix-functions/isgraph_l.texi: Likewise.
38390         * doc/posix-functions/islower_l.texi: Likewise.
38391         * doc/posix-functions/isprint_l.texi: Likewise.
38392         * doc/posix-functions/ispunct_l.texi: Likewise.
38393         * doc/posix-functions/isspace_l.texi: Likewise.
38394         * doc/posix-functions/isupper_l.texi: Likewise.
38395         * doc/posix-functions/iswalnum_l.texi: Likewise.
38396         * doc/posix-functions/iswalpha_l.texi: Likewise.
38397         * doc/posix-functions/iswblank_l.texi: Likewise.
38398         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38399         * doc/posix-functions/iswctype_l.texi: Likewise.
38400         * doc/posix-functions/iswdigit_l.texi: Likewise.
38401         * doc/posix-functions/iswgraph_l.texi: Likewise.
38402         * doc/posix-functions/iswlower_l.texi: Likewise.
38403         * doc/posix-functions/iswprint_l.texi: Likewise.
38404         * doc/posix-functions/iswpunct_l.texi: Likewise.
38405         * doc/posix-functions/iswspace_l.texi: Likewise.
38406         * doc/posix-functions/iswupper_l.texi: Likewise.
38407         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38408         * doc/posix-functions/isxdigit_l.texi: Likewise.
38409         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38410         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38411         * doc/posix-functions/strcoll_l.texi: Likewise.
38412         * doc/posix-functions/strfmon_l.texi: Likewise.
38413         * doc/posix-functions/strftime_l.texi: Likewise.
38414         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38415         * doc/posix-functions/strxfrm_l.texi: Likewise.
38416         * doc/posix-functions/tolower_l.texi: Likewise.
38417         * doc/posix-functions/toupper_l.texi: Likewise.
38418         * doc/posix-functions/towctrans_l.texi: Likewise.
38419         * doc/posix-functions/towlower_l.texi: Likewise.
38420         * doc/posix-functions/towupper_l.texi: Likewise.
38421         * doc/posix-functions/wcscoll_l.texi: Likewise.
38422         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38423         * doc/posix-functions/wctrans_l.texi: Likewise.
38424         * doc/posix-functions/wctype_l.texi: Likewise.
38425         * doc/glibc-functions/strptime_l.texi: Likewise.
38426         * doc/glibc-functions/strtod_l.texi: Likewise.
38427         * doc/glibc-functions/strtof_l.texi: Likewise.
38428         * doc/glibc-functions/strtol_l.texi: Likewise.
38429         * doc/glibc-functions/strtold_l.texi: Likewise.
38430         * doc/glibc-functions/strtoll_l.texi: Likewise.
38431         * doc/glibc-functions/strtoul_l.texi: Likewise.
38432         * doc/glibc-functions/strtoull_l.texi: Likewise.
38433         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38434         * doc/glibc-functions/wcstod_l.texi: Likewise.
38435         * doc/glibc-functions/wcstof_l.texi: Likewise.
38436         * doc/glibc-functions/wcstol_l.texi: Likewise.
38437         * doc/glibc-functions/wcstold_l.texi: Likewise.
38438         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38439         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38440         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38441
38442 2009-11-24  Bruno Haible  <bruno@clisp.org>
38443
38444         duplocale: Fix logic bug.
38445         * lib/duplocale.c: Don't include <langinfo.h>.
38446         (_NL_LOCALE_NAME): Remove macro.
38447         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38448         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38449
38450 2009-11-23  Jim Meyering  <meyering@redhat.com>
38451
38452         test-update-copyright: don't hard-code /usr/bin/perl
38453         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38454         perl to print the current year.  Gilles Espinasse reported that
38455         the replaced use of perl was hard-coded as /usr/bin/perl.
38456
38457 2009-11-23  Bruno Haible  <bruno@clisp.org>
38458
38459         duplocale: Add support for glibc 2.3.x.
38460         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38461
38462 2009-11-22  Bruno Haible  <bruno@clisp.org>
38463
38464         vasnprintf: Tiny optimization.
38465         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38466         MacOS X.
38467
38468 2009-11-22  Bruno Haible  <bruno@clisp.org>
38469
38470         Tests for module 'duplocale'.
38471         * modules/duplocale-tests: New file.
38472         * tests/test-duplocale.c: New file.
38473
38474         New module 'duplocale'.
38475         * m4/duplocale.m4: New file.
38476         * lib/locale.in.h (duplocale): New declaration.
38477         * lib/duplocale.c: New file.
38478         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38479         gl_LOCALE_H_DEFAULTS): New macros.
38480         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38481         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38482         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38483         REPLACE_DUPLOCALE.
38484         * modules/duplocale: New file.
38485         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38486
38487 2009-11-22  Bruno Haible  <bruno@clisp.org>
38488
38489         * modules/locale-tests (configure.ac): Test for newlocale function.
38490         * tests/test-locale.c: When the system has extended locale functions,
38491         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38492
38493         locale: Make locale_t available when possible.
38494         * lib/locale.in.h: Include <xlocale.h> when it exists.
38495         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38496         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38497         * modules/locale (Depends-on): Add extensions.
38498         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38499         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38500
38501 2009-11-22  Bruno Haible  <bruno@clisp.org>
38502
38503         Add comments.
38504         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38505         invocation.
38506         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38507         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38508         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38509
38510 2009-11-22  Bruno Haible  <bruno@clisp.org>
38511
38512         error: account for the possibility of freopen (stdout).
38513         * lib/error.c: Include <unistd.h>.
38514         (flush_stdout): New function, extracted from error and error_at_line.
38515         Determine stdout's fd dynamically.
38516         (error, error_at_line): Invoke flush_stdout.
38517         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38518         * modules/error (Depends-on): Add unistd.
38519
38520 2009-11-22  Bruno Haible  <bruno@clisp.org>
38521
38522         diffseq: Add comment.
38523         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38524
38525 2009-11-22  Jim Meyering  <meyering@redhat.com>
38526
38527         c-stack: avoid defining an unused static function
38528         * lib/c-stack.c (find_stack_direction): Do not define this function
38529         when it will not be used.
38530
38531         diffseq: avoid spurious gcc warnings
38532         * lib/diffseq.h (IF_LINT2): Define.
38533         (compareseq): Use it to initialize two members of "part".
38534         This avoids two used-uninitialized warnings.
38535
38536 2009-11-21  Jim Meyering  <meyering@redhat.com>
38537
38538         c-stack: avoid "ignoring return value of `write'" warning
38539         * lib/c-stack.c: Include "ignore-value.h".
38540         (die): Explicitly ignore each write return value.
38541         * modules/c-stack (Depends-on): Add ignore-value.
38542
38543 2009-11-21  Bruno Haible  <bruno@clisp.org>
38544
38545         diffseq: reduce scope of variable 'best'.
38546         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38547         variable, earlier used for two different purposes.
38548
38549 2009-11-21  Jim Meyering  <meyering@redhat.com>
38550
38551         diffseq: remove useless assignment to "best"
38552         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38553         assignment.  At that point "best" is already guaranteed to be zero.
38554
38555 2009-11-20  Eric Blake  <ebb9@byu.net>
38556
38557         build: mention ftp redirector in release announcements
38558         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38559         values that used to come from cfg.mk; mention FTP redirect URL.
38560         * build-aux/announce-gen: Mention the mirror list.
38561         Suggested by Karl Berry.
38562
38563         nanosleep: improve port to mingw
38564         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38566         LIB_NANOSLEEP, but only when needed.
38567         * modules/select (Link): Document LIBSOCKET.
38568         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38569         enough.
38570
38571         nanosleep: work around cygwin bug
38572         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38573         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38574         bug.
38575         (getnow): Delete, not needed.
38576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38577         LIB_CLOCK_GETTIME.
38578         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38579         clock-time, gettime.
38580         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38581         bug.
38582         * modules/nanosleep-tests: New test.
38583         * tests/test-nanosleep.c: New file.
38584
38585         sleep: work around cygwin bug
38586         * lib/sleep.c (rpl_sleep): Work around the bug.
38587         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38588         (gl_PREREQ_SLEEP): Delete unused macro.
38589         * modules/sleep (Depends-on): Add verify.
38590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38591         * modules/unistd (Makefile.am): Substitute witness.
38592         * lib/unistd.in.h (sleep): Update prototype.
38593         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38594         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38595         * modules/sleep-tests (Depends-on): Check for alarm.
38596
38597 2009-11-20  Jim Meyering  <meyering@redhat.com>
38598
38599         maint.mk: improve sc_prohibit_magic_number_exit
38600         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38601         so it does not match uses like System.exit(1).
38602         Add comments showing how to correct all offenders.
38603
38604 2009-11-19  Eric Blake  <ebb9@byu.net>
38605
38606         xalloc-die-tests: add missing library
38607         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38608
38609         test-xvasprintf: silence compiler warnings
38610         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38611         empty string from gcc.
38612
38613 2009-11-19  Jim Meyering  <meyering@redhat.com>
38614
38615         xfreopen: new module, from coreutils
38616         * modules/xfreopen: New module.
38617         * lib/xfreopen.c: New file.
38618         * lib/xfreopen.h: New file.
38619         * MODULES.html.sh (File stream based Input/Output"): Add it.
38620
38621 2009-11-19  Eric Blake  <ebb9@byu.net>
38622
38623         manywarnings: depend on warnings
38624         * modules/manywarnings (Depends-on): Add warnings.
38625
38626         build: avoid compiler warnings
38627         * lib/select.c (rpl_select): Delete unused variable.
38628         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38629
38630 2009-11-18  Eric Blake  <ebb9@byu.net>
38631
38632         tests: avoid false negative with --with-packager
38633         * tests/test-version-etc.sh: Discard packager information.
38634         * tests/test-argp-version-etc-1.sh: Likewise.
38635         Reported by Mike Frysinger.
38636
38637         utimens: fix regression on Solaris
38638         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38639         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38640         can only change fd timestamps via futimesat.  Instead, use an
38641         additional witness macro to avoid BSD bug.
38642         Reported by Jim Meyering.
38643
38644 2009-11-17  Eric Blake  <ebb9@byu.net>
38645
38646         usleep: use it to simplify tests
38647         * modules/stat-time-tests (Depends-on): Add usleep.
38648         (configure.ac): Drop usleep check.
38649         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38650         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38651         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38652         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38653         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38654         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38655         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38656         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38657         Likewise.
38658         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38659         * tests/test-lchown.h (nap): Likewise.
38660         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38661         * tests/test-stat-time.c (nap): Likewise.
38662         * tests/test-utimens-common.h (nap): Update comments.
38663
38664         usleep: new module
38665         * modules/usleep: New file.
38666         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38667         * lib/usleep.c (usleep): Likewise.
38668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38669         * modules/unistd (Makefile.am): Substitute witnesses.
38670         * lib/unistd.in.h (usleep): Add declaration.
38671         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38672         * MODULES.html.sh (Date and time): Likewise.
38673         * modules/usleep-tests (Depends-on): New test.
38674         * tests/test-usleep.c: New file.
38675
38676         chown: work around OpenBSD bug
38677         * lib/chown.c (rpl_chown): Work around the bug.
38678         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38679         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38680         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38681         * modules/chown (Depends-on): Add stdbool.
38682         * modules/lchown (Depends-on): Likewise.
38683         * doc/posix-functions/chown.texi (chown): Document the bug.
38684         * doc/posix-functions/lchown.texi (lchown): Likewise.
38685         * tests/test-lchown.h (test_chown): Relax test.
38686
38687         mkstemp: avoid conflict with C++ keyword template
38688         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38689         * lib/mkostemp.c (mkostemp): Likewise.
38690         * lib/mkostemps.c (mkostemps): Likewise.
38691         * lib/mkstemp.c (mkstemp): Likewise.
38692         * lib/mkstemps.c (mkstemps): Likewise.
38693
38694         xalloc-die-tests: optimize
38695         * tests/test-xalloc-die.sh: Reduce number of processes.
38696
38697 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38698
38699         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38700         patch from ludo@gnu.org (Ludovic Courtès).
38701
38702 2009-11-17  Jim Meyering  <meyering@redhat.com>
38703
38704         version-etc: use proper license string
38705         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38706         * modules/version-etc-fsf: Likewise.
38707
38708 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38709
38710         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38711         printed to stdout.  Deal with EOL differences.
38712
38713 2009-11-17  Eric Blake  <ebb9@byu.net>
38714
38715         unsetenv: work around Solaris bug
38716         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38717         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38718         Reported by Jim Meyering.
38719
38720         vasnprintf: avoid compiler warnings
38721         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38722         variables.
38723         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38724
38725 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38726
38727         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38728         settings since xalloc-die is no longer the self test,
38729         xalloc-die.sh is.
38730
38731 2009-11-17  Jim Meyering  <meyering@redhat.com>
38732
38733         test-xalloc-die.sh: make the code agree with the commit log
38734         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38735         at the end, just in case you happen to have a test-xalloc-die
38736         program in some other PATH directory.
38737
38738         test-xalloc-die.sh: fix a portability bug
38739         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38740         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38741         Otherwise, argv[0] (as often seen in diagnostics) would be too
38742         system-dependent, sometimes with, and sometimes without the leading "./".
38743
38744         version-etc-fsf: relax license to LGPLv3+
38745         * modules/version-etc-fsf (License): Relax license.
38746
38747 2009-11-16  Eric Blake  <ebb9@byu.net>
38748
38749         xalloc-die-tests: avoid printing null pointer
38750         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38751         shell script.
38752         * tests/test-xalloc-die.c (program_name): Declare.
38753         * tests/test-xalloc-die.sh (tmpfiles): New file.
38754
38755         setenv, unsetenv: work around various bugs
38756         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38757         (setenv) [HAVE_SETENV]: Work around bugs.
38758         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38759         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38760         for bugs.
38761         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38762         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38764         * modules/stdlib (Makefile.am): Update substitutions.
38765         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38766         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38767         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38768         * modules/setenv-tests: New test.
38769         * modules/unsetenv-tests: Likewise.
38770         * tests/test-setenv.c: New file.
38771         * tests/test-unsetenv.c: Likewise.
38772
38773 2009-11-16  Jim Meyering  <meyering@redhat.com>
38774
38775         version-etc: relax license to LGPLv3+
38776         * modules/version-etc (License): Relax license.
38777
38778         better AC_REQUIRE expanded-before-required-warning avoidance
38779         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38780         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38781         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38782         which is no longer needed.
38783
38784 2009-11-16  Eric Blake  <ebb9@byu.net>
38785
38786         test-freading: clean up temporary file
38787         * tests/test-freading.c (main): Remove file on success, and use
38788         ASSERT more liberally.
38789         Reported by Jim Meyering.
38790
38791 2009-11-16  Jim Meyering  <meyering@redhat.com>
38792
38793         avoid new AC_REQUIRE expanded-before-required warnings
38794         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38795         merely using it.
38796         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38797         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38798
38799 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38800
38801         * tests/test-xalloc-die.c: New file.
38802         * modules/xalloc-die-tests: New file.
38803         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38804         XFAIL_TESTS so it can be appended by modules.
38805
38806 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38807
38808         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38809         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38810
38811 2009-11-14  Eric Blake  <ebb9@byu.net>
38812
38813         fnmatch: avoid compiler warning
38814         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38815         to silence compiler warning about mismatch signedness in ?:.
38816         Reported by Robert Millan.
38817
38818         intprops: add double-inclusion guard
38819         * lib/intprops.h: Allow idempotent includes.
38820         Suggested by Bruce Korb.
38821
38822         openat: detect Solaris fchownat bug
38823         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38824         penalizing glibc chownat when only lchownat is broken.
38825         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38826         trailing slash bugs.
38827         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38828         * modules/openat-tests (Files): Include more files.
38829         (Depends-on): Add mgetgroups, sleep, stat-time.
38830         (configure.ac): Add additional checks.
38831         (Makefile.am): Build new test.
38832         * tests/test-fchownat.c: New file.
38833
38834         lchown: detect Solaris and FreeBSD bug
38835         * lib/lchown.c (rpl_lchown): Work around bug.
38836         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38838         * modules/unistd (Makefile.am): Populate it.
38839         * lib/unistd.in.h (lchown): Update declaration.
38840         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38841         * modules/lchown-tests: New file.
38842         * tests/test-lchown.h (test_lchown): Likewise.
38843         * tests/test-lchown.c (main): Likewise.
38844
38845         chown: detect Solaris and FreeBSD bug
38846         * lib/chown.c (rpl_chown): Work around bug.
38847         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38848         (gl_PREREQ_CHOWN): Delete.
38849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38850         * modules/unistd (Makefile.am): Populate it.
38851         * lib/unistd.in.h (chown): Update declaration.
38852         * lib/lchown.c (chown): Update client.
38853         * modules/lchown (Depends-on): Add lstat.
38854         * doc/posix-functions/chown.texi (chown): Document the bug.
38855         * doc/posix-functions/getgroups.texi (getgroups): Document
38856         getgroups pitfall.
38857         * modules/chown-tests: New file.
38858         * tests/test-chown.h (test_chown): Likewise.
38859         * tests/test-chown.c (main): Likewise.
38860
38861 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38862
38863         gnulib-tool: correctly detect absence of m4 directories
38864         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38865
38866 2009-11-14  Jim Meyering  <meyering@redhat.com>
38867
38868         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38869         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38870
38871 2009-11-14  John W. Eaton  <jwe@gnu.org>
38872
38873         strftime.h: wrap funtion declaration in extern "C" block
38874         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38875
38876 2009-11-13  Eric Blake  <ebb9@byu.net>
38877
38878         getgroups: avoid compiler warning
38879         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38880
38881         getgroups: work around FreeBSD bug
38882         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38883         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38884         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38885         * tests/test-getgroups.c (main): Fix buffer overrun.
38886
38887         getgroups: avoid compilation failure
38888         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38889         * modules/getgroups (Depends-on): Add stdint.
38890
38891 2009-11-13  Jim Meyering  <meyering@redhat.com>
38892
38893         test-getgroups: avoid compilation failure
38894         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38895
38896 2009-11-13  Eric Blake  <ebb9@byu.net>
38897
38898         mgetgroups: new module, taken from coreutils
38899         * modules/mgetgroups: New file.
38900         * lib/mgetgroups.h: Likewise.
38901         * lib/mgetgroups.c (mgetgroups): Likewise.
38902         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38903         * MODULES.html.sh (Users and groups): Mention it.
38904
38905         getgroups: don't expose GETGROUPS_T to user
38906         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38907         an element at a time if GETGROUPS_T is wrong size.
38908         * lib/getugroups.h (getugroups): Change signature.
38909         * lib/unistd.in.h (getgroups): Likewise.
38910         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38911         signature needs fixing.
38912         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38913         AC_TYPE_GETGROUPS.
38914         * modules/group-member (Depends-on): Add getgroups.
38915         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38916         (group_member): Rely on getgroups replacement.
38917         * lib/getugroups.c (getugroups): Use gid_t.
38918         * tests/test-getgroups.c (main): Likewise.
38919         * NEWS: Mention the signature change.
38920         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38921         problem with signature.
38922         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38923         GETGROUPS_T is still useful for setgroups.
38924
38925         getgroups, getugroups: provide stubs for mingw
38926         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38927         * lib/getugroups.c (getugroups): Likewise.
38928         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38929         function.  Modernize replacement scheme.
38930         (gl_PREREQ_GETGROUPS): Delete.
38931         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38932         * modules/getgroups (configure.ac): Declare witness.
38933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38934         * modules/unistd (Depends-on): Substitute witness.
38935         * lib/unistd.in.h (getgroups): Declare replacement.
38936
38937         getgroups: avoid calling exit
38938         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38939         drop xalloc.
38940         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38941         dependencies.
38942         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38943         exiting, in the rare case of malloc failure.
38944
38945         getgroups: fix logic error
38946         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38947         has more than 20 groups.
38948         * modules/getgroups-tests: New test.
38949         * tests/test-getgroups.c: New file.
38950
38951 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38952
38953         * tests/test-base64.c: Improve.
38954
38955 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38956
38957         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38958         Blake <ebb9@byu.net>.
38959
38960 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38961
38962         * tests/test-xvasprintf.c: Add %s%s related checks.
38963
38964 2009-11-12  Eric Blake  <ebb9@byu.net>
38965
38966         version-etc: match standards.texi style
38967         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38968         and use <> only for URLs.
38969
38970 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38971
38972         fts: do not fail on a submount during traversal
38973         * lib/fts.c (fts_build): Read the stat info again after opening
38974         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38975         Original report at http://bugzilla.redhat.com/501848.
38976
38977 2009-11-12  Jim Meyering  <meyering@redhat.com>
38978
38979         bootstrap: sync from coreutils
38980         * build-aux/bootstrap (bootstrap_epilogue): New function.
38981         Use git_modules_config in one more place.  This make bootstrap's
38982         --gnulib-srcdir option more useful for testing.
38983
38984         bootstrap: generalize autoheader check
38985         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38986         AC_CONFIG_HEADERS.
38987
38988 2009-11-11  Eric Blake  <ebb9@byu.net>
38989
38990         mkfifoat: use new modules for Solaris and BSD bugs
38991         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38992         * lib/mkfifoat.c (mknodat): Split...
38993         * lib/mknodat.c (mknodat): ...into new file.
38994         * modules/mkfifoat (Files): Ship new file.
38995         (Depends-on): Add mkfifo, mknod.
38996         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38997         (Depends-on): Add symlink.
38998         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38999         redundant with test_mkfifo.h.
39000         (do_mkfifoat, do_mknodat): New helpers.
39001
39002         mknod: new module
39003         * modules/mknod: New file.
39004         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39005         * lib/mknod.c (mknod): Likewise.
39006         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39007         defaults.
39008         * modules/sys_stat (Makefile.am): Substitute them.
39009         * lib/sys_stat.in.h (mknod): Declare replacement.
39010         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39011         Document it.
39012         * doc/posix-functions/mknod.texi (mknod): Likewise.
39013         * modules/mknod-tests: New test.
39014         * tests/test-mknod.c: Likewise.
39015
39016         mkfifo: new module
39017         * modules/mkfifo: New file.
39018         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39019         * lib/mkfifo.c (mkfifo): Likewise.
39020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39021         defaults.
39022         * modules/sys_stat (Makefile.am): Substitute them.
39023         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39024         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39025         Document it.
39026         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39027         * modules/mkfifo-tests: New test.
39028         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39029         from test-mkfifoat.c.
39030         * tests/test-mkfifo.c: New file.
39031
39032         readlink: detect FreeBSD bug
39033         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39034         slash on symlink.
39035         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39036         * tests/test-readlink.h (test_readlink): Enhance test.
39037
39038         symlink: detect FreeBSD bug
39039         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39040         slash on symlink.
39041         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39042         * tests/test-symlink.h (test_symlink): Enhance test.
39043
39044 2009-11-10  Eric Blake  <ebb9@byu.net>
39045
39046         link: detect FreeBSD bug
39047         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39048         symlink.
39049         * doc/posix-functions/link.texi (link): Document the bug.
39050         * tests/test-link.h (test_link): Enhance test.
39051         * tests/test-linkat.c (main): Update caller.
39052
39053         unlink, remove: detect FreeBSD bug
39054         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39055         slash on symlink.
39056         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39057         * doc/posix-functions/remove.texi (remove): Likewise.
39058         * tests/test-unlink.h (test_unlink): Enhance test.
39059         * tests/test-remove.c (main): Likewise.
39060
39061 2009-11-09  Eric Blake  <ebb9@byu.net>
39062
39063         rename: detect FreeBSD bug
39064         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39065         slash on symlink.
39066         * modules/renameat-tests (Depends-on): Add filenamecat.
39067         * tests/test-rename.h (test_rename): Allow one more errno.
39068         * tests/test-renameat.c (main): Likewise.
39069         * doc/posix-functions/rename.texi (rename): Document the bug.
39070
39071         open: detect FreeBSD bug
39072         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39073         symlink.
39074         * doc/posix-functions/open.texi (open): Document the bug.
39075         * doc/posix-functions/utimes.texi (utimes): Likewise.
39076         * tests/test-open.h (test_open): Add parameters, and test symlink
39077         handling.
39078         * tests/test-open.c (main): Adjust caller.
39079         * tests/test-fcntl-safer.c (main): Likewise.
39080         * modules/open-tests (Depends-on): Add stdbool, symlink.
39081         * modules/fcntl-safer-tests (Depends-on): Likewise.
39082         * tests/test-openat.c (main): Add test-open tests.
39083
39084         stat: detect FreeBSD bug
39085         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39086         symlink.
39087         * doc/posix-functions/stat.texi (stat): Document the bug.
39088         * tests/test-stat.h (test_stat_func): Add argument.
39089         * tests/test-stat.c (main): Adjust caller.
39090         * tests/test-fstatat.c (main): Likewise.
39091         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39092         Reported by Jim Meyering.
39093
39094 2009-11-09  James Youngman  <jay@gnu.org>
39095
39096         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39097         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39098
39099 2009-11-08  Jim Meyering  <meyering@redhat.com>
39100
39101         utimens: remove invalid futimesat call
39102         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39103         It used the file descriptor of the target file as the DIR_FD
39104         parameter and NULL as the file name.  That caused failure with
39105         errno == EFAULT on FreeBSD-8.0-rc2
39106
39107 2009-11-07  Eric Blake  <ebb9@byu.net>
39108
39109         fflush, freadseek: use fseeko, not fseek
39110         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39111         (clear_ungetc_buffer): Avoid potential problems on large files.
39112         * lib/freadseek.c (freadseek): Likewise.
39113         * modules/freadseek (Depends-on): Add fseeko.
39114         * modules/fseek (configure.ac): Set a witness.
39115         * tests/test-fflush.c (main): Use fseeko.
39116         * tests/test-fpurge.c (fseek): Disable link warning.
39117         * tests/test-freadable.c (fseek): Likewise.
39118         * tests/test-freading.c (fseek): Likewise.
39119         * tests/test-fseeko.c (fseek): Likewise.
39120         * tests/test-ftell.c (fseek): Likewise.
39121         * tests/test-ftello.c (fseek): Likewise.
39122         * tests/test-fwritable.c (fseek): Likewise.
39123         * tests/test-fwriting.c (fseek): Likewise.
39124
39125 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39126
39127         * modules/memchr (Depends-on): Drop getpagesize dependency.
39128
39129 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39130
39131         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39132         Reported by Ludovic Courtès.
39133         * build-aux/pmccabe2html: Improve example usage.
39134         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39135
39136 2009-11-06  Jim Meyering  <meyering@redhat.com>
39137
39138         do-release-commit-and-tag: New module.
39139         Automate the release-commit and tag process.
39140         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39141         * modules/do-release-commit-and-tag: New file.
39142         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39143
39144 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39145
39146         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39147         because test-select.c uses inet_pton.
39148
39149 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39150
39151         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39152         GETADDRINFO_LIB.  Bump serial number.
39153         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39154         Suggested by Eric Blake <ebb9@byu.net>.
39155
39156 2009-11-05  Eric Blake  <ebb9@byu.net>
39157
39158         strtod: detect darwin bug
39159         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39160         Reported by Leo Davis.
39161
39162         freopen-safer: new module
39163         * modules/freopen-safer: New module.
39164         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39165         * lib/freopen-safer.c (freopen_safer): New file.
39166         * lib/stdio-safer.h (freopen_safer): New declaration.
39167         * lib/stdio--.h (freopen): New override.
39168         * MODULES.html.sh (File stream based Input/Output): Mention it.
39169         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39170         freopen-safer module.
39171         * doc/posix-functions/stderr.texi (stderr): Likewise.
39172         * doc/posix-functions/stdin.texi (stdin): Likewise.
39173         * doc/posix-functions/stdout.texi (stdout): Likewise.
39174         * modules/freopen-safer-tests: New test.
39175         * tests/test-reopen-safer.c: New file.
39176
39177 2009-11-05  Jim Meyering  <meyering@redhat.com>
39178
39179         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39180         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39181
39182 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39183
39184         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39185
39186 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39187
39188         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39189
39190 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39191
39192         Fix link error.
39193         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39194         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39195
39196 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39197
39198         * tests/test-func.c: Also test value of __func__.
39199
39200 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39201
39202         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39203         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39204
39205 2009-11-05  Bruno Haible  <bruno@clisp.org>
39206
39207         Fix link error.
39208         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39209         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39210         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39211
39212 2009-11-05  Bruno Haible  <bruno@clisp.org>
39213
39214         Tests for module 'inet_pton'.
39215         * modules/inet_pton-tests: New file.
39216         * tests/test-inet_pton.c: New file.
39217
39218 2009-11-05  Bruno Haible  <bruno@clisp.org>
39219
39220         Tests for module 'inet_ntop'.
39221         * modules/inet_ntop-tests: New file.
39222         * tests/test-inet_ntop.c: New file.
39223
39224 2009-11-04  Eric Blake  <ebb9@byu.net>
39225
39226         stdlib-safer: wrap all mkstemp variants
39227         * modules/mkostemp (configure.ac): Set witness.
39228         * modules/mkostemps (configure.ac): Likewise.
39229         * modules/mkstemps (configure.ac): Likewise.
39230         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39231         (mkstemps_safer): Wrap more functions.
39232         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39233         wrapping.
39234         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39235         (mkstemps_safer): Implement the wrappers.
39236
39237         mkstemps, mkostemps: new modules
39238         * modules/mkostemps: New module.
39239         * modules/mkstemps: Likewise.
39240         * lib/mkostemps.c (mkostemps): New file.
39241         * lib/mkstemps.c (mkstemps): Likewise.
39242         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39243         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39245         * modules/stdlib (Makefile.am): Substitute them.
39246         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39247         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39248         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39249         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39250         * MODULES.html.sh (File system functions): Mention them.
39251
39252         tempname: resync from glibc
39253         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39254         same values for __GT_FILE as glibc.  Abort even when assertions
39255         are disabled.
39256         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39257         match its value otherwise.  Allow idempotent inclusion.
39258         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39259         * lib/mkostemp.c (mkostemp): Likewise.
39260         * lib/mkstemp.c (mkstemp): Likewise.
39261         * lib/tmpfile.c (tmpfile): Likewise.
39262         * NEWS: Document this.
39263
39264         utimens: fix use of futimens on older Linux
39265         * lib/utimens.c (fdutimens): Use updated, rather than original,
39266         timespec to avoid bug in older Linux kernel.
39267         Reported by Simon Josefsson.
39268
39269 2009-11-04  Bruno Haible  <bruno@clisp.org>
39270
39271         Make num_processors more flexible and consistent.
39272         * lib/nproc.h (enum nproc_query): New type.
39273         (num_processors): Add a 'query' argument.
39274         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39275         (num_processors): Add a 'query' argument. Test the value of the
39276         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39277         mingw, count the number of CPUs available for the current process.
39278         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39279         Check for sched_getaffinity and sched_getaffinity_np.
39280         * modules/nproc (Depends-on): Add c-ctype, extensions.
39281         * NEWS: Mention the change.
39282
39283 2009-11-03  Bruno Haible  <bruno@clisp.org>
39284
39285         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39286
39287 2009-11-03  Jim Meyering  <meyering@redhat.com>
39288
39289         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39290         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39291         if it is defined.
39292
39293 2009-11-02  Eric Blake  <ebb9@byu.net>
39294
39295         mktime, timegm: share common declaration
39296         * lib/mktime-internal.h: New file.
39297         * lib/mktime.c: Use it rather than open-coding a declaration.
39298         * lib/timegm.c: Likewise.
39299         * modules/mktime (Files): Ship it.
39300         * modules/timegm (Files): Likewise.
39301         Suggested by Bruno Haible.
39302
39303         test-update-copyright: update test to match script changes
39304         * tests/test-update-copyright.sh: Avoid hard-coding perl
39305         location.  Don't update *.bak created by earlier runs.
39306
39307 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39308             Simon Josefsson  <simon@josefsson.org>
39309             Bruno Haible  <bruno@clisp.org>
39310
39311         Fix link error on Solaris 8.
39312         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39313         also in libnsl. Define also INET_PTON_LIB.
39314         * modules/inet_pton (Link): New section.
39315
39316 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39317             Bruno Haible  <bruno@clisp.org>
39318
39319         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39320         * modules/inet_ntop (Link): New section.
39321         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39322
39323 2009-11-02  Eric Blake  <ebb9@byu.net>
39324
39325         maint: avoid compiler warnings in m4 macros
39326         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39327         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39328
39329 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39330
39331         * m4/pmccabe2html.m4: Remove file.
39332         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39333         function.  Change maintainer.
39334         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39335         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39336         Courtès).
39337
39338 2009-10-31  Eric Blake  <ebb9@byu.net>
39339
39340         fseeko: fix m4 regression
39341         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39342         regression from 2009-10-27.
39343         Reported by Ralf Wildenhues.
39344
39345 2009-10-31  Jim Meyering  <meyering@redhat.com>
39346
39347         inttostr: aesthetics and improved (compile-time) safety
39348         Define inttype_is_signed rather than inttype_is_unsigned,
39349         since the sole use is via "#if inttype_is_signed".
39350         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39351         inttype_is_unsigned.
39352         * lib/offtostr.c (inttype_is_signed): Likewise.
39353         * lib/uinttostr.c (inttype_is_signed): Likewise.
39354         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39355         * lib/inttostr.c (inttostr): Use verify to cross-check the
39356         inttype_is_signed value and the signedness of the actual type.
39357         * modules/inttostr (Depends-on): Add verify.
39358
39359 2009-10-30  Eric Blake  <ebb9@byu.net>
39360
39361         build: avoid compiler warnings
39362         * lib/fchmodat.c (lchmod): Mark unused variables.
39363         * lib/getopt.c (_getopt_initialize): Likewise.
39364         * lib/mktime.c (__mktime_internal): Provide prototype.
39365         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39366         older gcc that do not understand #pragma GCC diagnostic.
39367         * lib/uinttostr.c (inttype_is_unsigned): Define.
39368         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39369
39370 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39371
39372         stat: fix compilation on AIX
39373         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39374         only see struct stat64.
39375
39376 2009-10-30  Eric Blake  <ebb9@byu.net>
39377
39378         exclude: make more robust
39379         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39380         rather than masking a coding bug.
39381         Suggested by Bruno Haible.
39382
39383 2009-10-30  Jim Meyering  <meyering@redhat.com>
39384
39385         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39386         Rather than putting #!/usr/bin/perl on the first line,
39387         start with a variant of what's recommended by "man perlrun" that
39388         invokes the first "perl" program from your shell's search path.
39389         * build-aux/gitlog-to-changelog: Replace #!... as above.
39390         Add a "Local Variables" perl mode setting.
39391         Prompted by a patch from Ludovic Courtès.
39392         Improved by Eric Blake.
39393         * build-aux/useless-if-before-free: Likewise.
39394         * build-aux/announce-gen: Likewise.
39395         * build-aux/update-copyright: Likewise.
39396
39397 2009-10-29  Eric Blake  <ebb9@byu.net>
39398
39399         filenamecat-lgpl: adjust clients
39400         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39401         filenamecat.
39402         * modules/renameat (Depends-on): Likewise.
39403
39404         filenamecat: split into filenamecat-lgpl
39405         * modules/filenamecat-lgpl: New module.
39406         * modules/filenamecat (Files): Move library-safe files into
39407         filenamecat-lgpl.
39408         (Depends-on): Add filenamecat-lgpl.
39409         (configure.ac): Declare witness.
39410         * lib/filenamecat.h (file_name_concat): Only declare when using
39411         GPL module.
39412         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39413         Move...
39414         * lib/filenamecat-lgpl.c: ...into new file.
39415         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39416         (gl_FILE_NAME_CONCAT): Use it.
39417         * MODULES.html.sh (File system functions): Mention new module.
39418
39419         argp: avoid memory leak
39420         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39421         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39422         base_name, since the latter malloc()s and can call exit().
39423         Leak introduced 2006-07-03.
39424
39425         dirname-lgpl: adjust clients that don't need full dirname
39426         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39427         * modules/filenamecat (Depends-on): Likewise.
39428         * modules/linkat (Depends-on): Likewise.
39429         * modules/mkancesdirs (Depends-on): Likewise.
39430         * modules/mkdir (Depends-on): Likewise.
39431         * modules/openat (Depends-on): Likewise.
39432         * modules/savewd (Depends-on): Likewise.
39433         * modules/rename (Depends-on): Likewise.
39434         (License): Relax license.
39435         * modules/mkdir-tests (Depends-on): Drop progname.
39436         (Makefile.am): Delete unneeded LDADD.
39437         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39438
39439         dirname: split into dirname-lgpl
39440         * modules/dirname-lgpl: New module.
39441         * modules/dirname (Files): Move library-safe files into
39442         dirname-lgpl.
39443         (Depends-on): Add dirname-lgpl.
39444         (configure.ac): Declare witness.
39445         * modules/double-slash-root (License): Relax license.
39446         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39447         module.
39448         * lib/dirname.c (dir_len, mdir_name): Move...
39449         * lib/dirname-lgpl.c: ...into new file.
39450         * lib/basename.c (last_component, base_len): Move...
39451         * lib/basename-lgpl.c: ...into new file.
39452         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39453         (gl_DIRNAME): Use it.
39454         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39455         Mention new module.
39456         * modules/dirname-tests (Depends-on): Add progname.
39457         * tests/test-dirname.c (program_name): Delete.
39458
39459         mkdir: make safe for libraries
39460         * modules/mkdir (Depends-on): Drop xalloc.
39461         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39462         exit.
39463
39464         tests: avoid some compiler warnings
39465         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39466         literals.
39467         * tests/test-memchr.c (main): Avoid type mismatch.
39468         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39469         * tests/test-base64.c (main): Likewise.
39470         * tests/test-getdelim.c (main): Likewise.
39471         * tests/test-gethostname.c (main): Likewise.
39472         * tests/test-getline.c (main): Likewise.
39473         * tests/test-netinet_in.c (main): Likewise.
39474         * tests/test-select.c (open_server_socket, main): Likewise.
39475         * tests/test-select-stdin.c (main): Likewise.
39476         * tests/test-sockets.c (main): Likewise.
39477         * tests/test-strsignal.c (main): Likewise.
39478         * tests/test-sys_select.c (main): Likewise.
39479         * tests/test-sys_socket.c (main): Likewise.
39480         * tests/test-u64.c (main): Likewise.
39481         * tests/test-xfprintf-posix.c (main): Likewise.
39482         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39483
39484         sockets: avoid compiler warning
39485         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39486
39487         maint: detect usage(1) and other suspicious exits
39488         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39489
39490 2009-10-29  Jim Meyering  <meyering@redhat.com>
39491
39492         timespec: long-to-int truncation could make timespec_cmp malfunction
39493         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39494         a multiple of 2^32 nanoseconds as no difference.
39495
39496 2009-10-28  Jim Meyering  <meyering@redhat.com>
39497
39498         fprintftime: wrap macro code argument in "do {...} while(0)"
39499         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39500         cpy macro must be a statement that can be followed by a semicolon.
39501         Now that the else clause contains a comment and is hence longer
39502         than one line, I require curly braces.  That in turn requires
39503         that we wrap this code block in the standard do...while(0).
39504
39505         fprintftime: remove stray semicolon from previous change
39506         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39507
39508         fprintftime: avoid a warning about ignored fwrite return value
39509         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39510         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39511         that is unsafe.
39512         * modules/fprintftime (Depends-on): Add ignore-value.
39513
39514         exclude: avoid an unwarranted warning
39515         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39516
39517 2009-10-27  Eric Blake  <ebb9@byu.net>
39518
39519         fseek: avoid compilation failure when fflush is replaced
39520         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39521         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39522         module is in use.
39523         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39524         module is not in use; since REPLACE_FSEEK worked otherwise.
39525         (GNULIB_FTELLO): Likewise for ftell.
39526         Reported by Ian Beckwith and others.
39527
39528 2009-10-27  Bruno Haible  <bruno@clisp.org>
39529
39530         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39531         Reported by Jim Meyering.
39532
39533 2009-10-27  Jim Meyering  <jim@meyering.net>
39534             Bruno Haible  <bruno@clisp.org>
39535
39536         Avoid warning despite dropping the return value of fwrite.
39537         * lib/unicodeio.c: Include ignore-value.h.
39538         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39539         * modules/unicodeio (Depends-on): Add ignore-value.
39540
39541 2009-10-26  Eric Blake  <ebb9@byu.net>
39542
39543         areadlinkat: fix fallback path
39544         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39545         pointer and zero.
39546
39547 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39548
39549         Use a better IO block size for modern systems
39550         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39551         * lib/md2.c: Likewise.
39552         * lib/md4.c: Likewise.
39553         * lib/md5.c: Likewise.
39554         * lib/sha1.c: Likewise.
39555         * lib/sha256.c: Likewise.
39556         * lib/sha512.c: Likewise.
39557
39558 2009-10-22  Eric Blake  <ebb9@byu.net>
39559
39560         tests: avoid several compiler warnings
39561         * tests/test-getcwd.c (main): Avoid buffer underflow.
39562         * tests/test-getdate.c (main): String literals are not safe with
39563         putenv, so use setenv.  Declare unused argument.
39564         * modules/getdate-tests (Depends-on): Add setenv.
39565         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39566         problems with string literals in char *.
39567         * tests/test-hash.c (main): Avoid shadowing declaration.
39568         (insert_new): Treat string literals as char const *.
39569         * tests/test-getopt.h (test_getopt): Likewise.
39570         (getopt_loop): Alter types to minimize casting elsewhere.
39571         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39572         (test_getopt_long_posix): Likewise.
39573         (do_getopt_long): Add wrapper to minimize casting.
39574         * tests/test-atexit.c (clear_temp_file): Use void.
39575         * tests/test-areadlink-with-size.c (main): Declare unused
39576         arguments.
39577         * tests/test-areadlink.c (main): Likewise.
39578         * tests/test-areadlinkat-with-size.c (main): Likewise.
39579         * tests/test-areadlinkat.c (main): Likewise.
39580         * tests/test-canonicalize-lgpl.c (main): Likewise.
39581         * tests/test-canonicalize.c (main): Likewise.
39582         * tests/test-dirent-safer.c (main): Likewise.
39583         * tests/test-dirname.c (main): Likewise.
39584         * tests/test-dup2.c (main): Likewise.
39585         * tests/test-fchdir.c (main): Likewise.
39586         * tests/test-fcntl-h.c (main): Likewise.
39587         * tests/test-fcntl-safer.c (main): Likewise.
39588         * tests/test-fdopendir.c (main): Likewise.
39589         * tests/test-fdutimensat.c (main): Likewise.
39590         * tests/test-fflush.c (main): Likewise.
39591         * tests/test-filenamecat.c (main): Likewise.
39592         * tests/test-filevercmp.c (main): Likewise.
39593         * tests/test-fopen-safer.c (main): Likewise.
39594         * tests/test-fopen.c (main): Likewise.
39595         * tests/test-fpending.c (main): Likewise.
39596         * tests/test-fpurge.c (main): Likewise.
39597         * tests/test-freading.c (main): Likewise.
39598         * tests/test-fstatat.c (main): Likewise.
39599         * tests/test-fsync.c (main): Likewise.
39600         * tests/test-futimens.c (main): Likewise.
39601         * tests/test-getndelim2.c (main): Likewise.
39602         * tests/test-gettimeofday.c (main): Likewise.
39603         * tests/test-getopt.c (main): Likewise.
39604         * tests/test-i-ring.c (main): Likewise.
39605         * tests/test-inttypes.c (main): Likewise.
39606         * tests/test-link.c (main): Likewise.
39607         * tests/test-lstat.c (main): Likewise.
39608         * tests/test-math.c (main): Likewise.
39609         * tests/test-md5.c (main): Likewise.
39610         * tests/test-memchr2.c (main): Likewise.
39611         * tests/test-memrchr.c (main): Likewise.
39612         * tests/test-mkdir.c (main): Likewise.
39613         * tests/test-mkdirat.c (main): Likewise.
39614         * tests/test-mkfifoat.c (main): Likewise.
39615         * tests/test-open.c (main): Likewise.
39616         * tests/test-openat-safer.c (main): Likewise.
39617         * tests/test-openat.c (main): Likewise.
39618         * tests/test-quotearg.c (main): Likewise.
39619         * tests/test-rawmemchr.c (main): Likewise.
39620         * tests/test-readlink.c (main): Likewise.
39621         * tests/test-remove.c (main): Likewise.
39622         * tests/test-rename.c (main): Likewise.
39623         * tests/test-renameat.c (main): Likewise.
39624         * tests/test-rmdir.c (main): Likewise.
39625         * tests/test-sha1.c (main): Likewise.
39626         * tests/test-signal.c (main): Likewise.
39627         * tests/test-sigaction.c (main): Likewise.
39628         * tests/test-stat.c (main): Likewise.
39629         * tests/test-stat-time.c (main): Likewise.
39630         * tests/test-stddef.c (main): Likewise.
39631         * tests/test-stdint.c (main): Likewise.
39632         * tests/test-stdio.c (main): Likewise.
39633         * tests/test-stdlib.c (main): Likewise.
39634         * tests/test-strchrnul.c (main): Likewise.
39635         * tests/test-strerror.c (main): Likewise.
39636         * tests/test-string.c (main): Likewise.
39637         * tests/test-strtod.c (main): Likewise.
39638         * tests/test-strverscmp.c (main): Likewise.
39639         * tests/test-symlink.c (main): Likewise.
39640         * tests/test-symlinkat.c (main): Likewise.
39641         * tests/test-sys_stat.c (main): Likewise.
39642         * tests/test-sys_time.c (main): Likewise.
39643         * tests/test-time.c (main): Likewise.
39644         * tests/test-unistd.c (main): Likewise.
39645         * tests/test-unlink.c (main): Likewise.
39646         * tests/test-unlinkat.c (main): Likewise.
39647         * tests/test-utimens.c (main): Likewise.
39648         * tests/test-utimensat.c (main): Likewise.
39649         * tests/test-version-etc.c (main): Likewise.
39650         * tests/test-wchar.c (main): Likewise.
39651         * tests/test-wctype.c (main): Likewise.
39652         * tests/test-xprintf-posix.c (main): Likewise.
39653         * tests/test-posixtm.c (main): Likewise.
39654         (STREQ): Delete unused macro.
39655         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39656         shadowed variables.
39657         * tests/test-memchr.c (main): Likewise.
39658
39659 2009-10-21  Eric Blake  <ebb9@byu.net>
39660
39661         areadlinkat: avoid failure on older glibc
39662         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39663         rather than mis-comparing 0 against FUNC_RESULT of char*.
39664
39665 2009-10-21  Bruno Haible  <bruno@clisp.org>
39666
39667         * modules/stpncpy (License): Relicense under LGPLv2+.
39668         Reported by David Lutterkort <lutter@redhat.com>.
39669
39670 2009-10-20  Eric Blake  <ebb9@byu.net>
39671
39672         utimensat: work around Solaris 9 bug
39673         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39674         has trailing slash bugs.
39675         * tests/test-lutimens.h (test_lutimens): Enhance test.
39676         * tests/test-utimens.h (test_utimens): Likewise.
39677         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39678         * doc/posix-functions/utimes.texi (utimes): Likewise.
39679         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39680         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39681         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39682         * doc/posix-functions/futimens.texi (futimens): Likewise.
39683
39684         fdutimensat: new module
39685         * modules/fdutimensat: New file.
39686         * lib/fdutimensat.c (fdutimensat): Likewise.
39687         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39688         * MODULES.html.sh (File system functions): Mention module.
39689         * modules/fdutimensat-tests: New test.
39690         * tests/test-fdutimensat.c: Likewise.
39691
39692         doc: regenerate INSTALL
39693         * doc/INSTALL: Reflect recent autoconf update.
39694         * doc/INSTALL.ISO: Likewise.
39695         * doc/INSTALL.UTF-8: Likewise.
39696
39697 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39698
39699         acl: warn if ACL support is not detected
39700         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39701
39702 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39703
39704         * lib/nproc.h: Add extern "C" block for C++.
39705
39706 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39707             Bruno Haible  <bruno@clisp.org>
39708
39709         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39710         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39711         * doc/posix-functions/isalpha.texi: Likewise.
39712         * doc/posix-functions/isblank.texi: Likewise.
39713         * doc/posix-functions/iscntrl.texi: Likewise.
39714         * doc/posix-functions/isdigit.texi: Likewise.
39715         * doc/posix-functions/isgraph.texi: Likewise.
39716         * doc/posix-functions/islower.texi: Likewise.
39717         * doc/posix-functions/isprint.texi: Likewise.
39718         * doc/posix-functions/ispunct.texi: Likewise.
39719         * doc/posix-functions/isspace.texi: Likewise.
39720         * doc/posix-functions/isupper.texi: Likewise.
39721         * doc/posix-functions/isxdigit.texi: Likewise.
39722
39723 2009-10-18  Bruno Haible  <bruno@clisp.org>
39724
39725         Tests for module 'isblank'.
39726         * modules/isblank-tests: New file.
39727         * tests/test-isblank.c: New file.
39728
39729         New module 'isblank'.
39730         * lib/isblank.c: New file.
39731         * m4/isblank.m4: New file.
39732         * modules/isblank: New file.
39733         * doc/posix-functions/isblank.texi: Mention the new module.
39734
39735 2009-10-18  Bruno Haible  <bruno@clisp.org>
39736
39737         New module 'ctype'.
39738         * lib/ctype.in.h: New file.
39739         * m4/ctype.m4: New file.
39740         * modules/ctype: New file.
39741         * doc/posix-headers/ctype.texi: Mention the new module.
39742
39743 2009-10-18  Jim Meyering  <meyering@redhat.com>
39744
39745         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39746         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39747         right after its initialization, rather than farther down.
39748         Keeping these in close proximity makes it easier to ensure
39749         that each such variable is initialized.  E.g.,
39750
39751             LIB_CLOCK_GETTIME=
39752             AC_SUBST([LIB_CLOCK_GETTIME])
39753
39754         This change also increments these serial numbers.
39755         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39756         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39758
39759 2009-10-18  Bruno Haible  <bruno@clisp.org>
39760
39761         Don't let environment variables perturb build.
39762         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39763         (gl_PREREQ_GETHRXTIME): ... not here.
39764
39765 2009-10-18  Bruno Haible  <bruno@clisp.org>
39766
39767         Avoid symlink attack in localcharset module.
39768         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39769         (O_NOFOLLOW): Define fallback.
39770         (get_charset_aliases): Don't open the file if it is a symbolic link.
39771         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39772         gl_FCNTL_H.
39773         (gl_FCNTL_H): Require it.
39774         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39775         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39776         Reported by Fergal Glynn <fglynn@veracode.com>.
39777
39778 2009-10-18  Bruno Haible  <bruno@clisp.org>
39779
39780         Implement nproc for mingw.
39781         * lib/nproc.c: Include <windows.h>
39782         (num_processors): On native Windows platforms, try GetSystemInfo.
39783
39784 2009-10-18  Bruno Haible  <bruno@clisp.org>
39785
39786         Implement nproc for IRIX.
39787         * lib/nproc.c: Include <sys/sysmp.h>.
39788         (num_processors): On IRIX systems, try sysmp.
39789         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39790
39791 2009-10-18  Bruno Haible  <bruno@clisp.org>
39792
39793         Implement nproc for HP-UX.
39794         * lib/nproc.c: Include <sys/pstat.h>
39795         (num_processors): On HP-UX systems, try pstat_getdynamic.
39796         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39797         pstat_getdynamic.
39798
39799 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39800             Bruno Haible  <bruno@clisp.org>
39801
39802         Implement nproc for NetBSD, OpenBSD.
39803         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39804         (ARRAY_SIZE): New macro.
39805         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39806         * m4/nproc.m4: New file.
39807         * modules/nproc (Files): Add m4/nproc.m4.
39808         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39809         (Makefile.am): Instead, augment lib_SOURCES.
39810
39811 2009-10-18  Bruno Haible  <bruno@clisp.org>
39812
39813         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39814         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39815         sys/param.h.
39816
39817 2009-10-16  Eric Blake  <ebb9@byu.net>
39818
39819         utimensat: new module
39820         * modules/utimensat: New file.
39821         * lib/utimensat.c (utimensat): Likewise.
39822         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39823         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39824         so we can work around Linux bugs.
39825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39826         * modules/sys_stat (Makefile.am): Substitute them.
39827         * lib/sys_stat.in.h (utimensat): Declare it.
39828         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39829         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39830         * modules/utimensat-tests: New test.
39831         * tests/test-utimensat.c: Likewise.
39832
39833         utimens: let lutimens work on non-symlinks
39834         * lib/utimens.c (lutimens): Fall back to utimens rather than
39835         failing with ENOSYS, when file is not a symlink.
39836         (utimens): Reduce redirection.
39837         * tests/test-lutimens.h (test_lutimens): Update test to cover
39838         non-symlinks.
39839         * tests/test-utimens.h (test_utimens): Update test to cover
39840         symlinks.
39841         * tests/test-utimens.c (main): Update caller.
39842
39843         utimens: cache whether utimensat syscall works
39844         * lib/utimens.c (utimensat_works_really): New cache variable.
39845         (fdutimens, lutimens): Use it to avoid failing syscall.
39846
39847         test-stat-time, test-utimens: improve portability
39848         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39849         ext4 on alpha, and for cygwin.
39850         * tests/test-utimens-common.h: New file.
39851         (nap): Factor delays into single function.
39852         * tests/test-lutimens.h (test_lutimens): Use new header.
39853         * tests/test-futimens.h (test_futimens): Likewise.
39854         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39855         timestamps to occur from same machine, as was done previously for
39856         test_utimens.
39857         * modules/utimens-tests (Files): Ship new file.
39858         * modules/futimens-tests (Files): Likewise.
39859         Reported in part by Jim Meyering.
39860
39861         sys_stat: sort replacement declarations
39862         * lib/sys_stat.in.h: Sort declarations.
39863         * lib/futimens.c (futimens): Fix typo.
39864
39865 2009-10-15  Jim Meyering  <meyering@redhat.com>
39866
39867         don't let environment settings perturb build
39868         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39869         could cause a configure-time and/or build-time malfunction.
39870         Typically, a configure-time function-in-library test is performed
39871         via code like this:
39872
39873           LIB_VAR=
39874           AC_SUBST([LIB_VAR])
39875           prefix_saved_LIBS=$LIBS
39876             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39877                        [test "$ac_cv_search_FUNC" = "none required" ||
39878                         LIB_VAR=$ac_cv_search_FUNC])
39879           LIBS=$prefix_saved_LIBS
39880
39881         However, in each of the files affected by this change, the LIB_VAR=
39882         initialization was omitted.  Thus, when set in the environment, its
39883         value would propagate into generated Makefiles when FUNC is not found
39884         in LIB_NAME.
39885         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39886         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39888
39889 2009-10-14  Eric Blake  <ebb9@byu.net>
39890
39891         fchdir: avoid infinite recursion in mingw
39892         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39893         recursing.
39894
39895         test-stat-time: port to mingw
39896         * tests/test-stat-time.c (force_unlink): Return a value.
39897         (test_ctime) [W32]: Fix compilation error.
39898         (nap): Don't call usleep with too large an argument.  Use
39899         force_unlink.
39900         * doc/pastposix-functions/usleep.texi (usleep): Document the
39901         portability issue.
39902
39903 2009-10-13  Jim Meyering  <meyering@redhat.com>
39904
39905         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39906         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39907         * modules/pipe-filter-ii: Likewise.
39908         * modules/sys_socket-tests: Likewise.
39909         * modules/tsearch-tests: Likewise.
39910         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39911         (check): Depend on it.
39912
39913 2009-10-12  Eric Blake  <ebb9@byu.net>
39914
39915         utimens-tests: port to NFS file systems
39916         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39917         comparisons to avoid spurious failures from timestamp drift
39918         between NFS machines.
39919
39920 2009-10-12  Eric Blake  <ebb9@byu.net>
39921
39922         stat-time-tests: minor cleanups
39923         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39924         * tests/test-stat-time.c (nap): Separate assignment from call.
39925         Suggested by Paolo Bonzini and Bruno Haible.
39926
39927         sys_stat: guarantee struct timespec
39928         * lib/sys_stat.in.h (includes): Always include <time.h>
39929         * modules/sys_stat (Depends-on): Add time.
39930         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39931         mode_t permission values.
39932         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39933         get at subsecond timestamps.
39934
39935 2009-10-10  Eric Blake  <ebb9@byu.net>
39936
39937         futimens: new module
39938         * modules/futimens: New file.
39939         * lib/futimens.c (futimens): Likewise.
39940         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39941         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39942         we can work around Linux bugs.
39943         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39944         * modules/sys_stat (Makefile.am): Substitute them.
39945         * lib/sys_stat.in.h (futimens): Declare it.
39946         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39947         * doc/posix-functions/futimens.texi (futimens): Likewise.
39948         * modules/futimens-tests: New test.
39949         * tests/test-futimens.c: Likewise.
39950
39951         utimens: introduce fdutimens
39952         * lib/utimens.h (fdutimens): New prototype.
39953         * lib/utimens.c (gl_futimens): Move guts...
39954         (fdutimens): ...to new interface.
39955         * tests/test-utimens.c (do_fdutimens): Use it.
39956
39957         utimens: add UTIME_NOW and UTIME_OMIT support
39958         * lib/utimens.c (validate_timespec, update_timespec): New helper
39959         functions.
39960         (gl_futimens, lutimens): Use them.
39961         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39962         stdbool, sys_stat.
39963         (Link): Mention resulting library dependency.
39964         * modules/utimecmp (Link): Likewise.
39965         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39966         (Makefile.am): Pick up library dependency.
39967         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39968         definition.
39969         * tests/test-sys_stat.c: Test the definitions.
39970         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39971         * NEWS: Document library dependency.
39972
39973         utimecmp: support symlink timestamps
39974         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39975         hashing when possible.  Use pathconf when available.
39976         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39977         * modules/utimecmp (Depends-on): Add lstat.
39978
39979         utimens: add lutimens interface
39980         * lib/utimens.c (lutimens): New function.
39981         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39982         * lib/utimens.h (lutimens): Declare new interface.
39983         * tests/test-utimens.c (main): Enhance test.
39984         * tests/test-lutimens.h (test_lutimens): New file.
39985         * modules/utimens-tests (Files): Distribute it.
39986         (Depends-on): Add symlink.
39987         (configure.ac): Check for usleep.
39988
39989         utimens: validate futimens usage
39990         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39991         fewer syscalls on failure later on.  Avoid compiler warning on
39992         mingw.
39993         * modules/utimens (Depends-on): Add dup2.
39994
39995         utimens: add test
39996         * modules/utimens-tests: New test.
39997         * tests/test-utimens.h: New file.
39998         * tests/test-futimens.h: Likewise.
39999         * tests/test-utimens.c: Likewise.
40000
40001         doc: mention timestamp portability issues
40002         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40003         instead.
40004         * doc/posix-functions/utime.texi (utime): Likewise.
40005         * doc/posix-functions/utimes.texi (utimes): Likewise.
40006         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40007         instead.
40008         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40009         module.
40010         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40011         Mention weakness with symlink timestamps.
40012         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40013         to utimensat/futimens instead.
40014         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40015
40016         test-dup2: enhance test
40017         * tests/test-dup2.c (main): Also check AT_FDCWD.
40018
40019         test-stat-time: avoid more spurious failures
40020         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40021         xfs; and avoid race if the two timestamps cross quantization edge.
40022
40023         relocatable: prefer 'file system' over 'filesystem'
40024         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40025         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40026         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40027         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40028         * lib/relocatable.c (compute_curr_prefix): Likewise.
40029
40030 2009-10-10  Jim Meyering  <meyering@redhat.com>
40031
40032         stat-time-tests: check for the usleep function
40033         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40034
40035 2009-10-10  Bruno Haible  <bruno@clisp.org>
40036
40037         * modules/xnanosleep: Put the Link section after the Include section.
40038
40039 2009-10-09  Eric Blake  <ebb9@byu.net>
40040
40041         dup2: work around FreeBSD 6.1 bug
40042         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40043         * doc/posix-functions/dup2.texi (dup2): Document it.
40044         Reported by Nelson H. F. Beebe and Jim Meyering.
40045
40046         test-stat-time: port to buggy NFS clients
40047         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40048         (test_ctime): Also skip test if mtime and ctime are skewed.
40049
40050         maint: prefer 'file system' over 'filesystem'
40051         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40052         * doc/posix-functions/lstat.texi (lstat): Likewise.
40053         * lib/file-has-acl.c (file_has_acl): Likewise.
40054         * lib/fwriteerror.c [TEST]: Likewise.
40055         * tests/test-areadlink.h (test_areadlink): Likewise.
40056         * tests/test-areadlinkat-with-size.c (main): Likewise.
40057         * tests/test-areadlinkat.c (main): Likewise.
40058         * tests/test-canonicalize-lgpl.c (main): Likewise.
40059         * tests/test-canonicalize.c (main): Likewise.
40060         * tests/test-fstatat.c (main): Likewise.
40061         * tests/test-linkat.c (main): Likewise.
40062         * tests/test-lstat.h (test_lstat_func): Likewise.
40063         * tests/test-mkdir.h (test_mkdir): Likewise.
40064         * tests/test-readlink.h (test_readlink): Likewise.
40065         * tests/test-remove.c (main): Likewise.
40066         * tests/test-rename.h (test_rename): Likewise.
40067         * tests/test-renameat.c (main): Likewise.
40068         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40069         * tests/test-symlink.h (test_symlink): Likewise.
40070         * tests/test-symlinkat.c (main): Likewise.
40071         * tests/test-unlink.h (test_unlink_func): Likewise.
40072         * tests/test-unlinkat.c (main): Likewise.
40073
40074         maint: make realtime library usage explicit
40075         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40076         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40077         * modules/settime (Link): Likewise.
40078         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40079
40080         test-stat-time: speed up execution
40081         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40082         warning on mingw.
40083         (nap): New helper function.
40084         (prepare_test): Use it to reduce sleep time.
40085         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40086         execution.
40087         * modules/stat-time-tests (configure.ac): Check for usleep.
40088
40089 2009-10-09  Jim Meyering  <meyering@redhat.com>
40090
40091         selinux-h: always use getfilecon wrappers
40092         * lib/getfilecon.c: New file.
40093         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40094         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40095         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40096         (fgetfilecon): Provide a stub.
40097         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40098         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40099         file unconditionally.
40100         When <selinux/selinux.h> is found, arrange to use wrappers.
40101         * modules/selinux-h (Files): Add getfilecon.c.
40102         (Makefile.am): Substitute include-next-related bits
40103         into the now-always-generated selinux/selinux.h file.
40104         * doc/glibc-functions/lgetfilecon.texi: New file.
40105         * doc/glibc-functions/fgetfilecon.texi: New file.
40106         * doc/glibc-functions/getfilecon.texi: New file.
40107         * doc/glibc-functions/getfilecon-desc.texi: New file.
40108         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40109         which to pull in the new files.
40110         * MODULES.html.sh (Misc): Add selinux-h.
40111
40112 2009-10-08  Jim Meyering  <meyering@redhat.com>
40113
40114         unistd: fix comment typo
40115         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40116
40117 2009-10-08  Eric Blake  <ebb9@byu.net>
40118
40119         areadlink: use SIZE_MAX consistently
40120         * modules/areadlink (Depends-on): Add stdint.
40121         * modules/areadlink-with-size (Depends-on): Likewise.
40122         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40123         gives NULL; drop sys/types, since unistd gives size_t; and add
40124         stdint for SIZE_MAX.
40125         (SIZE_MAX): Rely on headers.
40126         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40127         and add stdint.
40128         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40129         (SIZE_MAX): Likewise.
40130         (INITIAL_BUF_SIZE): Turn into enum.
40131         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40132
40133 2009-10-08  Jim Meyering  <meyering@redhat.com>
40134
40135         areadlinkat: avoid compilation failure
40136         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40137         Fix typo in comment.
40138
40139 2009-10-07  Eric Blake  <ebb9@byu.net>
40140
40141         areadlinkat-with-size: new module
40142         * modules/areadlinkat-with-size: New module.
40143         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40144         * lib/areadlink.h (areadlinkat): Declare it.
40145         * MODULES.html.sh (File system functions): Mention it.
40146         * modules/areadlinkat-with-size-tests: New test.
40147         * tests/test-areadlinkat-with-size.c: New file.
40148
40149         xreadlinkat: new module
40150         * modules/xreadlinkat: New module.
40151         * lib/xreadlinkat.c (xreadlinkat): New file.
40152         * lib/xreadlink.h (xreadlinkat): Declare it.
40153         * MODULES.html.sh (File system functions): Mention it.
40154
40155         areadlinkat: new module
40156         * lib/at-func.c (FUNC_FAIL): New define.
40157         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40158         * modules/areadlinkat: New module.
40159         * lib/linkat.c (areadlinkat): Move...
40160         * lib/areadlinkat.c (areadlinkat): ...to new file.
40161         * lib/areadlink.h (areadlinkat): Declare it.
40162         * modules/linkat (Depends-on): Add areadlinkat.
40163         * MODULES.html.sh (File system functions): Mention it.
40164         * modules/areadlinkat-tests: New test.
40165         * tests/test-areadlinkat.c: New file.
40166
40167         areadlink, areadlink-with-size: add tests
40168         * modules/areadlink-tests: New test.
40169         * modules/areadlink-with-size-tests: Likewise.
40170         * tests/test-areadlink.h: New file.
40171         * tests/test-areadlink.c: Likewise.
40172         * tests/test-areadlink-with-size.c: Likewise.
40173
40174         maint: minor cleanups
40175         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40176         _UNUSED_PARAMETER_ instead.
40177         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40178         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40179         * modules/linkat-tests (Files): Distribute test-link.h.
40180
40181         openat, utimens: whitespace cleanup
40182         * lib/openat.c: Prefer space throughout, rather than mix of 8
40183         spaces vs. tabs.
40184         * lib/at-func.c: Likewise.
40185         * lib/utimens.c: Likewise.
40186
40187         openat: avoid using wrong fd
40188         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40189         working directory chooses same fd.
40190         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40191
40192         mkdir, mkdirat: fix cygwin 1.5.x bug
40193         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40194         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40195         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40196         bug.
40197         (gl_PREREQ_MKDIR): Delete unused macro.
40198         * modules/mkdir (Files): Track file rename.
40199         (configure.ac): Update macro name.
40200         * modules/openat (Depends-on): Add mkdir.
40201         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40202
40203         mkdir, mkdirat: add tests
40204         * modules/mkdir-tests: New test.
40205         * tests/test-mkdir.h: New file.
40206         * tests/test-mkdir.c: Likewise.
40207         * tests/test-mkdirat.c: Likewise.
40208         * modules/openat-tests (Files): Add new files.
40209         (Makefile.am): Run new test.
40210
40211 2009-10-06  Eric Blake  <ebb9@byu.net>
40212
40213         doc: tweak *at function documentation
40214         * doc/posix-functions/faccessat.texi (faccessat): Mention
40215         known issue with replacement.
40216         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40217         * doc/posix-functions/linkat.texi (linkat): Likewise.
40218         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40219         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40220         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40221         * doc/posix-functions/renameat.texi (renameat): Likewise.
40222         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40223
40224         openat: fix GNU/Hurd bug in unlinkat
40225         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40226         broken.
40227         * doc/posix-functions/unlink.texi (unlink): Document this.
40228         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40229
40230         fdopendir: fix GNU/Hurd bug
40231         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40232         allowing non-directory fds.
40233         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40234         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40235         * modules/dirent (Makefile.am): Substitute it.
40236         * lib/dirent.in.h (fdopendir): Declare replacement.
40237         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40238         * tests/test-fdopendir.c (main): Test something other than
40239         /dev/null, since on Hurd that behaves like a directory.
40240
40241         test-symlink: port to GNU/Hurd
40242         * tests/test-symlink.h (test_symlink): Relax expected errno.
40243
40244         doc: tweak more cygwin information
40245         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40246         now compatible with glibc.
40247         * doc/posix-functions/getopt.texi (getopt): Likewise.
40248
40249         getopt-gnu: add another test
40250         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40251         guarantee behavior relied on by m4.
40252         * tests/test-getopt.c (main): Use it.
40253         * modules/getopt-posix-tests (Depends-on): Add setenv.
40254         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40255
40256         getopt: fix compilation on darwin
40257         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40258         include.
40259         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40260         Reported by Ludovic Courtès.
40261
40262 2009-10-06  Bruno Haible  <bruno@clisp.org>
40263
40264         * modules/size_max (Description): Discourage its use.
40265         Reported by Simon Josefsson.
40266
40267 2009-10-06  Jim Meyering  <meyering@redhat.com>
40268
40269         linkat: avoid compilation failure
40270         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40271
40272 2009-10-05  Eric Blake  <ebb9@byu.net>
40273
40274         linkat: support Linux 2.6.17
40275         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40276         linkat on Linux, but allow cache variable override.
40277         * lib/linkat.c (rpl_linkat): Define override.
40278         * modules/linkat (Depends-on): Add symlinkat.
40279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40280         * modules/unistd (Makefile.am): Substitute it.
40281         * lib/unistd.in.h (linkat): Declare replacement.
40282         Reported by Pádraig Brady.
40283
40284         quotearg: port test to systems with C.UTF-8 locale
40285         * tests/test-quotearg.c (struct result_strings): Add another
40286         member, differentiating between C.ASCII and C.UTF-8 handling.
40287         (compare_strings): Add parameter.
40288         (main): Adjust all callers.
40289
40290         getopt: avoid clash with FreeBSD _getopt_internal
40291         * lib/getopt.in.h (_getopt_internal): Override the name.
40292         * lib/getopt_int.h (includes): Pick up any overrides.
40293         Reported by Reuben Thomas.
40294
40295         hash: allow C89 compilation
40296         * lib/hash.c (check_tuning): Move declaration before statement.
40297         Reported by Reuben Thomas.
40298
40299 2009-10-05  Karl Berry  <karl@gnu.org>
40300
40301         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40302
40303 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40304             Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/uname.c (uname): Use a table-driven algorithm to compute
40307         Windows NT versions.
40308
40309 2009-10-04  Bruno Haible  <bruno@clisp.org>
40310
40311         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40312         program_invocation_short_name.
40313         * modules/progname (configure.ac): Test for presence of
40314         program_invocation_short_name.
40315         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40316
40317 2009-10-04  Bruno Haible  <bruno@clisp.org>
40318
40319         * lib/progname.c (set_program_name): Fix comment.
40320         Reported by Jim Meyering.
40321
40322 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40323             Bruno Haible  <bruno@clisp.org>
40324
40325         * lib/uname.c: Include <string.h>.
40326         (uname): Do only one call to GetVersionEx in the common case.
40327
40328 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40329             Bruno Haible  <bruno@clisp.org>
40330
40331         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40332         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40333         (uname): Add support for Windows CE and various non-x86 CPU types.
40334
40335 2009-10-03  Bruno Haible  <bruno@clisp.org>
40336
40337         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40338         invocation to tests/configure.ac.
40339         Reported by Ian Beckwith <ianb@erislabs.net>.
40340
40341 2009-10-02  Eric Blake  <ebb9@byu.net>
40342
40343         fchdir: avoid compiler warning
40344         * lib/fchdir.c (canonicalize_file_name)
40345         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40346
40347         test-open: support mingw errno values
40348         * tests/test-open.h (test_open): Relax test.
40349         * tests/test-fopen.h (test_fopen): Likewise.
40350         * tests/test-openat-safer.c (main): Likewise.
40351
40352         open: fix opening directory on mingw
40353         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40354
40355         test-open: on GNU/Hurd, /dev/null is a directory
40356         * tests/test-fopen.h (main): Rename...
40357         (test_fopen): ...to this.  Use a guaranteed non-directory when
40358         confirming open behavior on trailing slash.
40359         * tests/test-openat-safer.c (main): Likewise.
40360         * tests/test-open.h (main): Likewise....
40361         (test_open): ...to this.
40362         * tests/test-fopen.c (main): Adjust caller.
40363         * tests/test-fopen-safer.c (main): Likewise.
40364         * tests/test-open.c (main): Likewise.
40365         * tests/test-fcntl-safer.c (main): Likewise.
40366         Reported by Samuel Thibault.
40367
40368         rename, fchdir: don't ignore chdir failure
40369         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40370         * lib/rename.c (rpl_rename) [W32]: Likewise.
40371         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40372         an empty destination directory if source cannot be renamed,
40373         although there is still possibility for failure.
40374         * doc/posix-functions/rename.texi (rename): Document the race.
40375         Reported by Jim Meyering.
40376
40377         maint: cleanup whitespace in recent commits
40378         * lib/rename.c (rpl_rename): Remove tabs.
40379         * tests/test-link.h (test_link): Likewise.
40380         * lib/fchdir.c (get_name): Likewise.
40381         Reported by Jim Meyering.
40382
40383 2009-10-02  Ben Pfaff  <blp@gnu.org>
40384
40385         relocatable-prog-wrapper: Add missing dependency on
40386         double-slash-root.
40387         * modules/relocatable-prog-wrapper: Add dependency.
40388         Reported by Ian Beckwith <ianb@erislabs.net>.
40389
40390 2009-10-02  Eric Blake  <ebb9@byu.net>
40391
40392         renameat: fix Solaris bugs
40393         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40394         needed fixing.
40395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40396         * modules/stdio (Makefile.am): Substitute it.
40397         * lib/stdio.in.h (renameat): Declare replacement.
40398         * lib/renameat.c (rpl_renameat): Implement fix.
40399
40400         renameat: new module
40401         * modules/renameat: New file.
40402         * lib/renameat.c (renameat): Likewise.
40403         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40405         * modules/stdio (Makefile.am): Substitute them.
40406         * lib/stdio.in.h (renameat): Declare it.
40407         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40408         * doc/posix-functions/renameat.texi (renameat): Likewise.
40409         * modules/renameat-tests: New test.
40410         * tests/test-renameat.c: Likewise.
40411
40412         rename: fix mingw bugs
40413         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40414         directory overwrite bugs.
40415
40416         rename: fix another cygwin 1.5 bug
40417         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40418         checks.
40419         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40420         unnecessary cygwin workarounds.  Also work around bug with moving
40421         full directory onto an empty one.
40422         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40423
40424         rename-dest-slash: merge into rename module
40425         * modules/rename-dest-slash (Status): Mark obsolete.
40426         (Depends-on): Add rename.
40427         (Files): Let rename do it all.
40428         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40429         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40430         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40431         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40432         * lib/rename.c (rpl_rename): Update comments.
40433
40434         rename: fix cygwin 1.5.x bugs
40435         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40436         * lib/rename.c (rpl_rename): Work around them.
40437         * modules/rename (Depends-on): Add same-inode.
40438
40439         rename: fix Solaris 10 bug
40440         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40441         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40442         was the only bug.
40443
40444         rename: fix Solaris 9 bug
40445         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40446         on non-directory.  Avoid calling exit.
40447         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40448         strdup.
40449         * modules/rename-tests (Depends-on): Drop lstat.
40450         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40451         (gl_PREREQ_RENAME): Delete unused macro.
40452
40453         rename-dest-slash: fix NetBSD bug
40454         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40455         links.
40456         * modules/rename-dest-slash (Depends-on): Add same-inode.
40457
40458         rename-tests: new test, exposes several platform bugs
40459         * modules/rename-tests: New file.
40460         * tests/test-rename.h: Likewise.
40461         * tests/test-rename.c: Likewise.
40462         * doc/posix-functions/rename.texi (rename): Improve documentation,
40463         including bugs that will eventually be fixed in gnulib.
40464
40465 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40466
40467         * lib/uname.c: Include <stdlib.h>
40468         (uname): Assume version info is available.
40469
40470 2009-10-02  Jim Meyering  <meyering@redhat.com>
40471
40472         gnu-web-doc-update: correct --help output
40473         * build-aux/gnu-web-doc-update: Make --help output relevant.
40474
40475         gnu-web-doc-update: add standard options
40476         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40477
40478         gnu-web-doc-update: New module.
40479         Use this script to automatically update the on-line web documentation
40480         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40481         * modules/gnu-web-doc-update: New file, from coreutils.
40482         * build-aux/gnu-web-doc-update: New script.
40483
40484 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40485
40486         link: LoadLibrary is not needed.
40487         * lib/link.c: Use GetModuleHandle.
40488
40489 2009-10-01  Eric Blake  <ebb9@byu.net>
40490
40491         getopt: bump serial number
40492         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40493         change.
40494
40495         tests: tighten link, rmdir, and remove tests
40496         * tests/test-link.h (includes): No need to use <config.h> here.
40497         Clean up if directory hard link was created, otherwise test for
40498         trailing '.'.
40499         * tests/test-linkat.c (main): Simplify.
40500         * tests/test-remove.c (main): Enhance test for trailing '.'.
40501         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40502
40503 2009-10-01  Jim Meyering  <meyering@redhat.com>
40504
40505         maint.mk: requiring "make major" was annoying, for a "minor" release.
40506         What is intended is "stable", to contrast with alpha and beta,
40507         so require "make stable", not "make major".
40508         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40509         (get_tool_versions): Likewise.
40510         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40511
40512 2009-09-30  Ben Pfaff  <blp@gnu.org>
40513
40514         Fix broken build of replacement for Windows tmpfile().
40515         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40516         flags argument added along with the 'mkostemp' module.
40517
40518 2009-09-28  Bruno Haible  <bruno@clisp.org>
40519
40520         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40521         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40522         to 'remove_elt'.
40523         (gl_list_remove): Update.
40524         * lib/gl_list.c (gl_list_remove): Update.
40525         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40526         to 'remove_elt'.
40527         (gl_oset_remove): Update.
40528         * lib/gl_list.c (gl_oset_remove): Update.
40529         Reported by Eric Blake.
40530
40531 2009-09-28  Eric Blake  <ebb9@byu.net>
40532
40533         doc: mention yet more cygwin 1.7 status
40534         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40535         cygwin.
40536         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40537         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40538
40539         argp: fix test failure
40540         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40541         that are not upper-case.  Pass correct range to tolower.
40542
40543 2009-09-27  Jim Meyering  <meyering@redhat.com>
40544
40545         test-yesno: work around sparc-dash here-document infelicity
40546         Without this change, the literal \177 byte in a here document
40547         would make dash 0.5.5.1-3 access uninitialized memory.
40548         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40549         Instead, use a marker, "@", and filter through tr to create the desired
40550         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40551
40552 2009-09-27  Bruno Haible  <bruno@clisp.org>
40553
40554         Disable untested support for new flavours of ACLs on AIX.
40555         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40556         progress.
40557         * lib/set-mode-acl.c (qset_acl): Likewise.
40558
40559 2008-12-07  Bruno Haible  <bruno@clisp.org>
40560
40561         Add support for new flavours of ACLs on AIX. (Untested.)
40562         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40563         (file_has_acl): Add support for newer AIX.
40564         * lib/set-mode-acl.c (qset_acl): Likewise.
40565         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40566         Rainer Tammer <tammer@tammer.net>.
40567
40568 2009-09-26  Eric Blake  <ebb9@byu.net>
40569
40570         argp: fix compilation of getopt
40571         * lib/getopt.in.h (includes): Use different guard than glibc.
40572         Reported by Sergey Poznyakoff.
40573
40574         doc: mention more cygwin 1.7 status
40575         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40576         bug.
40577         * doc/posix-functions/execl.texi (execl): Likewise.
40578         * doc/posix-functions/execle.texi (execle): Likewise.
40579         * doc/posix-functions/execlp.texi (execlp): Likewise.
40580         * doc/posix-functions/execv.texi (execv): Likewise.
40581         * doc/posix-functions/execve.texi (execve): Likewise.
40582         * doc/posix-functions/execvp.texi (execvp): Likewise.
40583         * doc/glibc-functions/canonicalize_file_name.texi
40584         (canonicalize_file_name): Cygwin 1.7 now provides this.
40585         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40586         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40587         on AT_SYMLINK_NOFOLLOW.
40588
40589 2009-09-24  Eric Blake  <ebb9@byu.net>
40590
40591         test-linkat: make test more robust
40592         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40593
40594         getopt: fix inclusion guards for cygwin
40595         * modules/getopt-posix (Depends-on): Add include-next.
40596         (Makefile.am): Substitute more items in replacement header.
40597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40598         <getopt.h>.
40599         * lib/getopt.in.h (includes): Use split inclusion guard, and
40600         prefer <getopt.h> over include <unistd.h> when one is present.
40601         (option): Also override name of 'struct option'.
40602
40603         same-inode: revert prior change; it is not yet ready
40604         * NEWS: Undo mention of this change.
40605         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40606         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40607         * lib/cycle-check.c (cycle_check): Likewise.
40608         * lib/same.c (same_name): Likewise.
40609         * lib/at-func2.c (at_func2): Likewise.
40610
40611 2009-09-23  Eric Blake  <ebb9@byu.net>
40612
40613         linkat: new module
40614         * modules/linkat: New file.
40615         * lib/at-func2.c (at_func2): Likewise.
40616         * lib/linkat.c (linkat): Likewise.
40617         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40618         * lib/openat-priv.h (at_func2): Add declaration.
40619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40620         * modules/unistd (Makefile.am): Substitute them.
40621         * lib/unistd.in.h (linkat): Declare it.
40622         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40623         * doc/posix-functions/linkat.texi (linkat): Likewise.
40624         * doc/posix-functions/link.texi (link): Tweak wording.
40625         * tests/test-link.c (main): Move guts...
40626         * tests/test-link.h (test_link): ...into new file.
40627         * modules/linkat-tests: New test.
40628         * tests/test-linkat.c: Likewise.
40629         * modules/link-tests (Files): Ship new file.
40630         (Depends-on): Add stdbool.
40631
40632         dirname: add library-safe mdir_name
40633         * lib/dirname.h (mdir_name): New prototype.
40634         * lib/dirname.c (dir_name): Move guts...
40635         (mdir_name): ...to new function that avoids xalloc_die.
40636
40637         fchdir: another mingw fix
40638         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40639         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40640         on mingw (where it has not yet been ported), and make it optional
40641         elsewhere.
40642         (_gl_register_fd): Use it.
40643
40644         same-inode: make SAME_INODE tri-state, to port to mingw
40645         * NEWS: Mention this change.
40646         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40647         st_ino always being 0.
40648         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40649         * lib/cycle-check.c (cycle_check): Likewise.
40650         * lib/same.c (same_name): Likewise.
40651
40652         lstat: avoid mingw compilation error
40653         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40654         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40655         lstat ourselves.
40656         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40657         was adequate.
40658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40659         the checks for lstat.
40660         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40661
40662         link: fix test failure on Solaris 9
40663         * lib/link.c (rpl_link): Don't assume link will catch bogus
40664         trailing slash on source.
40665
40666         test-symlinkat: enhance test
40667         * tests/test-readlink.c (main): Move guts...
40668         * tests/test-readlink.h (test_readlink): ...into new file.
40669         * tests/test-symlink.c (main): Move guts...
40670         * tests/test-symlink.h (test_symlink): ...into new file.
40671         * tests/test-symlinkat.c (main): Use new files for further
40672         coverage.
40673         (do_symlink, do_readlink): New helper functions.
40674         * modules/symlink-tests (Files): Ship new file.
40675         (Depends-on): Add stdbool.
40676         * modules/readlink-tests (Files): Ship new file.
40677         (Depends-on): Add stdbool.
40678         * modules/symlinkat-tests (Files): Use new files.
40679
40680 2009-09-23  Eric Blake  <ebb9@byu.net>
40681
40682         readlink: document portability issue with symlink length
40683         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40684         systems have bogus st_size on symlinks, and mention the
40685         areadlink-with-size module.
40686         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40687         * doc/posix-functions/readlink.texi (readlink): Mention the
40688         areadlink module, and ERANGE failure.
40689         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40690         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40691
40692         readlink: fix Solaris 9 bug with trailing slash
40693         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40694         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40695         * doc/posix-functions/readlink.texi (readlink): Document this.
40696         * modules/readlink-tests: New test.
40697         * tests/test-readlink.c: Likewise.
40698
40699         readlink: fix cygwin 1.5.x bug with return type
40700         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40701         * lib/unistd.in.h (readlink): Use ssize_t.
40702         * lib/readlink.c (readlink): Likewise.
40703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40704         * modules/unistd (Makefile.am): Substitute it.
40705         * lib/unistd.in.h (readlink): Declare replacement.
40706         * doc/posix-functions/readlink.texi (readlink): Document this.
40707
40708         symlink: use throughout gnulib
40709         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40710         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40711         symlink is not used.
40712         * modules/symlinkat (Depends-on): Add symlink.
40713         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40714         * modules/canonicalize-tests (Depends-on): Likewise.
40715         * modules/lstat-tests (Depends-on): Likewise.
40716         * modules/openat-tests (Depends-on): Likewise.
40717         * modules/remove-tests (Depends-on): Likewise.
40718         * modules/rmdir-tests (Depends-on): Likewise.
40719         * modules/unlink-tests (Depends-on): Likewise.
40720         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40721         * tests/test-canonicalize.c (symlink): Likewise.
40722         * tests/test-fstatat.c (symlink): Likewise.
40723         * tests/test-lstat.c (symlink): Likewise.
40724         * tests/test-remove.c (symlink): Likewise.
40725         * tests/test-rmdir.c (symlink): Likewise.
40726         * tests/test-unlink.c (symlink): Likewise.
40727         * tests/test-unlinkat.c (symlink): Likewise.
40728
40729         symlink: new module, for Solaris 9 bug
40730         * modules/symlink: New file.
40731         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40732         * lib/symlink.c: Likewise.
40733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40734         * modules/unistd (Makefile.am): Substitute them.
40735         * lib/unistd.in.h (symlink): Declare replacement.
40736         * MODULES.html.sh (File system functions): Mention it.
40737         * doc/posix-functions/symlink.texi (symlink): Likewise.
40738         * modules/symlink-tests: New test.
40739         * tests/test-symlink.c: Likewise.
40740
40741 2009-09-23  Bruno Haible  <bruno@clisp.org>
40742
40743         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40744         when needed.
40745         Test case: gnulib-tool --import --with-tests atexit inttypes.
40746         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40747
40748 2009-09-23  Bruno Haible  <bruno@clisp.org>
40749
40750         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40751         subcommand, not in a subshell.
40752
40753 2009-09-22  Eric Blake  <ebb9@byu.net>
40754
40755         unistd: sort replacement declarations
40756         * lib/unistd.in.h: Sort declarations.
40757
40758         open, openat: minor optimization
40759         * lib/open.c (open): If open succeeded, len is non-zero.
40760         * lib/openat.c (rpl_openat): Likewise.
40761
40762         link-follow: ensure correct result
40763         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40764         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40765         distinguish between possible failures.
40766
40767 2009-09-21  Eric Blake  <ebb9@byu.net>
40768
40769         fts: avoid compiler warning
40770         * lib/fts.c (dirent_inode_sort_may_be_useful)
40771         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40772
40773 2009-09-19  Bruno Haible  <bruno@clisp.org>
40774
40775         * lib/progreloc.c (canonicalize_file_name): New declaration.
40776
40777 2009-09-19  Eric Blake  <ebb9@byu.net>
40778
40779         link: fix quoting
40780         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40781
40782         openat: fix openat bugs on Solaris 9
40783         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40784         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40785         * modules/openat (Depends-on): Add open.
40786         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40787         * modules/fcntl-h (Makefile.am): Substitute it.
40788         * lib/fcntl.in.h (openat): Declare replacement.
40789         * doc/posix-functions/openat.texi (openat): Document this.
40790
40791         openat: move fstatat and unlinkat into correct files
40792         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40793         compiled.
40794         * lib/openat.c (fstatat, unlinkat): Move...
40795         * lib/fstatat.c (fstatat): ...into correct files.
40796         * lib/unlinkat.c (unlinkat): Likewise.
40797
40798         openat: fix unlinkat bugs on Solaris 9
40799         * lib/unlinkat.c (unlinkat): New file.
40800         * modules/openat (Depends-on): Add unlink.
40801         (Files): Distribute it.
40802         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40803         trailing slash behavior is broken.
40804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40805         * modules/unistd (Makefile.am): Substitute it.
40806         * lib/unistd.in.h (unlinkat): Declare replacement.
40807         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40808
40809         openat: fix fstatat bugs on Solaris 9
40810         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40811         stat.
40812         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40813
40814         test-unlinkat: enhance test, to expose Solaris 9 bug
40815         * tests/test-unlink.c (main): Factor guts...
40816         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40817         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40818         * tests/test-rmdir.c (main): Adjust caller.
40819         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40820         (unlinker): New helper function.
40821         (rmdirat): Enhance check.
40822         * modules/rmdir-tests (Depends-on): Add stdbool.
40823         * modules/unlink-tests (Depends-on): Likewise.
40824         (Files): Add test-unlink.h.
40825         * modules/openat-tests (Files): Likewise.
40826         (Depends-on): Add unlinkdir.
40827
40828         test-fstatat: new test, to expose Solaris 9 bugs
40829         * tests/test-stat.c (main): Factor guts...
40830         * tests/test-stat.h (test_stat_func): ...into new file.
40831         * tests/test-lstat.c (main): Factor guts...
40832         * tests/test-lstat.h (test_lstat_func): ...into new file.
40833         * tests/test-fstatat.c: New file.
40834         * modules/stat-tests (Files): Add test-stat.h.
40835         * modules/lstat-tests (Files): Add test-lstat.h.
40836         (Depends-on): Add stdbool.
40837         * modules/openat-tests (Depends-on): Add pathmax.
40838         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40839         (Makefile.am): Run new test.
40840
40841         remove: new module, for mingw and Solaris 9 bugs
40842         * modules/remove: New file.
40843         * lib/remove.c: Likewise.
40844         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40846         * modules/stdio (Makefile.am): Use them.
40847         * lib/stdio.in.h (remove): Declare replacement.
40848         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40849         * doc/posix-functions/remove.texi (remove): Likewise.
40850         * modules/remove-tests: New test.
40851         * tests/test-remove.c: Likewise.
40852
40853         unlink: new module, for Solaris 9 bug
40854         * modules/unlink: New file.
40855         * lib/unlink.c: Likewise.
40856         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40858         * modules/unistd (Makefile.am): Use them.
40859         * lib/unistd.in.h (stat): Declare replacement.
40860         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40861         * doc/posix-functions/unlink.texi (unlink): Likewise.
40862         * modules/unlink-tests: New test.
40863         * tests/test-unlink.c: Likewise.
40864
40865         lstat: fix Solaris 9 bug
40866         * lib/lstat.c (lstat): Also check for trailing slash on
40867         non-symlink, non-directories.  Use stat module to simplify logic.
40868         * doc/posix-functions/lstat.texi (lstat): Document it.
40869         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40870         (configure.ac): Check for symlink.
40871         * tests/test-lstat.c (main): Add more tests.
40872
40873         stat: add as dependency to other modules
40874         * modules/chown (Depends-on): Add stat.
40875         * modules/euidaccess (Depends-on): Likewise.
40876         * modules/fchdir (Depends-on): Likewise.
40877         * modules/isdir (Depends-on): Likewise.
40878         * modules/link (Depends-on): Likewise.
40879         * modules/lstat (Depends-on): Likewise.
40880         * modules/mkdir-p (Depends-on): Likewise.
40881         * modules/modechange (Depends-on): Likewise.
40882         * modules/open (Depends-on): Likewise.
40883         * modules/readlink (Depends-on): Likewise.
40884         * modules/same (Depends-on): Likewise.
40885
40886         stat: fix Solaris 9 bug
40887         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40888         slash.
40889         * lib/stat.c (rpl_stat): Work around it.
40890         * doc/posix-functions/stat.texi (stat): Update documentation.
40891
40892         stat: new module, for mingw bug
40893         * modules/stat: New file.
40894         * lib/stat.c: Likewise.
40895         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40897         * modules/sys_stat (Makefile.am): Use them.
40898         * lib/sys_stat.in.h (stat): Declare replacement.
40899         * lib/openat.c (fstatat): Deal with lstat and stat being function
40900         macros.
40901         * modules/openat (Depends-on): Add inline.
40902         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40903         * doc/posix-functions/stat.texi (stat): Likewise.
40904         * modules/stat-tests: New test.
40905         * tests/test-stat.c: Likewise.
40906
40907 2009-09-19  Jim Meyering  <meyering@redhat.com>
40908
40909         syntax-check: detect unnecessary inclusion of canonicalize.h
40910         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40911
40912 2009-09-19  Eric Blake  <ebb9@byu.net>
40913
40914         canonicalize-lgpl: adjust clients to use correct header
40915         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40916         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40917         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40918         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40919         * lib/progreloc.c (includes): Likewise.
40920
40921 2009-09-19  Jim Meyering  <meyering@redhat.com>
40922
40923         test-posixtm.c: correct a comment
40924         * tests/test-posixtm.c: Correct first-line comment.
40925         Spotted by Eric Blake.
40926
40927 2009-09-16  Jim Meyering  <meyering@redhat.com>
40928
40929         posixtm-tests: make T const-correct; add a test case
40930         * tests/test-posixtm.c (T): Declare const.
40931         Add a test for -(2^31+1).
40932         Remove useless can-succeed-only-in-2002 test.
40933
40934         posixtm-tests: adjust the sole failing test
40935         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40936         expected output matches what mktime now produces.  Cross-checked via
40937         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40938
40939         posixtm: move #ifdef'd tests into a new module
40940         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40941         * tests/test-posixtm.c: ... this new file.
40942         * modules/posixtm-tests: New module.
40943
40944 2009-09-19  Eric Blake  <ebb9@byu.net>
40945
40946         openat: simplify use of at-func.c
40947         * lib/at-func.c (includes): Include prerequisites here, to
40948         simplify requirements on client files.
40949         * lib/openat-priv.h: Add double-inclusion guard.
40950         * lib/faccessat.c (includes): Simplify.
40951         * lib/fchmodat.c (includes): Likewise.
40952         * lib/fchownat.c (includes): Likewise.
40953         * lib/mkdirat.c (includes): Likewise.
40954         * lib/mkfifoat.c (includes): Likewise.
40955         * lib/symlinkat.c (includes): Likewise.
40956
40957         openat: allow return of fd 0
40958         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40959         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40960         unistd-safer.
40961         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40962         <fcntl.h>; this module does not leak fds.
40963         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40964         must be allowed to return 0, leaving openat_safer to add the
40965         safety.
40966         (openat_permissive): Avoid writing to just-opened fd 2 if
40967         restoring the current directory fails.
40968         * lib/openat-die.c (openat_restore_fail): Add comment.
40969         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40970         (save_cwd): Guarantee safe fd, but without use of open_safer.
40971         * tests/test-openat.c: New test.
40972         * modules/openat-tests (Files, Makefile.am): Distribute and build
40973         new file.
40974
40975         relocatable-prog-wrapper: fix build
40976         * modules/relocatable-prog-wrapper (Files): Update name of
40977         canonicalize m4 file, broken on 2009-09-17.
40978         Reported by emad hajjar <aleppos@hotmail.com>.
40979
40980 2009-09-19  Bruno Haible  <bruno@clisp.org>
40981
40982         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40983         * lib/safe-alloc.c: Likewise.
40984         Reported by Ian Beckwith <ianb@erislabs.net>.
40985
40986 2009-09-18  Bruno Haible  <bruno@clisp.org>
40987
40988         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40989         Reported by <erobles@sensacd.com.mx>.
40990
40991 2009-09-17  Eric Blake  <ebb9@byu.net>
40992
40993         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40994         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40995         slashes when checking if last component is missing.
40996         * tests/test-canonicalize.c (main): Test this.
40997
40998         canonicalize, canonicalize-lgpl: honor // if distinct from /
40999         * modules/canonicalize (Files): Add double-slash-root.m4.
41000         * modules/canonicalize-lgpl (Files): Likewise.
41001         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41002         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41003         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41004         fallback definition.
41005         (canonicalize_filename_mode): Use it to protect //.
41006         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41007         (__realpath): Likewise.
41008         * tests/test-canonicalize.c (main): Test this.
41009         * tests/test-canonicalize-lgpl.c (main): Likewise.
41010         * modules/canonicalize-tests (Depends-on): Add same-inode.
41011         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41012
41013         canonicalize-lgpl: fix glibc bug with trailing slash
41014         * m4/canonicalize-lgpl.m4: Move contents...
41015         * m4/canonicalize.m4: ...here.
41016         (gl_CANONICALIZE_LGPL): Factor realpath check...
41017         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41018         glibc 2.3.5 bug, fixed 2005-04-27.
41019         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41020         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41021         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41022         * modules/canonicalize-lgpl (Files): Manage file rename.
41023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41024         * modules/stdlib (Makefile.am): Substitute witness.
41025         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41026         is needed.
41027         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41028         replacement is required.
41029         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41030         * doc/glibc-functions/canonicalize_file_name.texi
41031         (canonicalize_file_name): Document this.
41032         * doc/posix-functions/realpath.texi (realpath): Likewise.
41033
41034         canonicalize-lgpl: reject non-directory with trailing slash
41035         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41036         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41037         catches failures in glibc 2.3.5.
41038         * tests/test-canonicalize.c (main): Likewise.
41039
41040         canonicalize-lgpl: use native realpath if it works
41041         * lib/canonicalize-lgpl.c (realpath): Guard with
41042         FUNC_REALPATH_WORKS.
41043         * lib/stdlib.in.h (realpath): Make declaration optional based on
41044         HAVE_REALPATH.
41045         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41046         native realpath works.
41047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41048         * modules/stdlib (Makefile.am): Substitute witness.
41049
41050         canonicalize, canonicalize-lgpl: use <stdlib.h>
41051         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41052         (Include): Mention <stdlib.h>.
41053         (configure.ac): Mention functions we provide.
41054         * modules/canonicalize (configure.ac): Likewise.
41055         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41056         realpath if canonicalize_file_name is missing.
41057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41058         * modules/stdlib (Makefile.am): Substitute witnesses.
41059         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41060         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41061         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41062         * NEWS: Document this.
41063         * doc/glibc-functions/canonicalize_file_name.texi
41064         (canonicalize_file_name): Likewise.
41065         * doc/posix-functions/realpath.texi (realpath): Likewise.
41066         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41067
41068         test-canonicalize: consolidate into single C program
41069         * tests/test-canonicalize.sh: Delete; move setup into...
41070         * tests/test-canonicalize.c (main): ...the program, making it
41071         easier to run in debugger.  Add some tests.
41072         * modules/canonicalize-tests (Files): Remove unused file.
41073         (Depends-on): Add progname.
41074         (configure.ac, Makefile.am): Simplify.
41075
41076         test-canonicalize-lgpl: consolidate into single C program
41077         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41078         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41079         easier to run in debugger.  Add some tests.
41080         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41081         (configure.ac, Makefile.am): Simplify.
41082
41083         canonicalize: avoid resolvepath
41084         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41085         unnecessary checks.
41086         * lib/canonicalize.c (includes): Simplify.
41087         (canonicalize_file_name): Drop resolvepath implementation.
41088         * modules/canonicalize (Depends-on): Drop filenamecat.
41089
41090         canonicalize: don't lose errno
41091         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41092         over calls to free.
41093
41094         canonicalize: simplify errno handling
41095         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41096         assignment.
41097
41098         canonicalize, canonicalize-lgpl: update module dependencies
41099         * modules/canonicalize (Depends-on): Add extensions, lstat,
41100         pathmax, stdlib.
41101         (Files): Drop pathmax.h.
41102         (configure.ac): Adjust macro name.
41103         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41104         lstat, stdlib, sys_stat.
41105         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41106         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41107         extensions.
41108         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41109         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41110         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41111         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41112         declaration, if available.
41113         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41114         we can rely on the readlink module.
41115         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41116         (includes): Use <unistd.h> unconditionally.
41117
41118 2009-09-17  Eric Blake  <ebb9@byu.net>
41119
41120         maint: make Include sections of modules consistent
41121         * modules/alloca: Use only header name; no need to list #include.
41122         * modules/alloca-opt: Likewise.
41123         * modules/arpa_inet: Likewise.
41124         * modules/canon-host: Likewise.
41125         * modules/configmake: Likewise.
41126         * modules/dirent: Likewise.
41127         * modules/eealloc: Likewise.
41128         * modules/environ: Likewise.
41129         * modules/fchdir: Likewise.
41130         * modules/fcntl: Likewise.
41131         * modules/fcntl-h: Likewise.
41132         * modules/gethrxtime: Likewise.
41133         * modules/gettime: Likewise.
41134         * modules/ignore-value: Likewise.
41135         * modules/inet_ntop: Likewise.
41136         * modules/inet_pton: Likewise.
41137         * modules/inttypes: Likewise.
41138         * modules/isnand-nolibm: Likewise.
41139         * modules/isnanf-nolibm: Likewise.
41140         * modules/mbchar: Likewise.
41141         * modules/mbfile: Likewise.
41142         * modules/mbiter: Likewise.
41143         * modules/mbuiter: Likewise.
41144         * modules/netdb: Likewise.
41145         * modules/netinet_in: Likewise.
41146         * modules/nproc: Likewise.
41147         * modules/pagealign_alloc: Likewise.
41148         * modules/poll: Likewise.
41149         * modules/printf-frexp: Likewise.
41150         * modules/pthread: Likewise.
41151         * modules/putenv: Likewise.
41152         * modules/random_r: Likewise.
41153         * modules/relocatable-prog: Likewise.
41154         * modules/search: Likewise.
41155         * modules/select: Likewise.
41156         * modules/selinux-h: Likewise.
41157         * modules/settime: Likewise.
41158         * modules/signal: Likewise.
41159         * modules/size_max: Likewise.
41160         * modules/socklen: Likewise.
41161         * modules/ssize_t: Likewise.
41162         * modules/stdarg: Likewise.
41163         * modules/stdbool: Likewise.
41164         * modules/stddef: Likewise.
41165         * modules/stdint: Likewise.
41166         * modules/stdio: Likewise.
41167         * modules/stdlib: Likewise.
41168         * modules/string: Likewise.
41169         * modules/strings: Likewise.
41170         * modules/sys_file: Likewise.
41171         * modules/sys_ioctl: Likewise.
41172         * modules/sys_select: Likewise.
41173         * modules/sys_socket: Likewise.
41174         * modules/sys_stat: Likewise.
41175         * modules/sys_time: Likewise.
41176         * modules/sys_times: Likewise.
41177         * modules/sys_utsname: Likewise.
41178         * modules/sys_wait: Likewise.
41179         * modules/sysexits: Likewise.
41180         * modules/time: Likewise.
41181         * modules/times: Likewise.
41182         * modules/tmpfile: Likewise.
41183         * modules/trim: Likewise.
41184         * modules/unistd: Likewise.
41185         * modules/wchar: Likewise.
41186         * modules/wctype: Likewise.
41187
41188 2009-09-17  Bruno Haible  <bruno@clisp.org>
41189
41190         Make getdate.y compile on QNX and NetBSD 5 / i386.
41191         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41192         TIME_T_FITS_IN_LONG_INT.
41193         * lib/getdate.y (long_time_t): New type.
41194         (relative_time): Change type of 'seconds' field to long_time_t.
41195         (get_date): Update types of local variables. Check against overflow
41196         during conversion from long_time_t to time_t.
41197         Reported by Matt Kraai <kraai@ftbfs.org>
41198         and Hasso Tepper <hasso@netbsd.org>.
41199
41200 2009-09-17  Bruno Haible  <bruno@clisp.org>
41201
41202         * modules/COPYING: Update copyright years.
41203         * modules/README: Likeiwse.
41204         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41205         Reported by Ian Beckwith <ianb@erislabs.net>.
41206
41207 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41208
41209         * users.txt: Update references for gnuit package.
41210
41211 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41212
41213         * m4/getdelim.m4: Fix typo in copyright line.
41214
41215 2009-09-17  Bruno Haible  <bruno@clisp.org>
41216
41217         * lib/atoll.c: Use the standard header with GPL copyright.
41218         * lib/argz.in.h: Likewise.
41219         * lib/glob.c: Likewise.
41220         * lib/glob-libc.h: Likewise.
41221         * lib/random_r.c: Likewise.
41222         * lib/siglist.h: Likewise.
41223         * lib/strsignal.c: Likewise.
41224         Reported by Ian Beckwith <ianb@erislabs.net>.
41225
41226 2009-09-17  Eric Blake  <ebb9@byu.net>
41227
41228         rmdir: ensure correct dependency order
41229         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41230
41231 2009-09-17  Bruno Haible  <bruno@clisp.org>
41232
41233         Disable assertion that fails on NetBSD 5 / i386.
41234         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41235         Reported by Sam Steingold <sds@gnu.org>
41236         and Hasso Tepper <hasso@netbsd.org>.
41237
41238 2009-09-16  Eric Blake  <ebb9@byu.net>
41239
41240         unlinkdir: port to mingw
41241         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41242         on which no one can unlink a directory.
41243
41244         stdlib: sort witness names
41245         * modules/stdlib (Makefile.am): Sort replacements.
41246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41247         * lib/stdlib.in.h: Likewise.
41248
41249         parse-duration-tests: avoid link failure
41250         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41251         LIBINTL.
41252         Reported by Tom G. Christensen.
41253
41254         openat-tests: ensure unlinkat behaves like rmdir
41255         * tests/test-rmdir.c (main): Factor guts...
41256         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41257         * modules/rmdir-tests (Files): Ship new file.
41258         * modules/openat-tests: New test.
41259         * tests/test-unlinkat.c: Likewise.
41260
41261         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41262         * modules/rmdir-errno (Status, Notice): Now obsolete.
41263
41264         rmdir: work around cygwin 1.5.x and mingw bugs
41265         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41266         * lib/rmdir.c (rmdir): Work around it.
41267         * modules/rmdir (Status, Notice): No longer obsolete.
41268         (Files): Add dos.m4.
41269         (Depends-on): Add unistd.
41270         (configure.ac): Set witnesses.
41271         (License): Relax to LGPLv2+.
41272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41273         * modules/unistd (Makefile.am): Substitute witnesses.
41274         * lib/unistd.in.h (rmdir): Declare replacement.
41275         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41276         * modules/rmdir-tests: New tests.
41277         * tests/test-rmdir.c: Likewise.
41278
41279 2009-09-15  Eric Blake  <ebb9@byu.net>
41280
41281         fchdir: improve use of replacement functions
41282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41283         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41284         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41285         REPLACE_CLOSEDIR.
41286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41287         * modules/sys_stat (Makefile.am): Substitute correct witness.
41288         * modules/dirent (Makefile.am): Likewise.
41289         * modules/unistd (Makefile.am): Likewise.
41290         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41291         * lib/unistd.in.h (dup): Likewise.
41292         * lib/sys_stat.in.h (fstat): Likewise.
41293
41294         maint: ignore gnulib-tool temp files
41295         * .gitignore: Ignore files created during gnulib-tool --test.
41296
41297 2009-09-13  Jim Meyering  <meyering@redhat.com>
41298
41299         posixtm: don't reject a time that specify "60" as the number of seconds
41300         * lib/posixtm.c (posixtime): The code to reject invalid dates
41301         would also reject a time specified with the .60 suffix.
41302         But POSIX allows that, in order to accommodate leap seconds.
41303         So don't reject it.
41304         (main): Adjust tests accordingly.
41305         * modules/posixtm (Depends-on): Add stpcpy.
41306
41307 2009-09-11  Jim Meyering  <meyering@redhat.com>
41308
41309         announce-gen: include [$release_type] in emitted Subject:
41310         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41311         e.g., [stable] in the emitted Subject: line.
41312
41313 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41314
41315         Remove obsolete macros from several modules.
41316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41317         obsolete Autoconf macros with their modern counterparts.
41318         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41319         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41321         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41322         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41323         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41325         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41326         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41327         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41328         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41329         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41330         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41331         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41332         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41333         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41334         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41335         * m4/time_r.m4 (gl_TIME_R): Likewise.
41336         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41337         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41338         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41339
41340         Fix copyright header in build-aux scripts.
41341         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41342         recommendation.
41343         * build-aux/ncftpput-ftp: Likewise.
41344         * build-aux/update-copyright: Likewise.
41345
41346 2009-09-09  Eric Blake  <ebb9@byu.net>
41347
41348         test-link: allow Linux choice of errno
41349         * tests/test-link.c (main): Relax test for alternate error.
41350
41351         strndup: fix improper m4 caching
41352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41353         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41354         (gl_PREREQ_STRNDUP): Delete.
41355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41356         * modules/string (Makefile.am): Substitute it.
41357         * lib/string.in.h (strndup): Modernize prototype.
41358
41359         getcwd: port to mingw
41360         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41361         different from the POSIX assumptions made throughout the getcwd
41362         module; fortunately, the mingw getcwd does not need replacement.
41363         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41364         * modules/getcwd-tests: New test.
41365         * tests/test-getcwd.c: Likewise.
41366
41367         link: fix platform bugs
41368         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41369         * lib/link.c (link): Work around them.  Fix related mingw bug.
41370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41371         * modules/unistd (Makefile.am): Substitute it.
41372         * lib/unistd.in.h (link): Declare replacement.
41373         * doc/posix-functions/link.texi (link): Document this.
41374         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41375
41376         test-link: consolidate into single C program, test more cases
41377         * tests/test-link.sh: Delete.
41378         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41379         at least Cygwin and Solaris.
41380         * modules/link-tests (Files): Remove unused file.
41381         (Depends-on): Add errno, sys_stat.
41382         (Makefile.am): Simplify.
41383
41384 2009-09-08  Bruno Haible  <bruno@clisp.org>
41385
41386         Work around towlower, towupper bug on mingw.
41387         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41388         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41389         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41390         * doc/posix-functions/towupper.texi: Likewise.
41391         Reported by Eric Blake.
41392
41393 2009-09-08  Jim Meyering  <meyering@redhat.com>
41394
41395         build: don't try to run autoheader if we don't use it
41396         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41397         is not used in configure.ac.
41398
41399 2009-09-08  Eric Blake  <ebb9@byu.net>
41400
41401         euidaccess: fix compilation error
41402         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41403
41404         rawmemchr: relax license
41405         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41406         okay.
41407         Reported by Jim Meyering.
41408
41409         mkfifoat: new module
41410         * modules/mkfifoat: New file.
41411         * lib/mkfifoat.c: Likewise.
41412         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41413         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41414         * modules/sys_stat (Makefile.am): Use them.
41415         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41416         * MODULES.html.sh (File system functions): Mention module.
41417         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41418         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41419         * modules/mkfifoat-tests: New test.
41420         * tests/test-mkfifoat.c: Likewise.
41421
41422         strchrnul: relax license
41423         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41424         okay.
41425         Reported by Jim Meyering.
41426
41427 2009-09-08  Eric Blake  <ebb9@byu.net>
41428
41429         fstatat: fix compilation on Solaris
41430         * lib/fstatat.c (includes): Add fcntl.h.
41431         Reported by Pádraig Brady.
41432
41433 2009-09-07  Eric Blake  <ebb9@byu.net>
41434
41435         rename: modernize replacement
41436         * modules/rename (Depends-on): Add stdio.
41437         (configure.ac): Declare witness.
41438         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41439         stdio take care of replacement.
41440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41441         * modules/stdio (Makefile.am): Substitute them.
41442         * lib/stdio.in.h (rename): Declare replacement.
41443         * lib/rename.c (includes): Allow cross-compilation to non-windows
41444         machines.
41445         * doc/posix-functions/rename.texi (rename): Improve
41446         documentation.
41447
41448         stdio: sort witness names
41449         * modules/stdio (Makefile.am): Sort replacements.
41450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41451         * lib/stdio.in.h: Likewise.
41452
41453         getcwd: minor cleanups
41454         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41455         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41456
41457         openat: provide more convenience names
41458         * modules/faccessat (configure.ac): Add C witness.
41459         * lib/unistd.in.h (readlinkat): Fix typo.
41460         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41461         convenience wrappers.
41462         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41463         wrappers in syntax checks.
41464
41465 2009-09-06  Eric Blake  <ebb9@byu.net>
41466
41467         doc: fix comments in recent patches
41468         * lib/faccessat.c: Mention correct function.
41469         * lib/fchmodat.c: Likewise.
41470         * lib/fchownat.c: Likewise.
41471         * lib/symlinkat.c: Likewise.
41472         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41473         constants.
41474
41475         faccessat, symlinkat: continue cleanup of previous patch
41476         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41477         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41478         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41480         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41481         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41482         set.
41483
41484 2009-09-06  Bruno Haible  <bruno@clisp.org>
41485
41486         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41487         (fstatat): Declare if GNULIB_FSTATAT is set.
41488         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41489         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41490         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41491         * modules/fcntl-h (Files): Remove m4/openat.m4.
41492         * modules/sys_stat (Files): Remove m4/openat.m4.
41493         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41494         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41495         * modules/unistd (Files): Remove m4/openat.m4.
41496         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41497         GNULIB_OPENAT.
41498         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41499         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41500         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41501         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41502         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41503         gl_OPENAT_DEFAULTS.
41504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41505         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41506         Don't require gl_OPENAT_DEFAULTS.
41507         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41508         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41509         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41510         (gl_OPENAT_DEFAULTS): Remove macro.
41511
41512 2009-09-06  Bruno Haible  <bruno@clisp.org>
41513
41514         * modules/openat (configure.ac): Remove unneeded witness.
41515
41516 2009-09-06  Bruno Haible  <bruno@clisp.org>
41517
41518         Set errno to ENOSYS when a function is entirely unsupported.
41519         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41520         EOPNOTSUPP.
41521         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41522         * modules/chown (Depends-on): Remove errno.
41523
41524 2009-09-06  Bruno Haible  <bruno@clisp.org>
41525
41526         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41527
41528 2009-09-06  Bruno Haible  <bruno@clisp.org>
41529
41530         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41531
41532 2009-09-06  Ben Pfaff  <blp@gnu.org>
41533             Bruno Haible  <bruno@clisp.org>
41534
41535         Work around a glibc bug in strtok_r.
41536         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41537         Undefine if UNDEFINE_STRTOK_R is set.
41538         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41540         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41541         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41542         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41543         UNDEFINE_STRTOK_R.
41544         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41545
41546 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41547
41548         exclude: minor fix
41549         * lib/exclude.c: Include wctype.h
41550
41551 2009-09-06  Akim Demaille  <demaille@gostai.com>
41552
41553         bootstrap: improve error message
41554         * build-aux/bootstrap (find_tool): Upon failure, report the list
41555         of candidates.
41556         Honor the initial value of the envvar.
41557
41558 2009-09-05  Eric Blake  <ebb9@byu.net>
41559
41560         symlinkat: new module
41561         * modules/symlinkat: New file.
41562         * lib/symlinkat.c: Likewise.
41563         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41565         * modules/unistd (Makefile.am): Use them.
41566         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41567         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41568         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41569         * MODULES.html.sh (File system functions): Mention module.
41570         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41571         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41572         * modules/symlinkat-tests: New test.
41573         * tests/test-symlinkat.c: Likewise.
41574
41575         test-openat-safer: add more checks
41576         * tests/test-openat-safer.c (main): Check more code paths.
41577
41578 2009-09-05  Jim Meyering  <meyering@redhat.com>
41579
41580         syntax-check: detect unnecessary inclusion of openat.h
41581         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41582
41583 2009-09-05  Bruno Haible  <bruno@clisp.org>
41584
41585         Support towlower, towupper.
41586         * doc/posix-functions/towlower.texi: Mention module wctype.
41587         * doc/posix-functions/towupper.texi: Likewise.
41588         * lib/wctype.in.h (towlower, towupper): New functions.
41589         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41590         (ASSERT): New macro.
41591         (e): New variable.
41592         (main): Test also towlower, towupper. Test WEOF argument.
41593         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41594
41595 2009-09-05  Bruno Haible  <bruno@clisp.org>
41596
41597         Fix conversion behaviour when the input is invalid.
41598         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41599         mark occurring in first pass of indirect conversion.
41600         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41601         input.
41602         Found by clang's static analyzer.
41603
41604 2009-09-05  Bruno Haible  <bruno@clisp.org>
41605
41606         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41607         where direct conversion is possible.
41608
41609 2009-09-04  Eric Blake  <ebb9@byu.net>
41610
41611         openat: fail with ENOENT on empty name
41612         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41613         buffer.
41614
41615         link-follow: fix logic bug in prior patch
41616         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41617         reversed sense of yes and no in prior patch.  Avoid confusing
41618         compilation failure with desired semantics.
41619
41620         link-follow: accomodate mingw and cross-compilation
41621         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41622         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41623         cross-compilation results to -1, to make linkat easier to
41624         implement when cross-compiling.  Trivially support mingw.
41625         * modules/link-follow (configure.ac): Call new name.
41626         * NEWS: Mention this.
41627
41628 2009-09-03  Eric Blake  <ebb9@byu.net>
41629
41630         faccessat: compile replacement
41631         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41632         needed.
41633
41634         fts: fix compilation error
41635         * lib/fts.c (includes): Re-add "openat.h", for
41636         openat_needs_fchdir.
41637
41638         faccessat: new module
41639         * modules/faccessat: New file.
41640         * lib/faccessat.c: Likewise.
41641         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41643         * modules/unistd (Makefile.am): Use it.
41644         * lib/unistd.in.h (faccessat): Declare it.
41645         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41646         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41647         * MODULES.html.sh (File system functions): Mention it.
41648         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41649         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41650
41651         euidaccess: prefer POSIX over non-standard implementation
41652         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41653         * lib/euidaccess.c (euidaccess): Use it if available.
41654
41655         openat: make template easier to use
41656         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41657         AT_FUNC_F2 to be undefined.
41658         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41659         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41660         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41661         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41662         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41663         Likewise.
41664         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41665         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41666         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41667         Likewise.
41668
41669         openat: declare in POSIX headers
41670         * NEWS: Mention this.
41671         * modules/openat (configure.ac): Declare witnesses.
41672         (Depends-on): Add fcntl-h, sys_stat, unistd.
41673         (Include): Mention correct headers.
41674         * modules/fcntl-h (Depends-on): Add link-warning.
41675         (Files): Add openat.m4.
41676         (Makefile.am): Substitute witnesses.
41677         * modules/sys_stat (Files, Makefile.am): Likewise.
41678         * modules/unistd (Files, Makefile.am): Likewise.
41679         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41680         (gl_OPENAT_DEFAULTS): New macro.
41681         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41684         (SYS_STAT_H): Remove unused variable.
41685         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41686         * lib/fcntl--.h (includes): Remove unneeded header.
41687         * lib/openat-safer.c (includes): Likewise.
41688         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41689         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41690         appropriate headers.
41691         (__OPENAT_PREFIX): Delete.
41692         * lib/fcntl.in.h (openat): Provide declaration.
41693         (AT_FDCWD): Fix Solaris bug.
41694         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41695         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41696         * lib/fchmodat.c (includes):  Adjust to find declaration.
41697         * lib/fchownat.c (includes): Likewise.
41698         * lib/mkdirat.c (includes): Likewise.
41699         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41700         still visible.
41701
41702 2009-09-02  Eric Blake  <ebb9@byu.net>
41703
41704         errno: use consistently
41705         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41706         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41707         * lib/canonicalize.c (ELOOP): Likewise.
41708         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41709         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41710         * lib/lchown.c (EOPNOTSUPP): Likewise.
41711         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41712         * lib/savewd.c (ESTALE): Likewise.
41713         * lib/settime.c (ENOSYS): Likewise.
41714         * lib/utimens.c (ENOSYS): Likewise.
41715         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41716         * lib/chdir-safer.c (ELOOP): Likewise.
41717         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41718         * modules/c-stack (Depends-on): Add errno.
41719         * modules/canonicalize (Depends-on): Likewise.
41720         * modules/chdir-safer (Depends-on): Likewise.
41721         * modules/fdopendir (Depends-on): Likewise.
41722         * modules/inet_ntop (Depends-on): Likewise.
41723         * modules/inet_pton (Depends-on): Likewise.
41724         * modules/lchown (Depends-on): Likewise.
41725         * modules/openat (Depends-on): Likewise.
41726         * modules/savewd (Depends-on): Likewise.
41727         * modules/settime (Depends-on): Likewise.
41728         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41729
41730         fts: avoid leaking fds
41731         * modules/fts (Depends-on): Add cloexec.
41732         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41733         flag.
41734
41735         fts: make directory fds more robust
41736         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41737         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41738
41739         backupfile, chdir-long, fts, savedir: make safer
41740         * lib/backupfile.c (includes): Use "dirent--.h", since
41741         numbered_backup can write to stderr during readdir.
41742         * lib/savedir.c (includes): Likewise.
41743         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41744         emulation can write to stderr on failure.
41745         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41746         * lib/getcwd.c: Document why opendir_safer is unused.
41747         * lib/glob.c: Likewise.
41748         * lib/scandir.c: Likewise.
41749         * lib/openat-proc.c: Likewise, for open_safer.
41750         * modules/backupfile (Depends-on): Add dirent-safer.
41751         * modules/savedir (Depends-on): Likewise.
41752         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41753         * modules/chdir-long (Depends-on): Add openat-safer.
41754
41755         openat-safer: new module
41756         * modules/openat-safer: New file.
41757         * lib/openat-safer.c: Likewise.
41758         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41759         * lib/fcntl-safer.h (openat_safer): Declare.
41760         * lib/fcntl--.h (openat): Override.
41761         * MODULES.html.sh (File descriptor based I/O): Mention it.
41762         * lib/openat.h: Add double-inclusion guards.
41763         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41764         "fcntl--.h", so we can implement openat.
41765         * modules/openat-safer-tests: New test.
41766         * tests/test-openat-safer.c: New file.
41767
41768         dirent-safer: new module
41769         * modules/dirent-safer: New file.
41770         * lib/dirent--.h: Likewise.
41771         * lib/dirent-safer.h: Likewise.
41772         * lib/opendir-safer.c: Likewise.
41773         * m4/dirent-safer.m4: Likewise.
41774         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41775         * modules/dirent-safer-tests: New test.
41776         * tests/test-dirent-safer.c: New file.
41777         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41778
41779         fdopendir: optimize on mingw
41780         * lib/unistd.in.h (_gl_directory_name): New prototype.
41781         * lib/fchdir.c (_gl_directory_name): Implement it.
41782         (fchdir): Use it to simplify implementation.
41783         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41784         fchdir, when available, to avoid calling [f]chdir().
41785
41786         fdopendir: split into its own module
41787         * lib/openat.c (fdopendir): Move...
41788         * lib/fdopendir.c: ...into new file.
41789         * modules/fdopendir: New module.
41790         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41791         * modules/openat (Depends-on): Add fdopendir.
41792         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41793         fdopendir here.
41794         * modules/savedir (Depends-on): Only need fdopendir, not full
41795         openat.
41796         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41797         * lib/openat.h (fdopendir): Drop prototype.
41798         * lib/dirent.in.h (fdopendir): Provide prototype.
41799         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41800         * modules/dirent (Makefile.am): Substitute them.
41801         * MODULES.html.sh (File system functions): Mention it.
41802         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41803         * modules/fdopendir-tests: New file.
41804         * tests/test-fdopendir.c: Likewise.
41805
41806         fchdir: use more consistent macro convention
41807         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41808         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41809         REPLACE_FCHDIR, rather than relying on config.h macros.
41810         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41811         inside a single make-time REPLACE_FCHDIR block, rather than using
41812         the config.h FCHDIR_REPLACEMENT.
41813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41814         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41815         Manage fstat replacement.
41816         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41817         REPLACE_FCHDIR.
41818         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41819         (Makefile.am): Substitute REPLACE_FCHDIR.
41820         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41821         FCHDIR_REPLACEMENT.
41822         * lib/dup-safer.c (dup_safer): Likewise.
41823         * lib/dup2.c (rpl_dup2): Likewise.
41824         * lib/dup3.c (rpl_dup3): Likewise.
41825         * lib/open.c (rpl_open): Likewise.
41826
41827         fchdir: simplify error handling, and support dup3
41828         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41829         stdbool, malloc-posix, realloc-posix.
41830         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41831         (ensure_dirs_slot): Return false on allocation failure.
41832         (rpl_dup2): Delete.
41833         (_gl_register_dup): New function.
41834         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41835         (_gl_register_fd): Close fd on allocation failure.
41836         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41837         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41838         prototype.
41839         (rpl_dup2_fchdir): Delete prototype.
41840         * lib/open.c (open): Update caller.
41841         * lib/dup2.c (dup2): Track fchdir metadata.
41842         * lib/dup3.c (dup3): Likewise.
41843         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41845
41846 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41847
41848         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41849         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41850         don't pass arguments to AC_OUTPUT.
41851
41852 2009-09-02  Bruno Haible  <bruno@clisp.org>
41853
41854         * modules/mkdtemp (License): Relicense under LGPLv2+.
41855         Reported by Paolo Bonzini.
41856
41857 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41858
41859         Replace uses of obsolete autoconf macros in Jim's modules.
41860         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41861         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41862         can evoke a warning from autoconf when run with -Wobsolete
41863         enabled.  They were declared obsolete for good reasons (see
41864         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41865         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41866         should not continue using the deprecated macros.
41867         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41868         obsolete Autoconf macros with modern counterparts.
41869         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41870         * m4/dos.m4 (gl_AC_DOS): Likewise.
41871         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41872         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41873         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41874         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41875         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41876         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41877         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41878         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41879         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41880         Likewise.
41881         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41882         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41883         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41884         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41885         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41886         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41887
41888 2009-09-01  Eric Blake  <ebb9@byu.net>
41889
41890         fchdir: fix off-by-one bug in previous patch
41891         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41892         (_gl_unregister_fd): Delete useless if.
41893
41894 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41895
41896         maint.mk: sort the list of syntax-check rules
41897         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41898         easier to get a sense of progress when the rules are run sequentially
41899         and take a long time.
41900
41901 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41902
41903         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41904         * modules/netinet_in: Likewise.
41905         * modules/sys_file: Likewise.
41906         * modules/sys_ioctl: Likewise.
41907         * modules/sys_select: Likewise.
41908         * modules/sys_socket: Likewise.
41909         * modules/sys_stat: Likewise.
41910         * modules/sys_time: Likewise.
41911         * modules/sys_times: Likewise.
41912         * modules/sys_utsname: Likewise.
41913         * modules/sys_wait: Likewise.
41914
41915 2009-09-01  Jim Meyering  <meyering@redhat.com>
41916
41917         fts: help ensure that return values are not ignored
41918         * lib/fts_.h (__GNUC_PREREQ): Define.
41919         (__attribute_warn_unused_result__): Define.
41920         (fts_children, fts_close, fts_open, fts_read): Declare with
41921         __attribute_warn_unused_result__.
41922
41923         fts: fts_close now fails also when closing a dir file descriptor fails
41924         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41925         and propagate to caller, along with errno.
41926
41927         announce-gen: correct formatting in --help output
41928         * build-aux/announce-gen (usage): Move the one-line description in
41929         --help output "up", to where it belongs, just after Usage:.
41930
41931 2009-08-31  Eric Blake  <ebb9@byu.net>
41932
41933         fchdir: port to mingw
41934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41935         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41936         opened, then use a substitute.
41937         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41938         replacement.
41939         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41940         (_gl_register_fd): No need to check stat if open already filters
41941         all directories.
41942         (fchdir): Fix error condition to match POSIX.
41943         * modules/fchdir (Depends-on): Add sys_stat.
41944         * doc/posix-functions/open.texi (open): Document the limitation.
41945         * modules/fchdir-tests: New file.
41946         * tests/test-fchdir.c: Likewise.
41947
41948         canonicalize: allow cross-testing from cygwin to mingw
41949         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41950         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41951         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41952         Likewise.
41953         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41954         target does not support symlinks.
41955         * tests/test-canonicalize-lgpl.sh: Likewise.
41956
41957         chown: avoid compilation warning on mingw
41958         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41959         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41960         mingw.
41961         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41962         * modules/chown (Depends-on): Add errno.
41963
41964 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41965
41966         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41967         command.
41968
41969 2009-08-31  Jim Meyering  <meyering@redhat.com>
41970
41971         canonicalize: remove useless initialization
41972         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41973         initialization of local, "end".
41974
41975 2009-08-30  Bruno Haible  <bruno@clisp.org>
41976
41977         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41978         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41979         ENOSYS.
41980
41981 2009-08-30  Bruno Haible  <bruno@clisp.org>
41982
41983         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41984         /usr/xpg4/bin/tr when it exists.
41985         * tests/test-pipe-filter-gi1.sh: Likewise.
41986
41987 2009-08-30  Bruno Haible  <bruno@clisp.org>
41988
41989         Work around deficient /usr/bin/id program on Solaris.
41990         * tests/test-file-has-acl.sh (ID): New variable.
41991         * tests/test-set-mode-acl.sh (ID): Likewise.
41992         * tests/test-copy-acl.sh (ID): Likewise.
41993         * tests/test-copy-file.sh (ID): Likewise.
41994
41995 2009-08-30  Bruno Haible  <bruno@clisp.org>
41996
41997         New module 'xstriconveh'.
41998         * lib/xstriconveh.h: New file.
41999         * lib/xstriconveh.c: New file.
42000         * modules/xstriconveh: New file.
42001
42002 2009-08-30  Bruno Haible  <bruno@clisp.org>
42003
42004         Make it easier to use mem_cd_iconveh.
42005         * lib/striconveh.h (iconveh_t): New type.
42006         (iconveh_open, iconveh_close): New declarations.
42007         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42008         with a single 'const iconveh_t *' argument.
42009         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42010         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42011         with a single 'const iconveh_t *' argument.
42012         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42013         * tests/test-striconveh.c (main): Update.
42014         * NEWS: Mention the change.
42015
42016 2009-08-30  Bruno Haible  <bruno@clisp.org>
42017
42018         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42019         problem.
42020
42021 2009-08-30  Bruno Haible  <bruno@clisp.org>
42022
42023         Work around iconv_open problem on Solaris.
42024         * lib/iconv_open-solaris.gperf: New file.
42025         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42026         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42027         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42028         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42029         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42030         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42031
42032 2009-08-29  Jim Meyering  <meyering@redhat.com>
42033
42034         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42035         * top/maint.mk (cvs-check): Remove target; it was just an alias
42036         to the better-named vc-diff-check.
42037         (maintainer-distcheck): Remove rule.  It was used only from
42038         the (alpha/beta/major) target, and all of its commands but one
42039         were coreutils-specific.
42040         (vc-dist): Remove rule.
42041         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42042         Run vc-diff-check, not vc-dist.
42043         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42044
42045 2009-08-27  Bruno Haible  <bruno@clisp.org>
42046
42047         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42048         of 0.
42049
42050 2009-08-27  Bruno Haible  <bruno@clisp.org>
42051
42052         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42053         compilers.
42054         * doc/func.texi: Document the SunPRO C bug.
42055
42056 2009-08-27  Bruno Haible  <bruno@clisp.org>
42057
42058         Fix link error on Solaris.
42059         * tests/test-parse-duration.c (xstrdup): Remove function.
42060
42061 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42062
42063         ignore-value: handle pointer types, too
42064         * lib/ignore-value.h (__attribute__): Remove definition.
42065         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42066         of a more concise and more-often effective "(void) i" statement.
42067         (ignore_ptr): New function to suppress warnings from functions that
42068         return pointers, and to make it explicit that one function doesn't
42069         handle all cases.
42070
42071 2009-08-25  Bruno Haible  <bruno@clisp.org>
42072
42073         dup2: work around a Linux bug.
42074         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42075         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42076         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42077         Reported by Simon Josefsson.
42078
42079 2009-08-25  Jim Meyering  <meyering@redhat.com>
42080
42081         libguestfs uses gnulib
42082         * users.txt: Add libguestfs.
42083
42084 2009-08-24  Eric Blake  <ebb9@byu.net>
42085
42086         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42087         * lib/pipe2.c (includes): Add binary-io.h.
42088         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42089
42090 2009-08-24  Bruno Haible  <bruno@clisp.org>
42091
42092         Tolerate declared but missing accept4 syscall.
42093         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42094         available.
42095         * lib/sys_socket.in.h (accept4): If the function is already present,
42096         override it.
42097         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42098         * modules/accept4 (Makefile.am): Compile accept4.c always.
42099         Reported by Paolo Bonzini and Eric Blake.
42100
42101 2009-08-23  Bruno Haible  <bruno@clisp.org>
42102
42103         New module 'accept4'.
42104         * lib/sys_socket.in.h (accept4): New declaration.
42105         * lib/accept4.c: New file.
42106         * m4/accept4.m4: New file.
42107         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42108         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42109         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42110         HAVE_ACCEPT4.
42111         * modules/accept4: New file.
42112         * doc/glibc-functions/accept4.texi: Mention the new module.
42113
42114 2009-08-24  Jim Meyering  <meyering@redhat.com>
42115
42116         progname: also set global program_invocation_name, when possible
42117         Before this change, a libtool-enabled program that calls glibc's
42118         error function would report the program name as
42119         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42120         * modules/progname (configure.ac): Check for a declaration of
42121         program_invocation_name.
42122         * lib/progname.c:  Include <errno.h>.
42123         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42124         Set program_invocation_name.
42125
42126 2009-08-23  Bruno Haible  <bruno@clisp.org>
42127
42128         * lib/dup3.c: Include <string.h>.
42129
42130 2009-08-23  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42133         * lib/pipe2.c (pipe2): Likewise.
42134         Suggested by Eric Blake.
42135
42136 2009-08-23  Bruno Haible  <bruno@clisp.org>
42137
42138         Tolerate declared but missing dup3 syscall.
42139         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42140         * lib/unistd.in.h (dup3): If the function is already present,
42141         override it.
42142         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42143         * modules/dup3 (Makefile.am): Compile dup3.c always.
42144         Reported by Paolo Bonzini.
42145
42146 2009-08-23  Bruno Haible  <bruno@clisp.org>
42147
42148         Tolerate declared but missing pipe2 syscall.
42149         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42150         available.
42151         * lib/unistd.in.h (pipe2): If the function is already present,
42152         override it.
42153         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42154         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42155         Reported by Paolo Bonzini.
42156
42157 2009-08-23  Bruno Haible  <bruno@clisp.org>
42158
42159         * lib/pipe2.c (pipe2): Move #ifs inside function.
42160
42161 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42162
42163         quotearg: document limitations of quote_these_too
42164         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42165         those limitations are created.
42166         * lib/quotearg.h (set_char_quoting): Document that digits and
42167         letters that are special after backslash are not permitted.
42168         (quotearg_char): Cross-reference set_char_quoting documentation.
42169
42170 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42171
42172         quotearg: implement custom_quoting_style
42173         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42174         right_quote fields.
42175         (set_custom_quoting): New public function.
42176         (quotearg_buffer_restyled): Add left_quote and right_quote
42177         arguments, handle them very much like locale quoting, and update
42178         all uses.
42179         (quotearg_n_custom): New public function.
42180         (quotearg_n_custom_mem): New public function.
42181         (quotearg_custom): New public function.
42182         (quotearg_custom_mem): New public function.
42183         * lib/quotearg.h: Prototype and document new public functions.
42184         (enum quoting_style): For escape_quoting_style and
42185         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42186         ignored even though they're otherwise like c_quoting_style.
42187         Add custom_quoting_style member and document with comparison to
42188         clocale_quoting_style.
42189         * tests/test-quotearg.c (custom_quotes): New array.
42190         (custom_results): New array.
42191         (main): Extend to test custom quoting.
42192
42193 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42194
42195         quotearg: fix right quote escaping when it's in quote_these_too
42196         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42197         quote, be sure to prepend only one backslash.
42198         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42199         (main): Test it.
42200
42201 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42202
42203         quotearg-tests: test escaping of embedded locale quotes
42204         * tests/test-quotearg.c (struct result_strings): Add member for
42205         new input.
42206         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42207         (inputs): Add new input.
42208         (results_g): Add expected results.
42209         (flag_results): Likewise.
42210         (locale_results): Likewise.
42211         (compare_strings): Check those.
42212
42213 2009-08-23  Bruno Haible  <bruno@clisp.org>
42214
42215         Tests for module 'dup3'.
42216         * modules/dup3-tests: New file.
42217         * tests/test-dup3.c: New file.
42218
42219         New module 'dup3'.
42220         * lib/unistd.in.h (dup3): New declaration.
42221         * lib/dup3.c: New file.
42222         * m4/dup3.m4: New file.
42223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42224         HAVE_DUP3.
42225         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42226         * modules/dup3: New file.
42227         * doc/glibc-functions/dup3.texi: Mention the new module.
42228
42229 2009-08-23  Bruno Haible  <bruno@clisp.org>
42230
42231         Tweak the dup2 test.
42232         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42233         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42234         the test file is still empty. Fix argument order of lseek.
42235
42236 2009-08-23  Bruno Haible  <bruno@clisp.org>
42237
42238         Avoid test link errors when the modules getopt-gnu, gettext are used.
42239         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42241
42242 2009-08-23  Bruno Haible  <bruno@clisp.org>
42243
42244         Fix getdtablesize() on mingw.
42245         * lib/getdtablesize.c (getdtablesize): Implement differently.
42246         * lib/unistd.in.h (getdtablesize): Improve comment.
42247
42248 2009-08-23  Bruno Haible  <bruno@clisp.org>
42249
42250         New module 'mkostemp'.
42251         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42252         * lib/stdlib.in.h (mksotemp): New declaration.
42253         * lib/mkostemp.c: New file, from glibc with modifications.
42254         * lib/tempname.h (GT_FILE): Remove outdated comment.
42255         (gen_tempname): Add flags argument.
42256         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42257         (__GT_FILE): Map to 1.
42258         (small_open, large_open): Remove macros.
42259         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42260         * lib/mkstemp.c (mkstemp): Update.
42261         * lib/mkdtemp.c (mkdtemp): Likewise.
42262         * m4/mkostemp.m4: New file.
42263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42264         HAVE_MKOSTEMP.
42265         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42266         HAVE_MKOSTEMP.
42267         * modules/mkostemp: New file, based on modules/mkstemp.
42268         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42269         * NEWS: Mention the change.
42270
42271 2009-08-23  Bruno Haible  <bruno@clisp.org>
42272
42273         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42274         Reported by Eric Blake.
42275
42276 2009-08-23  Bruno Haible  <bruno@clisp.org>
42277
42278         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42279         Reported by Eric Blake.
42280
42281 2009-08-23  Bruno Haible  <bruno@clisp.org>
42282
42283         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42284         * modules/pipe2 (Depends-on): Likewise.
42285
42286 2009-08-23  Eric Blake  <ebb9@byu.net>
42287
42288         fcntl-h: add O_TTY_INIT support
42289         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42290         * tests/test-fcntl-h.c (o): Test it.
42291         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42292
42293         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42294         * modules/fcntl: Move <fcntl.h> header replacement...
42295         * modules/fcntl-h: ...to new name, so as not to collide with
42296         like-named function.
42297         * tests/test-fcntl.c: Rename...
42298         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42299         * modules/fcntl-tests: Rename...
42300         * modules/fcntl-h-tests: ...to this.  Update test file name.
42301         * modules/chdir-long (Depends-on): Update clients.
42302         * modules/chdir-safer (Depends-on): Likewise.
42303         * modules/fcntl-safer (Depends-on): Likewise.
42304         * modules/fts (Depends-on): Likewise.
42305         * modules/mkancesdirs (Depends-on): Likewise.
42306         * modules/mkdir-p (Depends-on): Likewise.
42307         * modules/open (Depends-on): Likewise.
42308         * modules/savewd (Depends-on): Likewise.
42309         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42310         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42311
42312 2009-08-22  Bruno Haible  <bruno@clisp.org>
42313
42314         * modules/binary-io (License): Relicense under LGPL.
42315         * modules/pipe2 (License): Likewise.
42316
42317 2009-08-22  Bruno Haible  <bruno@clisp.org>
42318
42319         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42320         return value.
42321         * lib/pipe-filter-gi.c (filter_init): Likewise.
42322         Reported by Eric Blake.
42323
42324 2009-08-22  Bruno Haible  <bruno@clisp.org>
42325
42326         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42327         * modules/pipe (Depends-on): Add pipe2.
42328
42329 2009-08-22  Bruno Haible  <bruno@clisp.org>
42330
42331         Tests for module 'pipe2'.
42332         * modules/pipe2-tests: New file.
42333         * tests/test-pipe2.c: New file.
42334
42335         New module 'pipe2'.
42336         * lib/unistd.in.h (pipe2): New declaration.
42337         * lib/pipe2.c: New file.
42338         * m4/pipe2.m4: New file.
42339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42340         HAVE_PIPE2.
42341         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42342         * modules/pipe2: New file.
42343         * doc/glibc-functions/pipe2.texi: Mention the new module.
42344
42345 2009-08-22  Bruno Haible  <bruno@clisp.org>
42346
42347         Reference some new glibc functions.
42348         * doc/glibc-functions/accept4.texi: New file.
42349         * doc/glibc-functions/dup3.texi: New file.
42350         * doc/glibc-functions/mkostemp.texi: New file.
42351         * doc/glibc-functions/pipe2.texi: New file.
42352         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42353         (Glibc sys/socket.h): Refer to accept4.
42354         (Glibc unistd.h): Refer to dup3, pipe2.
42355         Reported by Eric Blake.
42356
42357 2009-08-22  Jim Meyering  <meyering@redhat.com>
42358             Bruno Haible  <bruno@clisp.org>
42359
42360         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42361         This makes it so packages using automake-1.11's silent-rules option
42362         can print e.g., a single "GEN    configmake.h" line, rather than
42363         the 30+ statements that perform the job.  If you want to see the
42364         actual commands, you can still run "make V=1".
42365         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42366         so that make output is abbreviated when those variables are defined
42367         appropriately.
42368         * modules/argz: Likewise.
42369         * modules/arpa_inet: Likewise.
42370         * modules/byteswap: Likewise.
42371         * modules/configmake: Likewise.
42372         * modules/dirent: Likewise.
42373         * modules/errno: Likewise.
42374         * modules/fcntl: Likewise.
42375         * modules/float: Likewise.
42376         * modules/fnmatch: Likewise.
42377         * modules/getopt-posix: Likewise.
42378         * modules/glob: Likewise.
42379         * modules/iconv_open: Likewise.
42380         * modules/inttypes: Likewise.
42381         * modules/localcharset: Likewise.
42382         * modules/locale: Likewise.
42383         * modules/math: Likewise.
42384         * modules/netdb: Likewise.
42385         * modules/netinet_in: Likewise.
42386         * modules/poll: Likewise.
42387         * modules/posix_spawnp-tests: Likewise.
42388         * modules/sched: Likewise.
42389         * modules/search: Likewise.
42390         * modules/selinux-h: Likewise.
42391         * modules/signal: Likewise.
42392         * modules/spawn: Likewise.
42393         * modules/stdarg: Likewise.
42394         * modules/stdbool: Likewise.
42395         * modules/stddef: Likewise.
42396         * modules/stdint: Likewise.
42397         * modules/stdio: Likewise.
42398         * modules/stdlib: Likewise.
42399         * modules/string: Likewise.
42400         * modules/strings: Likewise.
42401         * modules/sys_file: Likewise.
42402         * modules/sys_ioctl: Likewise.
42403         * modules/sys_select: Likewise.
42404         * modules/sys_socket: Likewise.
42405         * modules/sys_stat: Likewise.
42406         * modules/sys_time: Likewise.
42407         * modules/sys_times: Likewise.
42408         * modules/sys_utsname: Likewise.
42409         * modules/sys_wait: Likewise.
42410         * modules/sysexits: Likewise.
42411         * modules/time: Likewise.
42412         * modules/unistd: Likewise.
42413         * modules/wchar: Likewise.
42414         * modules/wctype: Likewise.
42415
42416 2009-08-22  Jim Meyering  <meyering@redhat.com>
42417
42418         announce-gen: detect write failure
42419         * build-aux/announce-gen: Add Coda at end.
42420         Remove equivalent-but-more-verbose block at top.
42421
42422 2009-08-19  Akim Demaille  <demaille@gostai.com>
42423
42424         bootstrap: --help to stdout.
42425         * bootstrap (usage): Don't send --help to stderr.
42426         Use a here doc instead of a long string.
42427
42428 2009-08-21  Eric Blake  <ebb9@byu.net>
42429
42430         test-popen-safer: split from test-popen
42431         * tests/test-popen.c (main): Move...
42432         * tests/test-popen.h: ...into new file.
42433         * tests/test-popen-safer2.c: New file.
42434         * modules/popen-tests (Files): Add test-popen.h.
42435         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42436         Suggested by Bruno Haible.
42437
42438         test-fcntl-safer: split from test-open
42439         * tests/test-open.c (main): Move...
42440         * tests/test-open.h: ...into new file.
42441         * tests/test-fcntl-safer.c: New file.
42442         * modules/open-tests (Files): Add test-open.h.
42443         * modules/fcntl-safer-tests: New file.
42444         Suggested by Bruno Haible.
42445
42446         test-fopen-safer: split from test-fopen
42447         * tests/test-fopen.c (main): Move...
42448         * tests/test-fopen.h: ...into new file.
42449         * tests/test-fopen-safer.c: New file.
42450         * modules/fopen-tests (Files): Add test-fopen.h.
42451         * modules/fopen-safer-tests: New file.
42452         Suggested by Bruno Haible.
42453
42454 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42455
42456         popen-safer: test O_CLOEXEC at run-time.
42457         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42458
42459 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42460
42461         fcntl: move more flags to the header
42462         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42463         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42464         * lib/fcntl.in.h: Do both things here.
42465
42466 2009-08-21  Jim Meyering  <meyering@redhat.com>
42467
42468         consistently remove $@-t before redirecting to it
42469         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42470         * modules/alloca-opt: Likewise.
42471         * modules/byteswap: Likewise.
42472         * modules/fnmatch: Likewise.
42473         * modules/getopt-posix: Likewise.
42474         * modules/glob: Likewise.
42475         * modules/poll: Likewise.
42476         * modules/posix_spawnp-tests: Likewise.
42477         * modules/sys_socket: Likewise.
42478         * modules/sysexits: Likewise.
42479
42480 2009-08-21  Eric Blake  <ebb9@byu.net>
42481
42482         popen: simplify access to original popen
42483         * lib/popen.c (rpl_popen): No need to worry about popen being a
42484         macro.
42485         Reported by Bruno Haible.
42486
42487 2009-08-20  Eric Blake  <ebb9@byu.net>
42488
42489         build: avoid some compiler warnings
42490         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42491         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42492         type.
42493         (new_exclude_segment, excluded_file_pattern_p)
42494         (excluded_file_name_p): Reduce scope.
42495         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42496         old-style declaration.
42497
42498 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42499
42500         * tests/test-exclude1.sh: Handle Windows EOL.
42501         * tests/test-exclude2.sh: Likewise.
42502         * tests/test-exclude3.sh: Likewise.
42503         * tests/test-exclude4.sh: Likewise.
42504         * tests/test-exclude5.sh: Likewise.
42505         * tests/test-exclude6.sh: Likewise.
42506         * tests/test-exclude7.sh: Likewise.
42507
42508 2009-08-19  Akim Demaille  <demaille@gostai.com>
42509
42510         bootstrap: find sha1sum when named gsha1sum.
42511         * bootstrap (find_tool): New.
42512         ($SHA1SUM): New.
42513         Use it.
42514
42515 2009-08-20  Jim Meyering  <meyering@redhat.com>
42516
42517         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42518         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42519         expression that converts "." in a file name to "\." in the resulting
42520         regexp.  Start with a dummy statement, so that prior shell variable
42521         definitions are expanded portably.  Reported by Simon Josefsson.
42522
42523 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42524
42525         Fix polling for writeability of a screen buffer.
42526         * lib/poll.c: Distinguish input and screen buffers for the
42527         Win32 implementation.
42528         * lib/select.c: Likewise.
42529
42530 2009-08-19  Eric Blake  <ebb9@byu.net>
42531
42532         popen-safer: prevent popen from clobbering std descriptors
42533         * modules/popen-safer: New file.
42534         * lib/popen-safer.c: Likewise.
42535         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42536         * lib/stdio--.h (popen): Provide override.
42537         * lib/stdio-safer.h (popen_safer): Provide declaration.
42538         * tests/test-popen.c (includes): Partially test this.
42539         * modules/popen-safer-tests: New file, for more tests.
42540         * tests/test-popen-safer.c: Likewise.
42541         * MODULES.html.sh (file stream based Input/Output): Mention it.
42542
42543         tests: test some of the *-safer modules
42544         * modules/fopen-safer (Depends-on): Add fopen.
42545         * modules/fcntl-safer (Depends-on): Add fcntl.
42546         * modules/stdlib-safer (Depends-on): Add stdlib.
42547         (configure.ac): Set indicator.
42548         * modules/unistd-safer (configure.ac): Likewise.
42549         * modules/tmpfile-safer (configure.ac): Likewise.
42550         (Depends-on): Add tmpfile.
42551         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42552         active.
42553         * tests/test-fopen.c (includes): Test safer versions when they are
42554         in use.
42555         * tests/test-open.c (includes): Likewise.
42556
42557         popen: fix cygwin 1.5 bug when stdin closed
42558         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42559         * modules/popen: New file.
42560         * modules/popen-tests: Likewise.
42561         * tests/test-popen.c: Likewise.
42562         * m4/popen.m4: Likewise.
42563         * lib/popen.c: Likewise.
42564         * lib/stdio.in.h (popen): New declaration.
42565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42566         * modules/stdio (Makefile.am): Likewise.
42567         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42568
42569 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42570
42571         maint.mk: give full control over update-copyright exclusions
42572         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42573         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42574         (update-copyright): Don't force inclusion of top-level
42575         ChangeLog.  Don't force exclusion of all COPYING files, but make
42576         them the default exclusion instead.
42577
42578 2009-08-16  Bruno Haible  <bruno@clisp.org>
42579
42580         Fix test failures on Solaris 10.
42581         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42582         tests when Solaris iconv() is used.
42583         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42584         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42585         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42586         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42587         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42588
42589 2009-08-16  Bruno Haible  <bruno@clisp.org>
42590
42591         Fix test failures on Solaris 10.
42592         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42593         'tr' program and pass it as first argument.
42594         * tests/test-pipe-filter-gi1.sh: Likewise.
42595         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42596         program as first argument.
42597         * tests/test-pipe-filter-gi1.c (main): Likewise.
42598
42599 2009-08-16  Eric Blake  <ebb9@byu.net>
42600
42601         fpurge: fix previous commits
42602         * modules/fpurge (Makefile.am): Make replacement conditional,
42603         partially reverting 2007-04-29 change; missed in previous
42604         attempt.
42605         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42606         is missing.
42607
42608 2009-08-16  Bruno Haible  <bruno@clisp.org>
42609
42610         Clarify fpurge's effect on the file position.
42611         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42612         * tests/test-fpurge.c (main): Make a second pass for checking the file
42613         position.
42614
42615 2009-08-16  Bruno Haible  <bruno@clisp.org>
42616
42617         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42618         declaration of fpurge is missing.
42619         * tests/test-fpurge.c (main): Check that the file has not more contents
42620         than expected. Close the file before removing it.
42621
42622 2009-08-15  Eric Blake  <ebb9@byu.net>
42623
42624         fpurge: don't wrap working cygwin implementation
42625         * lib/fpurge.c (fpurge): Fix comment typo.
42626         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42627         1.7 to avoid replacement.
42628         * tests/test-fpurge.c (main): Enhance test.
42629
42630 2009-08-15  Eric Blake  <ebb9@byu.net>
42631         and Jim Meyering  <meyering@redhat.com>
42632
42633         test-update-copyright: skip if perl is insufficient
42634         * tests/test-update-copyright.sh: Failure to run maintainer tool
42635         should not cause testsuite failure on cygwin 1.5.
42636
42637 2009-08-14  Eric Blake  <ebb9@byu.net>
42638
42639         doc: mention more functions added in cygwin 1.7.0
42640         * doc/posix-headers/limits.texi (limits.h): Update for recent
42641         cygwin additions.
42642         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42643         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42644         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42645         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42646         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42647
42648 2009-08-14  Eric Blake  <ebb9@byu.net>
42649
42650         maint.mk: simplify update-copyright rule
42651         * top/maint.mk (update-copyright-local): Delete, and document how
42652         to do it in cfg.mk instead.
42653         (update-copyright-exclude-regexp): Delete, and document how to do
42654         it in .x-update-copyright instead.
42655         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42656         exclude ChangeLog.
42657
42658 2009-08-14  Bruno Haible  <bruno@clisp.org>
42659
42660         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42661
42662 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42663
42664         maint.mk: support update-copyright-env
42665         * top/maint.mk (update-copyright-env): Define place-holder.
42666         (update-copyright): Expand $(update-copyright-env) before
42667         invoking update-copyright.
42668
42669 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42670
42671         update-copyright: implement forced reformatting
42672         * build-aux/update-copyright: Implement and document
42673         UPDATE_COPYRIGHT_FORCE.
42674         * tests/test-update-copyright.sh: Test it.
42675
42676 2009-08-14  Eric Blake  <ebb9@byu.net>
42677         and Bruno Haible  <bruno@clisp.org>
42678
42679         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42680         * tests/test-locale.c: Revert previous patch related to NULL.
42681         * tests/test-stdio.c: Likewise.
42682         * tests/test-stdlib.c: Likewise.
42683         * tests/test-string.c: Likewise.
42684         * tests/test-unistd.c: Likewise.
42685         * modules/time-tests (Depends-on): Add verify.
42686         * modules/wchar-tests (Depends-on): Likewise.
42687         * tests/test-time.c: Test for NULL compliance.
42688         * tests/test-wchar.c: Likewise.
42689         * modules/locale (Depends-on): Add stddef.
42690         * modules/stdio (Depends-on): Likewise.
42691         * modules/stdlib (Depends-on): Likewise.
42692         * modules/string (Depends-on): Likewise.
42693         * modules/time (Depends-on): Likewise.
42694         * modules/unistd (Depends-on): Likewise.
42695         * modules/wchar (Depends-on): Likewise.
42696         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42697         * lib/stdlib.in.h (includes): Likewise.
42698         * lib/string.in.h (includes): Likewise.
42699         * lib/time.in.h (includes): Likewise.
42700         * lib/unistd.in.h (includes): Likewise.
42701         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42702         replaced.
42703         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42704         * m4/stddef_h.m4: New file.
42705         * modules/stddef: Likewise.
42706         * lib/stddef.in.h: Likewise.
42707         * modules/stddef-tests: Likewise.
42708         * tests/test-stddef.c: Likewise.
42709         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42710         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42711         * doc/posix-headers/locale.texi (locale.h): Likewise.
42712         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42713         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42714         * doc/posix-headers/string.texi (string.h): Likewise.
42715         * doc/posix-headers/time.texi (time.h): Likewise.
42716         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42717         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42718
42719 2009-08-14  Eric Blake  <ebb9@byu.net>
42720
42721         doc: improve git diff of texinfo files
42722         * .gitattributes: Add rule for *.texi files, with hint on how to
42723         use it.
42724         Copied from m4, and based on a report by Bruno Haible.
42725
42726 2009-08-14  Bruno Haible  <bruno@clisp.org>
42727
42728         Disable multithread support by default on Cygwin 1.5.x for real.
42729         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42730
42731 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42732
42733         update-copyright: much ado about intervals
42734         * build-aux/update-copyright: Implement and document
42735         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42736         of copyright year intervals.
42737         Also, document UPDATE_COPYRIGHT_YEAR.
42738         * tests/test-update-copyright.sh: Test it.
42739
42740         update-copyright: convert 2-digit to 4-digit years
42741         * build-aux/update-copyright: Implement and document.
42742         * tests/test-update-copyright.sh: Update.
42743
42744 2009-08-14  Jim Meyering  <meyering@redhat.com>
42745
42746         test-exclude: avoid coreutils "make check" failure
42747         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42748         just as in test-argmatch.c.
42749
42750 2009-08-13  Eric Blake  <ebb9@byu.net>
42751
42752         test-dup2: fix bad assumption
42753         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42754         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42755
42756         test-version-etc: fix CRLF portability issue
42757         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42758         recognize \r.
42759         * tests/test-argp-version-etc-1.sh: Likewise.
42760
42761         getopt: update client modules
42762         * modules/argp (Depends-on): Use getopt-gnu.
42763         * modules/git-merge-changelog (Depends-on): Likewise.
42764         * modules/long-options (Depends-on): Likewise.
42765         * modules/xstrtol (Depends-on): Likewise.
42766
42767 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42768
42769         * tests/test-version-etc.sh: Don't fail on different
42770         project/version.  Don't fail on CRLF differences.  Rewrite to use
42771         multiple -e instead of multiple sed forks, suggested by Eric Blake
42772         <ebb9@byu.net>.
42773         * tests/test-argp-version-etc-1.sh: Likewise.
42774
42775 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42776
42777         * tests/test-version-etc.sh: Don't fail on different
42778         project/version.
42779
42780 2009-08-12  Bruno Haible  <bruno@clisp.org>
42781
42782         Tests for modules 'getopt-posix', 'getopt-gnu'.
42783         * modules/getopt-posix-tests: New file.
42784         * tests/test-getopt.c: New file.
42785         * tests/test-getopt.h: New file.
42786         * tests/test-getopt_long.h: New file.
42787
42788         New modules 'getopt-posix', 'getopt-gnu'.
42789         * modules/getopt-gnu: New file, renamed from modules/getopt.
42790         * modules/getopt-posix: New file.
42791         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42792         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42793         (gl_GETOPT): Remove macro.
42794         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42795         Disable the test against BSD systems that declare optreset. Test
42796         against mingw bug. Test against lack of support of optional arguments
42797         on many platforms.
42798         * doc/glibc-headers/getopt.texi: Update module name and list of
42799         relevant platforms.
42800         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42801         'getopt-gnu' and more portability problems.
42802         * NEWS: Mention the changes.
42803
42804 2009-08-12  Bruno Haible  <bruno@clisp.org>
42805
42806         Ensure that optarg etc. get declared by <unistd.h>.
42807         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42808         AC_USE_SYSTEM_EXTENSIONS.
42809         * modules/getopt (Depends-on): Add 'extensions'.
42810
42811 2009-08-12  Bruno Haible  <bruno@clisp.org>
42812
42813         Avoid test link errors.
42814         * modules/pipe-filter-ii-tests (Makefile.am): Define
42815         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42816         * modules/pipe-filter-gi-tests (Makefile.am): Define
42817         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42819
42820 2009-08-12  Bruno Haible  <bruno@clisp.org>
42821
42822         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42823         gl_GETOPT_SUBSTITUTE before.
42824         (gl_GETOPT): Use it.
42825         * m4/argp.m4 (gl_ARGP): Update.
42826         Reported by Sergey Poznyakoff.
42827
42828         * m4/getopt.m4: Reorder macros.
42829         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42830         (gl_GETOPT_SUBSTITUTE): Remove macro.
42831
42832 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42833
42834         Minor improvement in gitlog-to-changelog
42835
42836         * build-aux/gitlog-to-changelog: New option `--format' makes
42837         output format string configurable.
42838
42839 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42840
42841         Optimize exclude: use hash tables for non-wildcard patterns.
42842
42843         * lib/exclude.c: Include hash.h and mbuiter.h
42844         (struct exclude_pattern, exclude_segment): New data types.
42845         (struct exclude): Rewrite.
42846         (fnmatch_pattern_has_wildcards): New function.
42847         (new_exclude_segment, free_exclude_segment): New functions.
42848         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42849         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42850         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42851         * modules/exclude: Depend on hash and mbuiter.
42852
42853         * modules/exclude-tests: New file.
42854         * tests/test-exclude.c: New file.
42855         * tests/test-exclude1.sh: New file.
42856         * tests/test-exclude2.sh: New file.
42857         * tests/test-exclude3.sh: New file.
42858         * tests/test-exclude4.sh: New file.
42859         * tests/test-exclude5.sh: New file.
42860         * tests/test-exclude6.sh: New file.
42861         * tests/test-exclude7.sh: New file.
42862
42863 2009-08-12  Bruno Haible  <bruno@clisp.org>
42864
42865         Ensure that getopt() gets declared by <unistd.h>.
42866         * lib/unistd.in.h: Conditionally include getopt.h.
42867         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42868         Set GNULIB_UNISTD_H_GETOPT.
42869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42870         GNULIB_UNISTD_H_GETOPT.
42871         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42872
42873 2009-08-12  Bruno Haible  <bruno@clisp.org>
42874
42875         Clarify logic.
42876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42877         gl_replace_getopt instead of GETOPT_H.
42878
42879 2009-08-12  Bruno Haible  <bruno@clisp.org>
42880
42881         * m4/getopt.m4: Add comments.
42882
42883 2009-08-12  Bruno Haible  <bruno@clisp.org>
42884
42885         Disable multithread support by default on Cygwin 1.5.x.
42886         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42887         set gl_use_threads=no if not specified otherwise.
42888
42889 2009-08-11  Bruno Haible  <bruno@clisp.org>
42890
42891         Avoid compilation error on NetBSD 5.0.
42892         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42893         * tests/test-stdio.c: Likewise.
42894         * tests/test-stdlib.c: Likewise.
42895         * tests/test-string.c: Likewise.
42896         * tests/test-unistd.c: Likewise.
42897         Reported by Greg Troxel <gdt@ir.bbn.com>
42898         at <https://savannah.gnu.org/support/?106973>.
42899
42900 2009-08-11  Bruno Haible  <bruno@clisp.org>
42901
42902         * modules/dup2-tests (Depends-on): Remove close.
42903
42904         Undo 2009-07-19 commit.
42905         * modules/acl-tests (Depends-on): Remove close.
42906         * modules/binary-io-tests (Depends-on): Likewise.
42907         * modules/closein-tests (Depends-on): Likewise.
42908         * modules/flock-tests (Depends-on): Likewise.
42909         * modules/fsync-tests (Depends-on): Likewise.
42910         * modules/lseek-tests (Depends-on): Likewise.
42911         * modules/pipe-tests (Depends-on): Likewise.
42912         * modules/posix_spawn-tests (Depends-on): Likewise.
42913         * modules/posix_spawnp-tests (Depends-on): Likewise.
42914         * modules/stat-time-tests (Depends-on): Likewise.
42915         * modules/yesno-tests (Depends-on): Likewise.
42916
42917 2009-08-10  Bruno Haible  <bruno@clisp.org>
42918
42919         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42920
42921 2009-08-10  Bruno Haible  <bruno@clisp.org>
42922
42923         Fix a gcc warning.
42924         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42925
42926 2009-08-10  Bruno Haible  <bruno@clisp.org>
42927
42928         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42929         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42930         not only the first time.
42931         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42932         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42933         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42934         is 1, not only the the first time.
42935
42936 2009-08-10  Bruno Haible  <bruno@clisp.org>
42937
42938         Make it possible to use module 'gethostname' without module 'close'.
42939         * lib/unistd.in.h (close): Evoke a link error only if
42940         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42942         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42943         * modules/unistd (Makefile.am): Substitute
42944         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42945         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42946         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42947         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42948         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42949         * modules/sys_ioctl (Makefile.am): Substitute
42950         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42951         * modules/socket (configure.ac): On native Windows, set
42952         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42953         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42954         Reported by Sam Steingold <sds@gnu.org>.
42955
42956 2009-08-10  Bruno Haible  <bruno@clisp.org>
42957
42958         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42959         * modules/ioctl (configure.ac): Likewise.
42960
42961 2009-08-10  Bruno Haible  <bruno@clisp.org>
42962
42963         Avoid collision between gnulib wrapper and libintl wrapper.
42964         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42965         already defined in intl/printf.c.
42966         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42967         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42968
42969 2009-08-09  Bruno Haible  <bruno@clisp.org>
42970
42971         Make <sys/select.h> really self-contained, also on Solaris 10.
42972         * lib/sys_select.in.h: Include <string.h>.
42973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42974         Solaris 10 problem.
42975         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42976         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42977         Reported by Jim Meyering.
42978
42979 2009-08-09  Bruno Haible  <bruno@clisp.org>
42980
42981         Avoid warnings from 'aclocal' that are due to a use of macro name
42982         AM_XGETTEXT_OPTION that is not defined in automake.
42983         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42984         automake.
42985         * modules/error (configure.ac): Likewise.
42986         * modules/propername (configure.ac): Likewise.
42987         * modules/vasprintf (configure.ac): Likewise.
42988         * modules/verror (configure.ac): Likewise.
42989         * modules/xprintf (configure.ac): Likewise.
42990         * modules/xvasprintf (configure.ac): Likewise.
42991
42992 2009-08-08  Bruno Haible  <bruno@clisp.org>
42993
42994         Avoid compilation error in C++ mode.
42995         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42996         Reported by Sam Steingold <sds@gnu.org>.
42997
42998 2009-08-08  Bruno Haible  <bruno@clisp.org>
42999
43000         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43001         for the various Unix platforms.
43002         * doc/posix-headers/limits.texi: Update platforms list regarding
43003         HOST_NAME_MAX.
43004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43005
43006 2009-08-07  Jim Meyering  <meyering@redhat.com>
43007
43008         selinux-at: fix typo in a comment
43009         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43010         Spotted by Paolo Bonzini.
43011
43012         selinux-at: remove redundant m4 code, add documentation
43013         * modules/selinux-at (configure.ac): Remove redundant code.
43014         LIB_SELINUX is already set via the dependent module, selinux-h.
43015         (Include): Add quotes around selinux-at.h.
43016         * lib/selinux-at.h: Add documentation.
43017         Reported by Bruno Haible in
43018         http://marc.info/?l=gnulib-bug&m=124958988300749
43019
43020 2009-08-07  Bruno Haible  <bruno@clisp.org>
43021
43022         Avoid link error on MacOS X 10.3 and 10.4.
43023         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43024         on non-ELF systems.
43025         * lib/argp-pv.c (argp_program_version): Likewise.
43026         Reported by Simon Josefsson.
43027
43028 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43029
43030         * tests/test-version-etc.sh: Use $EXEEXT.
43031
43032 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43033
43034         update-copyright: update documentation to point to maint.mk
43035         * build-aux/update-copyright: Here.
43036
43037 2009-08-06  Jim Meyering  <meyering@redhat.com>
43038
43039         maint.mk: support update-copyright-local
43040         * top/maint.mk (update-copyright-local): Define place-holder.
43041         (update-copyright): Depend on $(update-copyright-local).
43042
43043 2009-08-06  Jim Meyering  <meyering@redhat.com>
43044
43045         selinux-at: new module
43046         Initially written for coreutils, this module will soon be
43047         used by findutils, too.
43048         * MODULES.html.sh [Misc]: Add selinux-at.
43049         * lib/selinux-at.h: New file, from coreutils.
43050         * lib/selinux-at.c: Likewise.
43051         * modules/selinux-at: Likewise.
43052         (License): Change from LGPL to GPL, since it depends
43053         on the GPL'd openat module.
43054
43055         doc: update README
43056         * README: Remove references to cogito.
43057         Remove cvs-repo-updating instructions from 2007.
43058         Don't imply that CVS is better if you have limited disk space.
43059
43060 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43061
43062         update-copyright: support C-style comments
43063         * build-aux/update-copyright: Implement and document.
43064         * tests/test-update-copyright.sh: Test.
43065
43066 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43067
43068         update-copyright: support omitted "(C)"
43069         * build-aux/update-copyright: Implement and document.  Also,
43070         allow variable whitespace before "(C)".
43071         * tests/test-update-copyright.sh: Test.
43072
43073 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43074
43075         update-copyright: don't trip on non-FSF copyright statements
43076         * build-aux/update-copyright: Fix so that the first correctly
43077         formatted FSF copyright statement is recognized no matter what
43078         appears before it.  Update documentation.
43079         * tests/test-update-copyright.sh: Test that.
43080
43081 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43082
43083         update-copyright: clean up code a little
43084         * build-aux/update-copyright: Append "_re" to the name of any
43085         variable holding a regular expression.
43086         Replace "old" and "new" with "stmt" in variable names.
43087         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43088         handled correctly.
43089         Format code more consistently.
43090
43091 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43092
43093         update-copyright-tests: improve portability
43094         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43095         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43096
43097 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43098
43099         update-copyright: support @copyright{} and &copy;
43100         * build-aux/update-copyright: Implement and document.
43101         * tests/test-update-copyright.sh: Test.
43102
43103 2009-08-04  Jim Meyering  <meyering@redhat.com>
43104
43105         update-copyright-tests: correctly test EOL=\r\n handling
43106         * tests/test-update-copyright.sh: Put \r at the end of some lines
43107         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43108
43109         maint.mk: make update-copyright exclusion list more configurable
43110         * top/maint.mk (update-copyright): Default to excluding COPYING,
43111         but allow an override, in case someone does want to update that file.
43112
43113         maint.mk: don't update copyright date in COPYING
43114         * top/maint.mk (update-copyright): Exclude COPYING.
43115
43116         maint.mk: add a copyright-updating rule
43117         * top/maint.mk (update-copyright): New rule.
43118         Derived from coreutils/Makefile.am.
43119
43120         update-copyright: rename some variables
43121         * build-aux/update-copyright: Rename a few variables for clarity.
43122         Tweak syntax.  List Joel E. Denny as coauthor.
43123
43124 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43125
43126         update-copyright: fix bug for 2-digit last year and add tests
43127         * build-aux/update-copyright: Fix bug.
43128         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43129         specified.
43130         * modules/update-copyright-tests: New
43131         * tests/test-update-copyright.sh: New.
43132
43133 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43134
43135         update-copyright: handle leading tabs in line prefix
43136         * build-aux/update-copyright: Count leading tabs as 8 spaces
43137         when computing margin.  This helps with the formatting of
43138         ChangeLogs, for example.
43139         Fix documentation a little.
43140
43141 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43142
43143         update-copyright: support EOL=\r\n
43144         * build-aux/update-copyright: Implement that.
43145
43146 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43147
43148         update-copyright: automatically format copyright statements
43149         * build-aux/update-copyright: Implement that.
43150         Also, be a little more predictable and safer by always failing
43151         when the full copyright format is not perfectly recognized as an
43152         unbroken whole.  Discussed at
43153         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43154         Rewrite documentation.
43155
43156 2009-08-03  Bruno Haible  <bruno@clisp.org>
43157
43158         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43159
43160 2009-08-02  Bruno Haible  <bruno@clisp.org>
43161
43162         Tests for module 'uname'.
43163         * modules/uname-tests: New file.
43164         * tests/test-uname.c: New file.
43165
43166         New module 'uname'.
43167         * lib/uname.c: New file.
43168         * m4/uname.m4: New file.
43169         * modules/uname: New file.
43170         * doc/posix-functions/uname.texi: Mention the new module.
43171
43172 2009-08-02  Bruno Haible  <bruno@clisp.org>
43173
43174         Tests for module 'sys_utsname'.
43175         * modules/sys_utsname-tests: New file.
43176         * tests/test-sys_utsname.c: New file.
43177
43178         New module 'sys_utsname'.
43179         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43180         * m4/sys_utsname_h.m4: New file.
43181         * modules/sys_utsname: New file.
43182         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43183
43184 2009-08-02  Bruno Haible  <bruno@clisp.org>
43185
43186         Implicitly initialize the sockets library.
43187         * lib/gethostname.c: Include sockets.h.
43188         (rpl_gethostname): Invoke gl_sockets_startup.
43189         * lib/socket.c: Include sockets.h.
43190         (rpl_socket): Invoke gl_sockets_startup.
43191         * modules/gethostname (Depends-on): Add sockets.
43192         * modules/socket (Depends-on): Likewise.
43193         * tests/test-poll.c: Don't include sockets.h.
43194         (main): Don't invoke gl_sockets_startup.
43195         * tests/test-select.c: Don't include sockets.h.
43196         (main): Don't invoke gl_sockets_startup.
43197
43198 2009-08-02  Bruno Haible  <bruno@clisp.org>
43199
43200         Allow multiple calls to gl_sockets_startup.
43201         * lib/sockets.c (initialized_sockets_version): New variable.
43202         (gl_sockets_startup): Do nothing if already called for this or a higher
43203         version.
43204         (gl_sockets_cleanup): Reset initialized_sockets_version.
43205
43206 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43207
43208         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43209         different project/version.
43210
43211 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43212             Bruno Haible  <bruno@clisp.org>
43213
43214         Tests for module 'pipe-filter-gi'.
43215         * modules/pipe-filter-gi-tests: New file.
43216         * tests/test-pipe-filter-gi1.sh: New file.
43217         * tests/test-pipe-filter-gi1.c: New file.
43218         * tests/test-pipe-filter-gi2.sh: New file.
43219         * tests/test-pipe-filter-gi2-main.c: New file.
43220         * tests/test-pipe-filter-gi2-child.c: New file.
43221
43222         New module 'pipe-filter-gi'.
43223         * lib/pipe-filter-gi.c: New file.
43224         * modules/pipe-filter-gi: New file.
43225
43226 2009-08-02  Bruno Haible  <bruno@clisp.org>
43227             Paolo Bonzini  <bonzini@gnu.org>
43228
43229         Tests for module 'pipe-filter-ii'.
43230         * modules/pipe-filter-ii-tests: New file.
43231         * tests/test-pipe-filter-ii1.sh: New file.
43232         * tests/test-pipe-filter-ii1.c: New file.
43233         * tests/test-pipe-filter-ii2.sh: New file.
43234         * tests/test-pipe-filter-ii2-main.c: New file.
43235         * tests/test-pipe-filter-ii2-child.c: New file.
43236
43237         New module 'pipe-filter-ii'.
43238         * lib/pipe-filter.h: New file.
43239         * lib/pipe-filter-ii.c: New file.
43240         * lib/pipe-filter-aux.h: New file.
43241         * modules/pipe-filter-ii: New file.
43242
43243 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43244
43245         * lib/gc-libgcrypt.c: Change copyright to FSF.
43246         * lib/gc-gnulib.c: Likewise.
43247
43248 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43249
43250         * lib/gethostname.c: Include limits.h.
43251
43252 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43253             Bruno Haible  <bruno@clisp.org>
43254
43255         Ensure HOST_NAME_MAX as part of the gethostname module.
43256         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43257         define also HOST_NAME_MAX.
43258         * tests/test-gethostname.c: Include <limits.h>.
43259         (main): Check also HOST_NAME_MAX.
43260         * doc/posix-headers/limits.texi: Document the mingw problem.
43261
43262 2009-08-02  Bruno Haible  <bruno@clisp.org>
43263
43264         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43265         Add comments.
43266
43267 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43268
43269         * lib/gethostname.c: Add Windows wrapper.
43270         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43271         * modules/gethostname: Depend on sys_socket & errno, for also
43272         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43273         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43274
43275 2009-07-31  Jim Meyering  <meyering@redhat.com>
43276
43277         getloadavg: fix symbol name in comment
43278         * lib/getloadavg.c: Correct a typo I introduced when adding
43279         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43280         Matt Kraai spotted the problem.
43281
43282 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43283
43284         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43285         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43286         code also if ! defined N_NAME_POINTER.
43287         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43288         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43289         but the n_name member is a 12-byte array.
43290
43291 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43292
43293         update-copyright: generalize comment handling
43294         * build-aux/update-copyright: Handle copyright statements
43295         within more comment styles.
43296         Document usage.
43297         Report any file with an external copyright holder or parse failure.
43298
43299 2009-07-29  Jim Meyering  <meyering@redhat.com>
43300
43301         mktime: correct setting of REPLACE_MKTIME
43302         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43303
43304         update-copyright: new module
43305         * modules/update-copyright: New file.
43306         * build-aux/update-copyright: New file.
43307         * MODULES.html.sh (maint+release support): Add update-copyright.
43308
43309 2009-07-27  Bruno Haible  <bruno@clisp.org>
43310
43311         Fix compilation error when <ctime> is used and mktime is replaced.
43312         * lib/time.in.h (mktime): New declaration.
43313         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43314         REPLACE_MKTIME instead of defining mktime in config.h.
43315         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43316         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43317         Reported by Ross McFarland <rwmcfa1@neces.com>.
43318
43319 2009-07-27  Bruno Haible  <bruno@clisp.org>
43320
43321         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43322         Reported by Matt Kraai <mkraai@beckman.com>.
43323
43324 2009-07-25  Jim Meyering  <meyering@redhat.com>
43325
43326         maint.mk: avoid warnings about missing files
43327         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43328         diagnostic when .prev-version does not exist.
43329         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43330         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43331         nonexistent cfg.mk.
43332         Suggestions from Simon Josefsson.
43333
43334 2009-07-25  Bruno Haible  <bruno@clisp.org>
43335
43336         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43337         defined as macros. Needed on QNX 6.4.1.
43338         Reported by Matt Kraai <mkraai@beckman.com>.
43339
43340 2009-07-23  Jim Meyering  <meyering@redhat.com>
43341
43342         maint.mk: invoke "make dist" with a working value of XZ_OPT
43343         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43344
43345 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43346
43347         Make fseeko.c compile on QNX.
43348         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43349
43350 2009-07-22  Peter Simons  <simons@cryp.to>
43351
43352         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43353         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43354         * lib/md4.h: Likewise.
43355         * lib/md5.h: Likewise.
43356         * lib/sha1.h: Likewise.
43357         * lib/sha256.h: Likewise.
43358         * lib/sha512.h: Likewise.
43359
43360         tests-sha1: don't assign literal string to 'char *' variable
43361         * tests/test-sha1.c (main): Declare locals with "const" to match
43362         attributes of the right hand side.
43363
43364 2009-07-21  Eric Blake  <ebb9@byu.net>
43365
43366         dup2: fix more mingw problems
43367         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43368         fd to itself.
43369         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43370         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43371         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43372         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43373         care of mingw bugs.
43374
43375 2009-07-21  Jim Meyering  <meyering@redhat.com>
43376
43377         vc-list-files: avoid failure when /bin/sh is dash
43378         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43379         On some Debian based systems, /bin/sh is a symlink to dash, and running
43380         this command would omit the "/" following each 'tests' prefix:
43381           dash -x build-aux/vc-list-files -C . tests
43382         That is because bash and dash work differently:
43383           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43384           bash ok
43385           dash odd
43386
43387 2009-07-21  Eric Blake  <ebb9@byu.net>
43388
43389         dup2-tests: test previous patch
43390         * modules/dup2-tests: New file.
43391         * tests/test-dup2.c: Likewise.
43392         * tests/test-open.c (main): Avoid unspecified behavior.
43393         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43394         test.
43395
43396         dup2: work around mingw and cygwin 1.5 bug
43397         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43399         * modules/unistd (Makefile.am): Substitute it.
43400         * lib/unistd.in.h (dup2): Declare the replacement.
43401         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43402         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43403         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43404         * modules/execute (Depends-on): Add dup2.
43405         * modules/fseterr (Depends-on): Likewise.
43406         * modules/pipe (Depends-on): Likewise.
43407         * modules/posix_spawn-internal (Depends-on): Likewise.
43408
43409 2009-07-21  Bruno Haible  <bruno@clisp.org>
43410
43411         * modules/.gitattributes: New file.
43412
43413 2009-07-20  Bruno Haible  <bruno@clisp.org>
43414
43415         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43416         (main): Use it.
43417
43418 2009-07-20  Eric Blake  <ebb9@byu.net>
43419
43420         test-pipe: make a bit more robust.
43421         * tests/test-pipe.c (myerr): Allow error messages regardless of
43422         what we do to stderr.
43423         (test_pipe): Rearrange to avoid deadlock.
43424         (child_main): Try a larger read, to ensure we avoided deadlock.
43425         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43426         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43427         if misused.
43428
43429 2009-07-19  Jim Meyering  <meyering@redhat.com>
43430
43431         fts: avoid false-positive cycle-detection
43432         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43433         for each new command line argument.
43434
43435 2009-07-19  Bruno Haible  <bruno@clisp.org>
43436
43437         Fix build error on mingw with the modules sys_select and unistd.
43438         * modules/acl-tests (Depends-on): Add close.
43439         * modules/binary-io-tests (Depends-on): Likewise.
43440         * modules/closein-tests (Depends-on): Likewise.
43441         * modules/flock-tests (Depends-on): Likewise.
43442         * modules/fsync-tests (Depends-on): Likewise.
43443         * modules/lseek-tests (Depends-on): Likewise.
43444         * modules/pipe-tests (Depends-on): Likewise.
43445         * modules/posix_spawn-tests (Depends-on): Likewise.
43446         * modules/posix_spawnp-tests (Depends-on): Likewise.
43447         * modules/stat-time-tests (Depends-on): Likewise.
43448         * modules/yesno-tests (Depends-on): Likewise.
43449
43450 2009-07-19  Bruno Haible  <bruno@clisp.org>
43451
43452         Unify conditionals.
43453         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43454         macros, not at the compiler macros.
43455         * lib/pipe.c: Likewise.
43456         * lib/execute.c: Likewise.
43457         * lib/spawni.c: Likewise.
43458
43459 2009-07-19  Bruno Haible  <bruno@clisp.org>
43460
43461         Fix handling of closed stdin/stdout/stderr on mingw.
43462         * lib/w32spawn.h: Include unistd.h.
43463         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43464         file descriptor with O_NOINHERIT flag.
43465         (fd_safer_noinherit): New function, based on fd-safer.c.
43466         (dup_safer_noinherit): New function, based on dup-safer.c.
43467         (undup_safer_noinherit): New function.
43468         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43469         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43470         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43471         instead of fd_safer.
43472         * tests/test-pipe.c: Include <windows.h>.
43473         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43474         result.
43475
43476         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43477         from main.
43478         (test_pipe): Pass an extra argument for disambiguation.
43479         (main): Invoke parent_main or child_main.
43480
43481         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43482         consistently.
43483
43484 2009-07-18  Eric Blake  <ebb9@byu.net>
43485
43486         test-pipe: fix mingw build
43487         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43488
43489 2009-07-18  Bruno Haible  <bruno@clisp.org>
43490
43491         * modules/pipe-tests (Makefile.am): Fix typo.
43492
43493 2009-07-18  Eric Blake  <ebb9@byu.net>
43494
43495         error: fix mingw build
43496         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43497         Reported by Bruno Haible.
43498
43499         error: avoid undefined use of stdout
43500         * lib/error.c (error, error_at_line): Check that fd 1 is open
43501         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43502         is handling faults and the close_stdout module wants to report the
43503         detection of closed stdout as an error.
43504
43505 2009-07-17  Eric Blake  <ebb9@byu.net>
43506
43507         pipe: be robust in face of closed fds
43508         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43509         should cause child to misbehave.
43510         * modules/pipe-tests: New module.
43511         * tests/test-pipe.c: New file.
43512         * tests/test-pipe.sh: New file.
43513         Reported by Akim Demaille.
43514
43515 2009-07-14  Bruno Haible  <bruno@clisp.org>
43516
43517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43518         Reported by anonymous kc.
43519
43520 2009-07-07  Jim Meyering  <meyering@redhat.com>
43521
43522         maint.mk: don't look for translatable strings in *.m4 or *.mk
43523         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43524         when searching for translatable strings.
43525
43526 2009-07-05  Jim Meyering  <meyering@redhat.com>
43527
43528         remove superfluous parentheses in STREQ definition
43529         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43530         * lib/getugroups.c (STREQ): Likewise.
43531         * lib/fnmatch.c (STREQ): Likewise.
43532         Spotted by Bruno Haible.
43533
43534 2009-07-04  Jim Meyering  <meyering@redhat.com>
43535
43536         argv-iter: new module
43537         * MODULES.html.sh: Add argv-iter.
43538         * lib/argv-iter.c, lib/argv-iter.h: New files.
43539         * modules/argv-iter: New file.
43540         * modules/argv-iter-tests: New file.
43541         * tests/test-argv-iter.c: Test it.
43542
43543 2009-07-04  Bruno Haible  <bruno@clisp.org>
43544
43545         Fix assertion.
43546         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43547         contains more exact copies of a given entry than file2, leave the extra
43548         copies unpaired rather than aborting.
43549         Reported by Eric Blake.
43550
43551 2009-07-02  Bruno Haible  <bruno@clisp.org>
43552
43553         Speedup git-merge-changelog for git cherry-pick.
43554         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43555         (entries_mapping_get): New function, extracted from compute_mapping.
43556         (entries_mapping_reverse_get): New function.
43557         (compute_mapping): Add a 'full' argument. Return the result in a
43558         'struct entries_mapping'.
43559         (main): Update. Access the mappings through entries_mapping_get.
43560         Reported by Eric Blake.
43561
43562 2009-07-02  Bruno Haible  <bruno@clisp.org>
43563
43564         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43565         best_i.
43566
43567 2009-07-02  Bruno Haible  <bruno@clisp.org>
43568
43569         Speed up approximate search for matching ChangeLog entries.
43570         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43571         argument. Call fstrcmp_bounded instead of fstrcmp.
43572         (compute_mapping, try_split_merged_entry, main): Update callers.
43573
43574 2009-07-02  Bruno Haible  <bruno@clisp.org>
43575
43576         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43577
43578 2009-06-30  Bruno Haible  <bruno@clisp.org>
43579
43580         Reduce the number of uc_is_cased calls.
43581         * lib/unicase.h (casing_suffix_context_t): Add
43582         'first_char_except_ignorable' field.
43583         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43584         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43585         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43586         Update initializer.
43587         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43588         case-ignorable characters.
43589         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43590         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43591         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43592         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43593         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43594
43595 2009-06-30  Bruno Haible  <bruno@clisp.org>
43596
43597         Tests for module 'unicase/ignorable'.
43598         * modules/unicase/ignorable-tests: New file.
43599         * tests/unicase/test-ignorable.c: New file, generated by
43600         gen-uni-tables.
43601
43602         Tests for module 'unicase/cased'.
43603         * modules/unicase/cased-tests: New file.
43604         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43605         * tests/unicase/test-predicate-part1.h: New file, derived from
43606         tests/unictype/test-predicate-part1.h.
43607         * tests/unicase/test-predicate-part2.h: New file, same as
43608         tests/unictype/test-predicate-part2.h.
43609
43610         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43611         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43612         (output_casing_properties): New function.
43613         (main): Call it.
43614         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43615         * lib/unicase/cased.c: Include unictype/bitmap.h.
43616         (uc_is_cased): Define through a bitmap lookup.
43617         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43618         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43619         (uc_is_case_ignorable): Define through a bitmap lookup.
43620         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43621         lib/unictype/bitmap.h.
43622         (Depends-on): Add inline. Clean up.
43623         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43624         lib/unictype/bitmap.h.
43625         (Depends-on): Add inline. Clean up.
43626         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43627         recognition.
43628         * tests/unicase/test-u16-tolower.c (main): Likewise.
43629         * tests/unicase/test-u32-tolower.c (main): Likewise.
43630
43631 2009-06-30  Bruno Haible  <bruno@clisp.org>
43632
43633         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43634         * lib/unicase/u16-casemap.c: Likewise.
43635         * lib/unicase/u32-casemap.c: Likewise.
43636
43637 2009-06-29  Bruno Haible  <bruno@clisp.org>
43638
43639         Define u32_casefold as a wrapper around u32_ct_casefold.
43640         * lib/unicase/u32-casefold.c: Update.
43641         * modules/unicase/u32-casefold (Depends-on): Add
43642         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43643         unicase/empty-suffix-context. Clean up.
43644
43645         Define u16_casefold as a wrapper around u16_ct_casefold.
43646         * lib/unicase/u16-casefold.c: Update.
43647         * modules/unicase/u16-casefold (Depends-on): Add
43648         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43649         unicase/empty-suffix-context. Clean up.
43650
43651         Define u8_casefold as a wrapper around u8_ct_casefold.
43652         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43653         * lib/unicase/u8-casefold.c: Update.
43654         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43655         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43656
43657         Define u32_totitle as a wrapper around u32_ct_totitle.
43658         * lib/unicase/u32-totitle.c: Update.
43659         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43660         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43661
43662         Define u16_totitle as a wrapper around u16_ct_totitle.
43663         * lib/unicase/u16-totitle.c: Update.
43664         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43665         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43666
43667         Define u8_totitle as a wrapper around u8_ct_totitle.
43668         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43669         functions.
43670         (FUNC): Delegate to U_CT_TOTITLE.
43671         * lib/unicase/u8-totitle.c: Update.
43672         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43673         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43674
43675         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43676         invocation.
43677         * modules/unicase/u32-tolower (Depends-on): Add
43678         unicase/empty-prefix-context, unicase/empty-suffix-context.
43679
43680         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43681         invocation.
43682         * modules/unicase/u16-tolower (Depends-on): Add
43683         unicase/empty-prefix-context, unicase/empty-suffix-context.
43684
43685         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43686         * modules/unicase/u8-tolower (Depends-on): Add
43687         unicase/empty-prefix-context, unicase/empty-suffix-context.
43688
43689         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43690         invocation.
43691         * modules/unicase/u32-toupper (Depends-on): Add
43692         unicase/empty-prefix-context, unicase/empty-suffix-context.
43693
43694         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43695         invocation.
43696         * modules/unicase/u16-toupper (Depends-on): Add
43697         unicase/empty-prefix-context, unicase/empty-suffix-context.
43698
43699         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43700         * modules/unicase/u8-toupper (Depends-on): Add
43701         unicase/empty-prefix-context, unicase/empty-suffix-context.
43702
43703         New module 'unicase/u32-ct-casefold'.
43704         * lib/unicase/u32-ct-casefold.c: New file.
43705         * modules/unicase/u32-ct-casefold: New file.
43706
43707         New module 'unicase/u16-ct-casefold'.
43708         * lib/unicase/u16-ct-casefold.c: New file.
43709         * modules/unicase/u16-ct-casefold: New file.
43710
43711         New module 'unicase/u8-ct-casefold'.
43712         * lib/unicase/u8-ct-casefold.c: New file.
43713         * lib/unicase/u-ct-casefold.h: New file, derived from
43714         lib/unicase/u-casefold.h.
43715         * modules/unicase/u8-ct-casefold: New file.
43716
43717         New module 'unicase/u32-ct-totitle'.
43718         * lib/unicase/u32-ct-totitle.c: New file.
43719         * modules/unicase/u32-ct-totitle: New file.
43720
43721         New module 'unicase/u16-ct-totitle'.
43722         * lib/unicase/u16-ct-totitle.c: New file.
43723         * modules/unicase/u16-ct-totitle: New file.
43724
43725         New module 'unicase/u8-ct-totitle'.
43726         * lib/unicase/u8-ct-totitle.c: New file.
43727         * lib/unicase/u-ct-totitle.h: New file, derived from
43728         lib/unicase/u-totitle.h.
43729         * modules/unicase/u8-ct-totitle: New file.
43730
43731         New module 'unicase/u32-ct-tolower'.
43732         * lib/unicase/u32-ct-tolower.c: New file.
43733         * modules/unicase/u32-ct-tolower: New file.
43734
43735         New module 'unicase/u16-ct-tolower'.
43736         * lib/unicase/u16-ct-tolower.c: New file.
43737         * modules/unicase/u16-ct-tolower: New file.
43738
43739         New module 'unicase/u8-ct-tolower'.
43740         * lib/unicase/u8-ct-tolower.c: New file.
43741         * modules/unicase/u8-ct-tolower: New file.
43742
43743         New module 'unicase/u32-ct-toupper'.
43744         * lib/unicase/u32-ct-toupper.c: New file.
43745         * modules/unicase/u32-ct-toupper: New file.
43746
43747         New module 'unicase/u16-ct-toupper'.
43748         * lib/unicase/u16-ct-toupper.c: New file.
43749         * modules/unicase/u16-ct-toupper: New file.
43750
43751         New module 'unicase/u8-ct-toupper'.
43752         * lib/unicase/u8-ct-toupper.c: New file.
43753         * modules/unicase/u8-ct-toupper: New file.
43754
43755         Add context arguments to u*_casemap functions.
43756         * lib/unicase/unicasemap.h: Include unicase.h.
43757         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43758         suffix_context arguments.
43759         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43760         functions.
43761         (FUNC): Add prefix_context and suffix_context arguments. Use
43762         uc_is_cased and uc_is_case_ignorable.
43763         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43764         * lib/unicase/u16-casemap.c: Likewise.
43765         * lib/unicase/u32-casemap.c: Likewise.
43766         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43767         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43768         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43769         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43770         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43771         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43772
43773         New module 'unicase/u32-suffix-context'.
43774         * lib/unicase/u32-suffix-context.c: New file.
43775         * modules/unicase/u32-suffix-context: New file.
43776
43777         New module 'unicase/u16-suffix-context'.
43778         * lib/unicase/u16-suffix-context.c: New file.
43779         * modules/unicase/u16-suffix-context: New file.
43780
43781         New module 'unicase/u8-suffix-context'.
43782         * lib/unicase/u8-suffix-context.c: New file.
43783         * lib/unicase/u-suffix-context.h: New file.
43784         * modules/unicase/u8-suffix-context: New file.
43785
43786         New module 'unicase/empty-suffix-context'.
43787         * lib/unicase/empty-suffix-context.c: New file.
43788         * modules/unicase/empty-suffix-context: New file.
43789
43790         New module 'unicase/u32-prefix-context'.
43791         * lib/unicase/u32-prefix-context.c: New file.
43792         * modules/unicase/u32-prefix-context: New file.
43793
43794         New module 'unicase/u16-prefix-context'.
43795         * lib/unicase/u16-prefix-context.c: New file.
43796         * modules/unicase/u16-prefix-context: New file.
43797
43798         New module 'unicase/u8-prefix-context'.
43799         * lib/unicase/u8-prefix-context.c: New file.
43800         * lib/unicase/u-prefix-context.h: New file.
43801         * lib/unicase/context.h: New file.
43802         * modules/unicase/u8-prefix-context: New file.
43803
43804         New module 'unicase/empty-prefix-context'.
43805         * lib/unicase/empty-prefix-context.c: New file.
43806         * modules/unicase/empty-prefix-context: New file.
43807
43808         New module 'unicase/ignorable'.
43809         * lib/unicase/ignorable.c: New file.
43810         * modules/unicase/ignorable: New file.
43811
43812         New module 'unicase/cased'.
43813         * lib/unicase/caseprop.h: New file.
43814         * lib/unicase/cased.c: New file.
43815         * modules/unicase/cased: New file.
43816
43817         New functions for case mapping of substrings.
43818         * lib/unicase.h (casing_prefix_context_t): New type.
43819         (unicase_empty_prefix_context): New variable.
43820         (u8_casing_prefix_context, u16_casing_prefix_context,
43821         u32_casing_prefix_context, u8_casing_prefixes_context,
43822         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43823         declarations.
43824         (casing_suffix_context_t): New type.
43825         (unicase_empty_suffix_context): New variable.
43826         (u8_casing_suffix_context, u16_casing_suffix_context,
43827         u32_casing_suffix_context, u8_casing_suffixes_context,
43828         u16_casing_suffixes_context, u32_casing_suffixes_context,
43829         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43830         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43831         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43832         declarations.
43833
43834 2009-06-28  Jim Meyering  <meyering@redhat.com>
43835
43836         boostrap: indent only with spaces
43837         * build-aux/bootstrap: Indent only with spaces, never TABs.
43838
43839         bootstrap: split long lines
43840         * build-aux/bootstrap: Keep line length < 80.
43841
43842         bootstrap: sync from coreutils
43843         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43844         just as autoreconf does.  Verify a list of prerequisite
43845         package-name,version-number pairs if defined in bootstrap.conf.
43846         Refer to README-prereq, if prerequisites are not satisfied.
43847
43848 2009-06-27  Eric Blake  <ebb9@byu.net>
43849
43850         tests: add test for bogus NULL definition
43851         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43852         * tests/test-stdlib.c: Likewise.
43853         * tests/test-string.c: Likewise.
43854         * tests/test-locale.c: Likewise.
43855         * tests/test-unistd.c: Likewise.
43856         * modules/stdio-tests (Depends-on): Add verify.
43857         * modules/stdlib-tests (Depends-on): Likewise.
43858         * modules/string-tests (Depends-on): Likewise.
43859         * modules/locale-tests (Depends-on): Likewise.
43860         * modules/unistd-tests (Depends-on): Likewise.
43861
43862 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43863
43864         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43865         self-explaining comment.
43866         * m4/selinux-selinux-h: Update serial.
43867         (gl_LIBSELINUX): New macro, adding a warning for missing development
43868         packages to code extracted from...
43869         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43870         Add warning for missing development packages here, too.
43871
43872 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43873
43874         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43875
43876 2009-06-25  Eric Blake  <ebb9@byu.net>
43877
43878         version-etc: fix regression
43879         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43880         gcc.
43881         (version_etc): Use it, to catch bugs with trailing NULL.
43882         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43883         (version_etc_va): Fix logic bug.
43884         * modules/version-etc-tests: Add test.
43885         * tests/test-version-etc.c: New file.
43886         * tests/test-version-etc.sh: Likewise.
43887
43888 2009-06-25  Sam Steingold  <sds@gnu.org>
43889
43890         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43891         mbtowc declaration.
43892
43893 2009-06-25  Eric Blake  <ebb9@byu.net>
43894
43895         fpurge: migrate into <stdio.h>
43896         * lib/fpurge.h: Delete...
43897         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43898         * lib/fpurge.c (fpurge): Change declaring header.
43899         * modules/fpurge (Files): Drop deleted file.
43900         (Depends-on): Add stdio.
43901         (configure.ac): Set witness.
43902         * modules/stdio (Makefile.am): Support fpurge macros.
43903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43904         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43905         * lib/fflush.c: Update client.
43906         * tests/test-fpurge.c: Likewise.
43907         * NEWS: Mention the change.
43908
43909 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43910
43911         * lib/argp-version-etc.c (program_authors): Add const
43912         qualifier.
43913         * lib/version-etc.c: Fix typos in the comments.
43914         * modules/argp-version-etc: Depends on version-etc.
43915
43916 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43917
43918         argp-version-etc: new module.
43919
43920         * lib/argp-version-etc.c: New file.
43921         * lib/argp-version-etc.h: New file.
43922         * modules/argp-version-etc: New file.
43923         * modules/argp-version-etc-tests: New file.
43924         * tests/test-argp-version-etc.c: New test.
43925         * tests/test-argp-version-etc-1.sh: New test.
43926
43927 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43928
43929         Provide additional interfaces and documentation for version-etc
43930         module.
43931
43932         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43933         interfaces.
43934         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43935         prototypes.
43936
43937 2009-06-24  Bruno Haible  <bruno@clisp.org>
43938
43939         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43940         HAVE_LIB${NAME} macro.
43941         Reported by Sam Steingold <sds@gnu.org>.
43942
43943 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43944
43945         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43946         needed.
43947
43948 2009-06-21  Bruno Haible  <bruno@clisp.org>
43949
43950         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43951         work.
43952         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43953         together with LIB${NAME}, LTLIB${NAME}.
43954         Reported by Sam Steingold <sds@gnu.org>.
43955
43956 2009-06-20  Jim Meyering  <meyering@redhat.com>
43957
43958         tests: make sc_require_test_exit_idiom more generic
43959         * top/maint.mk (Exit_witness_file): New overridable variable.
43960         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43961         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43962
43963 2009-06-19  Jim Meyering  <meyering@redhat.com>
43964
43965         hash: reverse order of src/dst parameters in an internal interface
43966         * lib/hash.c (transfer_entries): Reverse order of parameters to
43967         put DST before SRC.  Adjust callers.
43968
43969         tests: test-hash: avoid wholesale duplication
43970         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43971         Instead, use a loop and add a single conditional.
43972
43973         tests: test-hash: allow seed selection via a command line argument
43974         * tests/test-hash.c (get_seed): New function.
43975         (main): Use it.
43976
43977 2009-06-19  Eric Blake  <ebb9@byu.net>
43978
43979         hash: avoid memory leak on allocation failure
43980         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43981         failure.  Factor repeated algorithm...
43982         (transfer_entries): ...into new helper routine.
43983         (hash_delete): React to hash_rehash return value.
43984
43985         hash: reduce memory pressure in hash_rehash no-op case
43986         * lib/hash.c (next_prime): Avoid overflow.
43987         (hash_initialize): Factor bucket size computation...
43988         (compute_bucket_size): ...into new helper function.
43989         (hash_rehash): Use new function and open coding to reduce memory
43990         pressure, and avoid a memory leak in USE_OBSTACK code.
43991         Reported by Jim Meyering.
43992
43993 2009-06-18  Eric Blake  <ebb9@byu.net>
43994
43995         hash: make rotation more obvious
43996         * modules/hash (Depends-on): Add bitrotate and stdint.
43997         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43998         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43999         (SIZE_MAX): Rely on headers for definition.
44000         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44001         (raw_hasher): Use rotr_sz.
44002         Suggested by Jim Meyering.
44003
44004         hash: fix memory leak in last patch
44005         * lib/hash.c (hash_rehash): Avoid memory leak.
44006
44007         hash: avoid no-op rehashing
44008         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44009
44010         hash: provide default callback functions
44011         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44012         (hash_initialize): Use them as defaults.
44013         * tests/test-hash.c (main): Test this.
44014
44015         hash: minor optimization
44016         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44017         when possible.
44018         (hash_initialize): Document this promise.
44019         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44020         * tests/test-hash.c (hash_compare_strings): Test this.
44021
44022 2009-06-18  Bruno Haible  <bruno@clisp.org>
44023
44024         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44025         going to be replaced anyway.
44026
44027 2009-06-18  Bruno Haible  <bruno@clisp.org>
44028
44029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44030         in one place.
44031         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44032         be replaced anyway.
44033
44034 2009-06-18  Eric Blake  <ebb9@byu.net>
44035
44036         hash: check for resize before insertion
44037         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44038         threshold before insertion, so that a pathological hash_rehash
44039         that fills every bucket can still trigger another rehash.
44040
44041 2009-06-18  Jim Meyering  <meyering@redhat.com>
44042
44043         hash-tests: add a loop around the small tests
44044         * tests/test-hash.c (main): Repeat small tests with selected
44045         small initial table sizes.
44046
44047 2009-06-17  Eric Blake  <ebb9@byu.net>
44048
44049         hash: minor cleanups
44050         * lib/hash.h (hash_entry): Make opaque, by moving...
44051         * lib/hash.c (hash_entry): ...here.
44052         (hash_insert): Clarify restrictions on what can be inserted.
44053         (hash_get_next): Clarify when it is safe to remove an element
44054         during traversal.
44055         (check_tuning): Skip verification when tuning is known safe.
44056         (hash_initialize): Clarify restrictions on tuning.
44057
44058 2009-06-17  Jim Meyering  <jim@meyering.net>
44059         and Eric Blake  <ebb9@byu.net>
44060
44061         hash-tests: new module
44062         * modules/hash-tests: New file.
44063         * tests/test-hash.c: New file.
44064
44065 2009-06-17  Eric Blake  <ebb9@byu.net>
44066
44067         strstr-simple: document new module
44068         * MODULES.html.sh: Document new module.
44069
44070         strstr, strcasestr: replace on platforms with broken memchr
44071         * modules/strstr: Split into...
44072         * modules/strstr-simple: ...new module that does not care about
44073         performance, but does care about glibc bug.
44074         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44075         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44076         if platform memchr is broken, per Debian bug 521737.
44077         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44078         memchr.
44079         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44080         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44081         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44082         * modules/mountlist (Depends-on): Add strstr-simple.
44083         * modules/gen-uni-tables (Depends-on): Likewise.
44084         * modules/argz (Depends-on): Add strstr.
44085
44086 2009-06-17  Bruno Haible  <bruno@clisp.org>
44087
44088         * modules/posix_spawn-internal (Depends-on): Add errno.
44089
44090 2009-06-17  Bruno Haible  <bruno@clisp.org>
44091
44092         Define missing ESTALE on Interix 3.5.
44093         * lib/errno.in.h (ESTALE): Assign a value if missing.
44094         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44095         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44096         missing.
44097         * doc/posix-headers/errno.texi: Mention the Interix bug.
44098         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44099
44100 2009-06-15  Eric Blake  <ebb9@byu.net>
44101
44102         memchr, memchr2: add valgrind exception
44103         * lib/memchr.valgrind: New file.
44104         * lib/memchr2.valgrind: New file.
44105         * modules/memchr (Files): Distribute valgrind file.
44106         * modules/memchr2 (Files): Likewise.
44107
44108         docs: memchr is no longer obsolete
44109         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44110         * lib/string.in.h (memchr): Simplify logic.
44111
44112 2009-06-14  Jim Meyering  <meyering@redhat.com>
44113
44114         link-follow: fix the "checking..." message to not mention trailing slash
44115         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44116         never considered trailing slashes.
44117
44118 2009-06-14  Bruno Haible  <bruno@clisp.org>
44119
44120         * m4/memchr.m4: Mention also the bug on IA-64.
44121         * doc/posix-functions/memchr.texi: Likewise.
44122
44123 2009-06-12  Eric Blake  <ebb9@byu.net>
44124
44125         memchr: detect broken x86_64 and alpha implementations
44126         * modules/memchr-tests (Depends-on): Move mmap detection...
44127         * modules/memchr (Depends-on): ...here.
44128         (configure.ac): Set indicator.
44129         * lib/string.in.h (memchr): Declare replacement.
44130         * modules/string (Makefile.am): Trigger replacement.
44131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44132         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44133         bugs.
44134         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44135         * modules/getpagesize (License): Relax license.
44136
44137 2009-06-11  Bruno Haible  <bruno@clisp.org>
44138
44139         * lib/idpriv.h: Add more references.
44140
44141 2009-06-08  Bruno Haible  <bruno@clisp.org>
44142
44143         Tests for module 'idpriv-droptemp'.
44144         * modules/idpriv-droptemp-tests: New file.
44145         * tests/test-idpriv-droptemp.sh: New file.
44146         * tests/test-idpriv-droptemp.su.sh: New file.
44147         * tests/test-idpriv-droptemp.c: New file.
44148
44149         New module 'idpriv-droptemp'.
44150         * lib/idpriv-droptemp.c: New file.
44151         * modules/idpriv-droptemp: New file.
44152
44153 2009-06-08  Bruno Haible  <bruno@clisp.org>
44154
44155         Tests for module 'idpriv-drop'.
44156         * modules/idpriv-drop-tests: New file.
44157         * tests/test-idpriv-drop.sh: New file.
44158         * tests/test-idpriv-drop.su.sh: New file.
44159         * tests/test-idpriv-drop.c: New file.
44160
44161         New module 'idpriv-drop'.
44162         * lib/idpriv.h: New file.
44163         * lib-idpriv-drop.c: New file.
44164         * m4/idpriv.m4: New file.
44165         * modules/idpriv-drop: New file.
44166
44167 2009-06-08  Bruno Haible  <bruno@clisp.org>
44168
44169         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44170         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44171         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44172         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44173         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44174         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44175         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44176
44177 2009-06-08  Eric Blake  <ebb9@byu.net>
44178
44179         test-strstr: use memory fence, when possible
44180         * tests/test-strstr.c (main): Use memory fence, in order to be
44181         more likely to trigger Debian bug 521737.
44182         * modules/strstr-tests (Files): Pull in additional files.
44183
44184         memchr: no longer obsolete, for wider field testing
44185         * modules/memchr (Status, Notice): Delete, this module is no
44186         longer obsolete.
44187         * modules/vasnprintf (Depends-on): Add memchr.
44188
44189 2009-06-07  Jim Meyering  <meyering@redhat.com>
44190
44191         hash: declare some functions with the warn_unused_result attribute
44192         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44193
44194 2009-06-07  Bruno Haible  <bruno@clisp.org>
44195
44196         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44197         Reported by Eric Blake.
44198
44199 2009-06-06  Eric Blake  <ebb9@byu.net>
44200
44201         test-alignof: fix typo with long double
44202         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44203         compiler error.
44204
44205 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44206
44207         Escape non-texinfo { and }s.
44208         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44209         markup error.
44210
44211 2009-06-04  Jim Meyering  <meyering@redhat.com>
44212
44213         gitlog-to-changelog: don't infloop on an empty commit log
44214         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44215         Reported by Boris Petersen <transacid@centerim.org>.
44216
44217 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44218
44219         version-etc: extend for packagers
44220         Add three new configure options, intended for packagers:
44221           --with-packager="packager name"
44222           --with-packager-version="packager-specific version"
44223           --with-packager-bug-reports="packager bug reporting"
44224         An example with coreutils:
44225           $ ./configure \
44226             --with-packager=Gentoo \
44227             --with-packager-bug-report=http://bugs.gentoo.org/ \
44228             --with-packager-version="patchset 1.6"
44229           $ ./src/ls --version | head -n2
44230           ls (GNU coreutils) 7.1-dirty
44231           Packaged by Gentoo (patchset 1.6)
44232         Note that the bug reporting info via --help doesn't show up because
44233         coreutils uses its own custom emit_bug_reporting_address() implementation
44234         in src/system.h.  If it didn't, it'd look like:
44235           $ ./src/ls --help | tail -n4
44236           Report bugs to <bug-coreutils@gnu.org>.
44237           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44238           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44239           General help using GNU software: <http://www.gnu.org/gethelp/>.
44240         * lib/version-etc.c: Print new information, if provided.
44241         * m4/version-etc.m4: New file.
44242         * modules/version-etc (Files): Add m4/version-etc.m4.
44243         (configure.ac): Add gl_VERSION_ETC.
44244
44245 2009-05-31  Bruno Haible  <bruno@clisp.org>
44246
44247         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44248         and 'int64_t'.
44249         * modules/alignof-tests (Dependencies): Add stdint.
44250         Reported by Eric Blake.
44251
44252 2009-05-31  Bruno Haible  <bruno@clisp.org>
44253
44254         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44255         restriction due to compiler bugs.
44256         Reported by Eric Blake.
44257
44258 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44259             Bruno Haible  <bruno@clisp.org>
44260
44261         Fix test-alignof failure.
44262         * lib/alignof.h (alignof_slot): New macro.
44263         (alignof_type): New macro, with the same semantics as the previous
44264         'alignof'.
44265         (alignof): Alias to alignof_slot.
44266         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44267         check that the results are usable as constant expressions.
44268
44269 2009-05-31  Bruno Haible  <bruno@clisp.org>
44270
44271         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44272         * tests/test-memchr.c (main): Check that memchr does not read past the
44273         first occurrence of the byte.
44274         * tests/test-strstr.c (main): Update comment.
44275         Suggested by Eric Blake.
44276
44277 2009-05-30  Bruno Haible  <bruno@clisp.org>
44278
44279         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44280         detail how to use dumpbin.
44281         Reported by David Byron <dbyron@dbyron.com>.
44282
44283 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44284
44285         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44286
44287 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44288
44289         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44290
44291 2009-05-28  Bruno Haible  <bruno@clisp.org>
44292
44293         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44294         build-aux/ files.
44295
44296 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44297
44298         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44299
44300 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44301
44302         * gnulib-tool (sed_transform_main_lib_file)
44303         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44304         regexps.
44305
44306 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44307
44308         * tests/test-strstr.c: Add another self-test.
44309         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44310         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44311
44312 2009-05-23  Bruno Haible  <bruno@clisp.org>
44313
44314         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44315         change.
44316
44317 2009-05-21  Bruno Haible  <bruno@clisp.org>
44318
44319         Simplify use of mode_t varargs.
44320         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44321         uses 'mode_t' or 'int'.
44322         * lib/openat.c (openat): Likewise.
44323         * lib/open-safer.c (open_safer): Likewise.
44324         * m4/mode_t.m4: New file.
44325         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44326         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44327         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44328         * modules/open (Files): Add m4/mode_t.m4.
44329         * modules/openat (Files): Likewise.
44330         * modules/fcntl-safer (Files): Likewise.
44331         Suggested by Eric Blake.
44332
44333 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44334
44335         * doc/glibc-functions/fallocate.texi: New file.
44336         * doc/gnulib.texi: Include it.
44337
44338 2009-05-21  Eric Blake  <ebb9@byu.net>
44339             Bruno Haible  <bruno@clisp.org>
44340
44341         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44342         invocations.
44343         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44344
44345 2009-05-21  Eric Blake  <ebb9@byu.net>
44346             Bruno Haible  <bruno@clisp.org>
44347
44348         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44349         include_next. Fix of 2008-11-20 commit.
44350         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44351         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44352         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44353         NEXT_MATH_H.
44354         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44355         instead of NEXT_MATH_H.
44356
44357 2009-05-21  Bruno Haible  <bruno@clisp.org>
44358
44359         Avoid redefinition warnings for SIZE_MAX.
44360         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44361         Reported by Simon Josefsson.
44362
44363 2009-05-21  Bruno Haible  <bruno@clisp.org>
44364
44365         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44366         AC_CACHE_VAL.
44367
44368 2009-05-20  Bruno Haible  <bruno@clisp.org>
44369
44370         Make zeroptr.h work on mingw.
44371         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44372         mprotect.
44373         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44374         * modules/memchr2-tests (configure.ac): Likewise.
44375         * modules/memcmp-tests (configure.ac): Likewise.
44376         * modules/memmem-tests (configure.ac): Likewise.
44377         * modules/memrchr-tests (configure.ac): Likewise.
44378         Reported by Simon Josefsson.
44379
44380 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44381
44382         * tests/test-glob.c: Include string.h for strcmp prototype.
44383
44384 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44385
44386         * modules/getdelim (Depends-on): Add explicit stdint, although it
44387         was implicitly already pulled in via realloc-posix.
44388         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44389
44390 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44391
44392         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44393         G. Christensen" <tgc@jupiterrise.com>.
44394         * m4/sys_socket_h.m4: Check for sa_family_t.
44395         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44396         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44397         * tests/test-sys_socket.c: Check that sa_family_t works.
44398
44399 2009-05-18  Eric Blake  <ebb9@byu.net>
44400
44401         maint.mk: allow gnulib_dir in VPATH build
44402         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44403
44404 2009-05-15  Jim Meyering  <meyering@redhat.com>
44405
44406         maint.mk: Give gnulib_dir a default definition.
44407         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44408         Thus, most packages no longer need to specify this variable in cfg.mk
44409
44410 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44411
44412         rename.m4: fix typos that would make non-mingw cross-configure fail
44413         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44414
44415 2009-05-13  Eric Blake  <ebb9@byu.net>
44416
44417         mmap-anon: avoid out-of-order autoconf expansion
44418         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44419         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44420         * modules/memchr-tests (Depends-on): Add extensions.
44421         * modules/memchr2-tests (Depends-on): Add extensions.
44422         * modules/memcmp-tests (Depends-on): Add extensions.
44423         * modules/memmem-tests (Depends-on): Add extensions.
44424         * modules/memrchr-tests (Depends-on): Add extensions.
44425
44426 2009-05-13  Bruno Haible  <bruno@clisp.org>
44427
44428         Make some tests ISO C 99 compliant.
44429         * tests/zerosize-ptr.h: New file.
44430         * tests/test-memchr.c: Include zerosize-ptr.h.
44431         (main): Use a zero-size object pointer instead of NULL.
44432         * tests/test-memchr2.c: Include zerosize-ptr.h.
44433         (main): Use a zero-size object pointer instead of NULL.
44434         * tests/test-memcmp.c: Include zerosize-ptr.h.
44435         (main): Use a zero-size object pointer instead of NULL.
44436         * tests/test-memmem.c: Include zerosize-ptr.h.
44437         (main): Use a zero-size object pointer instead of NULL.
44438         * tests/test-memrchr.c: Include zerosize-ptr.h.
44439         (main): Use a zero-size object pointer instead of NULL.
44440         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44441         m4/mmap-anon.m4.
44442         (Depends-on): Add getpagesize.
44443         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44444         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44445         m4/mmap-anon.m4.
44446         (Depends-on): Add getpagesize.
44447         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44448         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44449         m4/mmap-anon.m4.
44450         (Depends-on): Add getpagesize.
44451         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44452         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44453         m4/mmap-anon.m4.
44454         (Depends-on): Add getpagesize.
44455         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44456         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44457         m4/mmap-anon.m4.
44458         (Depends-on): Add getpagesize.
44459         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44460
44461 2009-05-12  Bruno Haible  <bruno@clisp.org>
44462
44463         Tests for module 'alignof'.
44464         * modules/alignof-tests: New file.
44465         * tests/test-alignof.c: New file.
44466
44467 2009-05-12  Bruno Haible  <bruno@clisp.org>
44468
44469         Fix alignof macro.
44470         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44471         vendor compilers that are always correct.
44472
44473 2009-05-12  Bruno Haible  <bruno@clisp.org>
44474
44475         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44476         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44477         not whether its fully works.
44478
44479 2009-05-12  Bruno Haible  <bruno@clisp.org>
44480
44481         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44482
44483 2009-05-12  Jim Meyering  <meyering@redhat.com>
44484
44485         * top/maint.mk: Adjust backslash alignment.
44486
44487 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44488
44489         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44490
44491 2009-05-11  Eric Blake  <ebb9@byu.net>
44492
44493         argp: avoid undefined behavior
44494         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44495         macros.
44496
44497 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44498
44499         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44500         user.name to prevent git commit from complaining.
44501
44502 2009-05-10  Bruno Haible  <bruno@clisp.org>
44503
44504         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44505         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44506         it rewrites every file name only once.
44507         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44508
44509 2009-05-08  Bruno Haible  <bruno@clisp.org>
44510
44511         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44512         instead of 'max'.
44513
44514 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44515
44516         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44517         sockaddr_storage test.
44518
44519 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44520
44521         * modules/sys_socket (Makefile.am): Substitute
44522         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44523         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44524         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44525         * tests/test-sys_socket.c: Check sockaddr_storage.
44526
44527 2009-05-08  Bruno Haible  <bruno@clisp.org>
44528
44529         New module 'alignof'.
44530         * lib/alignof.h: New file.
44531         * modules/alignof: New file.
44532
44533 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44534             Bruno Haible  <bruno@clisp.org>
44535
44536         Fix test-file-has-acl on FreeBSD.
44537         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44538         mask is implicitly added.
44539         * tests/test-file-has-acl.c: Include <signal.h>.
44540         (main): Terminate the test after 5 seconds.
44541         * modules/acl-tests (configure.ac): Check for alarm function.
44542
44543 2009-05-04  Bruno Haible  <bruno@clisp.org>
44544
44545         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44546         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44547         * modules/errno (configure.ac): Drop AC_REQUIRE.
44548         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44549         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44550
44551 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44552
44553         * modules/glob-tests: New module.
44554         * tests/test-glob.c: Add.
44555
44556 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44557
44558         * modules/fnmatch-tests: New module.
44559         * tests/test-fnmatch.c: Add.
44560
44561 2009-05-04  Eric Blake  <ebb9@byu.net>
44562
44563         maint: make the new no-submodule-changes rule VPATH-safe
44564         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44565
44566 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44567             Bruno Haible  <bruno@clisp.org>
44568
44569         acl: Fix infinite loop on FreeBSD.
44570         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44571         of return value from acl_get_entry.
44572         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44573         Likewise.
44574
44575 2009-05-03  Bruno Haible  <bruno@clisp.org>
44576
44577         * lib/acl-internal.h (acl_entries): Clarify return value.
44578         * lib/acl_entries.c (acl_entries): Likewise.
44579
44580 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44581
44582         Bug fix in acl module.
44583         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44584
44585 2009-05-03  Bruno Haible  <bruno@clisp.org>
44586
44587         Create gperf-generated file in the source dir, not in the build dir.
44588         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44589         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44590         * modules/unicase/locale-language (unicase/locale-languages.h):
44591         Likewise.
44592         * modules/unicase/special-casing (unicase/special-casing-table.h):
44593         Likewise.
44594         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44595         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44596         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44597         Reported by Ralf Wildenhues.
44598
44599 2009-05-03  Bruno Haible  <bruno@clisp.org>
44600
44601         * modules/fnmatch (Description, configure.ac): Taken from
44602         fnmatch-posix.
44603         * modules/fnmatch-posix: Turn into a symbolic reference to the
44604         'fnmatch' module, and deprecate.
44605         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44606
44607 2009-05-03  Bruno Haible  <bruno@clisp.org>
44608
44609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44610         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44611         Reported by Ralf Wildenhues.
44612
44613 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44614
44615         * m4/fnmatch.m4: Fix fnmatch re-define.
44616
44617 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44618
44619         priv-set: new module and tests; adapt write-any-file
44620         * lib/priv-set.c: New file.
44621         * lib/priv-set.h: New file.
44622         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44623         * lib/write-any-file.c: Simplify by using priv-set module.
44624         * m4/priv-set.m4: New file.
44625         * modules/priv-set: New file.
44626         * modules/unlinkdir: Add dependency on priv-set module.
44627         * modules/write-any-file: Likewise.
44628
44629         Tests for module 'priv-set'.
44630         * modules/priv-set-tests: New file.
44631         * tests/test-priv-set.c: New file.
44632
44633 2009-05-03  Jim Meyering  <meyering@redhat.com>
44634             Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44637         use the converted UTF-8 variant of the name instead.
44638
44639 2009-05-03  Jim Meyering  <meyering@redhat.com>
44640
44641         tests: tighten some getdate tests
44642         * tests/test-getdate.c (main): Tighten tests: require equality,
44643         not just greater than.  Set TZ envvar to UTC0.
44644
44645 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44646
44647         getdate: correctly interpret "next monday" when run on a Monday
44648         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44649         that e.g., "next tues" (when run on a tuesday) results in a date
44650         that is one week in the future, and not today's date.
44651         I.e., add a week when the wday is the same as the current one.
44652         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44653         and earlier by Martin Bernreuther and Jan Minář.
44654         * tests/test-getdate.c (main): Check that "next DAY" is always in
44655         the future and that "last DAY" is always in the past.
44656
44657 2009-05-02  Jim Meyering  <meyering@redhat.com>
44658
44659         build: ensure that a release build fails when a submodule is unclean
44660         * top/maint.mk (no-submodule-changes): New rule.
44661         (alpha beta major): Depend on it.
44662
44663 2009-05-02  Bruno Haible  <bruno@clisp.org>
44664
44665         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44666         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44667         shell variable gl_fnmatch_required to detect which variant is
44668         requested.
44669         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44670         gl_FUNC_FNMATCH_POSIX.
44671         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44672         exclude fnmatch-posix.
44673
44674 2009-05-02  Bruno Haible  <bruno@clisp.org>
44675
44676         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44677         * modules/mbsrtowcs (License): Change to LGPLv2+.
44678         * modules/strnlen1 (License): Likewise.
44679         Reported by Simon Josefsson.
44680
44681 2009-05-02  Bruno Haible  <bruno@clisp.org>
44682
44683         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44684         "cross".
44685         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44686         gnulib-tool was called with option --source-base=lib.
44687
44688 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44689
44690         Use automake *-local hooks without commands, for extensibility.
44691         * modules/localcharset (Makefile.am): Rename install-exec-local
44692         rule to install-exec-localcharset, and make it a prerequisite of
44693         install-exec-local.  Likewise, rename the uninstall-local rule to
44694         uninstall-localcharset, and make it a prerequisite of the former.
44695
44696 2009-05-01  Bruno Haible  <bruno@clisp.org>
44697
44698         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44699         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44700         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44702         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44703         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44704         m4/locale-zh.m4, m4/codeset.m4.
44705
44706         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44707         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44708         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44709         m4/locale-zh.m4.
44710
44711         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44712         REPLACE_WCRTOMB if mbstate_t must be replaced.
44713         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44714         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44715
44716 2009-05-01  Bruno Haible  <bruno@clisp.org>
44717
44718         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44719         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44720         dngettext, dcngettext, textdomain, bindtextdomain,
44721         bind_textdomain_codeset): Undefine before redefining.
44722
44723 2009-04-30  Bruno Haible  <bruno@clisp.org>
44724
44725         Fix bug introduced on 2009-04-25.
44726         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44727         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44728         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44729         is defined.
44730         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44731         is defined.
44732         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44733         is defined.
44734         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44735
44736 2009-04-28  Bruno Haible  <bruno@clisp.org>
44737
44738         Comment tweaks.
44739         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44740         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44741         * lib/unicase.h (u*_casexfrm): Likewise.
44742         Reported by Paolo Bonzini.
44743
44744 2009-04-28  Bruno Haible  <bruno@clisp.org>
44745
44746         Fix a compilation error.
44747         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44748         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44749         Reported by Jim Meyering.
44750
44751 2009-04-27  Bruno Haible  <bruno@clisp.org>
44752
44753         New module 'libunistring'.
44754         * modules/libunistring: New file.
44755         * m4/libunistring.m4: New file.
44756         * MODULES.html.sh (Unicode string functions): Add it.
44757
44758 2009-04-27  Eric Blake  <ebb9@byu.net>
44759
44760         maint.mk: allow package-specific header to provide <config.h>
44761         * top/maint.mk (sc_require_config_h): New variable.
44762         (sc_require_config_h, sc_require_config_h_first): Use it.
44763
44764 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44765
44766         * top/maint.mk (sc_avoid_if_before_free): Except
44767         useless-if-before-free script.
44768
44769 2009-04-27  Eric Blake  <ebb9@byu.net>
44770
44771         maintainer-makefile: depend on all required helper scripts
44772         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44773         useless-if-before-free.
44774         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44775         version, rather than assuming gnulib checkout is available.
44776         Reported by Simen Josefsson.
44777
44778 2009-04-26  Bruno Haible  <bruno@clisp.org>
44779
44780         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44781         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44782         "../" or "..".
44783
44784 2009-04-26  Bruno Haible  <bruno@clisp.org>
44785
44786         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44787         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44788         AC_LIB_HAVE_LINKFLAGS.
44789
44790 2009-04-26  Bruno Haible  <bruno@clisp.org>
44791
44792         Simplify calling convention of u*_conv_from_encoding.
44793         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44794         u32_conv_from_encoding): Expect a resultbuf argument and return the
44795         result directly as a pointer.
44796         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44797         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44798         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44799         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44800         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44801         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44802         Update.
44803         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44804         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44805         * lib/vasnprintf.c (VASNPRINTF): Update.
44806         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44807         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44808         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44809         * NEWS: Mention the change.
44810
44811 2009-04-26  Bruno Haible  <bruno@clisp.org>
44812
44813         Simplify calling convention of u*_conv_to_encoding.
44814         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44815         u32_conv_to_encoding): Expect a resultbuf argument and return the
44816         result directly as a pointer.
44817         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44818         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44819         freeing scaled_offsets if mem_iconveha failed.
44820         * lib/unicase/u-casexfrm.h (FUNC): Update.
44821         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44822         * lib/vasnprintf.c (VASNPRINTF): Update.
44823         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44824         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44825         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44826         * NEWS: Mention the change.
44827
44828 2009-04-26  Bruno Haible  <bruno@clisp.org>
44829
44830         Avoid test failures on AIX and OSF/1.
44831         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44832         malloc(0).
44833         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44834         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44835         Likewise.
44836         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44837         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44838         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44839         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44840         * doc/posix-functions/malloc.texi: Document the portability problem
44841         related to malloc(0).
44842
44843 2009-04-26  Bruno Haible  <bruno@clisp.org>
44844
44845         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44846         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44847         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44848
44849 2009-04-25  Bruno Haible  <bruno@clisp.org>
44850
44851         Avoid link error when creating a namespace clean library.
44852         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44853         as macro with arguments if already defined as an alias.
44854         * lib/signbitf.c (gl_signbitf): Don't undefine.
44855         * lib/signbitd.c (gl_signbitd): Don't undefine.
44856         * lib/signbitl.c (gl_signbitl): Don't undefine.
44857
44858 2009-04-25  Jim Meyering  <meyering@redhat.com>
44859
44860         vc-list-files: fix another quoting bug
44861         * build-aux/vc-list-files: Avoid sed backslash expansion
44862         of pathological directory names.
44863
44864 2009-04-25  Eric Blake  <ebb9@byu.net>
44865
44866         vc-list-files: fix shell quoting error
44867         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44868         timestamp.
44869
44870 2009-04-25  Jim Meyering  <meyering@redhat.com>
44871
44872         vc-list-files: restore lost functionality with subdir argument
44873         * build-aux/vc-list-files: When given a non-"." sub-directory
44874         argument, substitute the $dir/ prefix back onto each resulting name.
44875         Otherwise, coreutils' root_tests check would fail.
44876
44877 2009-04-24  Eric Blake  <ebb9@byu.net>
44878
44879         vc-list-files: ignore git symlinks
44880         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44881         than ls-files, to ignore git symlinks.
44882
44883         maint.mk: import improvements from m4
44884         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44885         (move_if_change): Delete unused macro.
44886         (news-date-check, vc-diff-check): Support VPATH builds.
44887         (announcement): Likewise.  Split --bootstrap-tools list...
44888         (boostrap-tools): ...into separate list, which can be overridden
44889         in cfg.mk.
44890         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44891         requiring dependency on useless-if-before-free module.
44892         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44893         Support VPATH builds.
44894
44895 2009-04-24  Jim Meyering  <meyering@redhat.com>
44896
44897         maint.mk: remove coreutils-specific rules and variables
44898         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44899         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44900         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44901
44902         maint.mk: remove obsolete rule
44903         * top/maint.mk (rel-check): Remove rule.
44904         (WGET, WGETFLAGS): Remove now-unused variables.
44905
44906 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44907
44908         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44909         consistency.
44910
44911         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44912         '$(PATH_SEPARATOR)' instead of ':'.
44913
44914 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44915
44916         * lib/getopt1.c (main): Use 'const' for static array.
44917
44918 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44919
44920         * top/maint.mk: Sync with coreutils.
44921         * NEWS: Explain incompatibilities.
44922
44923 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44924             Bruno Haible  <bruno@clisp.org>
44925
44926         Fix cross-compilation results.
44927         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44928         statement, as third argument of AC_TRY_RUN.
44929         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44930         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44931         Likewise.
44932         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44933         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44934         Likewise.
44935         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44936         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44937         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44938
44939 2009-04-20  Bruno Haible  <bruno@clisp.org>
44940
44941         Avoid test failure on mingw.
44942         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44943
44944 2009-04-20  Bruno Haible  <bruno@clisp.org>
44945
44946         Avoid compilation error on mingw.
44947         * modules/localename-tests (Depends-on): Add locale.
44948
44949 2009-04-19  Bruno Haible  <bruno@clisp.org>
44950
44951         Support for building a shared library on Windows platforms.
44952         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44953         (main): Test the presence of UNINORM_NFC here.
44954         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44955         (main): Test the presence of UNINORM_NFD here.
44956         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44957         (main): Test the presence of UNINORM_NFKC here.
44958         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44959         (main): Test the presence of UNINORM_NFKD here.
44960
44961 2009-04-19  Bruno Haible  <bruno@clisp.org>
44962
44963         Avoid a compiler warning.
44964         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44965         Change type of variable 'sequence'.
44966
44967 2009-04-19  Bruno Haible  <bruno@clisp.org>
44968
44969         * modules/configmake (Makefile.am): When the contents of configmake.h
44970         does not change, arrange to preserve its modification time.
44971
44972 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44973
44974         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44975         gettext domain.
44976
44977 2009-04-16  Jim Meyering  <meyering@redhat.com>
44978
44979         useless-if-before-free: improve conversion code
44980         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44981         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44982
44983 2009-04-14  Bruno Haible  <bruno@clisp.org>
44984
44985         * modules/fcntl (Depends-on): Add extensions.
44986         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44987
44988 2009-04-12  Ben Pfaff  <blp@gnu.org>
44989
44990         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44991         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44992
44993 2009-03-20  Ben Pfaff  <blp@gnu.org>
44994
44995         Make rename replace existing destinations on Windows.
44996         * m4/rename.m4: Add test for Mingw.
44997         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44998         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44999         * doc/posix-functions/rename.texi: Document.
45000
45001 2009-04-10  Bruno Haible  <bruno@clisp.org>
45002
45003         New include file "iconveh.h".
45004         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45005         * lib/striconveh.h: Include it.
45006         (enum iconv_ilseq_handler): Remove definition.
45007         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45008         striconveh.h.
45009         * lib/striconveha.c: Include striconveh.h.
45010         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45011         * modules/striconveh (Files): Add lib/iconveh.h.
45012         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45013         lib/striconveh.h.
45014
45015 2009-04-10  Bruno Haible  <bruno@clisp.org>
45016
45017         * lib/uniconv.h: Update comment.
45018
45019 2009-04-10  Bruno Haible  <bruno@clisp.org>
45020
45021         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45022         always.
45023         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45024         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45025         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45026         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45027         "unistring-notinline.h", so that the function gets defined always.
45028         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45029         * lib/unistr/u8-uctomb.c: Likewise.
45030         * lib/unistr/u16-mbtouc.c: Likewise.
45031         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45032         * lib/unistr/u16-uctomb.c: Likewise.
45033         * lib/unistr/u32-mbtouc.c: Likewise.
45034         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45035         * lib/unistr/u32-uctomb.c: Likewise.
45036
45037 2009-04-10  Bruno Haible  <bruno@clisp.org>
45038
45039         Mark 'utime' obsolete.
45040         * modules/utime (Status, Notice): New sections.
45041         Suggested by Jim Meyering.
45042
45043         Fix cross-compile guess for utime test.
45044         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45045         autoconf.
45046         * doc/posix-functions/utime.texi: Give more precisions.
45047         Reported by Jan <ipif@ymail.com>.
45048
45049 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45050
45051         filevercmp: correct today's change
45052         * lib/filevercmp.c: Also handle coreutils' test inputs.
45053         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45054
45055         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45056         for reporting it.
45057         * lib/filevercmp.c: Special handle for "", "." and "..".
45058         * tests/test-filevercmp.c: Enlarge the set suite.
45059
45060 2009-04-07  Jim Meyering  <meyering@redhat.com>
45061
45062         useless-if-before-free: show how to remove braced useless free, too
45063         * build-aux/useless-if-before-free: still only in a comment, though.
45064
45065 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45066
45067         maint.mk: import changes to syntax-check macros from coreutils
45068         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45069         Use them in the relevant macros.
45070
45071 2009-04-06  Bruno Haible  <bruno@clisp.org>
45072
45073         Fix unportable use of bit-fields.
45074         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45075         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45076         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45077
45078 2009-04-06  Bruno Haible  <bruno@clisp.org>
45079
45080         Avoid test failures on AIX and OSF/1.
45081         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45082         that malloc(0) = NULL.
45083         * tests/unicase/test-u8-tolower.c (check): Likewise.
45084         * tests/unicase/test-u8-totitle.c (check): Likewise.
45085         * tests/unicase/test-u8-toupper.c (check): Likewise.
45086         * tests/unicase/test-u16-casefold.c (check): Likewise.
45087         * tests/unicase/test-u16-tolower.c (check): Likewise.
45088         * tests/unicase/test-u16-totitle.c (check): Likewise.
45089         * tests/unicase/test-u16-toupper.c (check): Likewise.
45090         * tests/unicase/test-u32-casefold.c (check): Likewise.
45091         * tests/unicase/test-u32-tolower.c (check): Likewise.
45092         * tests/unicase/test-u32-totitle.c (check): Likewise.
45093         * tests/unicase/test-u32-toupper.c (check): Likewise.
45094         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45095         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45096         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45097         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45098         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45099         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45100         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45101         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45102         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45103         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45104         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45105         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45106
45107 2009-04-05  Bruno Haible  <bruno@clisp.org>
45108
45109         Work around an autoconf limitation.
45110         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45111         comment line if it would be longer than 3 KB.
45112
45113 2009-04-05  Bruno Haible  <bruno@clisp.org>
45114
45115         Avoid test failure with libiconv-1.13.
45116         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45117         of the expected test results.
45118
45119 2009-04-05  Bruno Haible  <bruno@clisp.org>
45120
45121         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45122         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45123         that it should be installed.
45124
45125 2009-04-05  Bruno Haible  <bruno@clisp.org>
45126
45127         * gnulib-tool: New option --copy-file.
45128         (func_usage): Document it.
45129         (func_dest_tmpfilename): Moved out of func_import.
45130         (func_add_file, func_update_file): New functions, extracted from
45131         func_import.
45132         (func_import): Update.
45133
45134 2009-04-05  Karl Berry  <karl@gnu.org>
45135
45136         * README: prominently mention gnulib-tool.
45137         Rearrange sections so getting the code is near the top.
45138
45139 2009-04-05  Bruno Haible  <bruno@clisp.org>
45140
45141         * lib/unicase.h: Mention u*_cmp2.
45142         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45143         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45144         * lib/unicase/ulc-casecmp.c: Likewise.
45145         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45146         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45147         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45148         unistr/u8-cmp.
45149         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45150         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45151         unistr/u16-cmp.
45152         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45153         unistr/u32-cmp.
45154
45155         * lib/uninorm.h: Mention u*_cmp2.
45156         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45157         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45158         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45159         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45160         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45161         unistr/u8-cmp.
45162         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45163         unistr/u16-cmp.
45164         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45165         unistr/u32-cmp.
45166
45167         New module 'unistr/u32-cmp2'.
45168         * lib/unistr/u32-cmp2.c: New file.
45169         * modules/unistr/u32-cmp2: New file.
45170
45171         New module 'unistr/u16-cmp2'.
45172         * lib/unistr/u16-cmp2.c: New file.
45173         * modules/unistr/u16-cmp2: New file.
45174
45175         New module 'unistr/u8-cmp2'.
45176         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45177         * lib/unistr/u8-cmp2.c: New file.
45178         * lib/unistr/u-cmp2.h: New file.
45179         * modules/unistr/u8-cmp2: New file.
45180
45181 2009-04-05  Bruno Haible  <bruno@clisp.org>
45182
45183         * lib/unictype.h (uc_property_is_valid): New macro.
45184         * tests/unictype/test-pr_byname.c (main): Use it.
45185
45186         * lib/unistr.h: Doc fixes.
45187         * lib/uniconv.h: Doc fixes.
45188         * lib/unictype.h: Doc fixes.
45189
45190 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45191
45192         Port coreutils 7.2 to Solaris 8.
45193
45194         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45195         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45196         for Solaris 8.  This is a bit of a hack, as it means it's the
45197         caller's responsibility to add -lnsl if needed, but most likely it
45198         won't be needed since only getaddrinfo uses this and getaddrinfo
45199         isn't needed on Solaris 8.
45200
45201         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45202         problem to Solaris 8 encountered with coreutils 7.2, which
45203         resulted in a message "fnmatch.c:292: warning: passing argument 4
45204         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45205         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45206
45207 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45208
45209         * m4/ld-version-script.m4: Add FIXME comment.
45210
45211 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45212
45213         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45214         SOVERSION variable.
45215
45216 2009-04-02  Bruno Haible  <bruno@clisp.org>
45217
45218         * Makefile (info, html, dvi, pdf): Combine the rules.
45219         Suggested by Jim Meyering.
45220
45221 2009-04-01  Bruno Haible  <bruno@clisp.org>
45222
45223         * Makefile (info, html, dvi, pdf): New targets.
45224         Reported by Reuben Thomas <rrt@sc3d.org>.
45225
45226 2009-04-01  Bruno Haible  <bruno@clisp.org>
45227
45228         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45229         can be put into PATH.
45230         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45231
45232 2009-04-01  Bruno Haible  <bruno@clisp.org>
45233
45234         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45235
45236 2009-04-01  Bruno Haible  <bruno@clisp.org>
45237
45238         Rename module 'visibility'.
45239         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45240         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45241         * doc/gnulib.texi: Update.
45242         * MODULES.html.sh (Misc): Update.
45243         * NEWS: Mention the change.
45244
45245 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45246
45247         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45248         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45249         Eric Blake <ebb9@byu.net> for review.
45250         * MODULES.html.sh: Add lib-msvc-compat.
45251         * doc/gnulib.texi: Link to new section.
45252         * m4/ld-output-def.m4: New file.
45253         * doc/ld-output-def.texi: New file.
45254
45255 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45256
45257         Rename ld-version-script to lib-symbol-versions.  Suggested by
45258         Bruno Haible <bruno@clisp.org>.
45259         * modules/ld-version-script: Renamed to lib-symbol-versions.
45260         * doc/ld-version-script.texi: Fix module name.
45261         * MODULES.html.sh: Add lib-symbol-versions.
45262
45263 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45264
45265         * modules/u64-tests: New file.
45266         * tests/test-u64.c: New file.
45267
45268 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45269
45270         * MODULES.html.sh: Mention u64.
45271         * modules/u64: New module.
45272         * modules/crypto/sha512: Depend on u64 module instead of providing
45273         u64.h.
45274
45275 2009-03-27  Eric Blake  <ebb9@byu.net>
45276
45277         test-strerror: make debugging EAI_SYSTEM easier
45278         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45279         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45280         failure was EAI_SYSTEM.
45281
45282 2009-03-25  Bruno Haible  <bruno@clisp.org>
45283
45284         Fix a problem with --enable-relocatable on Solaris 7.
45285         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45286         since 2008-02-24.
45287
45288 2009-03-25  Eric Blake  <ebb9@byu.net>
45289
45290         test-sockets: avoid gcc warning
45291         * tests/test-sockets.c (main): Silence compiler warning.
45292
45293 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45294
45295         New modules nproc, pthread, contributed by Glen Lenker.
45296
45297         * MODULES.html.sh: Add pthread, nproc.
45298         * lib/nproc.c: New file.
45299         * lib/nproc.h: New file.
45300         * lib/pthread.in.h: New file.
45301         * m4/pthread.m4: New file.
45302         * modules/nproc: New file.
45303         * modules/pthread: New file.
45304
45305 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45306
45307         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45308         New variable.
45309
45310 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45311
45312         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45313         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45314         * tests/test-filevercmp.c: Add tests for backup suffixes.
45315
45316 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45317
45318         * modules/stdlib (Depends-on): Add stdint, needed when defining
45319         struct random_data on, for example, HP-UX 10.20.  Reported by
45320         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45321
45322 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45323
45324         * lib/readline.c (readline): Call fflush on stdout after printing
45325         prompt.
45326
45327 2009-03-20  Bruno Haible  <bruno@clisp.org>
45328
45329         Remove dependency from 'close' module to -lws2_32 on native Windows.
45330         * lib/close-hook.h: New file.
45331         * lib/close-hook.c: New file.
45332         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45333         w32sock.h.
45334         (_gl_close_fd_maybe_socket): Remove function.
45335         (rpl_close): Invoke execute_all_close_hooks instead of
45336         _gl_close_fd_maybe_socket.
45337         * lib/sockets.c: Include close-hook.h, w32sock.h.
45338         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45339         (close_sockets_hook): New variable.
45340         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45341         (gl_sockets_cleanup): Unregister it.
45342         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45343         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45344         * modules/close-hook: New file.
45345         * modules/close (Files): Remove lib/w32sock.h.
45346         (Depends-on): Add close-hook.
45347         (Link): Remove section.
45348         * modules/sockets (Files): Add lib/w32sock.h.
45349         (Depends-on): Add close-hook.
45350         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45351         invocation.
45352         * NEWS: Mention that LIB_CLOSE is gone.
45353
45354 2009-03-23  Eric Blake  <ebb9@byu.net>
45355
45356         signal-tests: test previous patch
45357         * tests/test-signal.c: New file.
45358         * modules/signal-tests: Likewise.
45359
45360         signal.h: always support 'volatile sig_atomic_t'
45361         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45362         (gl_SIGNAL_H_DEFAULTS): Add a default.
45363         * modules/signal (Makefile.am): Substitute if needed.
45364         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45365         users can blindly add volatile.
45366         * doc/posix-headers/signal.texi (signal.h): Document it.
45367         Reported by Matthew Woehlke.
45368
45369 2009-03-23  Jim Meyering  <meyering@redhat.com>
45370
45371         pathmax: PATH_MAX: use pathconf only when available
45372         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45373         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45374         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45375         This avoids a link failure in a PSP cross-compilation environment
45376         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45377
45378         * lib/vasnprintf.c (divide): Fix typo in comment.
45379
45380 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45381
45382         * gnulib-tool (func_filter_filelist): Fix comment.
45383
45384 2009-03-20  Bruno Haible  <bruno@clisp.org>
45385
45386         Make sockets.h self-contained.
45387         * lib/sockets.c: Include sockets.h first.
45388         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45389
45390 2009-03-19  Eric Blake  <ebb9@byu.net>
45391
45392         doc: mention more functions added in cygwin 1.7.0
45393         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45394         addition.
45395         * doc/posix-functions/log2f.texi: Likewise.
45396
45397 2009-03-19  Jim Meyering  <meyering@redhat.com>
45398
45399         fsusage: avoid syntax error due to statement-before-declaration
45400         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45401         after all declarations.  Reported by Matthew Woehlke in
45402         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45403
45404 2009-03-18  Eric Blake  <ebb9@byu.net>
45405
45406         build-aux/compile: sync from automake
45407         * build-aux/compile: New file, from automake.
45408         * config/srclist.txt: Mention build-aux/compile.
45409
45410 2009-03-17  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/git-merge-changelog.c: Fix typo in comment.
45413         Reported by Reuben Thomas <rrt@sc3d.org>.
45414
45415 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45416
45417         * m4/regex.m4: update and improve help for
45418         --without-included-regex.
45419
45420 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45421
45422         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45423         failure on missing include files.
45424
45425 2009-03-17  Eric Blake  <ebb9@byu.net>
45426
45427         doc: mention more functions added in cygwin 1.7.0
45428         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45429         addition.
45430         * doc/posix-functions/fwscanf.texi: Likewise.
45431         * doc/posix-functions/swprintf.texi: Likewise.
45432         * doc/posix-functions/swscanf.texi: Likewise.
45433         * doc/posix-functions/vfwprintf.texi: Likewise.
45434         * doc/posix-functions/vfwscanf.texi: Likewise.
45435         * doc/posix-functions/vswprintf.texi: Likewise.
45436         * doc/posix-functions/vswscanf.texi: Likewise.
45437         * doc/posix-functions/vwprintf.texi: Likewise.
45438         * doc/posix-functions/vwscanf.texi: Likewise.
45439         * doc/posix-functions/wcscasecmp.texi: Likewise.
45440         * doc/posix-functions/wcsdup.texi: Likewise.
45441         * doc/posix-functions/wcsftime.texi: Likewise.
45442         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45443         * doc/posix-functions/wprintf.texi: Likewise.
45444         * doc/posix-functions/wscanf.texi: Likewise.
45445         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45446
45447 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45448
45449         maint.mk: really add $(AM_MAKEFLAGS)
45450         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45451         was inadvertently omitted in the last commit.
45452         Spotted by Bruno Haible.
45453
45454         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45455         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45456         $(AM_MAKEFLAGS)' rather than plain `make'.
45457
45458         gnulib-tool: execute $MAKE not make
45459         * gnulib-tool: Default $MAKE to 'make'.
45460         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45461         than make.  Initialize $MAKE in the do-autobuild script.
45462
45463         gnulib-tool: use $MAKE not make in generated files
45464         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45465         make, in generated files.  Initialize $MAKE in the do-autobuild
45466         script.
45467
45468         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45469
45470         GNUmakefile: disable parallelism only for multiple, recursive targets
45471         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45472         additions in the Makefile.
45473         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45474         by Automake.
45475         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45476         are listed on the command line and at least one of them is
45477         listed in $(ALL_RECURSIVE_TARGETS).
45478
45479 2009-03-14  Bruno Haible  <bruno@clisp.org>
45480
45481         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45482         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45483         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45484         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45485         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45486         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45487         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45488         unistr/u8-uctomb.
45489         * modules/unistr/u8-strchr (Depends-on): Likewise.
45490         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45491         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45492         unistr/u16-uctomb.
45493         * modules/unistr/u16-strchr (Depends-on): Likewise.
45494         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45495
45496 2009-03-12  Bruno Haible  <bruno@clisp.org>
45497
45498         Work around select() bug on Interix 3.5.
45499         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45500         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45501         * m4/select.m4: New file.
45502         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45503         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45504         * modules/select (Files): Add m4/select.m4.
45505         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45506         * modules/nanosleep (Depends-on): Add select.
45507         * modules/poll (Depends-on): Likewise.
45508         * doc/posix-functions/select.texi: Mention the Interix bug.
45509         Reported by Markus Duft <mduft@gentoo.org>.
45510
45511         * lib/select.c: Renamed from lib/winsock-select.c.
45512         * modules/select (Files): Add lib/select.c, remove
45513         lib/winsock-select.c.
45514         (configure.ac): Update.
45515
45516 2009-03-12  Jim Meyering  <meyering@redhat.com>
45517
45518         avoid gcc warnings about unused macro definitions
45519         * lib/readtokens.c (STREQ): Remove unused definition.
45520         * lib/xmalloc.c (SIZE_MAX): Likewise.
45521         * lib/openat-die.c (N_): Likewise.
45522         * lib/mountlist.c (SIZE_MAX): Remove definition.
45523         Instead, include <stdint.h>.
45524         * lib/readutmp.c: Likewise.
45525         * modules/readutmp (Depends-on): Add stdint.
45526         * modules/mountlist (Depends-on): Add stdint.
45527         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45528
45529 2009-03-10  Bruno Haible  <bruno@clisp.org>
45530
45531         Tests for module 'mbmemcasecoll'.
45532         * modules/mbmemcasecoll-tests: New file.
45533         * tests/test-mbmemcasecoll1.sh: New file.
45534         * tests/test-mbmemcasecoll2.sh: New file.
45535         * tests/test-mbmemcasecoll3.sh: New file.
45536         * tests/test-mbmemcasecoll.c: New file.
45537
45538         New module 'mbmemcasecoll'.
45539         * lib/mbmemcasecoll.h: New file.
45540         * lib/mbmemcasecoll.c: New file.
45541         * modules/mbmemcasecoll: New file.
45542
45543         * tests/test-mbmemcasecmp.h: New file, extracted from
45544         tests/test-mbmemcasecmp.c.
45545         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45546         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45547         (main): Update.
45548         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45549
45550 2009-03-09  Bruno Haible  <bruno@clisp.org>
45551
45552         Tests for module 'mbmemcasecmp'.
45553         * modules/mbmemcasecmp-tests: New file.
45554         * tests/test-mbmemcasecmp1.sh: New file.
45555         * tests/test-mbmemcasecmp2.sh: New file.
45556         * tests/test-mbmemcasecmp3.sh: New file.
45557         * tests/test-mbmemcasecmp.c: New file.
45558
45559         New module 'mbmemcasecmp'.
45560         * lib/mbmemcasecmp.h: New file.
45561         * lib/mbmemcasecmp.c: New file.
45562         * modules/mbmemcasecmp: New file.
45563
45564 2009-03-09  Bruno Haible  <bruno@clisp.org>
45565
45566         Tests for module 'unicase/ulc-casecoll'.
45567         * modules/unicase/ulc-casecoll-tests: New file.
45568         * tests/unicase/test-ulc-casecoll1.sh: New file.
45569         * tests/unicase/test-ulc-casecoll2.sh: New file.
45570         * tests/unicase/test-ulc-casecoll.c: New file.
45571
45572         New module 'unicase/ulc-casecoll'.
45573         * lib/unicase.h (ulc_casecoll): New declaration.
45574         * lib/unicase/ulc-casecoll.c: New file.
45575         * modules/unicase/ulc-casecoll: New file.
45576
45577         New module 'unicase/ulc-casexfrm'.
45578         * lib/unicase.h (ulc_casexfrm): New declaration.
45579         * lib/unicase/ulc-casexfrm.c: New file.
45580         * modules/unicase/ulc-casexfrm: New file.
45581
45582 2009-03-09  Bruno Haible  <bruno@clisp.org>
45583
45584         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45585         invocations.
45586
45587         * m4/mbscasecmp.m4: Remove file.
45588         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45589         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45590
45591         * m4/mbscasestr.m4: Remove file.
45592         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45593         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45594
45595         * m4/mbschr.m4: Remove file.
45596         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45597         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45598
45599         * m4/mbscspn.m4: Remove file.
45600         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45601         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45602
45603         * m4/mbslen.m4: Remove file.
45604         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45605         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45606
45607         * m4/mbsncasecmp.m4: Remove file.
45608         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45609         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45610
45611         * m4/mbsnlen.m4: Remove file.
45612         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45613         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45614
45615         * m4/mbspbrk.m4: Remove file.
45616         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45617         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45618
45619         * m4/mbspcasecmp.m4: Remove file.
45620         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45621         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45622
45623         * m4/mbsrchr.m4: Remove file.
45624         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45625         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45626
45627         * m4/mbssep.m4: Remove file.
45628         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45629         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45630
45631         * m4/mbsspn.m4: Remove file.
45632         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45633         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45634
45635         * m4/mbsstr.m4: Remove file.
45636         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45637         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45638
45639         * m4/mbstok_r.m4: Remove file.
45640         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45641         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45642
45643         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45644
45645         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45646         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45647
45648         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45649
45650 2009-03-08  Bruno Haible  <bruno@clisp.org>
45651
45652         Tests for module 'unicase/ulc-casecmp'.
45653         * modules/unicase/ulc-casecmp-tests: New file.
45654         * tests/unicase/test-ulc-casecmp1.sh: New file.
45655         * tests/unicase/test-ulc-casecmp2.sh: New file.
45656         * tests/unicase/test-ulc-casecmp.c: New file.
45657
45658         New module 'unicase/ulc-casecmp'.
45659         * lib/unicase.h (ulc_casecmp): New declaration.
45660         * lib/unicase/ulc-casecmp.c: New file.
45661         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45662         'const SRC_UNIT *'.
45663         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45664         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45665         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45666         * modules/unicase/ulc-casecmp: New file.
45667
45668         Tests for module 'unicase/u32-is-cased'.
45669         * modules/unicase/u32-is-cased-tests: New file.
45670         * tests/unicase/test-u32-is-cased.c: New file.
45671
45672         Tests for module 'unicase/u16-is-cased'.
45673         * modules/unicase/u16-is-cased-tests: New file.
45674         * tests/unicase/test-u16-is-cased.c: New file.
45675
45676         Tests for module 'unicase/u8-is-cased'.
45677         * modules/unicase/u8-is-cased-tests: New file.
45678         * tests/unicase/test-u8-is-cased.c: New file.
45679         * tests/unicase/test-is-cased.h: New file.
45680
45681         New module 'unicase/u32-is-cased'.
45682         * lib/unicase/u32-is-cased.c: New file.
45683         * modules/unicase/u32-is-cased: New file.
45684
45685         New module 'unicase/u16-is-cased'.
45686         * lib/unicase/u16-is-cased.c: New file.
45687         * modules/unicase/u16-is-cased: New file.
45688
45689         New module 'unicase/u8-is-cased'.
45690         * lib/unicase/u8-is-cased.c: New file.
45691         * lib/unicase/u-is-cased.h: New file.
45692         * modules/unicase/u8-is-cased: New file.
45693
45694         Tests for module 'unicase/u32-is-casefolded'.
45695         * modules/unicase/u32-is-casefolded-tests: New file.
45696         * tests/unicase/test-u32-is-casefolded.c: New file.
45697
45698         Tests for module 'unicase/u16-is-casefolded'.
45699         * modules/unicase/u16-is-casefolded-tests: New file.
45700         * tests/unicase/test-u16-is-casefolded.c: New file.
45701
45702         Tests for module 'unicase/u8-is-casefolded'.
45703         * modules/unicase/u8-is-casefolded-tests: New file.
45704         * tests/unicase/test-u8-is-casefolded.c: New file.
45705         * tests/unicase/test-is-casefolded.h: New file.
45706
45707         New module 'unicase/u32-is-casefolded'.
45708         * lib/unicase/u32-is-casefolded.c: New file.
45709         * modules/unicase/u32-is-casefolded: New file.
45710
45711         New module 'unicase/u16-is-casefolded'.
45712         * lib/unicase/u16-is-casefolded.c: New file.
45713         * modules/unicase/u16-is-casefolded: New file.
45714
45715         New module 'unicase/u8-is-casefolded'.
45716         * lib/unicase/u8-is-casefolded.c: New file.
45717         * modules/unicase/u8-is-casefolded: New file.
45718
45719         Tests for module 'unicase/u32-is-titlecase'.
45720         * modules/unicase/u32-is-titlecase-tests: New file.
45721         * tests/unicase/test-u32-is-titlecase.c: New file.
45722
45723         Tests for module 'unicase/u16-is-titlecase'.
45724         * modules/unicase/u16-is-titlecase-tests: New file.
45725         * tests/unicase/test-u16-is-titlecase.c: New file.
45726
45727         Tests for module 'unicase/u8-is-titlecase'.
45728         * modules/unicase/u8-is-titlecase-tests: New file.
45729         * tests/unicase/test-u8-is-titlecase.c: New file.
45730         * tests/unicase/test-is-titlecase.h: New file.
45731
45732         New module 'unicase/u32-is-titlecase'.
45733         * lib/unicase/u32-is-titlecase.c: New file.
45734         * modules/unicase/u32-is-titlecase: New file.
45735
45736         New module 'unicase/u16-is-titlecase'.
45737         * lib/unicase/u16-is-titlecase.c: New file.
45738         * modules/unicase/u16-is-titlecase: New file.
45739
45740         New module 'unicase/u8-is-titlecase'.
45741         * lib/unicase/u8-is-titlecase.c: New file.
45742         * modules/unicase/u8-is-titlecase: New file.
45743
45744         Tests for module 'unicase/u32-is-lowercase'.
45745         * modules/unicase/u32-is-lowercase-tests: New file.
45746         * tests/unicase/test-u32-is-lowercase.c: New file.
45747
45748         Tests for module 'unicase/u16-is-lowercase'.
45749         * modules/unicase/u16-is-lowercase-tests: New file.
45750         * tests/unicase/test-u16-is-lowercase.c: New file.
45751
45752         Tests for module 'unicase/u8-is-lowercase'.
45753         * modules/unicase/u8-is-lowercase-tests: New file.
45754         * tests/unicase/test-u8-is-lowercase.c: New file.
45755         * tests/unicase/test-is-lowercase.h: New file.
45756
45757         New module 'unicase/u32-is-lowercase'.
45758         * lib/unicase/u32-is-lowercase.c: New file.
45759         * modules/unicase/u32-is-lowercase: New file.
45760
45761         New module 'unicase/u16-is-lowercase'.
45762         * lib/unicase/u16-is-lowercase.c: New file.
45763         * modules/unicase/u16-is-lowercase: New file.
45764
45765         New module 'unicase/u8-is-lowercase'.
45766         * lib/unicase/u8-is-lowercase.c: New file.
45767         * modules/unicase/u8-is-lowercase: New file.
45768
45769         Tests for module 'unicase/u32-is-uppercase'.
45770         * modules/unicase/u32-is-uppercase-tests: New file.
45771         * tests/unicase/test-u32-is-uppercase.c: New file.
45772
45773         Tests for module 'unicase/u16-is-uppercase'.
45774         * modules/unicase/u16-is-uppercase-tests: New file.
45775         * tests/unicase/test-u16-is-uppercase.c: New file.
45776
45777         Tests for module 'unicase/u8-is-uppercase'.
45778         * modules/unicase/u8-is-uppercase-tests: New file.
45779         * tests/unicase/test-u8-is-uppercase.c: New file.
45780         * tests/unicase/test-is-uppercase.h: New file.
45781
45782         New module 'unicase/u32-is-uppercase'.
45783         * lib/unicase/u32-is-uppercase.c: New file.
45784         * modules/unicase/u32-is-uppercase: New file.
45785
45786         New module 'unicase/u16-is-uppercase'.
45787         * lib/unicase/u16-is-uppercase.c: New file.
45788         * modules/unicase/u16-is-uppercase: New file.
45789
45790         New module 'unicase/u8-is-uppercase'.
45791         * lib/unicase/u8-is-uppercase.c: New file.
45792         * modules/unicase/u8-is-uppercase: New file.
45793
45794         New module 'unicase/u32-is-invariant'.
45795         * lib/unicase/u32-is-invariant.c: New file.
45796         * modules/unicase/u32-is-invariant: New file.
45797
45798         New module 'unicase/u16-is-invariant'.
45799         * lib/unicase/u16-is-invariant.c: New file.
45800         * modules/unicase/u16-is-invariant: New file.
45801
45802         New module 'unicase/u8-is-invariant'.
45803         * lib/unicase/u8-is-invariant.c: New file.
45804         * lib/unicase/invariant.h: New file.
45805         * lib/unicase/u-is-invariant.h: New file.
45806         * modules/unicase/u8-is-invariant: New file.
45807
45808         Tests for module 'unicase/u32-casecoll'.
45809         * modules/unicase/u32-casecoll-tests: New file.
45810         * tests/unicase/test-u32-casecoll.c: New file.
45811
45812         Tests for module 'unicase/u16-casecoll'.
45813         * modules/unicase/u16-casecoll-tests: New file.
45814         * tests/unicase/test-u16-casecoll.c: New file.
45815
45816         Tests for module 'unicase/u8-casecoll'.
45817         * modules/unicase/u8-casecoll-tests: New file.
45818         * tests/unicase/test-u8-casecoll.c: New file.
45819
45820         New module 'unicase/u32-casecoll'.
45821         * lib/unicase/u32-casecoll.c: New file.
45822         * modules/unicase/u32-casecoll: New file.
45823
45824         New module 'unicase/u16-casecoll'.
45825         * lib/unicase/u16-casecoll.c: New file.
45826         * modules/unicase/u16-casecoll: New file.
45827
45828         New module 'unicase/u8-casecoll'.
45829         * lib/unicase/u8-casecoll.c: New file.
45830         * lib/unicase/u-casecoll.h: New file.
45831         * modules/unicase/u8-casecoll: New file.
45832
45833         New module 'unicase/u32-casexfrm'.
45834         * lib/unicase/u32-casexfrm.c: New file.
45835         * modules/unicase/u32-casexfrm: New file.
45836
45837         New module 'unicase/u16-casexfrm'.
45838         * lib/unicase/u16-casexfrm.c: New file.
45839         * modules/unicase/u16-casexfrm: New file.
45840
45841         New module 'unicase/u8-casexfrm'.
45842         * lib/unicase/u8-casexfrm.c: New file.
45843         * lib/unicase/u-casexfrm.h: New file.
45844         * modules/unicase/u8-casexfrm: New file.
45845
45846         Tests for module 'unicase/u32-casecmp'.
45847         * modules/unicase/u32-casecmp-tests: New file.
45848         * tests/unicase/test-u32-casecmp.c: New file.
45849
45850         Tests for module 'unicase/u16-casecmp'.
45851         * modules/unicase/u16-casecmp-tests: New file.
45852         * tests/unicase/test-u16-casecmp.c: New file.
45853
45854         Tests for module 'unicase/u8-casecmp'.
45855         * modules/unicase/u8-casecmp-tests: New file.
45856         * tests/unicase/test-u8-casecmp.c: New file.
45857         * tests/unicase/test-casecmp.h: New file.
45858
45859         New module 'unicase/u32-casecmp'.
45860         * lib/unicase/u32-casecmp.c: New file.
45861         * modules/unicase/u32-casecmp: New file.
45862
45863         New module 'unicase/u16-casecmp'.
45864         * lib/unicase/u16-casecmp.c: New file.
45865         * modules/unicase/u16-casecmp: New file.
45866
45867         New module 'unicase/u8-casecmp'.
45868         * lib/unicase/u8-casecmp.c: New file.
45869         * lib/unicase/u-casecmp.h: New file.
45870         * modules/unicase/u8-casecmp: New file.
45871
45872         Tests for module 'unicase/u32-casefold'.
45873         * modules/unicase/u32-casefold-tests: New file.
45874         * tests/unicase/test-u32-casefold.c: New file.
45875
45876         Tests for module 'unicase/u16-casefold'.
45877         * modules/unicase/u16-casefold-tests: New file.
45878         * tests/unicase/test-u16-casefold.c: New file.
45879
45880         Tests for module 'unicase/u8-casefold'.
45881         * modules/unicase/u8-casefold-tests: New file.
45882         * tests/unicase/test-u8-casefold.c: New file.
45883
45884         New module 'unicase/u32-casefold'.
45885         * lib/unicase/u32-casefold.c: New file.
45886         * modules/unicase/u32-casefold: New file.
45887
45888         New module 'unicase/u16-casefold'.
45889         * lib/unicase/u16-casefold.c: New file.
45890         * modules/unicase/u16-casefold: New file.
45891
45892         New module 'unicase/u8-casefold'.
45893         * lib/unicase/u8-casefold.c: New file.
45894         * lib/unicase/u-casefold.h: New file.
45895         * modules/unicase/u8-casefold: New file.
45896
45897         New module 'unicase/tocasefold'.
45898         * lib/unicase/casefold.h: New file.
45899         * lib/unicase/tocasefold.c: New file.
45900         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45901         * modules/unicase/tocasefold: New file.
45902
45903         Tests for module 'unicase/u32-totitle'.
45904         * modules/unicase/u32-totitle-tests: New file.
45905         * tests/unicase/test-u32-totitle.c: New file.
45906
45907         Tests for module 'unicase/u16-totitle'.
45908         * modules/unicase/u16-totitle-tests: New file.
45909         * tests/unicase/test-u16-totitle.c: New file.
45910
45911         Tests for module 'unicase/u8-totitle'.
45912         * modules/unicase/u8-totitle-tests: New file.
45913         * tests/unicase/test-u8-totitle.c: New file.
45914
45915         New module 'unicase/u32-totitle'.
45916         * lib/unicase/u32-totitle.c: New file.
45917         * modules/unicase/u32-totitle: New file.
45918
45919         New module 'unicase/u16-totitle'.
45920         * lib/unicase/u16-totitle.c: New file.
45921         * modules/unicase/u16-totitle: New file.
45922
45923         New module 'unicase/u8-totitle'.
45924         * lib/unicase/u8-totitle.c: New file.
45925         * lib/unicase/u-totitle.h: New file.
45926         * modules/unicase/u8-totitle: New file.
45927
45928         Tests for module 'unicase/u32-tolower'.
45929         * modules/unicase/u32-tolower-tests: New file.
45930         * tests/unicase/test-u32-tolower.c: New file.
45931
45932         Tests for module 'unicase/u16-tolower'.
45933         * modules/unicase/u16-tolower-tests: New file.
45934         * tests/unicase/test-u16-tolower.c: New file.
45935
45936         Tests for module 'unicase/u8-tolower'.
45937         * modules/unicase/u8-tolower-tests: New file.
45938         * tests/unicase/test-u8-tolower.c: New file.
45939
45940         New module 'unicase/u32-tolower'.
45941         * lib/unicase/u32-tolower.c: New file.
45942         * modules/unicase/u32-tolower: New file.
45943
45944         New module 'unicase/u16-tolower'.
45945         * lib/unicase/u16-tolower.c: New file.
45946         * modules/unicase/u16-tolower: New file.
45947
45948         New module 'unicase/u8-tolower'.
45949         * lib/unicase/u8-tolower.c: New file.
45950         * modules/unicase/u8-tolower: New file.
45951
45952         Tests for module 'unicase/u32-toupper'.
45953         * modules/unicase/u32-toupper-tests: New file.
45954         * tests/unicase/test-u32-toupper.c: New file.
45955
45956         Tests for module 'unicase/u16-toupper'.
45957         * modules/unicase/u16-toupper-tests: New file.
45958         * tests/unicase/test-u16-toupper.c: New file.
45959
45960         Tests for module 'unicase/u8-toupper'.
45961         * modules/unicase/u8-toupper-tests: New file.
45962         * tests/unicase/test-u8-toupper.c: New file.
45963
45964         New module 'unicase/u32-toupper'.
45965         * lib/unicase/u32-toupper.c: New file.
45966         * modules/unicase/u32-toupper: New file.
45967
45968         New module 'unicase/u16-toupper'.
45969         * lib/unicase/u16-toupper.c: New file.
45970         * modules/unicase/u16-toupper: New file.
45971
45972         New module 'unicase/u8-toupper'.
45973         * lib/unicase/u8-toupper.c: New file.
45974         * modules/unicase/u8-toupper: New file.
45975
45976         New module 'unicase/u32-casemap'.
45977         * lib/unicase/u32-casemap.c: New file.
45978         * modules/unicase/u32-casemap: New file.
45979
45980         New module 'unicase/u16-casemap'.
45981         * lib/unicase/u16-casemap.c: New file.
45982         * modules/unicase/u16-casemap: New file.
45983
45984         New module 'unicase/u8-casemap'.
45985         * lib/unicase/unicasemap.h: New file.
45986         * lib/unicase/u8-casemap.c: New file.
45987         * lib/unicase/u-casemap.h: New file.
45988         * modules/unicase/u8-casemap: New file.
45989
45990         New module 'unicase/special-casing'.
45991         * lib/unicase/special-casing.h: New file.
45992         * lib/unicase/special-casing.c: New file.
45993         * lib/unicase/special-casing-table.gperf: New file, generated by
45994         gen-uni-tables.c.
45995         * modules/unicase/special-casing: New file.
45996
45997         Tests for module 'unicase/locale-language'.
45998         * modules/unicase/locale-language-tests: New file.
45999         * tests/unicase/test-locale-language.sh: New file.
46000         * tests/unicase/test-locale-language.c: New file.
46001
46002         New module 'unicase/locale-language'.
46003         * lib/unicase/locale-language.c: New file.
46004         * lib/unicase/locale-languages.gperf: New file.
46005         * modules/unicase/locale-language: New file.
46006
46007         Generate more tables for case conversion and case folding.
46008         * lib/gen-uni-tables.c (SCC_*): New enum items.
46009         (struct special_casing_rule): New type.
46010         (casing_rules, num_casing_rules, allocated_casing_rules): New
46011         variables.
46012         (add_casing_rule, fill_casing_rules): New functions.
46013         (struct casefold_rule): New type.
46014         (casefolding_rules, num_casefolding_rules,
46015         allocated_casefolding_rules): New variables.
46016         (fill_casefolding_rules): New function.
46017         (unicode_casefold): New variable.
46018         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46019         sort_casing_rules, output_casing_rules): New functions.
46020         (main): Accept to more arguments: SpecialCasing.txt and
46021         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46022         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46023         Output mapping for casefolding.
46024
46025         * lib/unicase.h: Include stdbool.h, uninorm.h.
46026         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46027         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46028         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46029         arguments.
46030         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46031         resultp arguments.
46032         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46033         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46034         resultp arguments.
46035         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46036         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46037         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46038         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46039         declarations.
46040         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46041
46042 2009-03-08  Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46045         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46046         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46047         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46048
46049 2009-03-07  Bruno Haible  <bruno@clisp.org>
46050
46051         Adjust u*_normcmp, u*_normcoll API.
46052         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46053         u16_normcoll, u32_normcoll): Change failure conventions.
46054         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46055         errno and return -1.
46056         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46057
46058 2009-03-07  Bruno Haible  <bruno@clisp.org>
46059
46060         Tests for module 'uninorm/u32-normcoll'.
46061         * modules/uninorm/u32-normcoll-tests: New file.
46062         * tests/uninorm/test-u32-normcoll.c: New file.
46063
46064         Tests for module 'uninorm/u16-normcoll'.
46065         * modules/uninorm/u16-normcoll-tests: New file.
46066         * tests/uninorm/test-u16-normcoll.c: New file.
46067
46068         Tests for module 'uninorm/u8-normcoll'.
46069         * modules/uninorm/u8-normcoll-tests: New file.
46070         * tests/uninorm/test-u8-normcoll.c: New file.
46071
46072 2009-03-07  Bruno Haible  <bruno@clisp.org>
46073
46074         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46075         tests/uninorm/test-u32-normcmp.c.
46076         * tests/uninorm/test-u32-normcmp.c: Include it.
46077         (test_nonascii): New function, extracted from main. Add some more
46078         tests.
46079         (main): Invoke test_ascii and test_nonascii.
46080         * modules/uninorm/u32-normcmp-tests (Files): Add
46081         tests/uninorm/test-u32-normcmp.h.
46082         (Depends-on): Remove uninorm/u32-normcmp.
46083
46084         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46085         tests/uninorm/test-u16-normcmp.c.
46086         * tests/uninorm/test-u16-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/u16-normcmp-tests (Files): Add
46091         tests/uninorm/test-u16-normcmp.h.
46092         (Depends-on): Remove uninorm/u16-normcmp.
46093
46094         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46095         tests/uninorm/test-u8-normcmp.c.
46096         * tests/uninorm/test-u8-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/u8-normcmp-tests (Files): Add
46101         tests/uninorm/test-u8-normcmp.h.
46102         (Depends-on): Remove uninorm/u8-normcmp.
46103
46104 2009-03-07  Bruno Haible  <bruno@clisp.org>
46105
46106         New module 'uninorm/u32-normcoll'.
46107         * lib/uninorm/u32-normcoll.c: New file.
46108         * modules/uninorm/u32-normcoll: New file.
46109
46110         New module 'uninorm/u16-normcoll'.
46111         * lib/uninorm/u16-normcoll.c: New file.
46112         * modules/uninorm/u16-normcoll: New file.
46113
46114         New module 'uninorm/u8-normcoll'.
46115         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46116         declarations.
46117         * lib/uninorm/u8-normcoll.c: New file.
46118         * lib/uninorm/u-normcoll.h: New file.
46119         * modules/uninorm/u8-normcoll: New file.
46120
46121         New module 'uninorm/u32-normxfrm'.
46122         * lib/uninorm/u32-normxfrm.c: New file.
46123         * modules/uninorm/u32-normxfrm: New file.
46124
46125         New module 'uninorm/u16-normxfrm'.
46126         * lib/uninorm/u16-normxfrm.c: New file.
46127         * modules/uninorm/u16-normxfrm: New file.
46128
46129         New module 'uninorm/u8-normxfrm'.
46130         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46131         declarations.
46132         * lib/uninorm/u8-normxfrm.c: New file.
46133         * lib/uninorm/u-normxfrm.h: New file.
46134         * modules/uninorm/u8-normxfrm: New file.
46135
46136 2009-03-07  Bruno Haible  <bruno@clisp.org>
46137
46138         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46139         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46140         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46141
46142 2009-03-07  Bruno Haible  <bruno@clisp.org>
46143
46144         New module 'memxfrm'.
46145         * lib/memxfrm.h: New file.
46146         * lib/memxfrm.c: New file.
46147         * modules/memxfrm: New file.
46148
46149 2009-03-07  Bruno Haible  <bruno@clisp.org>
46150
46151         New module 'memcmp2'.
46152         * lib/memcmp2.h: New file.
46153         * lib/memcmp2.c: New file.
46154         * modules/memcmp2: New file.
46155
46156 2009-03-07  Bruno Haible  <bruno@clisp.org>
46157
46158         Tests for module 'uninorm/decomposing-form'.
46159         * modules/uninorm/decomposing-form-tests: New file.
46160         * tests/uninorm/test-decomposing-form.c: New file.
46161
46162         New module 'uninorm/decomposing-form'.
46163         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46164         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46165         Add 'decomposing_variant' field.
46166         * lib/uninorm/decomposing-form.c: New file.
46167         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46168         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46169         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46170         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46171         * modules/uninorm/decomposing-form: New file.
46172         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46173         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46174
46175 2009-03-07  Bruno Haible  <bruno@clisp.org>
46176
46177         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46178         strings.
46179
46180 2009-03-06  Bruno Haible  <bruno@clisp.org>
46181
46182         Tests for module 'uninorm/u32-normcmp'.
46183         * tests/uninorm/test-u32-normcmp.c: New file.
46184         * modules/uninorm/u32-normcmp-tests: New file.
46185
46186         Tests for module 'uninorm/u16-normcmp'.
46187         * tests/uninorm/test-u16-normcmp.c: New file.
46188         * modules/uninorm/u16-normcmp-tests: New file.
46189
46190         Tests for module 'uninorm/u8-normcmp'.
46191         * tests/uninorm/test-u8-normcmp.c: New file.
46192         * modules/uninorm/u8-normcmp-tests: New file.
46193
46194         New module 'uninorm/u32-normcmp'.
46195         * lib/uninorm/u32-normcmp.c: New file.
46196         * modules/uninorm/u32-normcmp: New file.
46197
46198         New module 'uninorm/u16-normcmp'.
46199         * lib/uninorm/u16-normcmp.c: New file.
46200         * modules/uninorm/u16-normcmp: New file.
46201
46202         New module 'uninorm/u8-normcmp'.
46203         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46204         declarations.
46205         * lib/uninorm/u8-normcmp.c: New file.
46206         * lib/uninorm/u-normcmp.h: New file.
46207         * modules/uninorm/u8-normcmp: New file.
46208
46209 2009-03-06  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46212         Reported by Eric Blake.
46213
46214 2009-03-06  Eric Blake  <ebb9@byu.net>
46215             Bruno Haible  <bruno@clisp.org>
46216
46217         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46218         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46219         condition.
46220         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46221         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46222         condition.
46223         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46224
46225 2009-03-06  Eric Blake  <ebb9@byu.net>
46226
46227         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46228         to avoid compiler warnings.
46229         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46230
46231 2009-03-05  Bruno Haible  <bruno@clisp.org>
46232
46233         * tests/test-ftell.c (main): Disable test beyond end of file on
46234         FreeMiNT.
46235         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46236
46237 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46238
46239         * lib/filevercmp.c: Move hidden files up in ordering.
46240         * tests/test-filevercmp.c: Add tests for hidden files.
46241
46242 2009-03-04  Bruno Haible  <bruno@clisp.org>
46243
46244         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46245         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46246         AM_CFLAGS.
46247         Reported by Simon Josefsson.
46248
46249 2009-03-03  Bruno Haible  <bruno@clisp.org>
46250
46251         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46252         Reported by Simon Josefsson.
46253
46254         * doc/ld-version-script.texi: Update node reference.
46255
46256 2009-03-03  Bruno Haible  <bruno@clisp.org>
46257
46258         * modules/visibility (License): Change to 'unlimited'.
46259         Suggested by Simon Josefsson.
46260
46261 2009-03-03  Jim Meyering  <meyering@redhat.com>
46262
46263         unlinkdir: cannot_unlink_dir may modify process state
46264         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46265         it's neither thread-safe nor appropriate for use in a library.
46266
46267 2009-03-03  Eric Blake  <ebb9@byu.net>
46268
46269         test-closein: silence test under Darwin
46270         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46271         care if it dies from EPIPE or EBADF.
46272
46273 2009-03-03  Bruno Haible  <bruno@clisp.org>
46274
46275         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46276         earlier.
46277         * doc/visibility.texi: Fix @node and @section.
46278
46279 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46280
46281         * doc/gnulib.texi: Link to sections for ld version script and
46282         visibility.
46283         * doc/visibility.texi: Add @node and @section.
46284         * modules/ld-version-script: New module.
46285         * m4/ld-version-script.m4: New file.
46286         * doc/ld-version-script.texi: New file.
46287
46288 2009-03-02  David Lutterkort  <lutter@redhat.com>
46289
46290         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46291         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46292
46293 2009-03-02  Bruno Haible  <bruno@clisp.org>
46294
46295         * doc/visibility.texi: Mention libtool's -export-symbols option.
46296
46297 2009-03-02  Jim Meyering  <meyering@redhat.com>
46298
46299         announce-gen: new option: --no-print-checksums
46300         * build-aux/announce-gen (usage): Describe it.
46301         (print_checksums): Print a newline here, not in the [*] footnote.
46302         (main): Honor it.
46303
46304 2009-03-01  Bruno Haible  <bruno@clisp.org>
46305
46306         Use socklen_t in the native Windows replacements prototypes.
46307         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46308         instead of 'int'.
46309         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46310         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46311         * modules/getsockopt (Depends-on): Add socklen.
46312         * modules/setsockopt (Depends-on): Add socklen.
46313
46314 2009-03-01  Bruno Haible  <bruno@clisp.org>
46315
46316         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46317         least 4.2.
46318
46319 2009-03-01  Eric Blake  <ebb9@byu.net>
46320             Bruno Haible  <bruno@clisp.org>
46321
46322         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46323         error messages.
46324         * lib/wait-process.c (wait_subprocess): Omit error message about
46325         deadly signal sent to the child of termsigp != NULL.
46326
46327 2009-03-01  Eric Blake  <ebb9@byu.net>
46328
46329         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46330
46331 2009-03-01  Bruno Haible  <bruno@clisp.org>
46332
46333         Avoid a gcc warning.
46334         * tests/test-sched.c (b): Make global.
46335         Reported by Eric Blake.
46336
46337 2009-01-19  Martin Lambers  <marlam@marlam.de>
46338
46339         Provide POSIX semantics for socket timeout options on W32.
46340         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46341         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46342         * modules/setsockopt: Depend on sys_time module for struct timeval.
46343         * modules/getsockopt: Depend on sys_time module for struct timeval.
46344
46345 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46346
46347         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46348         __USE_GNU, for consistency with netdb.in.h.
46349         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46350
46351 2009-03-01  Bruno Haible  <bruno@clisp.org>
46352
46353         More support for FreeMiNT.
46354         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46355         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46356
46357 2009-03-01  Bruno Haible  <bruno@clisp.org>
46358
46359         More support for FreeMiNT.
46360         * lib/fpurge.c (fpurge): Correct last commit.
46361         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46362
46363 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46364
46365         Fix unportable awk script in vc-list-files.
46366         * build-aux/vc-list-files: In the replacement awk script, use
46367         substr with a second argument of 1, not zero.
46368         Report by Simon Josefsson.
46369
46370 2009-02-28  Bruno Haible  <bruno@clisp.org>
46371
46372         More support for FreeMiNT.
46373         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46374         to FreeMiNT today.
46375         * lib/fwriting.c (fwriting): Likewise.
46376         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46377
46378 2009-02-28  Bruno Haible  <bruno@clisp.org>
46379
46380         * tests/test-freadseek.c (main): Disable test beyond end of file on
46381         FreeMiNT.
46382         * tests/test-ftello.c (main): Likewise.
46383         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46384
46385 2009-02-28  Bruno Haible  <bruno@clisp.org>
46386
46387         Add tentative support for FreeMiNT.
46388         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46389         * lib/fpurge.c (fpurge): Likewise.
46390         * lib/freadable.c (freadable): Likewise.
46391         * lib/freading.c (freading): Likewise.
46392         * lib/freadptr.c (freadptr): Likewise.
46393         * lib/freadseek.c (freadptrinc): Likewise.
46394         * lib/fseeko.c (rpl_fseeko): Likewise.
46395         * lib/fseterr.c (fseterr): Likewise.
46396         * lib/fwritable.c (fwritable): Likewise.
46397         * lib/fwriting.c (fwriting): Likewise.
46398         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46399         Hourihane.
46400         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46401
46402 2009-02-28  Bruno Haible  <bruno@clisp.org>
46403
46404         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46405         SIGCHLD.
46406         Reported by Jim Meyering.
46407
46408 2009-02-28  Bruno Haible  <bruno@clisp.org>
46409
46410         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46411         Mention the results of these tests on various platforms.
46412         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46413         order.
46414         * doc/posix-functions/printf.texi: Likewise.
46415         * doc/posix-functions/snprintf.texi: Likewise.
46416         * doc/posix-functions/sprintf.texi: Likewise.
46417         * doc/posix-functions/vfprintf.texi: Likewise.
46418         * doc/posix-functions/vprintf.texi: Likewise.
46419         * doc/posix-functions/vsnprintf.texi: Likewise.
46420         * doc/posix-functions/vsprintf.texi: Likewise.
46421         * doc/glibc-functions/obstack_printf.texi: Likewise.
46422         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46423
46424 2009-02-28  Bruno Haible  <bruno@clisp.org>
46425
46426         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46427         Reported by Loïc Minier <lool@dooz.org>.
46428
46429 2009-02-27  Bruno Haible  <bruno@clisp.org>
46430
46431         * gnulib-tool (func_import): Make the sed expression used to create the
46432         sed script for updating the .gitignore file POSIX compliant.
46433         Reported by Eric Blake.
46434
46435 2009-02-27  Bruno Haible  <bruno@clisp.org>
46436
46437         * gnulib-tool (sed): Don't alias as "sed --posix".
46438         Reported by Eric Blake.
46439
46440 2009-02-27  Bruno Haible  <bruno@clisp.org>
46441
46442         Avoid test link errors.
46443         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46444         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46445         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46446         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46447         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46448
46449 2009-02-27  Bruno Haible  <bruno@clisp.org>
46450
46451         Avoid spurious "(cached)" in configure output.
46452         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46453         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46454         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46455         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46456         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46457         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46458         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46459         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46460         Reported by Eric Blake.
46461
46462 2009-02-27  Eric Blake  <ebb9@byu.net>
46463
46464         printf: fix regression in previous patch
46465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46466
46467 2009-02-27  Bruno Haible  <bruno@clisp.org>
46468
46469         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46470         value.
46471         * lib/stdint.in.h: Likewise.
46472         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46473
46474 2009-02-27  Eric Blake  <ebb9@byu.net>
46475
46476         doc: mention more functions added in cygwin 1.7.0
46477         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46478         addition.
46479         * doc/posix-functions/open_wmemstream.texi: Likewise.
46480         * doc/posix-functions/wcsnlen.texi: Likewise.
46481         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46482         * doc/posix-functions/wcstod.texi: Likewise.
46483         * doc/posix-functions/wcstof.texi: Likewise.
46484         * doc/posix-functions/wcstoimax.texi: Likewise.
46485         * doc/posix-functions/wcstok.texi: Likewise.
46486         * doc/posix-functions/wcstoumax.texi: Likewise.
46487
46488         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46489         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46490         * doc/posix-functions/fprintf.texi: Update.
46491         * doc/posix-functions/printf.texi: Update.
46492         * doc/posix-functions/snprintf.texi: Update.
46493         * doc/posix-functions/sprintf.texi: Update.
46494         * doc/posix-functions/vfprintf.texi: Update.
46495         * doc/posix-functions/vprintf.texi: Update.
46496         * doc/posix-functions/vsnprintf.texi: Update.
46497         * doc/posix-functions/vsprintf.texi: Update.
46498         * doc/glibc-functions/obstack_printf.texi: Update.
46499         * doc/glibc-functions/obstack_vprintf.texi: Update.
46500
46501 2009-02-26  Eric Blake  <ebb9@byu.net>
46502
46503         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46504         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46505         compilation bug by using runtime conversion.
46506         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46507         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46508         * modules/ceill-tests (Files): Use nan.h.
46509         * modules/floorl-tests (Files): Likewise.
46510         * modules/frexpl-tests (Files): Likewise.
46511         * modules/isnanl-tests (Files): Likewise.
46512         * modules/ldexpl-tests (Files): Likewise.
46513         * modules/roundl-tests (Files): Likewise.
46514         * modules/truncl-tests (Files): Likewise.
46515         * tests/test-ceill.c (main): Use a working NaN.
46516         * tests/test-floorl.c (main): Likewise.
46517         * tests/test-frexpl.c (main): Likewise.
46518         * tests/test-isnan.c (test_long_double): Likewise.
46519         * tests/test-isnanl.h (main): Likewise.
46520         * tests/test-ldexpl.h (main): Likewise.
46521         * tests/test-roundl.h (main): Likewise.
46522         * tests/test-truncl.h (main): Likewise.
46523         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46524
46525 2009-02-26  Eric Blake  <ebb9@byu.net>
46526             Bruno Haible  <bruno@clisp.org>
46527
46528         Work around a *printf bug with %ls on Solaris.
46529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46530         precision is specified, sprintf stops converting the wide string
46531         argument when the number of bytes that have been produced by this
46532         conversion equals or exceeds the precision.
46533         * doc/posix-functions/fprintf.texi: Update.
46534         * doc/posix-functions/printf.texi: Update.
46535         * doc/posix-functions/snprintf.texi: Update.
46536         * doc/posix-functions/sprintf.texi: Update.
46537         * doc/posix-functions/vfprintf.texi: Update.
46538         * doc/posix-functions/vprintf.texi: Update.
46539         * doc/posix-functions/vsnprintf.texi: Update.
46540         * doc/posix-functions/vsprintf.texi: Update.
46541         * doc/glibc-functions/obstack_printf.texi: Update.
46542         * doc/glibc-functions/obstack_vprintf.texi: Update.
46543
46544 2009-02-26  Eric Blake  <ebb9@byu.net>
46545
46546         stdlib: favor compiler check of random.h
46547         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46548         to avoid an ObjC random.h installed by Swarm.
46549
46550 2009-02-26  Bruno Haible  <bruno@clisp.org>
46551
46552         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46553         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46554         Reported by Gary V. Vaughan <gary@gnu.org>.
46555
46556 2009-02-26  Bruno Haible  <bruno@clisp.org>
46557
46558         Fix *printf behaviour regarding the %ls directive.
46559         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46560         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46561         NEED_PRINTF_DIRECTIVE_LS.
46562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46563         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46565         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46566         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46567         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46568         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46573         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46577         * doc/posix-functions/fprintf.texi: Update.
46578         * doc/posix-functions/printf.texi: Update.
46579         * doc/posix-functions/snprintf.texi: Update.
46580         * doc/posix-functions/sprintf.texi: Update.
46581         * doc/posix-functions/vfprintf.texi: Update.
46582         * doc/posix-functions/vprintf.texi: Update.
46583         * doc/posix-functions/vsnprintf.texi: Update.
46584         * doc/posix-functions/vsprintf.texi: Update.
46585         * doc/glibc-functions/obstack_printf.texi: Update.
46586         * doc/glibc-functions/obstack_vprintf.texi: Update.
46587         Reported by Eric Blake.
46588
46589 2009-02-25  Bruno Haible  <bruno@clisp.org>
46590
46591         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46592         with known value.
46593         Reported by Gary V. Vaughan <gary@gnu.org>.
46594
46595 2009-02-25  Bruno Haible  <bruno@clisp.org>
46596
46597         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46598         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46599         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46600         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46601         Reported by Gary V. Vaughan <gary@gnu.org>.
46602
46603 2009-02-25  Bruno Haible  <bruno@clisp.org>
46604
46605         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46606         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46607         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46608         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46609         Reported by Gary V. Vaughan <gary@gnu.org>.
46610
46611 2009-02-25  Eric Blake  <ebb9@byu.net>
46612
46613         tests: skip fseek/ftell tests if ungetc is broken
46614         * m4/ungetc.m4: New file.
46615         * modules/fseek-tests: Split test, so ungetc dependency is
46616         separate from rest of test.
46617         * modules/fseeko-tests: Likewise.
46618         * modules/ftell-tests: Likewise.
46619         * modules/ftello-tests: Likewise.
46620         * tests/test-fseek.c (main): Isolate ungetc dependency.
46621         * tests/test-fseeko.c (main): Likewise.
46622         * tests/test-ftell.c (main): Likewise.
46623         * tests/test-ftello.c (main): Likewise.
46624         * tests/test-fseek2.sh: New file.
46625         * tests/test-fseeko2.sh: Likewise.
46626         * tests/test-ftell2.sh: Likewise.
46627         * tests/test-ftello2.sh: Likewise.
46628
46629 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46630
46631         test-getaddrinfo: fix usage of skip return code 77
46632         * tests/test-gettaddrinfo.c: Return skip code 77 only
46633         for first occurance of skip (4x77 is not 77)
46634
46635 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46636
46637         strtod: avoid C99 decl-after-statement
46638         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46639
46640 2009-02-24  Eric Blake  <ebb9@byu.net>
46641
46642         strtod: detect HP-UX 11.31 bug
46643         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46644         Reported by Gary V. Vaughan.
46645
46646 2009-02-23  Bruno Haible  <bruno@clisp.org>
46647
46648         Fix invalid read past end of memory block.
46649         * lib/vasnprintf.c (DCHAR_SET): Define.
46650         (local_wcslen): Define only when needed.
46651         (local_strnlen, local_wcsnlen): New functions.
46652         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46653         directives that involve a conversion ourselves.
46654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46655         wcsnlen, mbrtowc, wcrtomb.
46656         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46657         * tests/test-vasprintf-posix.c (test_function): Likewise.
46658         * tests/test-snprintf-posix.h (test_function): Likewise.
46659         * tests/test-sprintf-posix.h (test_function): Likewise.
46660         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46661
46662 2009-02-22  Bruno Haible  <bruno@clisp.org>
46663
46664         Implement new clarified decomposition of Hangul syllables.
46665         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46666         of type LTV, return only a pairwise decomposition.
46667         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46668         Likewise.
46669         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46670         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46671         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46672
46673 2009-02-22  Bruno Haible  <bruno@clisp.org>
46674
46675         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46676         zero-length results and shrink excess allocated memory.
46677         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46678         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46679         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46680         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46681         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46682         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46683         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46684         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46685         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46686         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46687         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46688         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46689
46690 2009-02-21  Bruno Haible  <bruno@clisp.org>
46691
46692         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46693         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46694         spaces after a period. Put a space between a macro name and its
46695         argument list. Trivial rewordings.
46696         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46697         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46698         (main): Return 0 explicitly.
46699
46700 2009-02-21  Bruno Haible  <bruno@clisp.org>
46701
46702         Tests for module 'uninorm/filter'.
46703         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46704         * modules/uninorm/filter-tests: New file.
46705
46706         New module 'uninorm/filter'.
46707         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46708         uninorm_filter_flush, uninorm_filter_free): New declarations.
46709         * lib/uninorm/uninorm-filter.c: New file.
46710         * modules/uninorm/filter: New file.
46711
46712 2009-02-21  Bruno Haible  <bruno@clisp.org>
46713
46714         Tests for module 'uninorm/nfkc'.
46715         * tests/uninorm/test-nfkc.c: New file.
46716         * tests/uninorm/test-u8-nfkc.c: New file.
46717         * tests/uninorm/test-u16-nfkc.c: New file.
46718         * tests/uninorm/test-u32-nfkc.c: New file.
46719         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46720         * tests/uninorm/test-u32-nfkc-big.c: New file.
46721         * modules/uninorm/nfkc-tests: New file.
46722
46723         New module 'uninorm/nfkc'.
46724         * lib/uninorm/nfkc.c: New file.
46725         * modules/uninorm/nfkc: New file.
46726
46727         Tests for module 'uninorm/nfkd'.
46728         * tests/uninorm/test-nfkd.c: New file.
46729         * tests/uninorm/test-u8-nfkd.c: New file.
46730         * tests/uninorm/test-u16-nfkd.c: New file.
46731         * tests/uninorm/test-u32-nfkd.c: New file.
46732         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46733         * tests/uninorm/test-u32-nfkd-big.c: New file.
46734         * modules/uninorm/nfkd-tests: New file.
46735
46736         New module 'uninorm/nfkd'.
46737         * lib/uninorm/nfkd.c: New file.
46738         * modules/uninorm/nfkd: New file.
46739
46740         Tests for module 'uninorm/nfc'.
46741         * tests/uninorm/test-nfc.c: New file.
46742         * tests/uninorm/test-u8-nfc.c: New file.
46743         * tests/uninorm/test-u16-nfc.c: New file.
46744         * tests/uninorm/test-u32-nfc.c: New file.
46745         * tests/uninorm/test-u32-nfc-big.sh: New file.
46746         * tests/uninorm/test-u32-nfc-big.c: New file.
46747         * modules/uninorm/nfc-tests: New file.
46748
46749         New module 'uninorm/nfc'.
46750         * lib/uninorm/nfc.c: New file.
46751         * modules/uninorm/nfc: New file.
46752
46753         Tests for module 'uninorm/nfd'.
46754         * tests/uninorm/test-nfd.c: New file.
46755         * tests/uninorm/test-u8-nfd.c: New file.
46756         * tests/uninorm/test-u16-nfd.c: New file.
46757         * tests/uninorm/test-u32-nfd.c: New file.
46758         * tests/uninorm/test-u32-nfd-big.sh: New file.
46759         * tests/uninorm/test-u32-nfd-big.c: New file.
46760         * tests/uninorm/test-u32-normalize-big.h: New file.
46761         * tests/uninorm/test-u32-normalize-big.c: New file.
46762         * tests/uninorm/NormalizationTest.txt: New file, created from
46763         Unicode 5.1.0 NormalizationTest.txt.
46764         * modules/uninorm/nfd-tests: New file.
46765
46766         New module 'uninorm/nfd'.
46767         * lib/uninorm/nfd.c: New file.
46768         * modules/uninorm/nfd: New file.
46769
46770         New module 'uninorm/u32-normalize'.
46771         * lib/uninorm/u32-normalize.c: New file.
46772         * modules/uninorm/u32-normalize: New file.
46773
46774         New module 'uninorm/u16-normalize'.
46775         * lib/uninorm/u16-normalize.c: New file.
46776         * modules/uninorm/u16-normalize: New file.
46777
46778         New module 'uninorm/u8-normalize'.
46779         * lib/uninorm/u8-normalize.c: New file.
46780         * lib/uninorm/normalize-internal.h: New file.
46781         * lib/uninorm/u-normalize-internal.h: New file.
46782         * modules/uninorm/u8-normalize: New file.
46783
46784         New module 'uninorm/decompose-internal'.
46785         * lib/uninorm/decompose-internal.c: New file.
46786         * modules/uninorm/decompose-internal: New file.
46787
46788         Tests for module 'uninorm/composition'.
46789         * tests/uninorm/test-composition.c: New file.
46790         * modules/uninorm/composition-tests: New file.
46791
46792         New module 'uninorm/composition'.
46793         * lib/uninorm/composition.c: New file.
46794         * lib/uninorm/composition-table.gperf: New file, generated by
46795         gen-uni-tables.
46796         * modules/uninorm/composition: New file.
46797
46798         Tests for module 'uninorm/compat-decomposition'.
46799         * tests/uninorm/test-compat-decomposition.c: New file.
46800         * modules/uninorm/compat-decomposition-tests: New file.
46801
46802         New module 'uninorm/compat-decomposition'.
46803         * lib/uninorm/decompose-internal.h: New file.
46804         * lib/uninorm/compat-decomposition.c: New file.
46805         * modules/uninorm/compat-decomposition: New file.
46806
46807         Tests for module 'uninorm/canonical-decomposition'.
46808         * tests/uninorm/test-canonical-decomposition.c: New file.
46809         * modules/uninorm/canonical-decomposition-tests: New file.
46810
46811         New module 'uninorm/canonical-decomposition'.
46812         * lib/uninorm/canonical-decomposition.c: New file.
46813         * modules/uninorm/canonical-decomposition: New file.
46814
46815         Tests for module 'uninorm/decomposition'.
46816         * tests/uninorm/test-decomposition.c: New file.
46817         * modules/uninorm/decomposition-tests: New file.
46818
46819         New module 'uninorm/decomposition'.
46820         * lib/uninorm/decomposition.c: New file.
46821         * modules/uninorm/decomposition: New file.
46822
46823         New module 'uninorm/decomposition-table'.
46824         * lib/uninorm/decomposition-table.h: New file.
46825         * lib/uninorm/decomposition-table.c: New file.
46826         * lib/uninorm/decomposition-table1.h: New file, generated by
46827         gen-uni-tables.
46828         * lib/uninorm/decomposition-table2.h: New file, generated by
46829         gen-uni-tables.
46830         * modules/uninorm/decomposition-table: New file.
46831
46832         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46833         (UC_DECOMP_*): New enumeration items.
46834         (get_decomposition): New function.
46835         (struct decomp_table): New type.
46836         (output_decomposition, output_decomposition_tables): New functions.
46837         (unicode_composition_exclusions): New variable.
46838         (fill_composition_exclusions, debug_output_composition_tables): New
46839         functions.
46840         (main): Accept one more argument. Invoke fill_composition_exclusions.
46841         Output decomposition and composition tables.
46842
46843         New module 'uninorm/base'.
46844         * lib/uninorm.h: New file.
46845         * lib/unictype.h: Update comment.
46846         * modules/uninorm/base: New file.
46847
46848 2009-02-21  David Lutterkort  <lutter@redhat.com>
46849
46850         Tests for module 'safe-alloc'.
46851         * tests/test-safe-alloc.c: New file.
46852         * modules/safe-alloc-tests: New file.
46853
46854         New module 'safe-alloc'.
46855         * lib/safe-alloc.h: New file.
46856         * lib/safe-alloc.c: New file.
46857         * m4/safe-alloc.m4: New file.
46858         * modules/safe-alloc: New file.
46859         * doc/safe-alloc.texi: New file.
46860         * doc/gnulib.texi: Include it.
46861         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46862         safe-alloc.
46863
46864 2009-02-18  Bruno Haible  <bruno@clisp.org>
46865
46866         Fix link error on non-glibc systems.
46867         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46868         variable.
46869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46870
46871 2009-02-18  Jim Meyering  <meyering@redhat.com>
46872
46873         fts: avoid used-uninitialized error due to recent change
46874         * lib/fts.c (fts_read): Guard uses of the new member,
46875         parent->fts_n_dirs_remaining, since it's not relevant for
46876         the parent of a directory specified on the command-line.
46877
46878 2009-02-17  James Youngman  <jay@gnu.org>
46879             Bruno Haible  <bruno@clisp.org>
46880
46881         * m4/include_next.m4: Reformulate comment.
46882
46883 2009-02-16  Jim Meyering  <meyering@redhat.com>
46884
46885         fts: add #if guards so that the fts_lgpl module still builds
46886         * lib/fts.c: Guard just-added hash-table-using parts with
46887         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46888         Reported by Simon Josefsson.
46889
46890 2009-02-15  Bruno Haible  <bruno@clisp.org>
46891
46892         * modules/array-mergesort-tests: New file.
46893         * tests/test-array-mergesort.c: New file.
46894
46895         New module 'array-mergesort'.
46896         * modules/array-mergesort: New file.
46897         * lib/array-mergesort.h: New file.
46898
46899 2009-02-15  Bruno Haible  <bruno@clisp.org>
46900
46901         Fix 2009-02-07 commit.
46902         * lib/gen-uni-tables.c (output_predicate, output_category,
46903         output_combclass, output_bidi_category, output_decimal_digit,
46904         output_digit, output_numeric, output_mirror, output_scripts,
46905         output_ident_category, output_simple_mapping): Fix format directives.
46906         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46907
46908 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46909
46910         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46911         fixes are available from IBM.
46912
46913 2009-02-13  Jim Meyering  <meyering@redhat.com>
46914
46915         fts: arrange not to stat non-directories in more cases
46916         This makes GNU find (when it doesn't need to stat each file)
46917         *much* more efficient at traversing reiserfs file systems.
46918         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46919         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46920         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46921         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46922         (leaf_optimization_applies): New function.
46923         (LCO_hash, LCO_compare): New helper functions.
46924         (link_count_optimize_ok): New function.
46925         (fts_stat): Initialize new member (if dir).
46926         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46927         we've just stat'ed a directory.  Skip the stat call when possible.
46928         ---
46929         Note this AFS-related exchange:
46930         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46931         and note find's pioctl call in find/fstype.c.
46932         But that is necessary only if you want to enable the
46933         optimization for AFS, and for now, I don't.
46934
46935         fts: move a function definition "up" (no semantic change)
46936         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46937         "up" to precede upcoming use of a related function.
46938
46939 2009-02-11  Jim Meyering  <meyering@redhat.com>
46940
46941         fts: correct internal computation of nlinks (optimization-related)
46942         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46943         whether the current entry is a directory, so don't test it.
46944
46945 2009-02-10  Bruno Haible  <bruno@clisp.org>
46946
46947         Tests for module 'uniwbrk/ulc-wordbreaks'.
46948         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46949         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46950         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46951
46952         Tests for module 'uniwbrk/u32-wordbreaks'.
46953         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46954         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46955
46956         Tests for module 'uniwbrk/u16-wordbreaks'.
46957         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46958         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46959
46960         Tests for module 'uniwbrk/u8-wordbreaks'.
46961         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46962         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46963
46964 2009-02-10  Bruno Haible  <bruno@clisp.org>
46965
46966         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46967         property.
46968         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46969         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46970         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46971
46972 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46973
46974         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46975         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46976
46977 2009-02-10  Bruno Haible  <bruno@clisp.org>
46978
46979         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46980         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46981         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46982         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46983         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46984         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46985
46986 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46987
46988         * lib/sockets.h (gl_fd_to_handle): New function.
46989
46990         * tests/test-sockets.c: Call gl_fd_to_handle.
46991
46992 2009-02-09  Bruno Haible  <bruno@clisp.org>
46993
46994         * doc/havelib.texi: Document the conventions on bi-arch systems.
46995
46996 2009-02-08  Bruno Haible  <bruno@clisp.org>
46997
46998         Document the AC_LIB_LINKFLAGS macro.
46999         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47000         * doc/gnulib.texi: Include it.
47001
47002 2009-02-08  Bruno Haible  <bruno@clisp.org>
47003
47004         Fix wrong order of sections, compared to TOC.
47005         * doc/gnulib.texi: Include relocatable-maint.texi after the
47006         "Regular expressions" node, not before.
47007
47008 2009-02-08  Bruno Haible  <bruno@clisp.org>
47009
47010         Tests for module 'unicase/totitle'.
47011         * modules/unicase/totitle-tests: New file.
47012
47013         Tests for module 'unicase/tolower'.
47014         * modules/unicase/tolower-tests: New file.
47015
47016         Tests for module 'unicase/toupper'.
47017         * modules/unicase/toupper-tests: New file.
47018         * tests/unicase/test-mapping-part1.h: New file.
47019         * tests/unicase/test-mapping-part2.h: New file.
47020
47021         New module 'unicase/totitle'.
47022         * modules/unicase/totitle: New file.
47023         * lib/unicase/totitle.c: New file.
47024
47025         New module 'unicase/tolower'.
47026         * modules/unicase/tolower: New file.
47027         * lib/unicase/tolower.c: New file.
47028
47029         New module 'unicase/toupper'.
47030         * modules/unicase/toupper: New file.
47031         * lib/unicase/toupper.c: New file.
47032         * lib/unicase/simple-mapping.h: New file.
47033
47034         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47035         (mapping_table): New structure.
47036         (output_simple_mapping): New function.
47037         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47038         * modules/gen-uni-tables (Description): Update.
47039         * lib/unicase/toupper.h: New file, automatically generated by
47040         gen-uni-tables.
47041         * lib/unicase/tolower.h: New file, automatically generated by
47042         gen-uni-tables.
47043         * lib/unicase/totitle.h: New file, automatically generated by
47044         gen-uni-tables.
47045         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47046         gen-uni-tables.
47047         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47048         gen-uni-tables.
47049         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47050         gen-uni-tables.
47051
47052         New module 'unicase/base'.
47053         * modules/unicase/base: New file.
47054         * lib/unicase.h: New file.
47055
47056 2009-02-08  Bruno Haible  <bruno@clisp.org>
47057
47058         New module 'uniwbrk/ulc-wordbreaks'.
47059         * modules/uniwbrk/ulc-wordbreaks: New file.
47060         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47061
47062         New module 'uniwbrk/u32-wordbreaks'.
47063         * modules/uniwbrk/u32-wordbreaks: New file.
47064         * lib/uniwbrk/u32-wordbreaks.c: New file.
47065
47066         New module 'uniwbrk/u16-wordbreaks'.
47067         * modules/uniwbrk/u16-wordbreaks: New file.
47068         * lib/uniwbrk/u16-wordbreaks.c: New file.
47069
47070         New module 'uniwbrk/u8-wordbreaks'.
47071         * modules/uniwbrk/u8-wordbreaks: New file.
47072         * lib/uniwbrk/u8-wordbreaks.c: New file.
47073         * lib/uniwbrk/u-wordbreaks.h: New file.
47074
47075         New module 'uniwbrk/table'.
47076         * modules/uniwbrk/table: New file.
47077         * lib/uniwbrk/wbrktable.h: New file.
47078         * lib/uniwbrk/wbrktable.c: New file.
47079
47080         New module 'uniwbrk/wordbreak-property'.
47081         * modules/uniwbrk/wordbreak-property: New file.
47082         * lib/uniwbrk/wordbreak-property.c: New file.
47083
47084         * lib/gen-uni-tables.c (WBP_*): New enum items.
47085         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47086         (unicode_org_wbp): New variable.
47087         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47088         New functions.
47089         (wbp_table): New structure.
47090         (output_wbp, output_wbrk_tables): New functions.
47091         (main): Accept additional argument. Invoke fill_org_wbp,
47092         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47093         output_wbrk_tables.
47094         * modules/gen-uni-tables (Description): Update.
47095         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47096         gen-uni-tables.
47097
47098         New module 'uniwbrk/base'.
47099         * modules/uniwbrk/base: New file.
47100         * lib/uniwbrk.h: New file.
47101
47102 2009-02-08  Bruno Haible  <bruno@clisp.org>
47103
47104         Update to Unicode 5.1.0.
47105         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47106         U+2185..U+2188.
47107         (is_property_default_ignorable_code_point): Don't include characters
47108         of category Cc or Cs and not-a-characters.
47109         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47110         U+0D79, U+109E, U+109F, U+A60C.
47111         * lib/unictype/bidi_of.h: Regenerated.
47112         * lib/unictype/blocks.h: Regenerated.
47113         * lib/unictype/categ_C.h: Regenerated.
47114         * lib/unictype/categ_Cf.h: Regenerated.
47115         * lib/unictype/categ_Cn.h: Regenerated.
47116         * lib/unictype/categ_L.h: Regenerated.
47117         * lib/unictype/categ_Ll.h: Regenerated.
47118         * lib/unictype/categ_Lm.h: Regenerated.
47119         * lib/unictype/categ_Lo.h: Regenerated.
47120         * lib/unictype/categ_Lu.h: Regenerated.
47121         * lib/unictype/categ_M.h: Regenerated.
47122         * lib/unictype/categ_Mc.h: Regenerated.
47123         * lib/unictype/categ_Me.h: Regenerated.
47124         * lib/unictype/categ_Mn.h: Regenerated.
47125         * lib/unictype/categ_N.h: Regenerated.
47126         * lib/unictype/categ_Nd.h: Regenerated.
47127         * lib/unictype/categ_Nl.h: Regenerated.
47128         * lib/unictype/categ_No.h: Regenerated.
47129         * lib/unictype/categ_P.h: Regenerated.
47130         * lib/unictype/categ_Pd.h: Regenerated.
47131         * lib/unictype/categ_Pe.h: Regenerated.
47132         * lib/unictype/categ_Pf.h: Regenerated.
47133         * lib/unictype/categ_Pi.h: Regenerated.
47134         * lib/unictype/categ_Po.h: Regenerated.
47135         * lib/unictype/categ_Ps.h: Regenerated.
47136         * lib/unictype/categ_S.h: Regenerated.
47137         * lib/unictype/categ_Sk.h: Regenerated.
47138         * lib/unictype/categ_Sm.h: Regenerated.
47139         * lib/unictype/categ_So.h: Regenerated.
47140         * lib/unictype/categ_of.h: Regenerated.
47141         * lib/unictype/combining.h: Regenerated.
47142         * lib/unictype/ctype_alnum.h: Regenerated.
47143         * lib/unictype/ctype_alpha.h: Regenerated.
47144         * lib/unictype/ctype_graph.h: Regenerated.
47145         * lib/unictype/ctype_lower.h: Regenerated.
47146         * lib/unictype/ctype_print.h: Regenerated.
47147         * lib/unictype/ctype_punct.h: Regenerated.
47148         * lib/unictype/ctype_upper.h: Regenerated.
47149         * lib/unictype/decdigit.h: Regenerated.
47150         * lib/unictype/digit.h: Regenerated.
47151         * lib/unictype/mirror.h: Regenerated.
47152         * lib/unictype/numeric.h: Regenerated.
47153         * lib/unictype/pr_alphabetic.h: Regenerated.
47154         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47155         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47156         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47157         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47158         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47159         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47160         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47161         * lib/unictype/pr_combining.h: Regenerated.
47162         * lib/unictype/pr_dash.h: Regenerated.
47163         * lib/unictype/pr_decimal_digit.h: Regenerated.
47164         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47165         * lib/unictype/pr_deprecated.h: Regenerated.
47166         * lib/unictype/pr_diacritic.h: Regenerated.
47167         * lib/unictype/pr_extender.h: Regenerated.
47168         * lib/unictype/pr_format_control.h: Regenerated.
47169         * lib/unictype/pr_grapheme_base.h: Regenerated.
47170         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47171         * lib/unictype/pr_grapheme_link.h: Regenerated.
47172         * lib/unictype/pr_id_continue.h: Regenerated.
47173         * lib/unictype/pr_id_start.h: Regenerated.
47174         * lib/unictype/pr_ideographic.h: Regenerated.
47175         * lib/unictype/pr_ignorable_control.h: Regenerated.
47176         * lib/unictype/pr_lowercase.h: Regenerated.
47177         * lib/unictype/pr_math.h: Regenerated.
47178         * lib/unictype/pr_numeric.h: Regenerated.
47179         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47180         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47181         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47182         * lib/unictype/pr_other_id_continue.h: Regenerated.
47183         * lib/unictype/pr_other_lowercase.h: Regenerated.
47184         * lib/unictype/pr_other_math.h: Regenerated.
47185         * lib/unictype/pr_punctuation.h: Regenerated.
47186         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47187         * lib/unictype/pr_soft_dotted.h: Regenerated.
47188         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47189         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47190         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47191         * lib/unictype/pr_uppercase.h: Regenerated.
47192         * lib/unictype/pr_xid_continue.h: Regenerated.
47193         * lib/unictype/pr_xid_start.h: Regenerated.
47194         * lib/unictype/pr_zero_width.h: Regenerated.
47195         * lib/unictype/scripts.h: Regenerated.
47196         * lib/unictype/scripts_byname.gperf: Regenerated.
47197         * lib/unictype/sy_java_ident.h: Regenerated.
47198         * lib/unilbrk/lbrkprop1.h: Regenerated.
47199         * lib/unilbrk/lbrkprop2.h: Regenerated.
47200         * tests/unictype/test-categ_C.c: Regenerated.
47201         * tests/unictype/test-categ_Cf.c: Regenerated.
47202         * tests/unictype/test-categ_Cn.c: Regenerated.
47203         * tests/unictype/test-categ_L.c: Regenerated.
47204         * tests/unictype/test-categ_Ll.c: Regenerated.
47205         * tests/unictype/test-categ_Lm.c: Regenerated.
47206         * tests/unictype/test-categ_Lo.c: Regenerated.
47207         * tests/unictype/test-categ_Lu.c: Regenerated.
47208         * tests/unictype/test-categ_M.c: Regenerated.
47209         * tests/unictype/test-categ_Mc.c: Regenerated.
47210         * tests/unictype/test-categ_Me.c: Regenerated.
47211         * tests/unictype/test-categ_Mn.c: Regenerated.
47212         * tests/unictype/test-categ_N.c: Regenerated.
47213         * tests/unictype/test-categ_Nd.c: Regenerated.
47214         * tests/unictype/test-categ_Nl.c: Regenerated.
47215         * tests/unictype/test-categ_No.c: Regenerated.
47216         * tests/unictype/test-categ_P.c: Regenerated.
47217         * tests/unictype/test-categ_Pd.c: Regenerated.
47218         * tests/unictype/test-categ_Pe.c: Regenerated.
47219         * tests/unictype/test-categ_Pf.c: Regenerated.
47220         * tests/unictype/test-categ_Pi.c: Regenerated.
47221         * tests/unictype/test-categ_Po.c: Regenerated.
47222         * tests/unictype/test-categ_Ps.c: Regenerated.
47223         * tests/unictype/test-categ_S.c: Regenerated.
47224         * tests/unictype/test-categ_Sk.c: Regenerated.
47225         * tests/unictype/test-categ_Sm.c: Regenerated.
47226         * tests/unictype/test-categ_So.c: Regenerated.
47227         * tests/unictype/test-ctype_alnum.c: Regenerated.
47228         * tests/unictype/test-ctype_alpha.c: Regenerated.
47229         * tests/unictype/test-ctype_graph.c: Regenerated.
47230         * tests/unictype/test-ctype_lower.c: Regenerated.
47231         * tests/unictype/test-ctype_print.c: Regenerated.
47232         * tests/unictype/test-ctype_punct.c: Regenerated.
47233         * tests/unictype/test-ctype_upper.c: Regenerated.
47234         * tests/unictype/test-decdigit.h: Regenerated.
47235         * tests/unictype/test-digit.h: Regenerated.
47236         * tests/unictype/test-numeric.h: Regenerated.
47237         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47238         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47239         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47240         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47241         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47242         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47243         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47244         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47245         * tests/unictype/test-pr_combining.c: Regenerated.
47246         * tests/unictype/test-pr_dash.c: Regenerated.
47247         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47248         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47249         * tests/unictype/test-pr_deprecated.c: Regenerated.
47250         * tests/unictype/test-pr_diacritic.c: Regenerated.
47251         * tests/unictype/test-pr_extender.c: Regenerated.
47252         * tests/unictype/test-pr_format_control.c: Regenerated.
47253         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47254         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47255         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47256         * tests/unictype/test-pr_id_continue.c: Regenerated.
47257         * tests/unictype/test-pr_id_start.c: Regenerated.
47258         * tests/unictype/test-pr_ideographic.c: Regenerated.
47259         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47260         * tests/unictype/test-pr_lowercase.c: Regenerated.
47261         * tests/unictype/test-pr_math.c: Regenerated.
47262         * tests/unictype/test-pr_numeric.c: Regenerated.
47263         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47264         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47265         Regenerated.
47266         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47267         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47268         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47269         * tests/unictype/test-pr_other_math.c: Regenerated.
47270         * tests/unictype/test-pr_punctuation.c: Regenerated.
47271         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47272         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47273         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47274         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47275         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47276         * tests/unictype/test-pr_uppercase.c: Regenerated.
47277         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47278         * tests/unictype/test-pr_xid_start.c: Regenerated.
47279         * tests/unictype/test-pr_zero_width.c: Regenerated.
47280
47281         Update to Unicode 5.1.0.
47282         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47283         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47284         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47285         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47286         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47287         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47288         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47289         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47290         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47291         (nonspacing_table_ind): Update.
47292         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47293
47294         Update to Unicode 5.1.0.
47295         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47296         code transform.
47297         * lib/uniname/uniname.c (unicode_character_name,
47298         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47299         * lib/uniname/uninames.h: Regenerated.
47300         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47301
47302 2009-02-07  Bruno Haible  <bruno@clisp.org>
47303
47304         Merge gen-ctype and gen-lbrk into a single program.
47305         * lib/gen-uni-tables.c: New file, incorporating
47306         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47307         Add directory prefixes to the names of the generated files.
47308         * lib/unictype/gen-ctype.c: Remove file.
47309         * lib/unilbrk/gen-lbrk.c: Remove file.
47310         * modules/gen-uni-tables: New file.
47311         * modules/unictype/gen-ctype: Remove file.
47312         * modules/unilbrk/gen-lbrk: Remove file.
47313
47314 2009-02-07  Bruno Haible  <bruno@clisp.org>
47315
47316         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47317
47318         New module 'unistr/u32-strcoll'.
47319         * modules/unistr/u32-strcoll: New file.
47320         * lib/unistr/u32-strcoll.c: New file.
47321
47322         New module 'unistr/u16-strcoll'.
47323         * modules/unistr/u16-strcoll: New file.
47324         * lib/unistr/u16-strcoll.c: New file.
47325
47326         New module 'unistr/u8-strcoll'.
47327         * modules/unistr/u8-strcoll: New file.
47328         * lib/unistr/u8-strcoll.c: New file.
47329         * lib/unistr/u-strcoll.h: New file.
47330
47331 2009-02-07  Bruno Haible  <bruno@clisp.org>
47332
47333         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47334         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47335         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47336         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47337         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47338         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47339
47340 2009-02-07  Bruno Haible  <bruno@clisp.org>
47341
47342         Make 64-bit clean.
47343         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47344         output_combclass, output_bidi_category, output_decimal_digit,
47345         output_digit, output_numeric, output_mirror, output_scripts,
47346         output_ident_category): Use proper width specifier in format strings.
47347
47348 2009-02-07  Bruno Haible  <bruno@clisp.org>
47349
47350         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47351         failure behaviour.
47352
47353 2009-02-07  Jim Meyering  <meyering@redhat.com>
47354
47355         regex: avoid compilation failure with upcoming gcc-4.4
47356         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47357         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47358         "... error: integer overflow in preprocessor expression".
47359
47360 2009-02-05  Ben Pfaff  <blp@gnu.org>
47361
47362         Fix link errors on Windows when close module is used.
47363         * modules/close: Add $(LIB_CLOSE) to Link section.
47364         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47365         $(LIB_CLOSE) on Windows.
47366
47367 2009-02-05  Jim Meyering  <meyering@redhat.com>
47368
47369         still avoid unused-parameter warnings, but do it cleanly
47370         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47371         (get_fs_usage): Cast to void instead.
47372         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47373         (dev_from_mount_options, read_file_system_list): Cast to void.
47374         Prompted by Bruno Haible.
47375
47376 2009-02-04  Jim Meyering  <meyering@redhat.com>
47377
47378         fsusage.c: correct copyright year
47379         * lib/fsusage.c: Reflect year in which the change is pushed into
47380
47381         avoid misc. warnings
47382         * lib/fsusage.c (UNUSED_PARAM): Define.
47383         (get_fs_usage): Mark parameter "disk" as unused.
47384         * lib/getugroups.c (getgrent): Use "void" in prototype.
47385         * lib/mountlist.c: Mark unused parameters.
47386         (read_file_system_list): Declare a local with "const".
47387         * lib/nanosleep.c (getnow): Declare static.
47388         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47389
47390         dirfd: set errno upon failure
47391         * lib/dirfd.c: Include <errno.h>.
47392         Set errno to ENOTSUP when returning -1.
47393         * modules/dirfd (Depends-on): Add errno.
47394         Suggested by John Kodis <kodis@comcast.net>.
47395
47396 2009-02-01  Bruno Haible  <bruno@clisp.org>
47397
47398         Don't assume sizeof (long) >= sizeof (void *).
47399         * lib/memcmp.c: Include stdint.h.
47400         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47401         srcp2 to 'const byte *'.
47402         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47403         types to uintptr_t.
47404         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47405         * modules/memcmp (Depends-on): Add stdint.
47406         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47407
47408 2009-01-30  Eric Blake  <ebb9@byu.net>
47409
47410         fix more require-before-expand issues
47411         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47412         expand, AC_PROG_AWK.
47413         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47414
47415 2009-01-28  Eric Blake  <ebb9@byu.net>
47416
47417         version-etc: use consistent URL formatting
47418         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47419         Improve formatting.  Use fputs for string without %.
47420
47421 2009-01-28  Jim Meyering  <meyering@redhat.com>
47422
47423         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47424         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47425         "underquoted definition of NAME" from autoconf-2.59.
47426
47427 2009-01-28  Bruno Haible  <bruno@clisp.org>
47428
47429         * doc/gnulib.texi: Add "Obsolete modules" to index.
47430
47431 2009-01-28  Jim Meyering  <meyering@redhat.com>
47432
47433         useless-if-before-free: recognize more variants
47434         * build-aux/useless-if-before-free: Also recognize e.g.,
47435         if (NULL != p) free (p);
47436
47437 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47438
47439         test-getaddrinfo: skip (don't fail) this test when there's no network
47440         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47441         on the presumption that it means you lack network access.
47442
47443 2009-01-26  Jim Meyering  <meyering@redhat.com>
47444
47445         fflush: avoid warnings on modern systems
47446         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47447         pos and result, into scopes where they're used.
47448
47449 2009-01-26  Eric Blake  <ebb9@byu.net>
47450
47451         Silence warning reintroduced by recent extensions patch.
47452         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47453         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47454         autoconf.
47455
47456         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47457         * m4/00gnulib.m4: New file.
47458         * gnulib-tool (func_get_filelist): Always use it.
47459         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47460         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47461
47462 2009-01-25  Bruno Haible  <bruno@clisp.org>
47463
47464         Make test-quotearg work on MacOS X and AIX.
47465         * tests/test-quotearg.sh: New file.
47466         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47467         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47468         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47469         include <libintl.h>.
47470         (fake_locale): Remove variable.
47471         (gettext, dgettext, dcgettext): Remove functions.
47472         (main): Instead of setting a fake locale, set a real locale. Call
47473         textdomain and bindtextdomain.
47474         * modules/quotearg-tests (Files): Add the new files.
47475         (Depends-on): Add gettext, setenv, unsetenv.
47476         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47477         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47478         Augment TESTS_ENVIRONMENT.
47479
47480 2009-01-25  Bruno Haible  <bruno@clisp.org>
47481
47482         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47483         fr_FR.ISO8859-1 locale on MacOS X.
47484         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47485         ja_JP.eucJP locale on MacOS X.
47486         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47487         zh_CN.GB18030 locale on MacOS X.
47488
47489 2009-01-25  Bruno Haible  <bruno@clisp.org>
47490
47491         Avoid link errors on MacOS X 10.3.
47492         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47493         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47494
47495 2009-01-25  Bruno Haible  <bruno@clisp.org>
47496
47497         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47498         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47499         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47500         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47501         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47502         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47503         posix_spawnattr_init, posix_spawnattr_setsigmask,
47504         posix_spawnattr_setflags, posix_spawnattr_destroy.
47505
47506         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47507         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47508         * modules/execute (Files): Remove m4/posix_spawn.m4.
47509         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47510         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47511         posix_spawnattr_init, posix_spawnattr_setsigmask,
47512         posix_spawnattr_setflags, posix_spawnattr_destroy.
47513
47514 2009-01-25  Bruno Haible  <bruno@clisp.org>
47515
47516         * lib/glthread/threadlib.c: Include <stdlib.h>.
47517
47518 2009-01-25  Bruno Haible  <bruno@clisp.org>
47519
47520         * lib/glthread/threadlib.c (dummy): New declaration.
47521
47522 2009-01-25  Bruno Haible  <bruno@clisp.org>
47523
47524         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47525         multibyte characters also for the GB18030 encoding. Don't crash when
47526         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47527
47528 2009-01-25  Bruno Haible  <bruno@clisp.org>
47529
47530         Avoid redefining 'struct random_data' on OSF/1 5.1.
47531         * lib/stdlib.in.h: Include <random.h> if it exists.
47532         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47533         HAVE_RANDOM_H. Include <random.h> when testing whether
47534         'struct random_data' exists.
47535         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47536
47537 2009-01-25  Bruno Haible  <bruno@clisp.org>
47538
47539         Don't install charset.alias on MacOS X >= 10.3.
47540         * lib/localcharset.c (DARWIN7): New macro.
47541         (get_charset_aliases): Hardcode the result for Darwin7.
47542         * modules/localcharset (install-exec-local): Don't install
47543         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47544
47545 2009-01-25  Bruno Haible  <bruno@clisp.org>
47546
47547         Don't install charset.alias on mingw and Cygwin.
47548         * modules/localcharset (install-exec-local): Don't install
47549         charset.alias on mingw and Cygwin, if the file does not yet exist.
47550         The result for these platforms is hardcoded in localcharset.c.
47551
47552 2009-01-25  Bruno Haible  <bruno@clisp.org>
47553
47554         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47556         before requiring AC_USE_SYSTEM_EXTENSIONS.
47557
47558 2009-01-25  Jim Meyering  <meyering@redhat.com>
47559
47560         c-strtod: avoid warnings
47561         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47562         "assignment discards qualifiers from pointer target type" warnings.
47563
47564 2009-01-24  Bruno Haible  <bruno@clisp.org>
47565
47566         Add support for non-UTF-8 locales on MacOS X.
47567         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47568         canonical encodings. For Darwin 7 and newer, don't map traditional
47569         encodings to UTF-8.
47570         Reported by Vincent Lefevre <vincent@vinc17.org>
47571         at <http://savannah.gnu.org/bugs/?25235>.
47572
47573 2009-01-24  Bruno Haible  <bruno@clisp.org>
47574
47575         * doc/gnulib.texi (Obsolete modules): New section.
47576         Reported by Mike Frysinger <vapier@gentoo.org>.
47577
47578 2009-01-24  Bruno Haible  <bruno@clisp.org>
47579
47580         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47581         (%.dvi): New rule.
47582
47583 2009-01-24  Bruno Haible  <bruno@clisp.org>
47584
47585         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47586         Reported by Eric Blake.
47587
47588 2009-01-24  Bruno Haible  <bruno@clisp.org>
47589
47590         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47591         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47592         Reported by Gary V. Vaughan <gary@gnu.org>.
47593
47594 2009-01-24  Bruno Haible  <bruno@clisp.org>
47595
47596         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47597
47598 2009-01-23  Bruno Haible  <bruno@clisp.org>
47599
47600         Make c-strtod, c-strtold usable in libraries.
47601         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47602         (C_STRTOD): Call strdup instead of xstrdup.
47603         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47604         * modules/c-strtold (Depends-on): Likewise.
47605         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47606         * NEWS: Mention the change.
47607         Reported by Michael Gold <mgold@ncf.ca>.
47608
47609 2009-01-23  Jim Meyering  <meyering@redhat.com>
47610
47611         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47612         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47613         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47614
47615 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47616
47617         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47618         GNU CoreUtils.
47619         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47620         * modules/version-etc (Description): Update.
47621
47622 2009-01-22  Bruno Haible  <bruno@clisp.org>
47623
47624         Cache the C locale object.
47625         * lib/c-strtod.c (c_locale_cache): New variable.
47626         (c_locale): New function.
47627         (C_STRTOD): Use it, and don't call freelocale.
47628         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47629         Suggested by Paolo Bonzini.
47630
47631 2009-01-21  Bruno Haible  <bruno@clisp.org>
47632
47633         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47634         conditions other than overflow.
47635
47636 2009-01-21  Bruno Haible  <bruno@clisp.org>
47637
47638         * lib/c-strtod.c: Include errno.h.
47639         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47640         value from STRTOD_L and STRTOD.
47641
47642 2009-01-21  Bruno Haible  <bruno@clisp.org>
47643         and Jim Meyering  <meyering@redhat.com>
47644
47645         nanosleep: skip configure test (fail it) for apple universal builds
47646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47647         universal builds, assume that nanosleep does not work.
47648         * modules/nanosleep (Depends-on): Add multiarch.
47649
47650         mktime: skip configure test (fail it) for apple universal builds
47651         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47652         universal builds, assume that mktime does not work.
47653         * modules/mktime (Depends-on): Add multiarch.
47654
47655 2009-01-21  Eric Blake  <ebb9@byu.net>
47656
47657         multiarch: avoid expand-before-require warning
47658         * modules/multiarch (configure.ac): Require, rather than expand,
47659         gl_MULTIARCH.
47660         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47661         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47662         enforce that all clients require it.  Partial reversion of
47663         2008-12-29 patch.
47664
47665         error: avoid expand-before-require warning
47666         * modules/errno (configure.ac): Require, rather than expand,
47667         gl_HEADER_ERRNO_H.
47668         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47669         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47670         enforce that all clients require it.
47671
47672         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47673         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47674         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47675         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47676
47677 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47678
47679         Revert:
47680         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47681
47682         regex: do not depend on obsolete modules.
47683         * modules/regex: Remove memcmp and memmove.
47684
47685 2009-01-20  Bruno Haible  <bruno@clisp.org>
47686
47687         Make the 'link' module link on Windows NT 4.
47688         * lib/link.c (_WIN32_WINNT): Don't define.
47689         (CreateHardLinkFuncType): New type.
47690         (CreateHardLinkFunc, initialized): New variables.
47691         (initialize): New function.
47692         (link): Invoke CreateHardLink indirectly through the function pointer.
47693
47694 2009-01-20  Bruno Haible  <bruno@clisp.org>
47695
47696         Fix compilation failure on mingw.
47697         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47698
47699 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47700
47701         * doc/c-strtod.texi: Mention a couple of restrictions.
47702
47703 2009-01-20  Jim Meyering  <meyering@redhat.com>
47704
47705         gettimeofday: move more declarations out of functions
47706         * lib/gettimeofday.c: Move extern declarations of tzset and
47707         gmtime out of containing functions.  Prompted by Bruno Haible.
47708
47709 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47710
47711         regex: do not depend on obsolete modules.
47712         * modules/regex: Remove memcmp and memmove.
47713
47714 2009-01-19  Bruno Haible  <bruno@clisp.org>
47715
47716         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47717         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47718         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47719         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47720         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47721
47722 2009-01-19  Bruno Haible  <bruno@clisp.org>
47723
47724         * tests/test-link.c: Include <errno.h>.
47725         (main): Exit with code 77 when a hard link cannot be created due to
47726         the file system.
47727         * tests/test-link.sh: Skip test when a hard link cannot be created due
47728         to the file system.
47729         Suggested by Eric Blake.
47730
47731 2009-01-19  Martin Lambers  <marlam@marlam.de>
47732
47733         * modules/link-tests: New file.
47734         * tests/test-link.sh: New file.
47735         * tests/test-link.c: New file.
47736
47737 2009-01-19  Eric Blake  <ebb9@byu.net>
47738
47739         doc: mention another function added in cygwin 1.7.0
47740         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47741         Another new function in cygwin 1.7.
47742
47743 2009-01-19  Bruno Haible  <bruno@clisp.org>
47744
47745         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47746         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47747         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47748         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47749         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47750         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47751         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47752         * m4/md4.m4 (gl_MD4): Likewise.
47753         * m4/md5.m4 (gl_MD5): Likewise.
47754         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47755         * m4/sha1.m4 (gl_SHA1): Likewise.
47756         * m4/sha256.m4 (gl_SHA256): Likewise.
47757         * m4/sha512.m4 (gl_SHA512): Likewise.
47758
47759 2009-01-19  Bruno Haible  <bruno@clisp.org>
47760
47761         * modules/uniname/uniname-tests (Depends-on): Add progname.
47762         * tests/uniname/test-uninames.c: Include progname.h.
47763         (main): Call set_program_name.
47764
47765         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47766         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47767         (main): Call set_program_name.
47768
47769         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47770         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47771         (main): Call set_program_name.
47772
47773         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47774         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47775         (main): Call set_program_name.
47776
47777         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47778         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47779         (main): Call set_program_name.
47780
47781         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47782         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47783         (main): Call set_program_name.
47784
47785         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47786         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47787         (main): Call set_program_name.
47788
47789         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47790         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47791         (main): Call set_program_name.
47792
47793         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47794         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47795         (main): Call set_program_name.
47796
47797 2009-01-19  Eric Blake  <ebb9@byu.net>
47798
47799         test-unistd: test previous patch
47800         * tests/test-unistd.c: Test *_FILENO macros.
47801
47802         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47803         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47804         Guarantee a definition.
47805         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47806         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47807         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47808         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47809         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47810         Likewise.
47811         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47812         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47813         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47814         Likewise.
47815         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47816         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47817         (STDERR_FILENO): Likewise.
47818         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47819         (STDERR_FILENO): Likewise.
47820         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47821         (STDERR_FILENO): Likewise.
47822         Reported by Elbert Pol.
47823
47824 2009-01-19  Eric Blake  <ebb9@byu.net>
47825
47826         doc: mention more functions added in cygwin 1.7.0
47827         * doc/posix-functions/abort.texi (abort): Update wording related
47828         to cygwin.
47829         * doc/posix-functions/daylight.texi (daylight): Likewise.
47830         * doc/posix-functions/optarg.texi (optarg): Likewise.
47831         * doc/posix-functions/optarg.texi (opterr): Likewise.
47832         * doc/posix-functions/optarg.texi (optind): Likewise.
47833         * doc/posix-functions/optarg.texi (optopt): Likewise.
47834         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47835         worked in 1.5.x, and was withdrawn in 1.7.
47836         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47837         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47838         cygwin versions.
47839         * doc/posix-functions/perror.texi (perror): Likewise.
47840         * doc/posix-functions/printf.texi (printf): Likewise.
47841         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47842         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47843         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47844         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47845         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47846         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47847         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47848         Likewise.
47849         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47850         Likewise.
47851         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47852         this function.
47853         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47854         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47855         Likewise.
47856         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47857         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47858         * doc/posix-functions/confstr.texi (confstr): Likewise.
47859         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47860         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47861         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47862         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47863         * doc/posix-functions/fputws.texi (fputws): Likewise.
47864         * doc/posix-functions/fwide.texi (fwide): Likewise.
47865         * doc/posix-functions/getwc.texi (getwc): Likewise.
47866         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47867         * doc/posix-functions/putwc.texi (putwc): Likewise.
47868         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47869         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47870         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47871         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47872         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47873         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47874         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47875         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47876         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47877         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47878         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47879
47880 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47881
47882         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47883         * lib/ioctl.c: Include <sys/ioctl.h>.
47884
47885 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47886
47887         * modules/getdate-tests (Depends-on): Add progname.
47888         * tests/test-getdate.c: Use progname module, to avoid link errors
47889         on non-glibc systems.
47890
47891 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47892
47893         * modules/filenamecat-tests (Depends-on): Add progname.
47894         * modules/fstrcmp-tests (Depends-on): Likewise.
47895
47896         * tests/test-filenamecat.c: Use progname module, to avoid link
47897         errors on non-glibc systems.
47898         * tests/test-fstrcmp.c: Likewise.
47899
47900 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47901
47902         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47903         * lib/gettimeofday.c: Move extern declaration out of function.
47904
47905 2009-01-18  Bruno Haible  <bruno@clisp.org>
47906
47907         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47908         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47909         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47910
47911 2009-01-18  Bruno Haible  <bruno@clisp.org>
47912
47913         * lib/strftime.c (MEMPCPY): Remove unused macro.
47914         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47915
47916 2009-01-18  Martin Lambers  <marlam@marlam.de>
47917
47918         New module 'link'.
47919         * lib/unistd.in.h (link): New declaration.
47920         * lib/link.c: New file.
47921         * m4/link.m4: New file.
47922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47923         HAVE_LINK.
47924         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47925         * modules/link: New file.
47926         * doc/posix-functions/link.texi: Mention the new module.
47927
47928 2009-01-18  Bruno Haible  <bruno@clisp.org>
47929
47930         * tests/test-avltree_list.c (main): Call set_program_name.
47931         * tests/test-avltree_oset.c (main): Likewise.
47932         * tests/test-obstack-printf.c: Include progname.h.
47933         (main): Call set_program_name.
47934         * tests/test-quotearg.c: Include progname.h.
47935         (main): Call set_program_name.
47936         * tests/test-xmemdup0.c: Include progname.h.
47937         (main): Call set_program_name.
47938
47939 2009-01-18  Bruno Haible  <bruno@clisp.org>
47940
47941         New module 'alphasort'.
47942         * lib/dirent.in.h (alphasort): New declaration.
47943         * lib/alphasort.c: New file, from glibc with modifications.
47944         * m4/alphasort.m4: New file.
47945         * modules/alphasort: New file.
47946         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47947         HAVE_ALPHASORT.
47948         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47949         HAVE_ALPHASORT.
47950         * doc/posix-functions/alphasort.texi: Mention the new module and the
47951         portability problems.
47952
47953 2009-01-18  Bruno Haible  <bruno@clisp.org>
47954
47955         New module 'scandir'.
47956         * lib/dirent.in.h (scandir): New declaration.
47957         * lib/scandir.c: New file, from glibc with modifications.
47958         * m4/scandir.m4: New file.
47959         * modules/scandir: New file.
47960         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47961         HAVE_SCANDIR.
47962         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47963         HAVE_SCANDIR.
47964         * doc/posix-functions/scandir.texi: Mention the new module and the
47965         portability problems.
47966
47967 2009-01-17  Bruno Haible  <bruno@clisp.org>
47968
47969         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47970         Update documentation.
47971         (func_remove_suffix): Escape all dots in the suffix. Update
47972         documentation.
47973         (func_filter_filelist): Update documentation.
47974         Reported by Ralf Wildenhues.
47975
47976 2009-01-17  Bruno Haible  <bruno@clisp.org>
47977
47978         * modules/dprintf-posix-tests: New file.
47979         * tests/test-dprintf-posix.sh: New file.
47980         * tests/test-dprintf-posix.c: New file.
47981
47982         New modules 'dprintf', 'dprintf-posix'.
47983         * lib/stdio.in.h (dprintf): New declaration.
47984         * lib/dprintf.c: New file.
47985         * m4/dprintf.m4: New file.
47986         * m4/dprintf-posix.m4: New file.
47987         * modules/dprintf: New file.
47988         * modules/dprintf-posix: New file.
47989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47990         HAVE_DPRINTF, REPLACE_DPRINTF.
47991         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47992         HAVE_DPRINTF, REPLACE_DPRINTF.
47993         * doc/posix-functions/dprintf.texi: Mention the new modules.
47994
47995 2009-01-17  Bruno Haible  <bruno@clisp.org>
47996
47997         * modules/vdprintf-posix-tests: New file.
47998         * tests/test-vdprintf-posix.sh: New file.
47999         * tests/test-vdprintf-posix.c: New file.
48000
48001         New modules 'vdprintf', 'vdprintf-posix'.
48002         * lib/stdio.in.h (vdprintf): New declaration.
48003         * lib/vdprintf.c: New file.
48004         * m4/vdprintf.m4: New file.
48005         * m4/vdprintf-posix.m4: New file.
48006         * modules/vdprintf: New file.
48007         * modules/vdprintf-posix: New file.
48008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48009         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48010         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48011         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48012         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48013
48014 2009-01-17  Bruno Haible  <bruno@clisp.org>
48015
48016         Fix replacement of fopen on mingw.
48017         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48018         mingw.
48019
48020 2009-01-17  Bruno Haible  <bruno@clisp.org>
48021
48022         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48023         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48024
48025 2009-01-17  Bruno Haible  <bruno@clisp.org>
48026
48027         Avoid test-fflush2.sh failure on mingw.
48028         * tests/test-fflush2.c: Include binary-io.h.
48029         (main): Put standard input into binary mode.
48030         * modules/fflush-tests (Depends-on): Add binary-io.
48031
48032 2009-01-17  Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/wchar.in.h: In another particular situation, include only the
48035         system's <wchar.h> file.
48036         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48037         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48038         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48039
48040 2009-01-17  Bruno Haible  <bruno@clisp.org>
48041
48042         Support for stripping executables in --enable-relocatable.
48043         * build-aux/install-reloc: Expect one more argument, or an environment
48044         variable RELOC_STRIP_PROG. If set, strip the destination program and
48045         its wrapper.
48046         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48047         RELOC_STRIP_PROG.
48048         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48049         to set RELOCATABLE_STRIP.
48050         * NEWS: Mention the new Makefile requirement.
48051
48052 2009-01-17  Bruno Haible  <bruno@clisp.org>
48053
48054         * build-aux/install-reloc: Remove debugging information left over by
48055         C compiler on MacOS X.
48056
48057 2009-01-17  Bruno Haible  <bruno@clisp.org>
48058
48059         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48060         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48061         _NSGetExecutablePath.
48062
48063 2009-01-16  Jim Meyering  <meyering@redhat.com>
48064
48065         strerror: avoid warnings about discarding "const"
48066         * lib/strerror.c (rpl_strerror): Instead of returning a const
48067         string from each and every "case", use a variable, and add a single
48068         cast after the switch.
48069
48070 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48071
48072         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48073
48074 2009-01-16  Bruno Haible  <bruno@clisp.org>
48075
48076         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48077         array initializer syntax that also works in C++ mode.
48078         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48079
48080 2009-01-16  Jim Meyering  <meyering@redhat.com>
48081
48082         poll: suppress a warning
48083         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48084         to ignore "...unsigned expression < 0 is always false" warnings.
48085
48086 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48087
48088         poll: remove declarations of unused variables
48089         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48090         sockbuf and optlen.
48091
48092 2009-01-15  Bruno Haible  <bruno@clisp.org>
48093
48094         Make fflush-after-ungetc POSIX compliant on BSD systems.
48095         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48096         (clear_ungetc_buffer): Implement also for other systems.
48097         (rpl_fflush): On glibc systems, invoke
48098         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48099         clear_ungetc_buffer after fetching the stream's position, not before.
48100
48101 2009-01-15  Bruno Haible  <bruno@clisp.org>
48102
48103         Make fflush-after-ungetc POSIX compliant on glibc systems.
48104         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48105         after ungetc.
48106         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48107         (rpl_fflush): On glibc systems, simply call the system's fflush
48108         function after clearing the ungetc buffer.
48109         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48110         Instead, lseek only to the end of file, then use the system's fseeko
48111         for the rest. On glibc systems, reset the EOF indicator bit.
48112
48113 2009-01-15  Jim Meyering  <meyering@redhat.com>
48114
48115         openmp.m4: revert quote-adding change, for portability to older autoconf
48116         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48117         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48118         Simon Josefsson noticed the problem when using autoconf-2.61.
48119
48120 2009-01-15  Bruno Haible  <bruno@clisp.org>
48121
48122         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48123         * tests/test-fflush2.c (ASSERT): Always fail.
48124         (main): Add two tests for fflush() after ungetc(), taking into account
48125         the Austin Group's clarification.
48126         Suggested by Eric Blake.
48127
48128 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48129
48130         mktime.m4: remove K&R-style function prototypes
48131         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48132         for the Sun C++ compiler.
48133
48134 2009-01-14  Bruno Haible  <bruno@clisp.org>
48135
48136         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48137         while including <wchar.h>.
48138         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48139         the system's <wchar.h> file.
48140         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48141
48142 2009-01-14  Bruno Haible  <bruno@clisp.org>
48143
48144         * m4/csharp.m4: Don't mention gettext on the serial number line.
48145         * m4/csharpexec.m4: Likewise.
48146         * m4/eaccess.m4: Likewise.
48147         * m4/javaexec.m4: Likewise.
48148         * m4/sig_atomic_t.m4: Likewise.
48149         * m4/tmpdir.m4: Likewise.
48150         * m4/intldir.m4: Bump gettext version.
48151         * m4/lib-ld.m4: Likewise.
48152
48153 2009-01-14  Bruno Haible  <bruno@clisp.org>
48154
48155         * lib/progname.c (set_program_name): Add more comments.
48156         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48157
48158 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48159
48160         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48161         were sys/stat.h does not define it.
48162
48163 2009-01-14  Jim Meyering  <meyering@redhat.com>
48164
48165         many *.m4 files: improve m4 quoting
48166         99% of this change was performed by running the following commands:
48167         git ls-files | grep '\.m4$' | xargs perl -pi \
48168           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48169           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48170           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48171           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48172         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48173         The remainder were to add Copyright dates, increment serial numbers,
48174         undo some changes in comments, exclude m4/intl.m4, and add quotes
48175         around the "1" in ",1" where the unusual spacing prohibited the
48176         above regexps from doing the job.  For more details, see
48177         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48178         * m4/acl.m4: Modified.
48179         * m4/afs.m4: Likewise.
48180         * m4/alloca.m4: Likewise.
48181         * m4/argp.m4: Likewise.
48182         * m4/argz.m4: Likewise.
48183         * m4/atexit.m4: Likewise.
48184         * m4/bison-i18n.m4: Likewise.
48185         * m4/bison.m4: Likewise.
48186         * m4/byteswap.m4: Likewise.
48187         * m4/c-stack.m4: Likewise.
48188         * m4/c-strtod.m4: Likewise.
48189         * m4/calloc.m4: Likewise.
48190         * m4/canonicalize-lgpl.m4: Likewise.
48191         * m4/chown.m4: Likewise.
48192         * m4/clock_time.m4: Likewise.
48193         * m4/codeset.m4: Likewise.
48194         * m4/copy-file.m4: Likewise.
48195         * m4/csharp.m4: Likewise.
48196         * m4/csharpcomp.m4: Likewise.
48197         * m4/csharpexec.m4: Likewise.
48198         * m4/d-ino.m4: Likewise.
48199         * m4/d-type.m4: Likewise.
48200         * m4/dirfd.m4: Likewise.
48201         * m4/double-slash-root.m4: Likewise.
48202         * m4/eaccess.m4: Likewise.
48203         * m4/eealloc.m4: Likewise.
48204         * m4/environ.m4: Likewise.
48205         * m4/errno_h.m4: Likewise.
48206         * m4/euidaccess.m4: Likewise.
48207         * m4/execute.m4: Likewise.
48208         * m4/fatal-signal.m4: Likewise.
48209         * m4/fchdir.m4: Likewise.
48210         * m4/fcntl_h.m4: Likewise.
48211         * m4/fileblocks.m4: Likewise.
48212         * m4/filenamecat.m4: Likewise.
48213         * m4/findprog.m4: Likewise.
48214         * m4/flexmember.m4: Likewise.
48215         * m4/fnmatch.m4: Likewise.
48216         * m4/fopen.m4: Likewise.
48217         * m4/fpending.m4: Likewise.
48218         * m4/fprintf-posix.m4: Likewise.
48219         * m4/free.m4: Likewise.
48220         * m4/frexp.m4: Likewise.
48221         * m4/frexpl.m4: Likewise.
48222         * m4/fsusage.m4: Likewise.
48223         * m4/ftruncate.m4: Likewise.
48224         * m4/gc-camellia.m4: Likewise.
48225         * m4/gc-random.m4: Likewise.
48226         * m4/gc.m4: Likewise.
48227         * m4/getaddrinfo.m4: Likewise.
48228         * m4/getcwd-abort-bug.m4: Likewise.
48229         * m4/getcwd-path-max.m4: Likewise.
48230         * m4/getdate.m4: Likewise.
48231         * m4/getdomainname.m4: Likewise.
48232         * m4/getgroups.m4: Likewise.
48233         * m4/gethostname.m4: Likewise.
48234         * m4/gethrxtime.m4: Likewise.
48235         * m4/getline.m4: Likewise.
48236         * m4/getloadavg.m4: Likewise.
48237         * m4/getndelim2.m4: Likewise.
48238         * m4/getpass.m4: Likewise.
48239         * m4/gettext.m4: Likewise.
48240         * m4/gettime.m4: Likewise.
48241         * m4/gettimeofday.m4: Likewise.
48242         * m4/gnulib-common.m4: Likewise.
48243         * m4/group-member.m4: Likewise.
48244         * m4/host-os.m4: Likewise.
48245         * m4/iconv.m4: Likewise.
48246         * m4/iconv_open.m4: Likewise.
48247         * m4/inet_ntop.m4: Likewise.
48248         * m4/inet_pton.m4: Likewise.
48249         * m4/inline.m4: Likewise.
48250         * m4/intldir.m4: Likewise.
48251         * m4/intlmacosx.m4: Likewise.
48252         * m4/intmax.m4: Likewise.
48253         * m4/intmax_t.m4: Likewise.
48254         * m4/inttypes.m4: Likewise.
48255         * m4/inttypes_h.m4: Likewise.
48256         * m4/inttypes-pri.m4: Likewise.
48257         * m4/isapipe.m4: Likewise.
48258         * m4/isnand.m4: Likewise.
48259         * m4/isnanf.m4: Likewise.
48260         * m4/isnanl.m4: Likewise.
48261         * m4/javacomp.m4: Likewise.
48262         * m4/javaexec.m4: Likewise.
48263         * m4/jm-winsz1.m4: Likewise.
48264         * m4/jm-winsz2.m4: Likewise.
48265         * m4/lchown.m4: Likewise.
48266         * m4/lcmessage.m4: Likewise.
48267         * m4/ldexpl.m4: Likewise.
48268         * m4/lib-ld.m4: Likewise.
48269         * m4/lib-link.m4: Likewise.
48270         * m4/libsigsegv.m4: Likewise.
48271         * m4/link-follow.m4: Likewise.
48272         * m4/localcharset.m4: Likewise.
48273         * m4/locale-fr.m4: Likewise.
48274         * m4/locale-ja.m4: Likewise.
48275         * m4/locale-tr.m4: Likewise.
48276         * m4/locale-zh.m4: Likewise.
48277         * m4/lock.m4: Likewise.
48278         * m4/longlong.m4: Likewise.
48279         * m4/ls-mntd-fs.m4: Likewise.
48280         * m4/lstat.m4: Likewise.
48281         * m4/malloc.m4: Likewise.
48282         * m4/mathl.m4: Likewise.
48283         * m4/mbrtowc.m4: Likewise.
48284         * m4/mbstate_t.m4: Likewise.
48285         * m4/mbswidth.m4: Likewise.
48286         * m4/memchr.m4: Likewise.
48287         * m4/memcmp.m4: Likewise.
48288         * m4/memcpy.m4: Likewise.
48289         * m4/memmem.m4: Likewise.
48290         * m4/memmove.m4: Likewise.
48291         * m4/mempcpy.m4: Likewise.
48292         * m4/memrchr.m4: Likewise.
48293         * m4/memset.m4: Likewise.
48294         * m4/minmax.m4: Likewise.
48295         * m4/mkdir-slash.m4: Likewise.
48296         * m4/mkdtemp.m4: Likewise.
48297         * m4/mktime.m4: Likewise.
48298         * m4/mmap-anon.m4: Likewise.
48299         * m4/mountlist.m4: Likewise.
48300         * m4/nanosleep.m4: Likewise.
48301         * m4/nls.m4: Likewise.
48302         * m4/nocrash.m4: Likewise.
48303         * m4/open.m4: Likewise.
48304         * m4/openat.m4: Likewise.
48305         * m4/openmp.m4: Likewise.
48306         * m4/pathmax.m4: Likewise.
48307         * m4/perl.m4: Likewise.
48308         * m4/physmem.m4: Likewise.
48309         * m4/pipe.m4: Likewise.
48310         * m4/po.m4: Likewise.
48311         * m4/poll.m4: Likewise.
48312         * m4/posixtm.m4: Likewise.
48313         * m4/posixver.m4: Likewise.
48314         * m4/printf-frexp.m4: Likewise.
48315         * m4/printf-frexpl.m4: Likewise.
48316         * m4/printf-posix.m4: Likewise.
48317         * m4/printf-posix-rpl.m4: Likewise.
48318         * m4/printf.m4: Likewise.
48319         * m4/progtest.m4: Likewise.
48320         * m4/putenv.m4: Likewise.
48321         * m4/readline.m4: Likewise.
48322         * m4/readlink.m4: Likewise.
48323         * m4/readutmp.m4: Likewise.
48324         * m4/realloc.m4: Likewise.
48325         * m4/regex.m4: Likewise.
48326         * m4/relocatable.m4: Likewise.
48327         * m4/relocatable-lib.m4: Likewise.
48328         * m4/rename-dest-slash.m4: Likewise.
48329         * m4/rename.m4: Likewise.
48330         * m4/rmdir-errno.m4: Likewise.
48331         * m4/rmdir.m4: Likewise.
48332         * m4/roundf.m4: Likewise.
48333         * m4/roundl.m4: Likewise.
48334         * m4/rpmatch.m4: Likewise.
48335         * m4/save-cwd.m4: Likewise.
48336         * m4/selinux-selinux-h.m4: Likewise.
48337         * m4/setenv.m4: Likewise.
48338         * m4/settime.m4: Likewise.
48339         * m4/sig2str.m4: Likewise.
48340         * m4/sig_atomic_t.m4: Likewise.
48341         * m4/signalblocking.m4: Likewise.
48342         * m4/signbit.m4: Likewise.
48343         * m4/sigpipe.m4: Likewise.
48344         * m4/sockets.m4: Likewise.
48345         * m4/sockpfaf.m4: Likewise.
48346         * m4/st_dm_mode.m4: Likewise.
48347         * m4/stat-time.m4: Likewise.
48348         * m4/stdbool.m4: Likewise.
48349         * m4/stdint.m4: Likewise.
48350         * m4/stdint_h.m4: Likewise.
48351         * m4/stpcpy.m4: Likewise.
48352         * m4/stpncpy.m4: Likewise.
48353         * m4/strcase.m4: Likewise.
48354         * m4/strchrnul.m4: Likewise.
48355         * m4/strcspn.m4: Likewise.
48356         * m4/strdup.m4: Likewise.
48357         * m4/strftime.m4: Likewise.
48358         * m4/strndup.m4: Likewise.
48359         * m4/strnlen.m4: Likewise.
48360         * m4/strpbrk.m4: Likewise.
48361         * m4/strptime.m4: Likewise.
48362         * m4/strsep.m4: Likewise.
48363         * m4/strtod.m4: Likewise.
48364         * m4/strtoimax.m4: Likewise.
48365         * m4/strtok_r.m4: Likewise.
48366         * m4/strtol.m4: Likewise.
48367         * m4/strtoll.m4: Likewise.
48368         * m4/strtoul.m4: Likewise.
48369         * m4/strtoull.m4: Likewise.
48370         * m4/strtoumax.m4: Likewise.
48371         * m4/strverscmp.m4: Likewise.
48372         * m4/threadlib.m4: Likewise.
48373         * m4/timegm.m4: Likewise.
48374         * m4/tm_gmtoff.m4: Likewise.
48375         * m4/tmpdir.m4: Likewise.
48376         * m4/tmpfile.m4: Likewise.
48377         * m4/tzset.m4: Likewise.
48378         * m4/uintmax_t.m4: Likewise.
48379         * m4/unlinkdir.m4: Likewise.
48380         * m4/unlocked-io.m4: Likewise.
48381         * m4/uptime.m4: Likewise.
48382         * m4/userspec.m4: Likewise.
48383         * m4/utimbuf.m4: Likewise.
48384         * m4/utime.m4: Likewise.
48385         * m4/utimes-null.m4: Likewise.
48386         * m4/utimes.m4: Likewise.
48387         * m4/vararrays.m4: Likewise.
48388         * m4/vasnprintf.m4: Likewise.
48389         * m4/vfprintf-posix.m4: Likewise.
48390         * m4/vprintf-posix.m4: Likewise.
48391         * m4/wait-process.m4: Likewise.
48392         * m4/wchar_t.m4: Likewise.
48393         * m4/wint_t.m4: Likewise.
48394         * m4/write-any-file.m4: Likewise.
48395         * m4/yield.m4: Likewise.
48396
48397 2009-01-13  Bruno Haible  <bruno@clisp.org>
48398
48399         Avoid test-copy-file.sh failures when ACL support insufficient.
48400         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48401         TESTS_ENVIRONMENT.
48402         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48403         Reported by Jim Meyering.
48404
48405 2009-01-13  Bruno Haible  <bruno@clisp.org>
48406
48407         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48408         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48409         * modules/unistdio/u8-printf-parse (Files): Likewise.
48410         * modules/unistdio/u32-printf-parse (Files): Likewise.
48411         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48412
48413 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48414
48415         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48416         and m4/inttypes_h.m4 too.
48417
48418 2009-01-12  Eric Blake  <ebb9@byu.net>
48419
48420         tests: IRIX 6.2 cc can't compile -0.0 into .data
48421         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48422         rather than at compile-time.
48423         * tests/test-floorl.c (minus_zero): Likewise.
48424         * tests/test-frexpl.c (minus_zero): Likewise.
48425         * tests/test-isnan.c (minus_zerol): Likewise.
48426         * tests/test-isnanl.h (minus_zero): Likewise.
48427         * tests/test-ldexpl.c (minus_zero): Likewise.
48428         * tests/test-roundl.c (minus_zero): Likewise.
48429         * tests/test-signbit.c (minus_zerol): Likewise.
48430         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48431         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48432         * tests/test-truncl.c (minus_zero): Likewise.
48433         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48434         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48435         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48436
48437 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48438
48439         regex: fix glibc bug 9697
48440         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48441         handling.
48442
48443 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48444
48445         regex: fix glibc bug 697
48446         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48447         being NULL also if there are no backreferences.
48448
48449 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48450
48451         regex: merge glibc changes
48452         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48453         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48454         re_string_skip_chars, re_string_reconstruct): Likewise.
48455         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48456
48457 2009-01-07  Jim Meyering  <meyering@redhat.com>
48458
48459         poll: filter through cppi
48460         * lib/poll.c: Indent cpp directives to reflect nesting.
48461
48462 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48463
48464         poll: don't return uninitialized
48465         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48466
48467 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48468
48469         avoid compile failure on AIX 6.1
48470         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48471         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48472
48473 2009-01-04  Jim Meyering  <meyering@redhat.com>
48474
48475         remove duplicate inclusion of <stdio.h>
48476         * tests/test-fprintf-posix.c: Likewise.
48477         * tests/test-printf-posix.c: Likewise.
48478         * tests/test-snprintf-posix.c: Likewise.
48479         * tests/test-sprintf-posix.c: Likewise.
48480         * tests/test-vasprintf-posix.c: Likewise.
48481         * tests/test-vfprintf-posix.c: Likewise.
48482         * tests/test-vprintf-posix.c: Likewise.
48483         * tests/test-vsnprintf-posix.c: Likewise.
48484         * tests/test-vsprintf-posix.c: Likewise.
48485
48486 2009-01-03  Jim Meyering  <meyering@redhat.com>
48487
48488         gnulib-tool: fix sed-based filtering
48489         * gnulib-tool (func_filter_filelist): Remove extra backslash
48490         in sed_fff_filter definition.
48491
48492 2009-01-02  Jim Meyering  <meyering@redhat.com>
48493
48494         strftime: avoid compilation failure on Solaris 2.6
48495         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48496         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48497         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48498         be available.  Reported by Tom G. Christensen.  Details in
48499         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48500
48501 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48502             Bruno Haible  <bruno@clisp.org>
48503
48504         Speed up gnulib-tool by doing more string processing through shell
48505         built-ins.
48506         * gnulib-tool (fast_func_append): New variable.
48507         (func_remove_prefix, func_remove_suffix): New functions.
48508         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48509         (func_filter_filelist): New function.
48510         (func_get_dependencies): Use func_remove_suffix instead of sed.
48511         (func_get_automake_snippet): Use func_filter_filelist instead of a
48512         subshell and sed invocation.
48513
48514 2009-01-01  Bruno Haible  <bruno@clisp.org>
48515
48516         Fix a security bug.
48517         * gnulib-tool (func_import, import, update): Don't allow the characters
48518         '"', '$', '`', '\' in macro arguments that become part of commands that
48519         are evaluated.
48520
48521 2009-01-01  Bruno Haible  <bruno@clisp.org>
48522
48523         * gnulib-tool (func_reset_sigpipe): Add more comments.
48524
48525 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48526
48527         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48528         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48529         already know the answer.
48530
48531 2009-01-01  Jim Meyering  <meyering@redhat.com>
48532
48533         * lib/version-etc.c (version_etc_va): Update copyright year.
48534
48535 2008-12-30  Bruno Haible  <bruno@clisp.org>
48536
48537         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48538         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48539         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48540
48541 2008-12-29  Eric Blake  <ebb9@byu.net>
48542
48543         multiarch: avoid autoconf AC_REQUIRE bug
48544         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48545         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48546         2.63 and older.
48547         Reported by Bruno Haible, and analyzed in
48548         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48549
48550 2008-12-29  Bruno Haible  <bruno@clisp.org>
48551
48552         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48553         files in subdirectories correctly.
48554         Reported by Ralf Wildenhues.
48555
48556 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48557
48558         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48559         rather than 'join FILE -', for Solaris join.
48560
48561 2008-12-29  Bruno Haible  <bruno@clisp.org>
48562
48563         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48564         quoting.
48565         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48566         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48567         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48568         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48569         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48570         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48571         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48572         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48573         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48574         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48575         * m4/nls.m4 (AM_NLS): Likewise.
48576         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48577         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48578         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48579         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48580         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48581         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48582         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48583         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48584         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48585         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48586         * m4/xsize.m4 (gl_XSIZE): Likewise.
48587         Suggested by Jim Meyering.
48588
48589 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48590
48591         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48592         * lib/parse-duration.c: use a switch instead of cascading if's.
48593
48594 2008-12-29  Eric Blake  <ebb9@byu.net>
48595
48596         wchar.h: supply WEOF on Irix 5.3
48597         * lib/wchar.in.h (wint_t): Also supply WEOF.
48598         * lib/wctype.in.h (wint_t): Likewise.
48599         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48600         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48601         Reported by Tom G. Christensen.
48602
48603 2008-12-26  Bruno Haible  <bruno@clisp.org>
48604
48605         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48606         i486, i586, i686.
48607
48608 2008-12-26  Bruno Haible  <bruno@clisp.org>
48609
48610         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48611
48612 2008-12-26  Bruno Haible  <bruno@clisp.org>
48613
48614         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48615         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48616         not __STDC_CONSTANT_MACROS.
48617         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48618
48619 2008-12-25  Bruno Haible  <bruno@clisp.org>
48620
48621         Add support for universal builds to vasnprintf.
48622         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48623         universal builds, guess no.
48624         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48625         * modules/vasprintf-posix (Depends-on): Likewise.
48626         * modules/fprintf-posix (Depends-on): Likewise.
48627         * modules/vfprintf-posix (Depends-on): Likewise.
48628         * modules/snprintf-posix (Depends-on): Likewise.
48629         * modules/vsnprintf-posix (Depends-on): Likewise.
48630         * modules/sprintf-posix (Depends-on): Likewise.
48631         * modules/vsprintf-posix (Depends-on): Likewise.
48632         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48633         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48634         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48635         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48636         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48637         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48638         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48639
48640         Add support for universal builds to <inttypes.h>.
48641         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48642         _SCNu64_PREFIX): In Apple
48643         universal builds, define directly, using _LP64.
48644         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48645         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48646         * modules/inttypes (Depends-on): Add multiarch.
48647         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48648
48649         Add support for universal builds to <stdint.h>.
48650         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48651         universal builds, define directly, using _LP64.
48652         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48653         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48654         and size_t.
48655         * modules/stdint (Depends-on): Add multiarch.
48656         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48657
48658         New module 'multiarch'.
48659         * modules/multiarch: New file.
48660         * m4/multiarch.m4: New file.
48661
48662 2008-12-25  Bruno Haible  <bruno@clisp.org>
48663
48664         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48665
48666 2008-12-25  Bruno Haible  <bruno@clisp.org>
48667
48668         * modules/btowc (License): Relicense under LGPLv2+.
48669         * modules/mbsinit (License): Likewise.
48670         * modules/mbrtowc (License): Likewise.
48671         * modules/wcrtomb (License): Likewise.
48672         * modules/streq (License): Likewise.
48673         Reported by David Lutterkort <lutter@redhat.com>.
48674
48675 2008-12-23  Bruno Haible  <bruno@clisp.org>
48676
48677         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48678
48679 2008-12-23  Bruno Haible  <bruno@clisp.org>
48680
48681         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48682         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48683         GETADDRINFO_LIB, not in LIBS.
48684         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48685         * modules/canon-host (Link): Likewise.
48686         * NEWS: Mention the change.
48687         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48688         GETADDRINFO_LIB.
48689
48690 2008-12-22  Bruno Haible  <bruno@clisp.org>
48691
48692         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48693         * doc/posix-functions/iswalpha_l.texi: Likewise.
48694         * doc/posix-functions/iswblank_l.texi: Likewise.
48695         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48696         * doc/posix-functions/iswctype_l.texi: Likewise.
48697         * doc/posix-functions/iswdigit_l.texi: Likewise.
48698         * doc/posix-functions/iswgraph_l.texi: Likewise.
48699         * doc/posix-functions/iswlower_l.texi: Likewise.
48700         * doc/posix-functions/iswprint_l.texi: Likewise.
48701         * doc/posix-functions/iswpunct_l.texi: Likewise.
48702         * doc/posix-functions/iswspace_l.texi: Likewise.
48703         * doc/posix-functions/iswupper_l.texi: Likewise.
48704         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48705         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48706         * doc/posix-functions/open_wmemstream.texi: Likewise.
48707         * doc/posix-functions/swscanf.texi: Likewise.
48708         * doc/posix-functions/towctrans_l.texi: Likewise.
48709         * doc/posix-functions/towlower.texi: Likewise.
48710         * doc/posix-functions/towlower_l.texi: Likewise.
48711         * doc/posix-functions/towupper.texi: Likewise.
48712         * doc/posix-functions/towupper_l.texi: Likewise.
48713         * doc/posix-functions/vfwprintf.texi: Likewise.
48714         * doc/posix-functions/vfwscanf.texi: Likewise.
48715         * doc/posix-functions/vswscanf.texi: Likewise.
48716         * doc/posix-functions/vwprintf.texi: Likewise.
48717         * doc/posix-functions/vwscanf.texi: Likewise.
48718         * doc/posix-functions/wcpcpy.texi: Likewise.
48719         * doc/posix-functions/wcpncpy.texi: Likewise.
48720         * doc/posix-functions/wcscasecmp.texi: Likewise.
48721         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48722         * doc/posix-functions/wcscoll_l.texi: Likewise.
48723         * doc/posix-functions/wcsdup.texi: Likewise.
48724         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48725         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48726         * doc/posix-functions/wcsnlen.texi: Likewise.
48727         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48728         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48729         * doc/posix-functions/wctrans_l.texi: Likewise.
48730         * doc/posix-functions/wctype_l.texi: Likewise.
48731         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48732         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48733         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48734         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48735         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48736         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48737         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48738         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48739         * doc/glibc-functions/wcschrnul.texi: Likewise.
48740         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48741         * doc/glibc-functions/wcstod_l.texi: Likewise.
48742         * doc/glibc-functions/wcstof_l.texi: Likewise.
48743         * doc/glibc-functions/wcstol_l.texi: Likewise.
48744         * doc/glibc-functions/wcstold_l.texi: Likewise.
48745         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48746         * doc/glibc-functions/wcstoq.texi: Likewise.
48747         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48748         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48749         * doc/glibc-functions/wcstouq.texi: Likewise.
48750         * doc/glibc-functions/wmempcpy.texi: Likewise.
48751
48752 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48753             Eric Blake  <ebb9@byu.net>
48754             Paolo Bonzini  <bonzini@gnu.org>
48755             Bruno Haible  <bruno@clisp.org>
48756
48757         Make c-stack work on Haiku.
48758         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48759         (c_stack_action): Use SA_ONSTACK flag.
48760
48761 2008-12-22  Bruno Haible  <bruno@clisp.org>
48762
48763         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48764
48765 2008-12-22  Bruno Haible  <bruno@clisp.org>
48766
48767         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48768         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48769         being overridden.
48770         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48771         New macros.
48772         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48773         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48774         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48775         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48776
48777 2008-12-22  Bruno Haible  <bruno@clisp.org>
48778
48779         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48780         from test code.
48781
48782 2008-12-22  Eric Blake  <ebb9@byu.net>
48783
48784         Avoid gcc warnings on cygwin.
48785         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48786         Avoid unused variable.
48787         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48788         Likewise.
48789
48790 2008-12-22  Bruno Haible  <bruno@clisp.org>
48791
48792         Remove HAVE_MBRTOWC conditionals.
48793         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48794         (mbscasecmp): Assume mbrtowc function.
48795         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48796         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48797         * lib/mbschr.c: Include mbuiter.h unconditionally.
48798         (mbschr): Assume mbrtowc function.
48799         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48800         (mbscspn): Assume mbrtowc function.
48801         * lib/mbslen.c: Include mbuiter.h unconditionally.
48802         (mbslen): Assume mbrtowc function.
48803         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48804         (mbsncasecmp): Assume mbrtowc function.
48805         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48806         (mbsnlen): Assume mbrtowc function.
48807         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48808         (mbspbrk): Assume mbrtowc function.
48809         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48810         (mbspcasecmp): Assume mbrtowc function.
48811         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48812         (mbsrchr): Assume mbrtowc function.
48813         * lib/mbssep.c: Include mbuiter.h unconditionally.
48814         (mbssep): Assume mbrtowc function.
48815         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48816         (mbsspn): Assume mbrtowc function.
48817         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48818         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48819         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48820         (mbstok_r): Assume mbrtowc function.
48821         * lib/propername.c: Include mbuiter.h unconditionally.
48822         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48823         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48824         (trim2): Assume mbrtowc function.
48825         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48826         (mbsnwidth): Assume mbrtowc function.
48827         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48828         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48829         fallback definitions.
48830         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48831
48832 2008-12-22  Bruno Haible  <bruno@clisp.org>
48833
48834         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48835
48836 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48837
48838         * modules/regex: Request emulations for the mb*/wc* functions we need.
48839         * m4/regex.m4: Don't look for those functions here.
48840         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48841
48842 2008-12-22  Bruno Haible  <bruno@clisp.org>
48843
48844         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48845
48846 2008-12-21  Bruno Haible  <bruno@clisp.org>
48847
48848         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48849         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48850         (Include): Remove conditionalization.
48851         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48852         (Include): Remove conditionalization.
48853         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48854         (Include): Remove conditionalization.
48855         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48856         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48857         * NEWS: Mention the change.
48858         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48859         via Sergey Poznyakoff <gray@gnu.org.ua>.
48860
48861 2008-12-21  Bruno Haible  <bruno@clisp.org>
48862
48863         * MODULES.html.sh (Extended multibyte and wide character utilities
48864         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48865         wcrtomb, wcsrtombs.
48866         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48867         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48868         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48869         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48870
48871 2008-12-21  Bruno Haible  <bruno@clisp.org>
48872
48873         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48874
48875 2008-12-21  Bruno Haible  <bruno@clisp.org>
48876
48877         * modules/wcsnrtombs-tests: New file.
48878         * tests/test-wcsnrtombs1.sh: New file.
48879         * tests/test-wcsnrtombs2.sh: New file.
48880         * tests/test-wcsnrtombs3.sh: New file.
48881         * tests/test-wcsnrtombs4.sh: New file.
48882         * tests/test-wcsnrtombs.c: New file.
48883
48884         New module 'wcsnrtombs'.
48885         * lib/wchar.in.h (wcsnrtombs): New declaration.
48886         * lib/wcsnrtombs.c: New file.
48887         * lib/wcsrtombs-state.c: New file.
48888         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48889         (internal_state): Remove variable.
48890         * m4/wcsnrtombs.m4: New file.
48891         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48892         compilation units.
48893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48894         HAVE_WCSNRTOMBS.
48895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48896         HAVE_WCSNRTOMBS.
48897         * modules/wcsnrtombs: New file.
48898         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48899         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48900
48901 2008-12-21  Bruno Haible  <bruno@clisp.org>
48902
48903         * modules/wcsrtombs-tests: New file.
48904         * tests/test-wcsrtombs1.sh: New file.
48905         * tests/test-wcsrtombs2.sh: New file.
48906         * tests/test-wcsrtombs3.sh: New file.
48907         * tests/test-wcsrtombs4.sh: New file.
48908         * tests/test-wcsrtombs.c: New file.
48909
48910         New module 'wcsrtombs'.
48911         * lib/wchar.in.h (wcsrtombs): New declaration.
48912         * lib/wcsrtombs.c: New file.
48913         * m4/wcsrtombs.m4: New file.
48914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48915         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48916         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48917         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48918         * modules/wcsrtombs: New file.
48919         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48920         bugs.
48921
48922 2008-12-21  Bruno Haible  <bruno@clisp.org>
48923
48924         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48925         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48926         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48927         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48928         if not correct.
48929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48930         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48931         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48932         m4/locale-zh.m4, m4/codeset.m4.
48933         * doc/posix-functions/wcrtomb.texi: Document the bug.
48934
48935 2008-12-21  Bruno Haible  <bruno@clisp.org>
48936
48937         Work around a btowc() bug on IRIX 6.5.
48938         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48939         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48940         REPLACE_WTOBC if not.
48941         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48942         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48943         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48944
48945 2008-12-21  Bruno Haible  <bruno@clisp.org>
48946
48947         * modules/wcrtomb-tests: New file.
48948         * tests/test-wcrtomb.sh: New file.
48949         * tests/test-wcrtomb.c: New file.
48950
48951         New module 'wcrtomb'.
48952         * lib/wchar.in.h (wcrtomb): New declaration.
48953         * lib/wcrtomb.c: New file.
48954         * m4/wcrtomb.m4: New file.
48955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48956         HAVE_WCRTOMB.
48957         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48958         HAVE_WCRTOMB.
48959         * modules/wcrtomb: New file.
48960         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48961
48962 2008-12-21  Bruno Haible  <bruno@clisp.org>
48963
48964         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48965         * modules/mbsrtowcs (Files): Likewise.
48966         * modules/wctob (Files): Likewise.
48967         * modules/c-strcase-tests (Files): Likewise.
48968         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48969         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48970         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48971         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48972         * modules/vasnprintf-posix-tests (Files): Likewise.
48973
48974 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48975
48976         gitlog-to-changelog: pass all command-line arguments to git-log
48977         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48978         it is sometimes convenient to filter the commits in various ways.
48979         gitlog-to-changelog only allows --since to specify a start date,
48980         but git-log itself supports many other filtering mechanisms.
48981         At the moment, I want to filter by branch name.  Rather than
48982         adding a --branch option to gitlog-to-changelog, it seems more
48983         flexible to simply pass all options directly to git-log and let
48984         git do the work.  Notice that this effectively makes --since a
48985         redundant option for gitlog-to-changelog, but removing it would
48986         require current usage to change since calls would then require
48987         an additional '--'.
48988
48989 2008-12-21  Bruno Haible  <bruno@clisp.org>
48990
48991         * modules/mbsnrtowcs-tests: New file.
48992         * tests/test-mbsnrtowcs1.sh: New file.
48993         * tests/test-mbsnrtowcs2.sh: New file.
48994         * tests/test-mbsnrtowcs3.sh: New file.
48995         * tests/test-mbsnrtowcs4.sh: New file.
48996         * tests/test-mbsnrtowcs.c: New file.
48997
48998         New module 'mbsnrtowcs'.
48999         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49000         * lib/mbsnrtowcs.c: New file.
49001         * lib/mbsrtowcs-state.c: New file.
49002         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49003         (internal_state): Remove variable.
49004         * m4/mbsnrtowcs.m4: New file.
49005         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49006         compilation units.
49007         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49008         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49009         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49010         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49011         * modules/mbsnrtowcs: New file.
49012         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49013         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49014         portability problem.
49015
49016 2008-12-21  Bruno Haible  <bruno@clisp.org>
49017
49018         Work around mbsrtowcs bug.
49019         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49020         (gl_FUNC_MBSRTOWCS): Invoke it.
49021         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49022         m4/locale-zh.m4.
49023         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49024
49025 2008-12-21  Bruno Haible  <bruno@clisp.org>
49026
49027         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49028
49029 2008-12-21  Bruno Haible  <bruno@clisp.org>
49030
49031         Update doc for AIX.
49032         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49033         16-bit wchar_t type.
49034         * doc/posix-functions/btowc.texi: Likewise.
49035         * doc/posix-functions/fgetwc.texi: Likewise.
49036         * doc/posix-functions/fgetws.texi: Likewise.
49037         * doc/posix-functions/fputwc.texi: Likewise.
49038         * doc/posix-functions/fputws.texi: Likewise.
49039         * doc/posix-functions/fwide.texi: Likewise.
49040         * doc/posix-functions/fwprintf.texi: Likewise.
49041         * doc/posix-functions/fwscanf.texi: Likewise.
49042         * doc/posix-functions/getwchar.texi: Likewise.
49043         * doc/posix-functions/getwc.texi: Likewise.
49044         * doc/posix-functions/iswalnum.texi: Likewise.
49045         * doc/posix-functions/iswalpha.texi: Likewise.
49046         * doc/posix-functions/iswblank.texi: Likewise.
49047         * doc/posix-functions/iswcntrl.texi: Likewise.
49048         * doc/posix-functions/iswctype.texi: Likewise.
49049         * doc/posix-functions/iswdigit.texi: Likewise.
49050         * doc/posix-functions/iswgraph.texi: Likewise.
49051         * doc/posix-functions/iswlower.texi: Likewise.
49052         * doc/posix-functions/iswprint.texi: Likewise.
49053         * doc/posix-functions/iswpunct.texi: Likewise.
49054         * doc/posix-functions/iswspace.texi: Likewise.
49055         * doc/posix-functions/iswupper.texi: Likewise.
49056         * doc/posix-functions/iswxdigit.texi: Likewise.
49057         * doc/posix-functions/mbrtowc.texi: Likewise.
49058         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49059         * doc/posix-functions/mbstowcs.texi: Likewise.
49060         * doc/posix-functions/mbtowc.texi: Likewise.
49061         * doc/posix-functions/putwchar.texi: Likewise.
49062         * doc/posix-functions/putwc.texi: Likewise.
49063         * doc/posix-functions/swprintf.texi: Likewise.
49064         * doc/posix-functions/tolower.texi: Likewise.
49065         * doc/posix-functions/toupper.texi: Likewise.
49066         * doc/posix-functions/towctrans.texi: Likewise.
49067         * doc/posix-functions/ungetwc.texi: Likewise.
49068         * doc/posix-functions/vswprintf.texi: Likewise.
49069         * doc/posix-functions/wcrtomb.texi: Likewise.
49070         * doc/posix-functions/wcscat.texi: Likewise.
49071         * doc/posix-functions/wcschr.texi: Likewise.
49072         * doc/posix-functions/wcscmp.texi: Likewise.
49073         * doc/posix-functions/wcscoll.texi: Likewise.
49074         * doc/posix-functions/wcscpy.texi: Likewise.
49075         * doc/posix-functions/wcscspn.texi: Likewise.
49076         * doc/posix-functions/wcsftime.texi: Likewise.
49077         * doc/posix-functions/wcslen.texi: Likewise.
49078         * doc/posix-functions/wcsncat.texi: Likewise.
49079         * doc/posix-functions/wcsncmp.texi: Likewise.
49080         * doc/posix-functions/wcsncpy.texi: Likewise.
49081         * doc/posix-functions/wcspbrk.texi: Likewise.
49082         * doc/posix-functions/wcsrchr.texi: Likewise.
49083         * doc/posix-functions/wcsrtombs.texi: Likewise.
49084         * doc/posix-functions/wcsspn.texi: Likewise.
49085         * doc/posix-functions/wcsstr.texi: Likewise.
49086         * doc/posix-functions/wcstod.texi: Likewise.
49087         * doc/posix-functions/wcstof.texi: Likewise.
49088         * doc/posix-functions/wcstoimax.texi: Likewise.
49089         * doc/posix-functions/wcstok.texi: Likewise.
49090         * doc/posix-functions/wcstold.texi: Likewise.
49091         * doc/posix-functions/wcstoll.texi: Likewise.
49092         * doc/posix-functions/wcstol.texi: Likewise.
49093         * doc/posix-functions/wcstombs.texi: Likewise.
49094         * doc/posix-functions/wcstoull.texi: Likewise.
49095         * doc/posix-functions/wcstoul.texi: Likewise.
49096         * doc/posix-functions/wcstoumax.texi: Likewise.
49097         * doc/posix-functions/wcswidth.texi: Likewise.
49098         * doc/posix-functions/wcsxfrm.texi: Likewise.
49099         * doc/posix-functions/wctob.texi: Likewise.
49100         * doc/posix-functions/wctomb.texi: Likewise.
49101         * doc/posix-functions/wctrans.texi: Likewise.
49102         * doc/posix-functions/wctype.texi: Likewise.
49103         * doc/posix-functions/wcwidth.texi: Likewise.
49104         * doc/posix-functions/wmemchr.texi: Likewise.
49105         * doc/posix-functions/wmemcmp.texi: Likewise.
49106         * doc/posix-functions/wmemcpy.texi: Likewise.
49107         * doc/posix-functions/wmemmove.texi: Likewise.
49108         * doc/posix-functions/wmemset.texi: Likewise.
49109         * doc/posix-functions/wprintf.texi: Likewise.
49110         * doc/posix-functions/wscanf.texi: Likewise.
49111
49112 2008-12-21  Bruno Haible  <bruno@clisp.org>
49113
49114         Update doc for HP-UX 11.11.
49115         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49116         in HP-UX version 11.00, not in all versions of HP-UX 11.
49117         * doc/posix-functions/fwide.texi: Likewise.
49118         * doc/posix-functions/fwprintf.texi: Likewise.
49119         * doc/posix-functions/fwscanf.texi: Likewise.
49120         * doc/posix-functions/inet_ntop.texi: Likewise.
49121         * doc/posix-functions/inet_pton.texi: Likewise.
49122         * doc/posix-functions/mbrlen.texi: Likewise.
49123         * doc/posix-functions/mbrtowc.texi: Likewise.
49124         * doc/posix-functions/mbsinit.texi: Likewise.
49125         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49126         * doc/posix-functions/swprintf.texi: Likewise.
49127         * doc/posix-functions/swscanf.texi: Likewise.
49128         * doc/posix-functions/towctrans.texi: Likewise.
49129         * doc/posix-functions/vfwprintf.texi: Likewise.
49130         * doc/posix-functions/vswprintf.texi: Likewise.
49131         * doc/posix-functions/vwprintf.texi: Likewise.
49132         * doc/posix-functions/wcrtomb.texi: Likewise.
49133         * doc/posix-functions/wcsrtombs.texi: Likewise.
49134         * doc/posix-functions/wcsstr.texi: Likewise.
49135         * doc/posix-functions/wctob.texi: Likewise.
49136         * doc/posix-functions/wctrans.texi: Likewise.
49137         * doc/posix-functions/wmemchr.texi: Likewise.
49138         * doc/posix-functions/wmemcmp.texi: Likewise.
49139         * doc/posix-functions/wmemcpy.texi: Likewise.
49140         * doc/posix-functions/wmemmove.texi: Likewise.
49141         * doc/posix-functions/wmemset.texi: Likewise.
49142         * doc/posix-functions/wprintf.texi: Likewise.
49143         * doc/posix-functions/wscanf.texi: Likewise.
49144
49145 2008-12-21  Bruno Haible  <bruno@clisp.org>
49146
49147         Work around a portability problem.
49148         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49149         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49150
49151 2008-12-20  Bruno Haible  <bruno@clisp.org>
49152
49153         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49154         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49155         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49157         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49158
49159         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49160         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49161         set.
49162         (GNULIB_defined_mbstate_t): New macro.
49163         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49164         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49165         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49166         reuses the system's mbrtowc function but works around the bugs.
49167         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49168         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49169         macros.
49170         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49171         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49172         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49173         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49174         REPLACE_MBSINIT if mbsinit needs to be overridden.
49175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49176         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49177         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49178         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49179         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49180         m4/locale-zh.m4.
49181         (Depends): Add mbsinit.
49182         * modules/mbsinit (Depends): Add mbrtowc.
49183         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49184
49185 2008-12-20  Bruno Haible  <bruno@clisp.org>
49186
49187         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49188         so that there are no conversion errors on AIX.
49189         * tests/test-mbsrtowcs.c (main): LIkewise.
49190
49191 2008-12-20  Bruno Haible  <bruno@clisp.org>
49192
49193         Work around wctob bug on Solaris <= 9.
49194         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49195         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49196         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49197         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49198         * modules/wctob (Files): Add m4/locale-fr.m4.
49199         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49200
49201 2008-12-20  Bruno Haible  <bruno@clisp.org>
49202
49203         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49204         /dev/null.
49205         * tests/test-select-in.sh: Likewise.
49206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49207
49208 2008-12-20  Bruno Haible  <bruno@clisp.org>
49209
49210         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49211         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49212         Cygwin 1.5.x.
49213
49214 2008-12-20  Bruno Haible  <bruno@clisp.org>
49215
49216         Ensure mbstate_t is defined on HP-UX 11.11.
49217         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49218         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49219         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49220         AC_USE_SYSTEM_EXTENSIONS.
49221         * modules/fnmatch (Depends-on): Add extensions.
49222         * modules/mbrlen (Depends-on): Likewise.
49223         * modules/mbrtowc (Depends-on): Likewise.
49224         * modules/mbsinit (Depends-on): Likewise.
49225         * modules/mbsrtowcs (Depends-on): Likewise.
49226         * modules/mbswidth (Depends-on): Likewise.
49227         * modules/quotearg (Depends-on): Likewise.
49228         * modules/strftime (Depends-on): Likewise.
49229
49230 2008-12-20  Bruno Haible  <bruno@clisp.org>
49231
49232         Ensure wctob is declared on IRIX 6.5.
49233         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49234         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49235         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49237         of HAVE_WCTOB.
49238         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49239         HAVE_WCTOB.
49240         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49241
49242 2008-12-19  Bruno Haible  <bruno@clisp.org>
49243
49244         * modules/mbsrtowcs-tests: New file.
49245         * tests/test-mbsrtowcs1.sh: New file.
49246         * tests/test-mbsrtowcs2.sh: New file.
49247         * tests/test-mbsrtowcs3.sh: New file.
49248         * tests/test-mbsrtowcs4.sh: New file.
49249         * tests/test-mbsrtowcs.c: New file.
49250
49251         New module 'mbsrtowcs'.
49252         * lib/wchar.in.h (mbsrtowcs): New declaration.
49253         * lib/mbsrtowcs.c: New file.
49254         * m4/mbsrtowcs.m4: New file.
49255         * modules/mbsrtowcs: New file.
49256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49257         HAVE_MBSRTOWCS.
49258         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49259         HAVE_MBSRTOWCS.
49260         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49261
49262 2008-12-19  Bruno Haible  <bruno@clisp.org>
49263
49264         New module 'mbrlen'.
49265         * lib/wchar.in.h (mbrlen): New declaration.
49266         * lib/mbrlen.c: New file.
49267         * m4/mbrlen.m4: New file.
49268         * modules/mbrlen: New file.
49269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49270         HAVE_MBRLEN.
49271         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49272         HAVE_MBRLEN.
49273         * doc/posix-functions/mbrlen.texi: Document the new module.
49274
49275 2008-12-19  Bruno Haible  <bruno@clisp.org>
49276
49277         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49278         * modules/mbrtowc (Depends-on): Add verify.
49279         Suggested by Paul Eggert.
49280
49281 2008-12-18  Bruno Haible  <bruno@clisp.org>
49282
49283         * modules/mbsinit-tests: New file.
49284         * tests/test-mbsinit.sh: New file.
49285         * tests/test-mbsinit.c: New file.
49286
49287 2008-12-18  Bruno Haible  <bruno@clisp.org>
49288
49289         * modules/mbrtowc-tests: New file.
49290         * tests/test-mbrtowc1.sh: New file.
49291         * tests/test-mbrtowc2.sh: New file.
49292         * tests/test-mbrtowc3.sh: New file.
49293         * tests/test-mbrtowc4.sh: New file.
49294         * tests/test-mbrtowc.c: New file.
49295
49296         New module 'mbrtowc'.
49297         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49298         mbsinit and mbrtowc.
49299         (mbrtowc): New declaration.
49300         * lib/mbrtowc.c: New file.
49301         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49302         * modules/mbrtowc: New file.
49303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49304         HAVE_MBRTOWC.
49305         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49306         HAVE_MBRTOWC.
49307         * doc/posix-functions/mbrtowc.texi: Document the new module.
49308
49309 2008-12-18  Bruno Haible  <bruno@clisp.org>
49310
49311         New module 'wctob'.
49312         * lib/wchar.in.h (wctob): New declaration.
49313         * lib/wctob.c: New file.
49314         * m4/wctob.m4: New file.
49315         * modules/wctob: New file.
49316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49317         HAVE_WCTOB.
49318         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49319         * doc/posix-functions/wctob.texi: Document the new module.
49320
49321 2008-12-18  Bruno Haible  <bruno@clisp.org>
49322
49323         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49324         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49325
49326 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49327
49328         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49329         G. Christensen" <tgc@jupiterrise.com>.
49330
49331         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49332         G. Christensen" <tgc@jupiterrise.com>.
49333
49334         * lib/flock.c: Need to include string.h.  Reported by "Tom
49335         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49336         <ebb9@byu.net>.
49337
49338 2008-12-18  Bruno Haible  <bruno@clisp.org>
49339
49340         * m4/locale-ja.m4: New file, from GNU gettext.
49341
49342 2008-12-17  Bruno Haible  <bruno@clisp.org>
49343
49344         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49345         Suggested by Eric Blake.
49346
49347 2008-12-17  Bruno Haible  <bruno@clisp.org>
49348
49349         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49350
49351 2008-12-17  Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49354         * modules/mbsinit (Depends-on): Add verify.
49355         Suggested by Paul Eggert.
49356
49357 2008-12-17  Bruno Haible  <bruno@clisp.org>
49358
49359         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49360         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49361         gl_FUNC_MBRTOWC.
49362         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49363         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49364         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49365         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49366         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49367         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49368         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49369         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49370         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49371         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49372         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49373         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49374         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49375         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49376         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49377         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49378         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49379         * modules/trim (configure.ac): Likewise.
49380
49381 2008-12-17  Bruno Haible  <bruno@clisp.org>
49382
49383         * modules/btowc-tests: New file.
49384         * tests/test-btowc1.sh: New file.
49385         * tests/test-btowc2.sh: New file.
49386         * tests/test-btowc.c: New file.
49387
49388         New module 'btowc'.
49389         * lib/wchar.in.h (btowc): New declaration.
49390         * lib/btowc.c: New file.
49391         * m4/btowc.m4: New file.
49392         * modules/btowc: New file.
49393         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49394         HAVE_BTOWC.
49395         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49396         * doc/posix-functions/btowc.texi: Document the new module.
49397
49398 2008-12-17  Bruno Haible  <bruno@clisp.org>
49399
49400         New module 'mbsinit'.
49401         * lib/wchar.in.h (mbsinit): New declaration.
49402         * lib/mbsinit.c: New file.
49403         * m4/mbsinit.m4: New file.
49404         * modules/mbsinit: New file.
49405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49406         HAVE_MBSINIT.
49407         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49408         HAVE_MBSINIT.
49409         * doc/posix-functions/mbsinit.texi: Document the new module.
49410
49411 2008-12-16  Bruno Haible  <bruno@clisp.org>
49412
49413         * lib/unistd.in.h: Add comment.
49414         * tests/test-environ.c: Don't include <stdlib.h>.
49415
49416 2008-12-16  Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/parse-duration.h (parse_duration): Document return value
49419         convention.
49420         * lib/parse-duration.c: Include specification header first. Add
49421         comments.
49422         (_): Remove macro.
49423         (parse_year_month_day, parse_hour_minute_second): Move side effects
49424         outside of strchr call.
49425         (parse_non_iso8601): Move side effects outside of isspace call.
49426         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49427         call.
49428
49429 2008-12-16  Bruno Haible  <bruno@clisp.org>
49430
49431         * tests/test-parse-duration.sh: Produce no output when the test
49432         succeeds.
49433
49434 2008-12-16  Bruno Haible  <bruno@clisp.org>
49435
49436         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49437         expressions.
49438
49439 2008-12-15  Bruno Haible  <bruno@clisp.org>
49440
49441         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49442         * doc/glibc-functions/flistxattr.texi: Likewise.
49443         * doc/glibc-functions/fopencookie.texi: Likewise.
49444         * doc/glibc-functions/fremovexattr.texi: Likewise.
49445         * doc/glibc-functions/fsetxattr.texi: Likewise.
49446         * doc/glibc-functions/getxattr.texi: Likewise.
49447         * doc/glibc-functions/lgetxattr.texi: Likewise.
49448         * doc/glibc-functions/listxattr.texi: Likewise.
49449         * doc/glibc-functions/llistxattr.texi: Likewise.
49450         * doc/glibc-functions/lremovexattr.texi: Likewise.
49451         * doc/glibc-functions/lsetxattr.texi: Likewise.
49452         * doc/glibc-functions/removexattr.texi: Likewise.
49453         * doc/glibc-functions/setxattr.texi: Likewise.
49454         * doc/posix-functions/open_memstream.texi: Likewise.
49455
49456 2008-12-15  Eric Blake  <ebb9@byu.net>
49457
49458         Update doc for cygwin 1.7.
49459         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49460         functions.
49461         * doc/posix-functions/fchmodat.texi: Likewise.
49462         * doc/posix-functions/fchownat.texi: Likewise.
49463         * doc/posix-functions/fdopendir.texi: Likewise.
49464         * doc/posix-functions/fmemopen.texi: Likewise.
49465         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49466         * doc/posix-functions/fstatat.texi: Likewise.
49467         * doc/posix-functions/futimens.texi: Likewise.
49468         * doc/posix-functions/gai_strerror.texi: Likewise.
49469         * doc/posix-functions/getaddrinfo.texi: Likewise.
49470         * doc/posix-functions/getnameinfo.texi: Likewise.
49471         * doc/posix-functions/if_freenameindex.texi: Likewise.
49472         * doc/posix-functions/if_indextoname.texi: Likewise.
49473         * doc/posix-functions/if_nameindex.texi: Likewise.
49474         * doc/posix-functions/if_nametoindex.texi: Likewise.
49475         * doc/posix-functions/insque.texi: Likewise.
49476         * doc/posix-functions/linkat.texi: Likewise.
49477         * doc/posix-functions/llrint.texi: Likewise.
49478         * doc/posix-functions/llrintf.texi: Likewise.
49479         * doc/posix-functions/llrintl.texi: Likewise.
49480         * doc/posix-functions/lockf.texi: Likewise.
49481         * doc/posix-functions/lrintl.texi: Likewise.
49482         * doc/posix-functions/mkdirat.texi: Likewise.
49483         * doc/posix-functions/mkfifoat.texi: Likewise.
49484         * doc/posix-functions/mknodat.texi: Likewise.
49485         * doc/posix-functions/mq_close.texi: Likewise.
49486         * doc/posix-functions/mq_getattr.texi: Likewise.
49487         * doc/posix-functions/mq_notify.texi: Likewise.
49488         * doc/posix-functions/mq_open.texi: Likewise.
49489         * doc/posix-functions/mq_receive.texi: Likewise.
49490         * doc/posix-functions/mq_send.texi: Likewise.
49491         * doc/posix-functions/mq_setattr.texi: Likewise.
49492         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49493         * doc/posix-functions/mq_timedsend.texi: Likewise.
49494         * doc/posix-functions/mq_unlink.texi: Likewise.
49495         * doc/posix-functions/open_memstream.texi: Likewise.
49496         * doc/posix-functions/openat.texi: Likewise.
49497         * doc/posix-functions/posix_fadvise.texi: Likewise.
49498         * doc/posix-functions/posix_fallocate.texi: Likewise.
49499         * doc/posix-functions/posix_madvise.texi: Likewise.
49500         * doc/posix-functions/posix_memalign.texi: Likewise.
49501         * doc/posix-functions/posix_openpt.texi: Likewise.
49502         * doc/posix-functions/readlinkat.texi: Likewise.
49503         * doc/posix-functions/remque.texi: Likewise.
49504         * doc/posix-functions/renameat.texi: Likewise.
49505         * doc/posix-functions/rintl.texi: Likewise.
49506         * doc/posix-functions/sem_unlink.texi: Likewise.
49507         * doc/posix-functions/shm_open.texi: Likewise.
49508         * doc/posix-functions/shm_unlink.texi: Likewise.
49509         * doc/posix-functions/signgam.texi: Likewise.
49510         * doc/posix-functions/sigset.texi: Likewise.
49511         * doc/posix-functions/stpcpy.texi: Likewise.
49512         * doc/posix-functions/stpncpy.texi: Likewise.
49513         * doc/posix-functions/strerror.texi: Likewise.
49514         * doc/posix-functions/strtod.texi: Likewise.
49515         * doc/posix-functions/symlinkat.texi: Likewise.
49516         * doc/posix-functions/unlinkat.texi: Likewise.
49517         * doc/posix-functions/utimensat.texi: Likewise.
49518         * doc/glibc-functions/bindresvport.texi: Likewise.
49519         * doc/glibc-functions/dn_expand.texi: Likewise.
49520         * doc/glibc-functions/exp10.texi: Likewise.
49521         * doc/glibc-functions/exp10f.texi: Likewise.
49522         * doc/glibc-functions/fgetxattr.texi: Likewise.
49523         * doc/glibc-functions/flistxattr.texi: Likewise.
49524         * doc/glibc-functions/fopencookie.texi: Likewise.
49525         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49526         * doc/glibc-functions/fremovexattr.texi: Likewise.
49527         * doc/glibc-functions/fsetxattr.texi: Likewise.
49528         * doc/glibc-functions/getifaddrs.texi: Likewise.
49529         * doc/glibc-functions/getxattr.texi: Likewise.
49530         * doc/glibc-functions/lgetxattr.texi: Likewise.
49531         * doc/glibc-functions/listxattr.texi: Likewise.
49532         * doc/glibc-functions/llistxattr.texi: Likewise.
49533         * doc/glibc-functions/lremovexattr.texi: Likewise.
49534         * doc/glibc-functions/lsetxattr.texi: Likewise.
49535         * doc/glibc-functions/pow10.texi: Likewise.
49536         * doc/glibc-functions/pow10f.texi: Likewise.
49537         * doc/glibc-functions/rcmd_af.texi: Likewise.
49538         * doc/glibc-functions/removexattr.texi: Likewise.
49539         * doc/glibc-functions/res_init.texi: Likewise.
49540         * doc/glibc-functions/res_mkquery.texi: Likewise.
49541         * doc/glibc-functions/res_query.texi: Likewise.
49542         * doc/glibc-functions/res_querydomain.texi: Likewise.
49543         * doc/glibc-functions/res_send.texi: Likewise.
49544         * doc/glibc-functions/rresvport_af.texi: Likewise.
49545         * doc/glibc-functions/setxattr.texi: Likewise.
49546         * doc/glibc-functions/strcasestr.texi: Likewise.
49547
49548 2008-12-15  Bruno Haible  <bruno@clisp.org>
49549
49550         Fix compilation error on OSF/1 4.0.
49551         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49552         <sys/time.h>, simply delegate to the system header.
49553         Reported by Daniel Richard G. <oss@teragram.com>.
49554
49555 2008-12-15  Bruno Haible  <bruno@clisp.org>
49556
49557         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49558         * doc/posix-functions/fchmodat.texi: Likewise.
49559         * doc/posix-functions/fchownat.texi: Likewise.
49560         * doc/posix-functions/fdopendir.texi: Likewise.
49561         * doc/posix-functions/fstatat.texi: Likewise.
49562         * doc/posix-functions/mkdirat.texi: Likewise.
49563         * doc/posix-functions/unlinkat.texi: Likewise.
49564
49565 2008-12-14  Bruno Haible  <bruno@clisp.org>
49566
49567         Update doc for POSIX:2008.
49568         * doc/posix-functions/faccessat.texi: New file.
49569         * doc/posix-functions/fchmodat.texi: New file.
49570         * doc/posix-functions/fchownat.texi: New file.
49571         * doc/posix-functions/fdopendir.texi: New file.
49572         * doc/posix-functions/fstatat.texi: New file.
49573         * doc/posix-functions/futimens.texi: New file.
49574         * doc/posix-functions/linkat.texi: New file.
49575         * doc/posix-functions/mkdirat.texi: New file.
49576         * doc/posix-functions/mkfifoat.texi: New file.
49577         * doc/posix-functions/mknodat.texi: New file.
49578         * doc/posix-functions/open_wmemstream.texi: New file.
49579         * doc/posix-functions/openat.texi: New file.
49580         * doc/posix-functions/psiginfo.texi: New file.
49581         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49582         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49583         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49584         * doc/posix-functions/readlinkat.texi: New file.
49585         * doc/posix-functions/renameat.texi: New file.
49586         * doc/posix-functions/strerror_l.texi: New file.
49587         * doc/posix-functions/symlinkat.texi: New file.
49588         * doc/posix-functions/unlinkat.texi: New file.
49589         * doc/posix-functions/utimensat.texi: New file.
49590         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49591
49592 2008-12-14  Bruno Haible  <bruno@clisp.org>
49593
49594         Update doc for POSIX:2008.
49595         * doc/posix-functions/alphasort.texi: Renamed from
49596         doc/glibc-functions/alphasort.texi.
49597         * doc/posix-functions/dirfd.texi: Renamed from
49598         doc/glibc-functions/dirfd.texi.
49599         * doc/posix-functions/dprintf.texi: Renamed from
49600         doc/glibc-functions/dprintf.texi.
49601         * doc/posix-functions/duplocale.texi: Renamed from
49602         doc/glibc-functions/duplocale.texi.
49603         * doc/posix-functions/fexecve.texi: Renamed from
49604         doc/glibc-functions/fexecve.texi.
49605         * doc/posix-functions/fmemopen.texi: Renamed from
49606         doc/glibc-functions/fmemopen.texi.
49607         * doc/posix-functions/freelocale.texi: Renamed from
49608         doc/glibc-functions/freelocale.texi.
49609         * doc/posix-functions/getdate_err.texi: Renamed from
49610         doc/glibc-functions/getdate_err.texi.
49611         * doc/posix-functions/isalnum_l.texi: Renamed from
49612         doc/glibc-functions/isalnum_l.texi.
49613         * doc/posix-functions/isalpha_l.texi: Renamed from
49614         doc/glibc-functions/isalpha_l.texi.
49615         * doc/posix-functions/isblank_l.texi: Renamed from
49616         doc/glibc-functions/isblank_l.texi.
49617         * doc/posix-functions/iscntrl_l.texi: Renamed from
49618         doc/glibc-functions/iscntrl_l.texi.
49619         * doc/posix-functions/isdigit_l.texi: Renamed from
49620         doc/glibc-functions/isdigit_l.texi.
49621         * doc/posix-functions/isgraph_l.texi: Renamed from
49622         doc/glibc-functions/isgraph_l.texi.
49623         * doc/posix-functions/islower_l.texi: Renamed from
49624         doc/glibc-functions/islower_l.texi.
49625         * doc/posix-functions/isprint_l.texi: Renamed from
49626         doc/glibc-functions/isprint_l.texi.
49627         * doc/posix-functions/ispunct_l.texi: Renamed from
49628         doc/glibc-functions/ispunct_l.texi.
49629         * doc/posix-functions/isspace_l.texi: Renamed from
49630         doc/glibc-functions/isspace_l.texi.
49631         * doc/posix-functions/isupper_l.texi: Renamed from
49632         doc/glibc-functions/isupper_l.texi.
49633         * doc/posix-functions/iswalnum_l.texi: Renamed from
49634         doc/glibc-functions/iswalnum_l.texi.
49635         * doc/posix-functions/iswalpha_l.texi: Renamed from
49636         doc/glibc-functions/iswalpha_l.texi.
49637         * doc/posix-functions/iswblank_l.texi: Renamed from
49638         doc/glibc-functions/iswblank_l.texi.
49639         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49640         doc/glibc-functions/iswcntrl_l.texi.
49641         * doc/posix-functions/iswctype_l.texi: Renamed from
49642         doc/glibc-functions/iswctype_l.texi.
49643         * doc/posix-functions/iswdigit_l.texi: Renamed from
49644         doc/glibc-functions/iswdigit_l.texi.
49645         * doc/posix-functions/iswgraph_l.texi: Renamed from
49646         doc/glibc-functions/iswgraph_l.texi.
49647         * doc/posix-functions/iswlower_l.texi: Renamed from
49648         doc/glibc-functions/iswlower_l.texi.
49649         * doc/posix-functions/iswprint_l.texi: Renamed from
49650         doc/glibc-functions/iswprint_l.texi.
49651         * doc/posix-functions/iswpunct_l.texi: Renamed from
49652         doc/glibc-functions/iswpunct_l.texi.
49653         * doc/posix-functions/iswspace_l.texi: Renamed from
49654         doc/glibc-functions/iswspace_l.texi.
49655         * doc/posix-functions/iswupper_l.texi: Renamed from
49656         doc/glibc-functions/iswupper_l.texi.
49657         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49658         doc/glibc-functions/iswxdigit_l.texi.
49659         * doc/posix-functions/isxdigit_l.texi: Renamed from
49660         doc/glibc-functions/isxdigit_l.texi.
49661         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49662         doc/glibc-functions/mbsnrtowcs.texi.
49663         * doc/posix-functions/mkdtemp.texi: Renamed from
49664         doc/glibc-functions/mkdtemp.texi.
49665         * doc/posix-functions/newlocale.texi: Renamed from
49666         doc/glibc-functions/newlocale.texi.
49667         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49668         doc/glibc-functions/nl_langinfo_l.texi.
49669         * doc/posix-functions/open_memstream.texi: Renamed from
49670         doc/glibc-functions/open_memstream.texi.
49671         * doc/posix-functions/opterr.texi: Renamed from
49672         doc/glibc-functions/opterr.texi.
49673         * doc/posix-functions/optind.texi: Renamed from
49674         doc/glibc-functions/optind.texi.
49675         * doc/posix-functions/optopt.texi: Renamed from
49676         doc/glibc-functions/optopt.texi.
49677         * doc/posix-functions/psignal.texi: Renamed from
49678         doc/glibc-functions/psignal.texi.
49679         * doc/posix-functions/scandir.texi: Renamed from
49680         doc/glibc-functions/scandir.texi.
49681         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49682         doc/glibc-functions/sched_get_priority_min.texi.
49683         * doc/posix-functions/signgam.texi: Renamed from
49684         doc/glibc-functions/signgam.texi.
49685         * doc/posix-functions/stpcpy.texi: Renamed from
49686         doc/glibc-functions/stpcpy.texi.
49687         * doc/posix-functions/stpncpy.texi: Renamed from
49688         doc/glibc-functions/stpncpy.texi.
49689         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49690         doc/glibc-functions/strcasecmp_l.texi.
49691         * doc/posix-functions/strcoll_l.texi: Renamed from
49692         doc/glibc-functions/strcoll_l.texi.
49693         * doc/posix-functions/strfmon_l.texi: Renamed from
49694         doc/glibc-functions/strfmon_l.texi.
49695         * doc/posix-functions/strftime_l.texi: Renamed from
49696         doc/glibc-functions/strftime_l.texi.
49697         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49698         doc/glibc-functions/strncasecmp_l.texi.
49699         * doc/posix-functions/strndup.texi: Renamed from
49700         doc/glibc-functions/strndup.texi.
49701         * doc/posix-functions/strnlen.texi: Renamed from
49702         doc/glibc-functions/strnlen.texi.
49703         * doc/posix-functions/strsignal.texi: Renamed from
49704         doc/glibc-functions/strsignal.texi.
49705         * doc/posix-functions/strxfrm_l.texi: Renamed from
49706         doc/glibc-functions/strxfrm_l.texi.
49707         * doc/posix-functions/timer_gettime.texi: Renamed from
49708         doc/glibc-functions/timer_gettime.texi.
49709         * doc/posix-functions/tolower_l.texi: Renamed from
49710         doc/glibc-functions/tolower_l.texi.
49711         * doc/posix-functions/toupper_l.texi: Renamed from
49712         doc/glibc-functions/toupper_l.texi.
49713         * doc/posix-functions/towctrans_l.texi: Renamed from
49714         doc/glibc-functions/towctrans_l.texi.
49715         * doc/posix-functions/towlower_l.texi: Renamed from
49716         doc/glibc-functions/towlower_l.texi.
49717         * doc/posix-functions/towupper_l.texi: Renamed from
49718         doc/glibc-functions/towupper_l.texi.
49719         * doc/posix-functions/uselocale.texi: Renamed from
49720         doc/glibc-functions/uselocale.texi.
49721         * doc/posix-functions/vdprintf.texi: Renamed from
49722         doc/glibc-functions/vdprintf.texi.
49723         * doc/posix-functions/wcpcpy.texi:
49724         Renamed from doc/glibc-functions/wcpcpy.texi.
49725         * doc/posix-functions/wcpncpy.texi: Renamed from
49726         doc/glibc-functions/wcpncpy.texi.
49727         * doc/posix-functions/wcscasecmp.texi: Renamed from
49728         doc/glibc-functions/wcscasecmp.texi.
49729         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49730         doc/glibc-functions/wcscasecmp_l.texi.
49731         * doc/posix-functions/wcscoll_l.texi: Renamed from
49732         doc/glibc-functions/wcscoll_l.texi.
49733         * doc/posix-functions/wcsdup.texi: Renamed from
49734         doc/glibc-functions/wcsdup.texi.
49735         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49736         doc/glibc-functions/wcsncasecmp.texi.
49737         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49738         doc/glibc-functions/wcsncasecmp_l.texi.
49739         * doc/posix-functions/wcsnlen.texi: Renamed from
49740         doc/glibc-functions/wcsnlen.texi.
49741         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49742         doc/glibc-functions/wcsnrtombs.texi.
49743         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49744         doc/glibc-functions/wcsxfrm_l.texi.
49745         * doc/posix-functions/wctrans_l.texi: Renamed from
49746         doc/glibc-functions/wctrans_l.texi.
49747         * doc/posix-functions/wctype_l.texi: Renamed from
49748         doc/glibc-functions/wctype_l.texi.
49749         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49750         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49751         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49752         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49753         these subsections.
49754         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49755         Remove sections.
49756
49757 2008-12-14  Bruno Haible  <bruno@clisp.org>
49758
49759         Update doc for POSIX:2008.
49760         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49761
49762 2008-12-14  Bruno Haible  <bruno@clisp.org>
49763
49764         Update doc for POSIX:2008.
49765         * doc/pastposix-functions/bcmp.texi: Renamed from
49766         doc/posix-functions/bcmp.texi.
49767         * doc/pastposix-functions/bcopy.texi: Renamed from
49768         doc/posix-functions/bcopy.texi.
49769         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49770         doc/posix-functions/bsd_signal.texi.
49771         * doc/pastposix-functions/bzero.texi: Renamed from
49772         doc/posix-functions/bzero.texi.
49773         * doc/pastposix-functions/ecvt.texi: Renamed from
49774         doc/posix-functions/ecvt.texi.
49775         * doc/pastposix-functions/fcvt.texi: Renamed from
49776         doc/posix-functions/fcvt.texi.
49777         * doc/pastposix-functions/ftime.texi: Renamed from
49778         doc/posix-functions/ftime.texi.
49779         * doc/pastposix-functions/gcvt.texi: Renamed from
49780         doc/posix-functions/gcvt.texi.
49781         * doc/pastposix-functions/getcontext.texi: Renamed from
49782         doc/posix-functions/getcontext.texi.
49783         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49784         doc/posix-functions/gethostbyaddr.texi.
49785         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49786         doc/posix-functions/gethostbyname.texi.
49787         * doc/pastposix-functions/getwd.texi: Renamed from
49788         doc/posix-functions/getwd.texi.
49789         * doc/pastposix-functions/h_errno.texi: Renamed from
49790         doc/posix-functions/h_errno.texi.
49791         * doc/pastposix-functions/index.texi: Renamed from
49792         doc/posix-functions/index.texi.
49793         * doc/pastposix-functions/makecontext.texi: Renamed from
49794         doc/posix-functions/makecontext.texi.
49795         * doc/pastposix-functions/mktemp.texi: Renamed from
49796         doc/posix-functions/mktemp.texi.
49797         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49798         doc/posix-functions/pthread_attr_getstackaddr.texi.
49799         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49800         doc/posix-functions/pthread_attr_setstackaddr.texi.
49801         * doc/pastposix-functions/rindex.texi: Renamed from
49802         doc/posix-functions/rindex.texi.
49803         * doc/pastposix-functions/scalb.texi: Renamed from
49804         doc/posix-functions/scalb.texi.
49805         * doc/pastposix-functions/setcontext.texi: Renamed from
49806         doc/posix-functions/setcontext.texi.
49807         * doc/pastposix-functions/swapcontext.texi: Renamed from
49808         doc/posix-functions/swapcontext.texi.
49809         * doc/pastposix-functions/ualarm.texi: Renamed from
49810         doc/posix-functions/ualarm.texi.
49811         * doc/pastposix-functions/usleep.texi: Renamed from
49812         doc/posix-functions/usleep.texi.
49813         * doc/pastposix-functions/vfork.texi: Renamed from
49814         doc/posix-functions/vfork.texi.
49815         * doc/pastposix-functions/wcswcs.texi: Renamed from
49816         doc/posix-functions/wcswcs.texi.
49817         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49818         (Function Substitutes): Update.
49819
49820 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49821
49822         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49823         m4/strerror.m4.
49824
49825 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49826             Bruno Haible  <bruno@clisp.org>
49827
49828         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49829
49830 2008-12-13  Bruno Haible  <bruno@clisp.org>
49831
49832         * modules/strtoull (Depends-on): Remove unistd.
49833
49834 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49835
49836         * modules/strtoull (Depends-on): Add stdlib.
49837
49838 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49839
49840         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49841
49842 2008-12-10  Jim Meyering  <meyering@redhat.com>
49843
49844         gl_ASSERT: don't say assertions are disabled when they're not
49845         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49846         "checking whether to enable assertions... no", when they are in
49847         fact enabled.  This is solely a bug in the output of configure.
49848         In spite of saying "no", NDEBUG was not defined in that case.
49849         Also, as noted by Eric Blake, leave assertions enabled upon
49850         --enable-assert=INVALID.
49851
49852 2008-12-10  Bruno Haible  <bruno@clisp.org>
49853
49854         Change MODULES.html to refer to POSIX:2008 where possible.
49855         * MODULES.html.sh (POSIX2008_URL): New variable.
49856         (posix_headers): Remove sys/timeb, ucontext.
49857         (posix2001_headers): New variable.
49858         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49859         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49860         index, makecontext, mktemp, pthread_attr_getstackaddr,
49861         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49862         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49863         (posix2001_functions): New variable.
49864         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49865         otherwise.
49866
49867 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49868
49869         add missing include to parse-duration.c
49870         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49871         * modules/parse-duration (Depends-on): Add xalloc.
49872
49873         fix sed script reading maint.mk
49874         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49875         (syntax-check-rules): Use it.
49876
49877 2008-12-09  Bruno Haible  <bruno@clisp.org>
49878
49879         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49880         MacOS X 10.4/PowerPC.
49881         Reported by Simon Josefsson.
49882
49883 2008-12-08  Jim Meyering  <meyering@redhat.com>
49884
49885         work around mingw's lack of some S_IF definitions
49886         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49887         Reported by Simon Josefsson.
49888
49889 2008-12-08  Bruno Haible  <bruno@clisp.org>
49890
49891         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49892         applied to variables. Needed on MacOS X 10.4/PowerPC.
49893         Reported by Simon Josefsson.
49894
49895 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49896         and Eric Blake  <ebb9@byu.net>
49897
49898         assert: honor --enable-assert
49899         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49900         order to honor --enable-assert, rather than treating it as a
49901         synonym for --disable-assert.
49902
49903 2008-12-08  Jim Meyering  <meyering@redhat.com>
49904
49905         * lib/posixtm.c: Remove now-useless declaration of mktime.
49906
49907         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49908
49909 2008-12-07  Bruno Haible  <bruno@clisp.org>
49910
49911         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49912         test_once): Mark functions as static.
49913         * tests/test-tls.c (test_tls): Likewise.
49914
49915 2008-12-07  Bruno Haible  <bruno@clisp.org>
49916
49917         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49918         iconv_register_autodetect.
49919
49920 2008-12-07  Jim Meyering  <meyering@redhat.com>
49921
49922         posixtm.c: avoid a warning
49923         * lib/posixtm.c (posixtime): Don't initialize tm0.
49924         It's no longer needed to placate gcc4's -Wuninitialized,
49925         and the attempt to placate would elicit a new warning.
49926
49927         unicodeio.c: mark unused parameters
49928         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49929         (fallback_failure_callback): Likewise.
49930
49931 2008-12-07  Bruno Haible  <bruno@clisp.org>
49932
49933         * gnulib-tool (func_create_testdir): When building the tests
49934         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49935         Reported by Simon Josefsson.
49936
49937 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49938
49939         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49940
49941 2008-12-06  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49944         Suggested by Eric Blake.
49945
49946 2008-12-06  Bruno Haible  <bruno@clisp.org>
49947
49948         Fix a c-stack test failure on MacOS X.
49949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49950         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49951         handler for SIGBUS as well.
49952         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49953         install a signal handler for SIGBUS as well.
49954         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49955
49956 2008-12-06  Bruno Haible  <bruno@clisp.org>
49957
49958         Advocacy documentation.
49959         * doc/gnulib-intro.texi (Benefits): New section.
49960         * doc/gnulib.texi: Update.
49961
49962 2008-12-06  Bruno Haible  <bruno@clisp.org>
49963
49964         Document the 'manywarnings' module.
49965         * doc/manywarnings.texi: New file.
49966         * doc/gnulib.texi: Include it.
49967
49968 2008-12-05  Eric Blake  <ebb9@byu.net>
49969
49970         tests: silence some gcc warnings
49971         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49972         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49973         type mismatches.
49974
49975 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49976             Bruno Haible  <bruno@clisp.org>
49977
49978         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49979
49980 2008-11-29  Jim Meyering  <meyering@redhat.com>
49981
49982         unicodeio.c: mark unused parameters
49983         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49984         (fallback_failure_callback): Likewise.
49985
49986         fts: fix a thinko
49987         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49988         (set_stat_type): Return S_IF*-valued "type" directly.
49989         Prompted by James Youngman's spotting a related bug.
49990         Confirmed by further testing through find.
49991
49992         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49993         * lib/fts.c (D_TYPE): Define.
49994         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49995         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49996         (s_ifmt_shift_bits): New function.
49997         (set_stat_type): New function.
49998         (fts_build): When not calling fts_stat, call set_stat_type
49999         to propagate dirent.d_type info to fts_read caller.
50000         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50001         fts_statp->st_mode type information may be valid.
50002
50003 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50004
50005         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50006         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50007         <sds@gnu.org>.
50008
50009 2008-11-20  Bruno Haible  <bruno@clisp.org>
50010
50011         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50012         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50013         INCLUDE_NEXT.
50014         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50015         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50016         * modules/math (Makefile.am): Substitute
50017         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50018         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50019
50020 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50021             Bruno Haible  <bruno@clisp.org>
50022
50023         * lib/stdint.in.h: Define all type macros so that their expansion is
50024         a single typedef'ed token. Fixes a compilation failure in Boost which
50025         does "using ::int8_t;".
50026
50027 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50028
50029         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50030         gl_MANYWARN_ALL_GCC.
50031         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50032         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50033         * modules/manywarnings: New file.
50034         * MODULES.html.sh: Mention manywarnings module.
50035
50036 2008-11-18  Bruno Haible  <bruno@clisp.org>
50037
50038         * doc/gnulib-tool.texi (Unit tests): New section.
50039
50040 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50041
50042         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50043         paths like 'lib/po/foo.po'.
50044
50045 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50046
50047         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50048         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50049
50050 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50051
50052         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50053         parameter works.
50054
50055 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50056
50057         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50058
50059 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50060
50061         * modules/parse-duration-tests: New file.
50062         * tests/test-parse-duration.sh: New file.
50063         * tests/test-parse-duration.c: New file.
50064
50065         New module 'parse-duration'.
50066         * lib/parse-duration.h: New file.
50067         * lib/parse-duration.c: New file.
50068         * modules/parse-duration: New file.
50069
50070 2008-11-17  Bruno Haible  <bruno@clisp.org>
50071
50072         * tests/test-select-out.sh: Comment out the first pipe test.
50073         Reported by Simon Josefsson.
50074
50075 2008-11-17  Bruno Haible  <bruno@clisp.org>
50076
50077         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50078         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50079         gl_HOSTENT.
50080
50081 2008-11-17  Bruno Haible  <bruno@clisp.org>
50082
50083         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50084         -lnetwork and -lnet. Needed for Haiku and BeOS.
50085
50086 2008-11-16  Bruno Haible  <bruno@clisp.org>
50087
50088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50089
50090 2008-11-16  Bruno Haible  <bruno@clisp.org>
50091
50092         Avoid test failure on Haiku.
50093         * tests/test-fsync.c: Include <errno.h>.
50094         (main): Don't require that fsync (0) fails.
50095
50096 2008-11-15  Bruno Haible  <bruno@clisp.org>
50097
50098         New module 'hostent'.
50099         * modules/hostent: New file.
50100         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50101
50102 2008-11-15  Bruno Haible  <bruno@clisp.org>
50103
50104         New module 'servent'.
50105         * modules/servent: New file.
50106         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50107
50108 2008-11-15  Bruno Haible  <bruno@clisp.org>
50109
50110         Avoid generating same test program with two different rules.
50111         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50112         test-frexp to test-frexp-nolibm.
50113         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50114         test-frexpl to test-frexpl-nolibm.
50115
50116 2008-11-15  Bruno Haible  <bruno@clisp.org>
50117
50118         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50119         $(FREXPL_LIBM).
50120
50121 2008-11-15  Bruno Haible  <bruno@clisp.org>
50122
50123         * lib/netdb.in.h: Activate the definitions also when the system's
50124         <netdb.h> has 'struct addrinfo'.
50125         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50126         EAI_OVERFLOW or AI_NUMERICSERV.
50127         * doc/posix-headers/netdb.texi: Document the problem.
50128
50129 2008-11-15  Bruno Haible  <bruno@clisp.org>
50130
50131         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50132
50133         Make the 'sched' module work on platforms where <sched.h> exists but
50134         is incomplete (such as Haiku).
50135         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50136         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50137         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50138         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50139         HAVE_STRUCT_SCHED_PARAM.
50140         * modules/sched (Depends-on): Add include_next.
50141         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50142         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50143         * doc/posix-headers/sched.texi: Document the issue.
50144
50145 2008-11-13  Jim Meyering  <meyering@redhat.com>
50146
50147         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50148         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50149         test would fail due to the difference in the Report bugs to ...
50150         line.  The expected address is empty, "<>", while the actual
50151         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50152
50153 2008-11-12  Bruno Haible  <bruno@clisp.org>
50154
50155         lstat: don't compile lstat.c on systems lacking lstat
50156         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50157         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50158         Reported by Daniel P. Berrange via Jim Meyering.
50159
50160 2008-11-12  Jim Meyering  <meyering@redhat.com>
50161
50162         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50163
50164 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50165
50166         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50167         instead.
50168
50169 2008-11-12  Bruno Haible  <bruno@clisp.org>
50170
50171         * lib/unicodeio.c: Include unistr.h.
50172         (utf8_wctomb): Remove function.
50173         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50174
50175 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50176
50177         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50178         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50179         <bruno@clisp.org>.
50180         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50181
50182 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50183
50184         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50185         * doc/gnulib.texi: Add section for warnings.
50186
50187 2008-11-11  Bruno Haible  <bruno@clisp.org>
50188
50189         * lib/sockets.h: Add a comment.
50190
50191 2008-11-11  Karl Berry  <karl@gnu.org>
50192
50193         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50194
50195 2008-11-11  Eric Blake  <ebb9@byu.net>
50196
50197         fdl.texi: avoid git symlinks
50198         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50199
50200 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50201
50202         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50203
50204 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50205
50206         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50207         (gl_WARN_ADD): Substitute $2 if literal.
50208
50209 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50210
50211         * m4/warning.m4: Remove.
50212
50213 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50214
50215         * m4/warnings.m4: Almost complete rewrite. :-)
50216
50217 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50218
50219         * modules/warnings: New module.
50220         * m4/warnings.m4: New file.
50221         * MODULES.html.sh: Mention warnings module.
50222         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50223         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50224
50225 2008-11-10  Eric Blake  <ebb9@byu.net>
50226
50227         fdl.texi: make a symlink to the latest version
50228         * doc/standards.texi: Revert today's earlier change.
50229         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50230         * doc/fdl.texi: ...and replace this with a symlink to the newer
50231         fdl-1.3.texi.
50232
50233 2008-11-10  Bruno Haible  <bruno@clisp.org>
50234
50235         * tests/test-select-fd.c (main): Accept the result file name as fourth
50236         argument.
50237         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50238         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50239
50240 2008-11-10  Bruno Haible  <bruno@clisp.org>
50241
50242         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50243         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50244         as autoconf-substituted macros.
50245         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50246         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50247         gl_NETDB_H_DEFAULTS. Set these variables.
50248         * modules/netdb (Makefile.am): Substitute these variables.
50249
50250 2008-11-10  Eric Blake  <ebb9@byu.net>
50251
50252         standards.texi: include correct file for FDL 1.3
50253         * doc/standards.texi (GNU Free Documentation License): Change
50254         include file to pull in FDL 1.3, not 1.2.
50255
50256         fdl.texi: revert accidental change to license
50257         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50258
50259 2008-11-10  Bruno Haible  <bruno@clisp.org>
50260
50261         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50262         cross-compiling guesses also when the native compile gives no result.
50263
50264 2008-11-10  Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/spawni.c (__spawni): Force variable into the stack.
50267
50268 2008-11-10  Bruno Haible  <bruno@clisp.org>
50269
50270         Add support for Haiku.
50271         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50272         glibc and BeOS, but also on Haiku.
50273         * lib/fpurge.c (fpurge): Likewise.
50274         * lib/freadable.c (freadable): Likewise.
50275         * lib/freadahead.c (freadahead): Likewise.
50276         * lib/freading.c (freading): Likewise.
50277         * lib/freadptr.c (freadptr): Likewise.
50278         * lib/freadseek.c (freadptrinc): Likewise.
50279         * lib/fseeko.c (rpl_fseeko): Likewise.
50280         * lib/fseterr.c (fseterr): Likewise.
50281         * lib/fwritable.c (fwritable): Likewise.
50282         * lib/fwriting.c (fwriting): Likewise.
50283         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50284
50285 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50286
50287         * lib/config.charset: Treat Haiku like BeOS.
50288
50289 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50290
50291         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50292         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50293
50294 2008-11-08  Bruno Haible  <bruno@clisp.org>
50295
50296         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50297         AC_CACHE_CHECK.
50298
50299 2008-11-08  Bruno Haible  <bruno@clisp.org>
50300
50301         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50302
50303 2008-11-08  Bruno Haible  <bruno@clisp.org>
50304
50305         * tests/test-select-fd.c: New file.
50306         * tests/test-select-in.sh: New file.
50307         * tests/test-select-out.sh: New file.
50308         * tests/test-select-stdin.c: New file.
50309         * modules/select-tests (Files): Add the new files.
50310         (Depends-on): Add gettimeofday.
50311         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50312         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50313         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50314
50315 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50316             Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50319
50320 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50321
50322         * build-aux/pmccabe2html: Added support for C++ source files.
50323
50324 2008-11-05  Ben Pfaff  <blp@gnu.org>
50325
50326         Fix lib/close.c build on Windows.
50327         * modules/close (Files): Add lib/w32sock.h.
50328
50329 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50330
50331         Accept Bison's NEWS format.
50332         * build-aux/announce-gen (print_news_deltas): Tweak
50333         $re_prefix.
50334
50335 2008-11-04  Bruno Haible  <bruno@clisp.org>
50336
50337         * modules/random_r (Maintainer): Add glibc.
50338
50339 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50340
50341         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50342         by karl@freefriends.org (Karl Berry).
50343         * doc/alloca.texi: Likewise.
50344         * doc/c-ctype.texi: Likewise.
50345         * doc/c-strcase.texi: Likewise.
50346         * doc/c-strcaseeq.texi: Likewise.
50347         * doc/c-strcasestr.texi: Likewise.
50348         * doc/c-strstr.texi: Likewise.
50349         * doc/c-strtod.texi: Likewise.
50350         * doc/c-strtold.texi: Likewise.
50351         * doc/ctime.texi: Likewise.
50352         * doc/error.texi: Likewise.
50353         * doc/fdl.texi: Likewise.
50354         * doc/gcd.texi: Likewise.
50355         * doc/getdate.texi: Likewise.
50356         * doc/gnulib-intro.texi: Likewise.
50357         * doc/gnulib-tool.texi: Likewise.
50358         * doc/gnulib.texi: Likewise.
50359         * doc/inet_ntoa.texi: Likewise.
50360         * doc/maintain.texi: Likewise.
50361         * doc/make-stds.texi: Likewise.
50362         * doc/quote.texi: Likewise.
50363         * doc/regexprops-generic.texi: Likewise.
50364         * doc/standards.texi: Likewise.
50365         * doc/verify.texi: Likewise.
50366         * doc/visibility.texi: Likewise.
50367         * doc/gnulib.texi (GNU Free Documentation License): Include
50368         fdl-1.3.texi instead of fdl.texi.
50369
50370 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50371
50372         * doc/fdl-1.3.texi: New file, from
50373         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50374         * modules/fdl-1.3: Add.
50375         * MODULES.html.sh: Add fdl-1.3.
50376
50377 2008-11-03  Bruno Haible  <bruno@clisp.org>
50378
50379         Make determination of absolute name of header file work with AIX xlc.
50380         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50381         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50382         preprocessing.
50383         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50384         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50385
50386 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50387
50388         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50389         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50390         <ludo@gnu.org>.
50391
50392 2008-11-02  Bruno Haible  <bruno@clisp.org>
50393
50394         Mark 'strpbrk' obsolete.
50395         * modules/strpbrk (Status, Notice): New sections.
50396         * modules/strtok_r (Depends-on): Add strpbrk.
50397
50398 2008-11-02  Bruno Haible  <bruno@clisp.org>
50399
50400         Mark 'strdup' obsolete.
50401         * modules/strdup (Status, Notice): New sections.
50402         * modules/findprog (Depends-on): Add strdup.
50403         * modules/getaddrinfo (Depends-on): Likewise.
50404         * modules/localename (Depends-on): Likewise.
50405         * modules/relocatable-lib (Depends-on): Likewise.
50406         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50407         * modules/relocatable-prog (Depends-on): Likewise.
50408         * modules/trim (Depends-on): Likewise.
50409         * modules/unictype/gen-ctype (Depends-on): Likewise.
50410         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50411
50412 2008-11-02  Bruno Haible  <bruno@clisp.org>
50413
50414         Mark 'strcspn' obsolete.
50415         * modules/strcspn (Status, Notice): New sections.
50416
50417 2008-11-02  Bruno Haible  <bruno@clisp.org>
50418
50419         Mark 'rmdir' obsolete.
50420         * modules/rmdir (Status, Notice): New sections.
50421         * modules/clean-temp (Depends-on): Add rmdir.
50422         * modules/openat (Depends-on): Likewise.
50423
50424 2008-11-02  Bruno Haible  <bruno@clisp.org>
50425
50426         Mark 'raise' obsolete.
50427         * modules/raise (Status, Notice): New sections.
50428         (Include): Specify <signal.h>.
50429         * modules/stdio (Depends-on): Add raise.
50430         * modules/write (Depends-on): Likewise.
50431
50432 2008-11-02  Bruno Haible  <bruno@clisp.org>
50433
50434         Mark 'memset' obsolete.
50435         * modules/memset (Status, Notice): New sections.
50436
50437 2008-11-02  Bruno Haible  <bruno@clisp.org>
50438
50439         Mark 'memmove' obsolete.
50440         * modules/memmove (Status, Notice): New sections.
50441         * modules/argp (Depends-on): Add memmove.
50442         * modules/argz (Depends-on): Likewise.
50443         * modules/canonicalize (Depends-on): Likewise.
50444         * modules/canonicalize-lgpl (Depends-on): Likewise.
50445         * modules/fts (Depends-on): Likewise.
50446         * modules/getcwd (Depends-on): Likewise.
50447         * modules/human (Depends-on): Likewise.
50448         * modules/regex (Depends-on): Likewise.
50449         * modules/striconveh (Depends-on): Likewise.
50450         * modules/trim (Depends-on): Likewise.
50451         * modules/unistr/u8-move (Depends-on): Likewise.
50452         * modules/unistr/u16-move (Depends-on): Likewise.
50453         * modules/unistr/u32-move (Depends-on): Likewise.
50454
50455 2008-11-02  Bruno Haible  <bruno@clisp.org>
50456
50457         Mark 'memcpy' obsolete.
50458         * modules/memcpy (Status, Notice): New sections.
50459
50460 2008-11-02  Bruno Haible  <bruno@clisp.org>
50461
50462         Mark 'memcmp' obsolete.
50463         * modules/memcmp (Status, Notice): New sections.
50464         * modules/argmatch (Depends-on): Add memchr.
50465         * modules/backupfile (Depends-on): Likewise.
50466         * modules/c-strcasestr (Depends-on): Likewise.
50467         * modules/crypto/des (Depends-on): Likewise.
50468         * modules/csharpcomp (Depends-on): Likewise.
50469         * modules/fnmatch (Depends-on): Likewise.
50470         * modules/git-merge-changelog (Depends-on): Likewise.
50471         * modules/isnand (Depends-on): Likewise.
50472         * modules/isnand-nolibm (Depends-on): Likewise.
50473         * modules/isnanf (Depends-on): Likewise.
50474         * modules/isnanf-nolibm (Depends-on): Likewise.
50475         * modules/isnanl (Depends-on): Likewise.
50476         * modules/isnanl-nolibm (Depends-on): Likewise.
50477         * modules/mbchar (Depends-on): Likewise.
50478         * modules/memcoll (Depends-on): Likewise.
50479         * modules/quotearg (Depends-on): Likewise.
50480         * modules/regex (Depends-on): Likewise.
50481         * modules/relocatable-prog (Depends-on): Likewise.
50482         * modules/same (Depends-on): Likewise.
50483         * modules/signbit (Depends-on): Likewise.
50484         * modules/strcasestr-simple (Depends-on): Likewise.
50485         * modules/unictype/gen-ctype (Depends-on): Likewise.
50486         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50487         * modules/uniname/uniname (Depends-on): Likewise.
50488         * modules/unistr/u8-cmp (Depends-on): Likewise.
50489
50490 2008-11-02  Bruno Haible  <bruno@clisp.org>
50491
50492         Mark 'memchr' obsolete.
50493         * modules/memchr (Status, Notice): New sections.
50494         * modules/argp (Depends-on): Add memchr.
50495         * modules/base64 (Depends-on): Likewise.
50496         * modules/c-strcasestr (Depends-on): Likewise.
50497         * modules/chdir-long (Depends-on): Likewise.
50498         * modules/fnmatch (Depends-on): Likewise.
50499         * modules/getsubopt (Depends-on): Likewise.
50500         * modules/git-merge-changelog (Depends-on): Likewise.
50501         * modules/glob (Depends-on): Likewise.
50502         * modules/strcasestr-simple (Depends-on): Likewise.
50503         * modules/strnlen (Depends-on): Likewise.
50504
50505 2008-11-02  Bruno Haible  <bruno@clisp.org>
50506
50507         Mark 'atexit' obsolete.
50508         * modules/atexit (Status, Notice): New sections.
50509         * modules/chdir-long (Depends-on): Add atexit.
50510         * modules/wait-process (Depends-on): Likewise.
50511
50512 2008-11-02  Bruno Haible  <bruno@clisp.org>
50513
50514         * gnulib-tool: New option --with-obsolete.
50515         (func_usage): Document it.
50516         (func_modules_transitive_closure): Drop obsolete dependencies if
50517         incobsolete is not true.
50518         (func_import): Read and save the incobsolete variable to the cache.
50519
50520 2008-11-02  Bruno Haible  <bruno@clisp.org>
50521
50522         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50523         * gnulib-tool: New option --extract-status.
50524         (func_usage): Document it.
50525         (sed_extract_prog): Recognize it.
50526         (func_get_status): New function.
50527
50528 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50529
50530         * modules/sockets (License): Change from LGPL to LGPLv2+.
50531
50532 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50533
50534         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50535
50536 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50537
50538         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50539         Mention times and sys_times.
50540         * modules/sys_times, modules/sys_times-tests: New modules.
50541         * modules/times, modules/times-tests: Likewise
50542         * m4/sys_times_h.m4: New file.
50543         * lib/sys_times.in.h: Likewise
50544         * lib/times.c: Likewise.
50545         * tests/test-sys_times.c: Likewise.
50546         * tests/test-times.c: Likewise.
50547         * doc/posix-headers/sys_times.texi: Update.
50548         * doc/posix-functions/times.texi: Update.
50549
50550 2008-10-28  Jim Meyering  <meyering@redhat.com>
50551
50552         * modules/tempname (Depends-on): Add lstat.
50553
50554         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50555
50556 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50557
50558         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50559         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50560         using idiom used elsewhere in gnulib.
50561
50562 2008-10-27  Jim Meyering  <meyering@redhat.com>
50563
50564         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50565
50566 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50567
50568         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50569         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50570         programs.
50571         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50572
50573 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50574
50575         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50576
50577 2008-10-27  Bruno Haible  <bruno@clisp.org>
50578
50579         * tests/test-lstat.c: Include <stdio.h>.
50580
50581 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50582
50583         * modules/lstat-tests: New module.
50584         * tests/test-lstat.c: New file.
50585
50586 2008-10-26  Jim Meyering  <meyering@redhat.com>
50587
50588         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50589
50590 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50591             Bruno Haible  <bruno@clisp.org>
50592
50593         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50594         * modules/configmake (Include): Add a note that the include must come
50595         after all system headers.
50596         * lib/javaversion.c: Include configmake.h after all other includes.
50597
50598 2008-10-26  Bruno Haible  <bruno@clisp.org>
50599
50600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50601         HAVE_STRUCT_RANDOM_DATA to 1.
50602         (gl_STDLIB_H): Simplify.
50603
50604 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50605
50606         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50607         substitute HAVE_STRUCT_RANDOM_DATA.
50608         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50609         random_data.
50610         * modules/stdlib (Makefile.am): Substitute
50611         HAVE_STRUCT_RANDOM_DATA.
50612
50613 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50614
50615         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50616         * doc/gnulib-intro.texi (Copyright): Likewise.
50617
50618 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50619
50620         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50621         findings.
50622
50623 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50624             Bruno Haible  <bruno@clisp.org>
50625
50626         * lib/unistd.in.h: Include <winsock2.h>.
50627         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50628         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50629         Provide dummy declarations.
50630         (gethostname): Override.
50631         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50632         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50633         gl_PREREQ_SYS_H_WINSOCK2.
50634         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50635         * doc/posix-functions/gethostname.texi: More details.
50636
50637 2008-10-25  Bruno Haible  <bruno@clisp.org>
50638
50639         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50640         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50641         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50642
50643         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50644         here ...
50645         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50646         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50647         gl_UNISTD_H_DEFAULTS.
50648
50649 2008-10-25  Eric Blake  <ebb9@byu.net>
50650
50651         signbit: avoid spurious compiler failure
50652         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50653         declarations inside function.
50654
50655 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50656             Bruno Haible  <bruno@clisp.org>
50657
50658         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50659         * modules/random_r (Depends-on): Add stdint.
50660
50661 2008-10-24  Bruno Haible  <bruno@clisp.org>
50662
50663         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50664         Eggert.
50665         * modules/strerror (License): Likewise.
50666
50667 2008-10-24  Jim Meyering  <meyering@redhat.com>
50668
50669         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50670         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50671
50672 2008-10-24  Eric Blake  <ebb9@byu.net>
50673
50674         getgroups: fix compilation when getgroups is available
50675         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50676         but with <config.h> override of getgroups disabled.
50677
50678 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50679
50680         * doc/gnulib.texi (Header files): Add note about C++ problems.
50681         Explained by Bruno Haible <bruno@clisp.org>.
50682
50683 2008-10-23  Bruno Haible  <bruno@clisp.org>
50684
50685         Define a dummy SA_NODEFER macro on Interix.
50686         * lib/signal.in.h (SA_NODEFER): Define fallback.
50687         Reported by Aleksey Cheusov <cheusov@tut.by> via
50688         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50689
50690 2008-10-23  Bruno Haible  <bruno@clisp.org>
50691
50692         * modules/freadahead (License): Change to LGPLv2+.
50693         Suggested by Simon Josefsson.
50694
50695 2008-10-23  Jim Meyering  <meyering@redhat.com>
50696
50697         random_r: new module
50698         * modules/random_r: New file.
50699         * m4/random_r.m4: New file.
50700         * lib/random_r.c: New file, from glibc.
50701         * modules/random_r-tests: New file.
50702         * tests/test-random_r.c: New file.
50703         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50704          Declare.
50705         (RAND_MAX): Define.
50706         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50707         * modules/stdlib: Substitute them, too.
50708         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50709         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50710         * doc/glibc-functions/random_r.texi: Likewise.
50711         * doc/glibc-functions/setstate_r.texi: Likewise.
50712         * doc/glibc-functions/srandom_r.texi: Likewise.
50713         * config/srclist.txt: Mention it.
50714
50715 2008-10-23  David Lutterkort  <lutter@redhat.com>
50716
50717         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50718         link requirement
50719
50720 2008-10-23  Jim Meyering  <meyering@redhat.com>
50721
50722         selinux-h: mark parameters of stub functions as intentionally unused
50723         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50724         * lib/se-context.in.h: Likewise.
50725
50726 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50727
50728         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50729
50730 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50731
50732         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50733
50734 2008-10-22  Eric Blake  <ebb9@byu.net>
50735
50736         glthread/thread: avoid compiler warning
50737         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50738         Add unreachable abort to silence compiler.
50739
50740 2008-10-22  Eric Blake  <ebb9@byu.net>
50741
50742         netdb: also supply struct addrinfo for cygwin 1.5.x
50743         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50744         older cygwin.
50745         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50746         cygwin.
50747         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50748
50749 2008-10-22  Bruno Haible  <bruno@clisp.org>
50750
50751         * users.txt: Update entry about pspp.
50752
50753 2008-10-21  Bruno Haible  <bruno@clisp.org>
50754
50755         Simplification.
50756         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50757         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50758
50759         Simplification.
50760         * lib/ioctl.c (ioctl): Don't undefine.
50761         * lib/socket.c (socket): Don't undefine.
50762
50763         Remove unused module indicator macros.
50764         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50765         GNULIB_$1 as a C macro.
50766
50767         * doc/posix-functions/close.texi: Undo last change.
50768         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50769         Windows platforms.
50770
50771 2008-10-21  Bruno Haible  <bruno@clisp.org>
50772
50773         Add gethostname() declaration to <unistd.h>.
50774         * lib/unistd.in.h (gethostname): New declaration.
50775         * lib/gethostname.c: Include <unistd.h>.
50776         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50777         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50779         and HAVE_GETHOSTNAME.
50780         * modules/gethostname (Depends-on): Add unistd.
50781         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50782         (Include): Specify <unistd.h>.
50783         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50784         HAVE_GETHOSTNAME.
50785         * tests/test-gethostname.c: Include <unistd.h> first.
50786
50787 2008-10-21  Bruno Haible  <bruno@clisp.org>
50788
50789         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50790         * modules/select-tests (Depends-on): Likewise.
50791         Reported by Simon Josefsson.
50792
50793 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50794
50795         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50796         * lib/accept.c: New file, based on winsock.c.
50797         * lib/bind.c: New file, based on winsock.c.
50798         * lib/connect.c: New file, based on winsock.c.
50799         * lib/getpeername.c: New file, based on winsock.c.
50800         * lib/getsockname.c: New file, based on winsock.c.
50801         * lib/getsockopt.c: New file, based on winsock.c.
50802         * lib/ioctl.c: New file, based on winsock.c.
50803         * lib/listen.c: New file, based on winsock.c.
50804         * lib/recv.c: New file, based on winsock.c.
50805         * lib/recvfrom.c: New file, based on winsock.c.
50806         * lib/send.c: New file, based on winsock.c.
50807         * lib/sendto.c: New file, based on winsock.c.
50808         * lib/setsockopt.c: New file, based on winsock.c.
50809         * lib/shutdown.c: New file, based on winsock.c.
50810         * lib/socket.c: New file, based on winsock.c.
50811         * lib/w32sock.h: New file, based on winsock.c.
50812         * lib/winsock.c: Remove file.
50813         * modules/accept: Likewise.
50814         * modules/bind: Likewise.
50815         * modules/connect: Likewise.
50816         * modules/getpeername: Likewise.
50817         * modules/getsockname: Likewise.
50818         * modules/getsockopt: Likewise.
50819         * modules/ioctl: Likewise.
50820         * modules/listen: Likewise.
50821         * modules/recv: Likewise.
50822         * modules/recvfrom: Likewise.
50823         * modules/send: Likewise.
50824         * modules/sendto: Likewise.
50825         * modules/setsockopt: Likewise.
50826         * modules/shutdown: Likewise.
50827         * modules/socket: Use socket.c instead of winsock.c.
50828         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50829         * doc/posix-functions/accept.texi: Doc fix.
50830         * doc/posix-functions/bind.texi: Doc fix.
50831         * doc/posix-functions/close.texi: Doc fix.
50832         * doc/posix-functions/connect.texi: Doc fix.
50833         * doc/posix-functions/getpeername.texi: Doc fix.
50834         * doc/posix-functions/getsockname.texi: Doc fix.
50835         * doc/posix-functions/getsockopt.texi: Doc fix.
50836         * doc/posix-functions/ioctl.texi: Doc fix.
50837         * doc/posix-functions/listen.texi: Doc fix.
50838         * doc/posix-functions/recv.texi: Doc fix.
50839         * doc/posix-functions/recvfrom.texi: Doc fix.
50840         * doc/posix-functions/send.texi: Doc fix.
50841         * doc/posix-functions/sendto.texi: Doc fix.
50842         * doc/posix-functions/setsockopt.texi: Doc fix.
50843         * doc/posix-functions/shutdown.texi: Doc fix.
50844         * doc/posix-functions/socket.texi: Doc fix.
50845
50846 2008-10-20  Bruno Haible  <bruno@clisp.org>
50847
50848         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50849         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50850         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50851         as an alias for SIGABRT.
50852         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50853         (sigaction): Map it to SIGABRT.
50854         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50855
50856 2008-10-20  Bruno Haible  <bruno@clisp.org>
50857
50858         * lib/fts.c: Don't include lstat.h.
50859         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50860
50861         Move the lstat() declaration to <sys/stat.h>.
50862         * lib/lstat.h: Remove file.
50863         * lib/sys_stat.in.h: Add special invocation convention.
50864         (lstat): New declaration.
50865         * lib/lstat.c (orig_lstat): New function.
50866         (rpl_lstat): Use orig_lstat instead of lstat.
50867         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50868         AC_C_INLINE. Set REPLACE_LSTAT.
50869         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50870         and REPLACE_LSTAT.
50871         * modules/lstat (Files): Remove lib/lstat.h.
50872         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50873         (Include): Specify <sys/stat.h> instead of lstat.h.
50874         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50875         REPLACE_LSTAT.
50876         * NEWS: Mention the change.
50877
50878 2008-10-20  Bruno Haible  <bruno@clisp.org>
50879
50880         * modules/posix_spawn-tests: New file.
50881         * tests/test-posix_spawn3.c: New file.
50882
50883 2008-10-20  Bruno Haible  <bruno@clisp.org>
50884
50885         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50886         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50887         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50888         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50889         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50890
50891 2008-10-20  Bruno Haible  <bruno@clisp.org>
50892
50893         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50894         of posix_spawn on AIX 5.3.
50895
50896 2008-10-20  Bruno Haible  <bruno@clisp.org>
50897
50898         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50899
50900 2008-10-20  Bruno Haible  <bruno@clisp.org>
50901
50902         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50903         of AC_LANG_PROGRAM.
50904
50905 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50906
50907         * lib/netdb.in.h: Don't define GNU specific constants until they
50908         are supported or needed.  Reported by Bruno Haible
50909         <bruno@clisp.org>.
50910
50911 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50912
50913         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50914
50915 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50916
50917         * lib/getaddrinfo.h: Remove file.
50918         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50919         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50920         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50921         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50922         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50923         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50924         * tests/test-getaddrinfo.c: Likewise.
50925         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50926         * NEWS: Mention change.
50927
50928 2008-10-19  Bruno Haible  <bruno@clisp.org>
50929
50930         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50931
50932 2008-10-19  Bruno Haible  <bruno@clisp.org>
50933
50934         * lib/wait-process.c: Include simply <sys/wait.h>.
50935         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50936         WIFSTOPPED): Remove fallback definitions.
50937         * modules/wait-process (Depends-on): Add sys_wait.
50938
50939         New module 'sys_wait'.
50940         * modules/sys_wait: New file.
50941         * lib/sys_wait.in.h: New file, partially copied from
50942         lib/wait-process.c.
50943         * m4/sys_wait_h.m4: New file.
50944         * doc/posix-headers/sys_wait.texi: Mention the new module.
50945
50946 2008-10-19  Bruno Haible  <bruno@clisp.org>
50947
50948         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50949
50950 2008-10-19  Bruno Haible  <bruno@clisp.org>
50951
50952         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50953         * lib/wait-process.c (WAIT_T): Remove type.
50954         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50955         (wait_subprocess): Update.
50956
50957 2008-10-19  Bruno Haible  <bruno@clisp.org>
50958
50959         New module 'atoll'.
50960         * modules/atoll: New file.
50961         * lib/stdlib.in.h (atoll): New declaration.
50962         * lib/atoll.c: New file, from glibc with modifications.
50963         * m4/atoll.m4: New file.
50964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50965         HAVE_ATOLL.
50966         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50967         * doc/posix-functions/atoll.texi: Mention the new module.
50968
50969 2008-10-19  Bruno Haible  <bruno@clisp.org>
50970
50971         Add strtoull() declaration to <stdlib.h>.
50972         * lib/stdlib.in.h (strtoull): New declaration.
50973         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50974         Set HAVE_STRTOULL.
50975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50976         HAVE_STRTOULL.
50977         * modules/strtoull (Depends-on): Add stdlib.
50978         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50979         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50980         HAVE_STRTOULL.
50981
50982 2008-10-19  Bruno Haible  <bruno@clisp.org>
50983
50984         Add strtoll() declaration to <stdlib.h>.
50985         * lib/stdlib.in.h (strtoll): New declaration.
50986         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50987         Set HAVE_STRTOLL.
50988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50989         HAVE_STRTOLL.
50990         * modules/strtoll (Depends-on): Add stdlib.
50991         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50992         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50993
50994 2008-10-19  Bruno Haible  <bruno@clisp.org>
50995
50996         * modules/bcopy (Depends-on): Add strings.
50997         (Include): Specify <strings.h>.
50998
50999 2008-10-19  Bruno Haible  <bruno@clisp.org>
51000
51001         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51002
51003 2008-10-19  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51006         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51007         mingw.
51008
51009 2008-10-19  Bruno Haible  <bruno@clisp.org>
51010
51011         * lib/atanl.c: Don't include isnanl.h.
51012         * lib/cosl.c: Likewise.
51013         * lib/ldexpl.c: Likewise.
51014         * lib/logl.c: Likewise.
51015         * lib/sinl.c: Likewise.
51016         * lib/sqrtl.c: Likewise.
51017         * lib/tanl.c: Likewise.
51018
51019         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51020         * lib/isnanf.h: Remove file.
51021         * lib/isnand.h: Remove file.
51022         * lib/isnanl.h: Remove file.
51023         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51024         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51025         macros.
51026         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51027         HAVE_ISNANF, don't define it as a C macro.
51028         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51029         HAVE_ISNAND, don't define it as a C macro.
51030         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51031         HAVE_ISNANL, don't define it as a C macro.
51032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51033         HAVE_ISNAN[FDL].
51034         * modules/isnanf (Files): Remove lib/isnanf.h.
51035         (Depends-on): Add math.
51036         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51037         (Include): Specify <math.h> instead of isnanf.h.
51038         * modules/isnand (Files): Remove lib/isnand.h.
51039         (Depends-on): Add math.
51040         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51041         (Include): Specify <math.h> instead of isnand.h.
51042         * modules/isnanl (Files): Remove lib/isnanl.h.
51043         (Depends-on): Add math.
51044         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51045         (Include): Specify <math.h> instead of isnanl.h.
51046         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51047         HAVE_ISNAN[FDL].
51048         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51049         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51050         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51051         * NEWS: Mention the change.
51052
51053 2008-10-18  Bruno Haible  <bruno@clisp.org>
51054
51055         Add getusershell(), setusershell(), endusershell() declarations to
51056         <unistd.h>.
51057         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51058         declarations.
51059         * lib/getusershell.c: Include unistd.h.
51060         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51061         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51062         HAVE_GETUSERSHELL.
51063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51064         and HAVE_GETUSERSHELL.
51065         * modules/getusershell (Depends-on): Add unistd, extensions.
51066         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51067         (Include): Specify <unistd.h>.
51068         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51069         HAVE_GETUSERSHELL.
51070
51071 2008-10-18  Bruno Haible  <bruno@clisp.org>
51072
51073         Add a getloadavg() declaration to <stdlib.h>.
51074         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51075         getloadavg declaration.
51076         (getloadavg): New declaration.
51077         * lib/getloadavg.c: Include <stdlib.h> first.
51078         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51079         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51080         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51082         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51083         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51084         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51085         (Include): Specify <stdlib.h>.
51086         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51087         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51088
51089 2008-10-18  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/dirchownmod.c: Don't include lchmod.h.
51092
51093         Move the lchmod() declaration to <sys/stat.h>.
51094         * lib/lchmod.h: Remove file.
51095         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51096         (lchmod): New declaration, moved here from lib/lchown.h.
51097         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51098         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51099         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51100         and HAVE_LCHMOD.
51101         * modules/lchmod (Files): Remove lib/lchmod.h.
51102         (Depends-on): Add sys_stat, extensions.
51103         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51104         (Include): Specify <sys/stat.h> instead of lchmod.h.
51105         * modules/sys_stat (Depends-on): Add link-warning.
51106         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51107         definition of GL_LINK_WARNING.
51108         * NEWS: Mention the change.
51109
51110 2008-10-18  Bruno Haible  <bruno@clisp.org>
51111
51112         * lib/fchdir.c: Don't include dirfd.h.
51113         * lib/fts.c: Likewise.
51114         * lib/getcwd.c: Likewise.
51115         * lib/glob.c: Likewise.
51116
51117         Move the dirfd() declaration to <dirent.h>.
51118         * lib/dirfd.h: Remove file.
51119         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51120         (dirfd): New declaration.
51121         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51123         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51124         HAVE_DECL_DIRFD.
51125         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51126         HAVE_DECL_DIRFD.
51127         * modules/dirfd (Files): Remove lib/dirfd.h.
51128         (Depends-on): Add dirent, extensions.
51129         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51130         (Include): Specify <dirent.h> instead of dirfd.h.
51131         * modules/dirent (Depends-on): Add link-warning.
51132         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51133         definition of GL_LINK_WARNING.
51134         * NEWS: Mention the change.
51135
51136 2008-10-18  Bruno Haible  <bruno@clisp.org>
51137
51138         Move the euidaccess() declaration to <unistd.h>.
51139         * lib/euidaccess.h: Remove file.
51140         * lib/unistd.in.h (euidaccess): New declaration.
51141         * lib/euidaccess.c: Don't include euidaccess.h.
51142         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51143         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51145         and HAVE_EUIDACCESS.
51146         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51147         (Depends-on): Add unistd.
51148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51149         (Include): Specify <unistd.h> instead of euidaccess.h.
51150         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51151         HAVE_EUIDACCESS.
51152         * NEWS: Mention the change.
51153
51154 2008-10-18  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51157
51158         Move the getdomainname() declaration to <unistd.h>.
51159         * lib/getdomainname.h: Remove file.
51160         * lib/unistd.in.h (getdomainname): New declaration.
51161         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51162         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51163         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51164         HAVE_GETDOMAINNAME.
51165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51166         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51167         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51168         (Depends-on): Add unistd, extensions.
51169         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51170         (Includes): Specify <unistd.h> instead of getdomainname.h.
51171         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51172         HAVE_GETDOMAINNAME.
51173         * NEWS: Mention the change.
51174
51175 2008-10-18  Bruno Haible  <bruno@clisp.org>
51176
51177         * modules/dirent: New file.
51178         * m4/dirent_h.m4: New file.
51179         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51180         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51181         * modules/fchdir (Files): Remove lib/dirent.in.h.
51182         (Depends-on): Add dirent.
51183         (Makefile.am): Move rules to modules/dirent.
51184         * doc/posix-headers/dirent.texi: Mention the new module.
51185
51186 2008-10-18  Bruno Haible  <bruno@clisp.org>
51187
51188         Avoid -Wunused-parameter warnings in public gnulib header files.
51189         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51190         macro.
51191         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51192
51193 2008-10-18  Bruno Haible  <bruno@clisp.org>
51194
51195         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51196         * doc/glibc-functions/error.texi: Mention the module 'error'.
51197         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51198         * doc/glibc-functions/getdomainname.texi: Mention the module
51199         'getdomainname'.
51200         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51201         * doc/glibc-functions/getpagesize.texi: Mention the module
51202         'getpagesize'.
51203         * doc/glibc-functions/getusershell.texi: Mention the module
51204         'getusershell'.
51205         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51206         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51207         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51208         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51209         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51210         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51211         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51212         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51213         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51214         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51215         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51216         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51217         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51218         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51219
51220 2008-10-17  Bruno Haible  <bruno@clisp.org>
51221
51222         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51223         HP-UX and IRIX, use -0.0L.
51224         * tests/test-ceill.c (minus_zero): Likewise.
51225         * tests/test-floorl.c (minus_zero): Likewise.
51226         * tests/test-frexpl.c (minus_zero): Likewise.
51227         * tests/test-isnan.c (minus_zerol): Likewise.
51228         * tests/test-isnanl.h (minus_zero): Likewise.
51229         * tests/test-ldexpl.c (minus_zero): Likewise.
51230         * tests/test-roundl.c (minus_zero): Likewise.
51231         * tests/test-signbit.c (minus_zerol): Likewise.
51232         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51233         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51234         * tests/test-truncl.c (minus_zero): Likewise.
51235         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51236         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51237         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51238         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51239
51240 2008-10-17  Bruno Haible  <bruno@clisp.org>
51241
51242         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51243         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51244         that it gets activated only for gcc >= 3.0.
51245         * lib/dirent.in.h: Likewise.
51246         * lib/errno.in.h: Likewise.
51247         * lib/fcntl.in.h: Likewise.
51248         * lib/float.in.h: Likewise.
51249         * lib/iconv.in.h: Likewise.
51250         * lib/inttypes.in.h: Likewise.
51251         * lib/locale.in.h: Likewise.
51252         * lib/math.in.h: Likewise.
51253         * lib/netdb.in.h: Likewise.
51254         * lib/netinet_in.in.h: Likewise.
51255         * lib/search.in.h: Likewise.
51256         * lib/signal.in.h: Likewise.
51257         * lib/spawn.in.h: Likewise.
51258         * lib/stdarg.in.h: Likewise.
51259         * lib/stdint.in.h: Likewise.
51260         * lib/stdio.in.h: Likewise.
51261         * lib/stdlib.in.h: Likewise.
51262         * lib/string.in.h: Likewise.
51263         * lib/strings.in.h: Likewise.
51264         * lib/sys_file.in.h: Likewise.
51265         * lib/sys_ioctl.in.h: Likewise.
51266         * lib/sys_select.in.h: Likewise.
51267         * lib/sys_socket.in.h: Likewise.
51268         * lib/sys_stat.in.h: Likewise.
51269         * lib/sys_time.in.h: Likewise.
51270         * lib/sysexits.in.h: Likewise.
51271         * lib/time.in.h: Likewise.
51272         * lib/unistd.in.h: Likewise.
51273         * lib/wchar.in.h: Likewise.
51274         * lib/wctype.in.h: Likewise.
51275         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51276
51277 2008-10-17  Jim Meyering  <meyering@redhat.com>
51278
51279         ignore-value: don't depend on inline module
51280         * modules/ignore-value (Depends-on): Remove 'inline'.
51281         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51282         Suggestion from Bruno Haible.
51283
51284 2008-10-17  Bruno Haible  <bruno@clisp.org>
51285
51286         New implementation of condition variables for Win32.
51287         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51288         (gl_linked_waitqueue_t): New type.
51289         (gl_cond_t): Use it.
51290         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51291         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51292         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51293         (glthread_cond_init_func, glthread_cond_wait_func,
51294         glthread_cond_timedwait_func, glthread_cond_signal_func,
51295         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51296         Reimplemented on the basis of gl_linked_waitqueue_t.
51297         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51298         gl_waitqueue_t.
51299         (gl_rwlock_t): Update.
51300         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51301
51302 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51303
51304         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51305         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51306
51307 2008-10-17  Jim Meyering  <meyering@redhat.com>
51308
51309         ignore-value: new module
51310         * modules/ignore-value: New file.
51311         * lib/ignore-value.h: New file.
51312         * MODULES.html.sh (Compiler warning management): New section,
51313         just for this module.  More to come.
51314
51315 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51318         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51319         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51320
51321 2008-10-16  Jim Meyering  <meyering@redhat.com>
51322
51323         openat-die.c: avoid 'no previous prototype' warning
51324         * lib/openat-die.c: Include "openat.h".
51325         Reported by Reuben Thomas <rrt@sc3d.org>.
51326
51327 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51328
51329         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51330         * lib/netdb.in.h: Fix typo.
51331         Reported by Bruno Haible  <bruno@clisp.org>
51332
51333         * lib/netdb.in.h: Include sys/socket.h for platforms without
51334         netdb.h, to get structures like hostent on MinGW.
51335         * modules/netdb (Depends-on): Add sys_socket.
51336
51337 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51338
51339         * modules/netdb, modules/netdb-tests: New file.
51340         * m4/netdb_h.m4: New file.
51341         * lib/netdb.in.h: Add, currently just an empty file pending
51342         definitions.
51343         * tests/test-netdb.c: New file.
51344         * doc/posix-headers/netdb.texi: Mention that we replace it if
51345         needed.
51346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51347         netdb.
51348
51349 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51350
51351         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51352         with code.
51353
51354 2008-10-13  Bruno Haible  <bruno@clisp.org>
51355
51356         * lib/glthread/cond.c (glthread_cond_wait_func,
51357         glthread_cond_timedwait_func): Add a comment.
51358
51359 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51360
51361         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51362         * tests/test-select.c: Likewise,
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): Fix variable name.
51368         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51369
51370 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51371
51372         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51374         struct sockaddr.sa_len.
51375         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51376
51377 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51378
51379         * build-aux/pmccabe2html: Add css and css_url parameters.
51380
51381 2008-10-12  Bruno Haible  <bruno@clisp.org>
51382
51383         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51384         calling aclx_get.
51385         Reported by Rainer Tammer <tammer@tammer.net>.
51386
51387 2008-10-12  Bruno Haible  <bruno@clisp.org>
51388
51389         Use msvcrt aware primitives for creation/termination of Win32 threads.
51390         * lib/glthread/thread.c: Include <process.h>.
51391         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51392         (wrapper_func): Update signature.
51393         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51394
51395 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51396             Bruno Haible  <bruno@clisp.org>
51397
51398         Provide a Win32 implementation of the 'cond' module.
51399         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51400         * lib/glthread/cond.c (glthread_cond_init_func,
51401         glthread_cond_wait_func, glthread_cond_timedwait_func,
51402         glthread_cond_signal_func, glthread_cond_broadcast_func,
51403         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51404         * modules/cond (Dependencies): Add gettimeofday.
51405
51406 2008-10-11  Bruno Haible  <bruno@clisp.org>
51407
51408         Make sleep work on older versions of mingw.
51409         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51410         only whether it exists.
51411         * doc/posix-functions/sleep.texi: Mention the problem with older
51412         versions of mingw.
51413
51414 2008-10-11  Bruno Haible  <bruno@clisp.org>
51415
51416         New module 'shutdown'.
51417         * modules/shutdown: New file.
51418         * lib/sys_socket.in.h (shutdown): New declaration.
51419         * lib/winsock.c (shutdown): New function.
51420         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51421         GNULIB_SHUTDOWN.
51422         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51423         * doc/posix-functions/shutdown.texi: Document the new module.
51424
51425 2008-10-11  Jim Meyering  <meyering@redhat.com>
51426
51427         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51428
51429 2008-10-11  Bruno Haible  <bruno@clisp.org>
51430
51431         New module 'fclose'.
51432         * modules/fclose: New file.
51433         * lib/stdio.in.h (fclose): New declaration.
51434         * lib/fclose.c: New file.
51435         * m4/fclose.m4: New file.
51436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51437         REPLACE_FCLOSE.
51438         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51439         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51440         REPLACE_FCLOSE.
51441         * modules/close (Depends-on): fclose.
51442         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51443
51444 2008-10-11  Bruno Haible  <bruno@clisp.org>
51445
51446         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51447         set errno and don't call _close.
51448
51449 2008-10-10  Bruno Haible  <bruno@clisp.org>
51450
51451         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51452         ACL, not afterwards. Fixes test failure on Cygwin.
51453
51454 2008-10-09  Ben Pfaff  <blp@gnu.org>
51455
51456         * build-aux/announce-gen: Fix gnulib version related part of usage
51457         message.  Die with a useful error message if no tarballs are
51458         found.
51459
51460 2008-10-10  Jim Meyering  <meyering@redhat.com>
51461
51462         bootstrap: use git's --depth=N option only if it's supported
51463         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51464         recognize the --depth option.  Reported by Pádraig Brady.
51465
51466 2008-10-09  Bruno Haible  <bruno@clisp.org>
51467
51468         New module 'ioctl'.
51469         * modules/ioctl: New file.
51470         * lib/sys_socket.in.h (ioctl): Remove declaration.
51471         * lib/winsock.c: Include <sys/ioctl.h>.
51472         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51473         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51474         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51475         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51476         * doc/posix-functions/ioctl.texi: Mention the new module.
51477
51478 2008-10-09  Bruno Haible  <bruno@clisp.org>
51479
51480         New module 'sys_ioctl'.
51481         * lib/sys_ioctl.in.h: New file.
51482         * m4/sys_ioctl_h.m4: New file.
51483         * modules/sys_ioctl: New file.
51484         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51485
51486 2008-10-09  Bruno Haible  <bruno@clisp.org>
51487
51488         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51489         * lib/winsock.c: Include <stdarg.h>.
51490         (rpl_ioctl): Change to second argument 'int' and then varargs.
51491
51492 2008-10-09  Bruno Haible  <bruno@clisp.org>
51493
51494         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51495         when the sys_socket module is present and the system has <winsock2.h>.
51496
51497 2008-10-09  Bruno Haible  <bruno@clisp.org>
51498
51499         * doc/posix-functions/close.texi: Mention module 'close' instead of
51500         module 'sys_socket'.
51501
51502 2008-10-09  Bruno Haible  <bruno@clisp.org>
51503
51504         * doc/glibc-headers/sys_ioctl.texi: New file.
51505         * doc/gnulib.texi: Include it.
51506
51507 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51508             Bruno Haible  <bruno@clisp.org>
51509
51510         Combine the two replacements of 'close'.
51511         * lib/sys_socket.in.h (close): Define to a reminder to include
51512         <unistd.h>.
51513         (_gl_close_fd_maybe_socket): New declaration.
51514         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51515         * lib/winsock.c (close): Remove undefinition.
51516         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51517         needed for the gnulib module 'close'.
51518         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51519         define to an error symbol or to a warning, if suitable.
51520         * lib/close.c: Include <sys/socket.h>.
51521         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51522         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51523         UNISTD_H_HAVE_WINSOCK2_H.
51524         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51526         UNISTD_H_HAVE_WINSOCK2_H.
51527         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51528         (configure.ac): Set a module indicator.
51529         (Makefile.am): Substitute GNULIB_CLOSE.
51530         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51531         * modules/poll-tests (Depends-on): Add close.
51532         * modules/select-tests (Depends-on): Likewise.
51533
51534 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51535             Bruno Haible  <bruno@clisp.org>
51536
51537         New module 'close'.
51538         * modules/close: New file.
51539         * lib/unistd.in.h (close): Move declaration out of the
51540         FCHDIR_REPLACEMENT scope.
51541         (_gl_unregister_fd): New declaration.
51542         * lib/close.c: New file.
51543         * lib/fchdir.c (rpl_close): Remove function.
51544         * m4/close.m4: New file.
51545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51546         close.
51547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51548         REPLACE_CLOSE.
51549         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51550         REPLACE_CLOSE.
51551         * modules/fchdir (Depends-on): Add close.
51552
51553 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51554             Bruno Haible  <bruno@clisp.org>
51555
51556         * lib/fcntl.in.h (open): Simplify conditionals.
51557         (_gl_register_fd): New declaration.
51558         * lib/fchdir.c (rpl_open): Remove function.
51559         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51560         also.
51561         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51563         open.
51564
51565 2008-10-09  Jim Meyering  <meyering@redhat.com>
51566
51567         GNUmakefile: use the more name-space-friendly "_version"
51568         * top/GNUmakefile (_dummy): Update.
51569         (_version): Rename from "version".
51570
51571 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51572             Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51575         rpl_close.
51576         (_gl_register_fd): New function, extracted from rpl_open.
51577         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51578         (rpl_open, rpl_opendir): Use _gl_register_fd.
51579
51580 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51581
51582         Fix organization of 'open' replacement.
51583         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51584         (gl_FUNC_OPEN): Use it.
51585         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51586
51587 2008-10-08  Bruno Haible  <bruno@clisp.org>
51588
51589         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51590
51591 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51592
51593         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51594         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51595         listen).
51596
51597 2008-10-08  Eric Blake  <ebb9@byu.net>
51598
51599         GNUmakefile: add 'make version' target
51600         * top/GNUmakefile (_curr-ver): Split version update rules...
51601         (version): ...into a target.
51602
51603 2008-10-07  Bruno Haible  <bruno@clisp.org>
51604
51605         Use a more portable replacement expression for -0.0L.
51606         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51607         instead of -0.0L. Fix m4 quotation.
51608
51609         * tests/test-signbit.c: Include <float.h>.
51610         (minus_zero): New variable.
51611         (test_signbitl): Use minus_zero instead of -zero.
51612         * modules/signbit-tests (Depends-on): Add float.
51613
51614         * tests/test-ceill.c: Include <float.h>.
51615         (zero): Remove variable.
51616         (minus_zero): New variable.
51617         (main): Use minus_zero instead of -zero.
51618         * modules/ceill-tests (Depends-on): Add float.
51619
51620         * tests/test-floorl.c: Include <float.h>.
51621         (zero): Remove variable.
51622         (minus_zero): New variable.
51623         (main): Use minus_zero instead of -zero.
51624         * modules/floorl-tests (Depends-on): Add float.
51625
51626         * tests/test-roundl.c: Include <float.h>.
51627         (zero): Remove variable.
51628         (minus_zero): New variable.
51629         (main): Use minus_zero instead of -zero.
51630         * modules/roundl-tests (Depends-on): Add float.
51631
51632         * tests/test-truncl.c: Include <float.h>.
51633         (zero): Remove variable.
51634         (minus_zero): New variable.
51635         (main): Use minus_zero instead of -zero.
51636         * modules/truncl-tests (Depends-on): Add float.
51637
51638         * tests/test-frexpl.c (zero): Remove variable.
51639         (minus_zero): New variable.
51640         (main): Use minus_zero instead of -zero.
51641         * modules/frexpl-tests (Depends-on): Add float.
51642
51643         * tests/test-isnan.c (zerol): Remove variable.
51644         (minus_zerol): New variable.
51645         (test_long_double): Use minus_zerol instead of -zerol.
51646         * modules/isnan-tests (Depends-on): Add float.
51647
51648         * tests/test-isnanl.h (zero): Remove variable.
51649         (minus_zero): New variable.
51650         (main): Use minus_zero instead of -zero.
51651         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51652         * modules/isnanl-tests (Depends-on): Add float.
51653
51654         * tests/test-ldexpl.c (zero): Remove variable.
51655         (minus_zero): New variable.
51656         (main): Use minus_zero instead of -zero.
51657         * modules/ldexpl-tests (Depends-on): Add float.
51658
51659         * tests/test-snprintf-posix.h (zerol): Remove variable.
51660         (minus_zerol): New variable.
51661         (test_function): Use minus_zerol instead of -zerol.
51662         * modules/snprintf-posix-tests (Depends-on): Add float.
51663         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51664
51665         * tests/test-sprintf-posix.h (zerol): Remove variable.
51666         (minus_zerol): New variable.
51667         (test_function): Use minus_zerol instead of -zerol.
51668         * modules/sprintf-posix-tests (Depends-on): Add float.
51669         * modules/vsprintf-posix-tests (Depends-on): Add float.
51670
51671         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51672         (minus_zerol): New variable.
51673         (test_function): Use minus_zerol instead of -zerol.
51674         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51675
51676         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51677         (minus_zerol): New variable.
51678         (test_function): Use minus_zerol instead of -zerol.
51679         * modules/vasprintf-posix-tests (Depends-on): Add float.
51680
51681 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51682
51683         * MODULES.html.sh (Support for building documentation): Mention
51684         pmccabe2html.  Sort entries.
51685
51686         Add pmccabe2html module, from gnupdf.
51687         * build-aux/pmccabe.css: New file.
51688         * build-aux/pmccabe2html: New file.
51689         * m4/pmccabe2html.m4: New file.
51690         * modules/pmccabe2html: New file.
51691
51692 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51693
51694         flock: new module
51695         * MODULES.html.sh: Add to list of modules.
51696         * lib/flock.c: flock implementation for Windows and Unix systems
51697         which have fcntl.
51698         * doc/glibc-functions/flock.texi: Update documentation.
51699         * lib/sys_file.in.h: <sys/file.h> header file.
51700         * m4/flock.m4: M4 macros.
51701         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51702         * modules/flock: flock module.
51703         * modules/flock-tests: flock tests module.
51704         * modules/sys_file: sys/file.h module.
51705         * tests/test-flock.c: test suite for flock.
51706
51707 2008-10-06  Jim Meyering  <meyering@redhat.com>
51708
51709         bootstrap: check for LT_INIT more portably still ;-)
51710         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51711         Spotted by Bruno Haible.
51712
51713 2008-10-06  Eric Blake  <ebb9@byu.net>
51714
51715         test-signbit: avoid tripping Irix cc bug on -0.0L
51716         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51717         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51718         entire testsuite consistent and avoids an Irix 6.2 bug.
51719
51720 2008-10-05  Bruno Haible  <bruno@clisp.org>
51721             Jim Meyering  <jim@meyering.net>
51722
51723         Add an option for ignoring EPIPE during close_stdout.
51724         * lib/closeout.h: Include <stdbool.h>.
51725         (close_stdout_set_ignore_EPIPE): New declaration.
51726         * lib/closeout.c: Include <stdbool.h>.
51727         (ignore_EPIPE): New variable.
51728         (close_stdout_set_ignore_EPIPE): New function.
51729         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51730         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51731         failure.
51732         * modules/closeout (Depends-on): Add stdbool.
51733
51734 2008-10-05  Bruno Haible  <bruno@clisp.org>
51735
51736         * modules/accept: New file.
51737         * modules/bind: New file.
51738         * modules/connect: New file.
51739         * modules/getpeername: New file.
51740         * modules/getsockname: New file.
51741         * modules/getsockopt: New file.
51742         * modules/listen: New file.
51743         * modules/recv: New file.
51744         * modules/recvfrom: New file.
51745         * modules/send: New file.
51746         * modules/sendto: New file.
51747         * modules/setsockopt: New file.
51748         * modules/socket: New file.
51749         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51750         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51751         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51752         the particular module is requested. Add a link warning when the
51753         particular module is not requested.
51754         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51755         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51756         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51757         the particular module is requested.
51758         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51759         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51760         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51761         * modules/sys_socket (Depends-on): Add link-warning.
51762         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51763         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51764         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51765         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51766         GL_LINK_WARNING.
51767         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51768         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51769         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51770         * doc/posix-functions/getpeername.texi: Mention the new module
51771         'getpeername'.
51772         * doc/posix-functions/getsockname.texi: Mention the new module
51773         'getsockname'.
51774         * doc/posix-functions/getsockopt.texi: Mention the new module
51775         'getsockopt'.
51776         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51777         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51778         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51779         * doc/posix-functions/send.texi: Mention the new module 'send'.
51780         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51781         * doc/posix-functions/setsockopt.texi: Mention the new module
51782         'setsockopt'.
51783         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51784         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51785         listen, connect, accept.
51786         * modules/select-tests (Depends-on): Likewise.
51787
51788 2008-10-05  Bruno Haible  <bruno@clisp.org>
51789
51790         * lib/winsock.c (strerror): Remove unused #undef.
51791         (rpl_close): Remove unused local variable.
51792
51793         * modules/sys_socket (Depends-on); Add errno.
51794
51795 2008-10-05  Bruno Haible  <bruno@clisp.org>
51796
51797         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51798         (select): Add a link warning when the 'select' module is not used.
51799         * modules/sys_select (Depends-on): Add link-warning.
51800         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51801         Suggested by Paolo Bonzini.
51802
51803 2008-10-05  Jim Meyering  <meyering@redhat.com>
51804
51805         bootstrap: check for LT_INIT more portably
51806         * build-aux/bootstrap: Avoid using grep -E, since it's not
51807         portable enough.  Suggestion from Bruno Haible.
51808
51809 2008-10-05  Bruno Haible  <bruno@clisp.org>
51810
51811         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51812         as being fixed by gnulib.
51813
51814 2008-10-05  Bruno Haible  <bruno@clisp.org>
51815
51816         * modules/select-tests: New file, mostly copied from
51817         modules/sys_select-tests.
51818         * tests/test-select.c: New file, mostly copied from
51819         tests/test-sys_select.c.
51820         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51821         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51822         (Makefile.am): Remove test_sys_select_LDADD.
51823
51824         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51825         to an undefined symbol, for an error message.
51826         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51827         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51828         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51829         winsock-select.c here.
51830         * modules/sys_select (Files): Remove lib/winsock-select.c.
51831         (Depends-on): Remove alloca.
51832         (Makefile.am): Substitute GNULIB_SELECT.
51833         * modules/select: New file.
51834         * doc/posix-functions/select.texi: Update.
51835
51836 2008-10-05  Bruno Haible  <bruno@clisp.org>
51837
51838         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51839         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51840         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51841         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51842         getdtablesize.
51843         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51844         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51845
51846 2008-10-05  Bruno Haible  <bruno@clisp.org>
51847
51848         * modules/getdtablesize-tests: New file.
51849         * tests/test-getdtablesize.c: New file.
51850
51851         New module 'getdtablesize'.
51852         * lib/unistd.in.h (getdtablesize): New declaration.
51853         * lib/getdtablesize.c: New file.
51854         * m4/getdtablesize.m4: New file.
51855         * modules/getdtablesize: New file.
51856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51857         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51858         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51859         HAVE_GETDTABLESIZE.
51860         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51861
51862 2008-10-05  Bruno Haible  <bruno@clisp.org>
51863
51864         * modules/sched (Makefile.am): Fix typo.
51865         Reported by Simon Josefsson.
51866
51867 2008-10-05  Jim Meyering  <meyering@redhat.com>
51868
51869         bootstrap: check for LT_INIT, too
51870         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51871         are deprecated.  Suggestion from Ralf Wildenhues.
51872
51873 2008-10-05  Bruno Haible  <bruno@clisp.org>
51874
51875         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51876         overriding them by ours.
51877         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51878
51879 2008-10-05  Jim Meyering  <meyering@redhat.com>
51880
51881         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51882         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51883         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51884
51885 2008-10-04  Bruno Haible  <bruno@clisp.org>
51886
51887         * modules/dup2 (License): Change to LGPLv2+.
51888         * modules/sleep (License): Likewise.
51889         * modules/perror (License): Likewise.
51890         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51891         Blake.
51892         * modules/signal (License): Likewise.
51893         * modules/sigprocmask (License): Likewise.
51894         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51895         Meyering.
51896
51897 2008-10-04  Bruno Haible  <bruno@clisp.org>
51898
51899         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51900         Reported by Rainer Tammer <tammer@tammer.net>.
51901
51902 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51903             Bruno Haible  <bruno@clisp.org>
51904
51905         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51906         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51907         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51908
51909 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51910
51911         filevercmp: new module
51912         * lib/filevercmp.h: New function filevercmp comparing version strings.
51913         * lib/filevercmp.c: Implementation of filevercmp function.
51914         * modules/filevercmp: Module metadata.
51915         * tests/test-filevercmp.c: Unit test for new module.
51916         * modules/filevercmp-tests: Unit test metadata.
51917         * MODULES.html.sh: Add filevercmp module.
51918
51919 2008-10-03  Bruno Haible  <bruno@clisp.org>
51920
51921         * lib/c-ctype.h: Add comment.
51922         Reported by Jim Meyering.
51923
51924 2008-10-02  Bruno Haible  <bruno@clisp.org>
51925
51926         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51927
51928 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51929
51930         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51931         name of bootstrap.conf accordingly.
51932
51933 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51934
51935         * build-aux/bootstrap: Install git-merge-changelog configuration
51936         items into .gitconfig if needed.
51937
51938 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51939
51940         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51941         git repository, and initialize/update it accordingly.
51942
51943 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51944
51945         * modules/fsync-tests: New file.
51946         * tests/test-fsync.c: New file.
51947
51948         New module 'fsync'.
51949         * lib/fsync.c: New file.
51950         * m4/fsync.m4: New file.
51951         * modules/fsync: New file.
51952         * lib/unistd.in.h (fsync): New declaration.
51953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51954         GNULIB_FSYNC and HAVE_FSYNC.
51955         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51956         * MODULES.html.sh (posix_functions): Add fsync.
51957         * doc/posix-functions/fsync.texi: Mention the new module.
51958
51959 2008-10-02  Jim Meyering  <meyering@redhat.com>
51960
51961         fts.c: sync with similar code from coreutils' remove.c
51962         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51963         Guard also with "#if defined __linux__", since for now at least,
51964         this code is Linux-kernel-specific.
51965
51966 2008-10-02  Jim Meyering  <meyering@redhat.com>
51967
51968         fts: bug fixes
51969         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51970         Include <sys/vfs.h>, not <sys/statfs.h>.
51971
51972         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51973         Include <sys/vfs.h>, not <sys/statfs.h>.
51974
51975 2008-10-01  Bruno Haible  <bruno@clisp.org>
51976
51977         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51978         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51979         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51980         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51981         * doc/posix-functions/posix_spawnp.texi: Likewise.
51982         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51983         whether posix_spawn actually works.
51984         * m4/pipe.m4 (gl_PIPE): Likewise.
51985         * modules/execute (Files): Add m4/posix_spawn.m4.
51986         * modules/pipe (Files): Add m4/posix_spawn.m4.
51987         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51988
51989 2008-10-01  Jim Meyering  <meyering@redhat.com>
51990
51991         remove trailing spaces
51992         * NEWS: Likewise.
51993         * lib/poll.c (poll): Likewise.
51994         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51995         * lib/winsock.c (rpl_close): Likewise.
51996         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51997         * modules/yield: Likewise.
51998         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51999         * tests/test-sys_select.c (connect_to_socket): Likewise.
52000
52001         fts.c: adjust a new interface to be more generally useful
52002         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52003         (fts_build): Adjust caller.
52004
52005 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52006
52007         * modules/cond-tests: New file.
52008         * tests/test-cond.c: New file.
52009
52010 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52011             Bruno Haible  <bruno@clisp.org>
52012
52013         * modules/cond (Dependencies): Add errno, time.
52014         * lib/glthread/cond.h: Include <time.h>.
52015         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52016         across platforms.
52017
52018 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52019             Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52022
52023 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52024             Bruno Haible  <bruno@clisp.org>
52025
52026         * modules/tls-tests (Depends-on): Add thread, yield.
52027         (configure.ac): Remove all checks.
52028         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52029         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52030         gl_thread_self): Remove definitions. Include glthread/thread.h and
52031         glthread/yield.h instead.
52032         (test_tls): Pass an additional NULL argument to gl_thread_join.
52033
52034 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52035             Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/lock-tests (Depends-on): Add thread, yield.
52038         (configure.ac): Remove all checks.
52039         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52040         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52041         gl_thread_self): Remove definitions. Include glthread/thread.h and
52042         glthread/yield.h instead.
52043         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52044         additional NULL argument to gl_thread_join.
52045
52046 2008-09-30  Bruno Haible  <bruno@clisp.org>
52047
52048         Fix the Win32 implementation of the 'thread' module.
52049         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52050         pointer type.
52051         (gl_thread_self): Invoke gl_thread_self_func.
52052         (gl_thread_self_func): New declaration.
52053         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52054         (do_init_self_key, init_self_key): New functions.
52055         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52056         Remove some fields.
52057         (running_threads, running_lock): Remove variables.
52058         (get_current_thread_handle): New function.
52059         (gl_thread_self_func, wrapper_func, glthread_create_func,
52060         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52061         simplified.
52062
52063 2008-09-30  Bruno Haible  <bruno@clisp.org>
52064
52065         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52066         files.
52067
52068 2008-09-30  Jim Meyering  <meyering@redhat.com>
52069
52070         fts.m4: correct the test for statfs.f_type
52071         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52072         when checking for statfs.f_type.
52073
52074 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52075
52076         tests: avoid some compiler warnings
52077         * tests/test-memchr.c (main): Pass NULL indirectly.
52078         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52079
52080 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52081
52082         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52083         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52084         exactly specified dayshifts.
52085         (dayshift): New rule.
52086         (rel): Add dayshift.
52087         (relative_time_table) [tomorrow, yesterday, today, now]:
52088         Use tDAY_SHIFT in place of tDAY_UNIT.
52089         * tests/test-getdate.c: Add tests for now-disallowed countable
52090         dayshifts, e.g., "4 yesterday ago".
52091
52092 2008-09-29  Bruno Haible  <bruno@clisp.org>
52093
52094         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52095         * tests/test-posix_spawn1.in.sh: Renamed from
52096         tests/test-posix_spawn.in.sh.
52097         * tests/test-posix_spawn2.c: New file.
52098         * tests/test-posix_spawn2.in.sh: New file.
52099         * modules/posix_spawnp-tests (Files): Update.
52100         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52101
52102 2008-09-29  Bruno Haible  <bruno@clisp.org>
52103
52104         Propagate effects of putenv/setenv/unsetenv to child processes.
52105         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52106         * lib/pipe.c (create_pipe): Likewise.
52107
52108 2008-09-29  Bruno Haible  <bruno@clisp.org>
52109
52110         Enable use of shell scripts as executables in mingw.
52111         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52112         run the program as a shell script.
52113         * lib/pipe.c (create_pipe): Likewise.
52114         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52115         resulting array.
52116
52117 2008-09-29  Eric Blake  <ebb9@byu.net>
52118
52119         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52120
52121 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52122
52123         * doc/posix-functions/accept.texi: Update mingw problems.
52124         * doc/posix-functions/bind.texi: Update mingw problems.
52125         * doc/posix-functions/close.texi: Update mingw problems.
52126         * doc/posix-functions/connect.texi: Update mingw problems.
52127         * doc/posix-functions/getpeername.texi: Update mingw problems.
52128         * doc/posix-functions/getsockname.texi: Update mingw problems.
52129         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52130         * doc/posix-functions/ioctl.texi: Update mingw problems.
52131         * doc/posix-functions/listen.texi: Update mingw problems.
52132         * doc/posix-functions/recv.texi: Update mingw problems.
52133         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52134         * doc/posix-functions/select.texi: Update mingw problems.
52135         * doc/posix-functions/send.texi: Update mingw problems.
52136         * doc/posix-functions/sendto.texi: Update mingw problems.
52137         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52138         * doc/posix-functions/socket.texi: Update mingw problems.
52139
52140 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52141             Bruno Haible  <bruno@clisp.org>
52142
52143         * lib/sys_select.in.h: Include sys/time.h.
52144         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52145         * modules/sys_select: Depend on sys_time.
52146         * tests/test-sys_select.c: Test that sys/select.h defines struct
52147         timeval fully.
52148
52149 2008-09-29  Bruno Haible  <bruno@clisp.org>
52150
52151         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52152         * lib/sys_select.in.h: Likewise.
52153
52154 2008-09-29  Bruno Haible  <bruno@clisp.org>
52155
52156         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52157
52158 2008-09-29  Bruno Haible  <bruno@clisp.org>
52159
52160         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52161         Set LIBSOCKET instead of augmenting LIBS.
52162         * modules/sockets (Link): New section.
52163         * modules/sockets-tests (test_sockets_LDADD): New variable.
52164         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52165         * modules/poll-tests (test_poll_LDADD): New variable.
52166         * NEWS: Document the change.
52167
52168 2008-09-29  Bruno Haible  <bruno@clisp.org>
52169
52170         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52171         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52172         ARPA_INET_H directly.
52173         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52174
52175 2008-09-28  Bruno Haible  <bruno@clisp.org>
52176
52177         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52178         from gl_HEADER_SYS_SOCKET.
52179         (gl_HEADER_SYS_SOCKET): Invoke it.
52180         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52181
52182 2008-09-28  Bruno Haible  <bruno@clisp.org>
52183
52184         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52185         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52186         Needed on OSF/1 4.0.
52187
52188 2008-09-28  Bruno Haible  <bruno@clisp.org>
52189
52190         Override open more carefully.
52191         * lib/open.c (orig_open): New function.
52192         (rpl_open): Use orig_open instead of open.
52193         * lib/fcntl.in.h: Add special invocation convention.
52194         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52195         (gl_FUNC_OPEN): Invoke it.
52196
52197         Override freopen more carefully.
52198         * lib/freopen.c (orig_freopen): New function.
52199         (rpl_freopen): Use orig_freopen instead of freopen.
52200         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52201         (gl_FUNC_FREOPEN): Invoke it.
52202
52203         Override fopen more carefully.
52204         * lib/fopen.c (orig_fopen): New function.
52205         (rpl_fopen): Use orig_fopen instead of fopen.
52206         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52207         (gl_FUNC_FOPEN): Invoke it.
52208         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52209
52210 2008-09-28  Bruno Haible  <bruno@clisp.org>
52211
52212         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52213         SIGPIPE.
52214
52215 2008-09-28  Bruno Haible  <bruno@clisp.org>
52216
52217         * tests/test-sigaction.c (handler, main): Disable the check whether
52218         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52219         glibc systems with LinuxThreads.
52220
52221 2008-09-28  Bruno Haible  <bruno@clisp.org>
52222
52223         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52224
52225         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52226         with AIX xlc.
52227         * lib/fcntl.in.h (open): Likewise.
52228         Reported by Rainer Tammer <tammer@tammer.net>.
52229
52230 2008-09-28  Bruno Haible  <bruno@clisp.org>
52231
52232         * modules/posix_spawnp-tests: New file.
52233         * tests/test-posix_spawn.c: New file.
52234         * tests/test-posix_spawn.in.sh: New file.
52235
52236         New module 'posix_spawnp'.
52237         * modules/posix_spawnp: New file.
52238         * lib/spawnp.c: New file, from GNU libc with modifications.
52239         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52240
52241         New module 'posix_spawn'.
52242         * modules/posix_spawn: New file.
52243         * lib/spawn.c: New file, from GNU libc with modifications.
52244         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52245
52246         New module 'posix_spawnattr_destroy'.
52247         * modules/posix_spawnattr_destroy: New file.
52248         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52249         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52250         module.
52251
52252         New module 'posix_spawnattr_setsigmask'.
52253         * modules/posix_spawnattr_setsigmask: New file.
52254         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52255         modifications.
52256         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52257         new module.
52258
52259         New module 'posix_spawnattr_getsigmask'.
52260         * modules/posix_spawnattr_getsigmask: New file.
52261         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52262         modifications.
52263         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52264         new module.
52265
52266         New module 'posix_spawnattr_setsigdefault'.
52267         * modules/posix_spawnattr_setsigdefault: New file.
52268         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52269         modifications.
52270         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52271         new module.
52272
52273         New module 'posix_spawnattr_getsigdefault'.
52274         * modules/posix_spawnattr_getsigdefault: New file.
52275         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52276         modifications.
52277         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52278         new module.
52279
52280         New module 'posix_spawnattr_setschedpolicy'.
52281         * modules/posix_spawnattr_setschedpolicy: New file.
52282         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52283         modifications.
52284         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52285         new module.
52286
52287         New module 'posix_spawnattr_getschedpolicy'.
52288         * modules/posix_spawnattr_getschedpolicy: New file.
52289         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52290         modifications.
52291         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52292         new module.
52293
52294         New module 'posix_spawnattr_setschedparam'.
52295         * modules/posix_spawnattr_setschedparam: New file.
52296         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52297         modifications.
52298         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52299         new module.
52300
52301         New module 'posix_spawnattr_getschedparam'.
52302         * modules/posix_spawnattr_getschedparam: New file.
52303         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52304         modifications.
52305         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52306         new module.
52307
52308         New module 'posix_spawnattr_setpgroup'.
52309         * modules/posix_spawnattr_setpgroup: New file.
52310         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52311         modifications.
52312         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52313         module.
52314
52315         New module 'posix_spawnattr_getpgroup'.
52316         * modules/posix_spawnattr_getpgroup: New file.
52317         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52318         modifications.
52319         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52320         module.
52321
52322         New module 'posix_spawnattr_setflags'.
52323         * modules/posix_spawnattr_setflags: New file.
52324         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52325         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52326         module.
52327
52328         New module 'posix_spawnattr_getflags'.
52329         * modules/posix_spawnattr_getflags: New file.
52330         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52331         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52332         module.
52333
52334         New module 'posix_spawnattr_init'.
52335         * modules/posix_spawnattr_init: New file.
52336         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52337         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52338         module.
52339
52340         New module 'posix_spawn_file_actions_destroy'.
52341         * modules/posix_spawn_file_actions_destroy: New file.
52342         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52343         modifications.
52344         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52345         the new module.
52346
52347         New module 'posix_spawn_file_actions_addopen'.
52348         * modules/posix_spawn_file_actions_addopen: New file.
52349         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52350         modifications.
52351         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52352         the new module.
52353
52354         New module 'posix_spawn_file_actions_adddup2'.
52355         * modules/posix_spawn_file_actions_adddup2: New file.
52356         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52357         modifications.
52358         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52359         the new module.
52360
52361         New module 'posix_spawn_file_actions_addclose'.
52362         * modules/posix_spawn_file_actions_addclose: New file.
52363         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52364         modifications.
52365         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52366         the new module.
52367
52368         New module 'posix_spawn_file_actions_init'.
52369         * modules/posix_spawn_file_actions_init: New file.
52370         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52371         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52372         new module.
52373
52374         New module 'posix_spawn-internal'.
52375         * modules/posix_spawn-internal: New file.
52376         * lib/spawn_int.h: New file, from GNU libc with modifications.
52377         * lib/spawni.c: New file, from GNU libc with modifications.
52378         * m4/posix_spawn.m4: New file.
52379
52380         New module 'spawn'.
52381         * modules/spawn: New file.
52382         * lib/spawn.in.h: New file, from GNU libc with modifications.
52383         * m4/spawn_h.m4: New file.
52384         * doc/posix-headers/spawn.texi: Mention the new module.
52385
52386 2008-09-28  Bruno Haible  <bruno@clisp.org>
52387
52388         * modules/sched-tests: New file.
52389         * tests/test-sched.c: New file.
52390
52391         New module 'sched'.
52392         * modules/sched: New file.
52393         * lib/sched.in.h: New file.
52394         * m4/sched_h.m4: New file.
52395         * doc/posix-headers/sched.texi: Mention the new module.
52396
52397 2008-09-27  Eric Blake  <ebb9@byu.net>
52398
52399         Fix previous patch, and tweak references to $0.
52400         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52401         (func_version, func_gnulib_dir): Don't call this program
52402         gnulib-tool.
52403         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52404         with using $0 in function.
52405         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52406         (func_fatal_error): Reuse the name the user invoked us with.
52407
52408 2008-09-27  Bruno Haible  <bruno@clisp.org>
52409
52410         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52411         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52412         (gl_ICONV_H): Not here.
52413         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52414         instead of assigning ICONV_H directly.
52415
52416         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52418         WCHAR_H directly.
52419
52420 2008-09-27  Bruno Haible  <bruno@clisp.org>
52421
52422         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52423         * modules/arpa_inet (Depends-on): Add link-warning.
52424         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52425         * modules/unistd (Makefile.am): Likewise.
52426
52427 2008-09-26  Bruno Haible  <bruno@clisp.org>
52428
52429         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52430         variables.
52431         (func_version): Essentially copied from gnulib-tool.
52432         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52433         func_readlink): Copied from gnulib-tool.
52434
52435 2008-09-26  Bruno Haible  <bruno@clisp.org>
52436
52437         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52438         invoking git-version-gen.
52439
52440 2008-09-26  Bruno Haible  <bruno@clisp.org>
52441
52442         * posix-modules: Update to directory names changed on 2008-01-19.
52443         Remove commas in output before splitting into words. No more need to
52444         avoid 'ftruncate' since 2007-02-19.
52445
52446 2008-09-26  Bruno Haible  <bruno@clisp.org>
52447
52448         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52449
52450 2008-09-26  Bruno Haible  <bruno@clisp.org>
52451
52452         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52453         * modules/fwriteerror (Depends-on): Add errno.
52454
52455 2008-09-26  Bruno Haible  <bruno@clisp.org>
52456
52457         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52458         * tests/test-vc-list-files-cvs.sh: Likewise.
52459
52460 2008-09-26  Bruno Haible  <bruno@clisp.org>
52461
52462         * doc/posix-headers/sys_resource.texi: Reorder items.
52463
52464 2008-09-26  Jim Meyering  <meyering@redhat.com>
52465
52466         fts: tweak inode comparison function
52467         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52468         inode numbers, as documented.
52469
52470         fts: sort dirent entries on inode number before traversing
52471         This avoids a quadratic, seek-related performance penalty when
52472         operating on a directory containing many entries (measurable at 10k;
52473         3.5 hours at 2 million entries with a cold cache) on certain types
52474         of file systems, including ext3 and ext4, but not tmpfs.
52475         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52476         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52477         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52478         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52479         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52480         (fts_build): Set the stat.st_ino member from D_INO.
52481         If it is likely to be useful, sort dirent entries on inode number.
52482
52483         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52484         and the struct statfs.f_type member.
52485         * modules/fts (Depends-on): Add d-ino.
52486
52487 2008-09-26  Bruno Haible  <bruno@clisp.org>
52488
52489         * modules/sigpipe-die (Depends-on): Add sigpipe.
52490
52491         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52492         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52493         and GNULIB_STDIO_H_SIGPIPE are set.
52494         * lib/stdio-write.c: New file.
52495         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52496         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52497         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52498         REPLACE_STDIO_WRITE_FUNCS.
52499         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52500         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52501         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52502         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52503         * modules/stdio (Files): Add lib/stdio-write.c.
52504         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52505         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52506         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52507         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52508         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52509         REPLACE_FPRINTF_POSIX.
52510         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52511         REPLACE_PRINTF_POSIX.
52512         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52513         REPLACE_VFPRINTF_POSIX.
52514         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52515         REPLACE_VPRINTF_POSIX.
52516         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52517         SIGPIPE issue.
52518         * doc/posix-functions/fputc.texi: Likewise.
52519         * doc/posix-functions/fputs.texi: Likewise.
52520         * doc/posix-functions/fwrite.texi: Likewise.
52521         * doc/posix-functions/printf.texi: Likewise.
52522         * doc/posix-functions/putc.texi: Likewise.
52523         * doc/posix-functions/putchar.texi: Likewise.
52524         * doc/posix-functions/puts.texi: Likewise.
52525         * doc/posix-functions/vfprintf.texi: Likewise.
52526         * doc/posix-functions/vprintf.texi: Likewise.
52527
52528         * modules/safe-write (Depends-on): Add write.
52529
52530         * modules/sigpipe-tests: New file.
52531         * tests/test-sigpipe.c: New file.
52532         * tests/test-sigpipe.sh: New file.
52533
52534         * modules/write: New file.
52535         * lib/unistd.in.h: Include <sys/types.h>.
52536         (write): New declaration.
52537         * lib/write.c: New file.
52538         * m4/write.m4: New file.
52539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52540         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52541         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52542         GNULIB_WRITE, REPLACE_WRITE.
52543         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52544         and the SIGPIPE issue.
52545
52546         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52547         (raise): New declaration.
52548         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52549         (ext_signal): New function.
52550         (rpl_raise): New function.
52551         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52552         GNULIB_SIGNAL_H_SIGPIPE.
52553         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52554         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52555
52556         * modules/sigpipe: New file.
52557         * m4/sigpipe.m4: New file.
52558
52559 2008-09-25  Derek Price  <derek@ximbiot.com>
52560             Bruno Haible  <bruno@clisp.org>
52561
52562         * gnulib-tool (func_import): Report all license incompatibilities, not
52563         just the first one.
52564
52565 2008-09-25  Bruno Haible  <bruno@clisp.org>
52566
52567         * gnulib-tool (func_import): When computing the edits, consider not
52568         only the Makefile.ams that exist but also those that will be generated.
52569
52570 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52571
52572         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52573         fixes gnulib-tool --test warning about duplicate dependency.
52574
52575 2008-09-25  Bruno Haible  <bruno@clisp.org>
52576
52577         * gnulib-tool: Don't ask the user to perform edits in the generated
52578         Makefile.ams.
52579         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52580         apply to the Makefile.am being generated.
52581         (func_emit_tests_Makefile_am): Execute edits that apply to the
52582         Makefile.am being generated.
52583         (func_import): Setup list of Makefile.am edits before emitting the
52584         Makefile.ams, not at the end.
52585         (func_create_testdir): Update.
52586         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52587
52588 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52589
52590         * gnulib-tool (func_import): Store the --tests-base option in the
52591         comment in gnulib-cache.m4.
52592
52593 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52594
52595         * NEWS: Document increased portability that sys_select now provides.
52596
52597         * lib/sys_select.in.h: Install select wrapper.
52598         * lib/sys_socket.in.h: Use more descriptive name when there is no
52599         select wrapper.
52600         * lib/winsock-select.c: New.
52601         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52602         Require gl_HEADER_SYS_SOCKET.
52603         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52604         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52605         * tests/test-sys_select.c: Add functional tests.
52606
52607 2008-09-24  Eric Blake  <ebb9@byu.net>
52608
52609         open, fopen: close fd leak in last patch
52610         * lib/open.c (rpl_open): Close fd before returning error.
52611         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52612         * doc/posix-functions/open.texi (open): Document that Irix also
52613         has the bug.
52614         * doc/posix-functions/fopen.texi (fopen): Likewise.
52615         Reported by Paolo Bonzini.
52616
52617 2008-09-24  Bruno Haible  <bruno@clisp.org>
52618
52619         Ensure that a filename ending in a slash cannot be used to access a
52620         non-directory.
52621         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52622         to check whether it's really a directory.
52623         * lib/fopen.c: Include fcntl.h, unistd.h.
52624         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52625         and fdopen().
52626         * modules/fopen (Depends-on): Add unistd.
52627         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52628         * tests/test-fopen.c (main): Likewise.
52629         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52630         * doc/posix-functions/fopen.texi: Likewise.
52631         Reported by Eric Blake.
52632
52633 2008-09-23  Eric Blake  <ebb9@byu.net>
52634
52635         c-stack: avoid compiler optimizations when provoking overflow
52636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52637         recursion harder to optimize, to ensure a stack overflow occurs.
52638         * tests/test-c-stack.c (recurse): Likewise.
52639         Borrowed from libsigsegv.
52640
52641         c-stack: work around Irix sigaltstack bug
52642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52643         whether sigaltstack uses wrong end of stack_t (copied in part from
52644         libsigsegv).
52645         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52646         Irix bug, without requiring an over-allocation.
52647         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52648         bug.
52649
52650         fopen: document mingw bug on directories
52651         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52652         not allowing a stream visiting a directory, even though reading
52653         from such a stream is not portable.
52654
52655 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52656
52657         * lib/poll.c: Rewrite.
52658         * modules/poll: Depend on alloca.
52659
52660 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52661
52662         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52663         instead define prototypes for a full set of wrappers.  Ensure
52664         that Cygwin does not use the compatibility code, which is only
52665         for MinGW.
52666         * lib/winsock.c: New.
52667         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52668         * modules/sys_socket: Add lib/winsock.c.
52669
52670         * modules/poll-tests: Add errno and perror.
52671         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52672
52673 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52674
52675         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52676
52677 2008-09-23  Bruno Haible  <bruno@clisp.org>
52678
52679         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52680         * doc/glibc-functions/*: Likewise.
52681
52682 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52683
52684         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52685         success.
52686
52687 2008-09-22  Eric Blake  <ebb9@byu.net>
52688             Bruno Haible  <bruno@clisp.org>
52689
52690         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52691         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52692         supply %A but mishandle pseudo-NaN.
52693         Reported by Simon Josefsson.
52694
52695 2008-09-21  Bruno Haible  <bruno@clisp.org>
52696
52697         * tests/test-lock.c (main): Tweak skip message.
52698         * tests/test-tls.c (main): Likewise.
52699
52700 2008-09-21  Bruno Haible  <bruno@clisp.org>
52701
52702         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52703         whether 'struct sigaction' has sa_sigaction here...
52704         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52705         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52706
52707 2008-09-21  Bruno Haible  <bruno@clisp.org>
52708
52709         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52710         section.
52711         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52712         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52713         the new section.
52714         (Support for obsolete systems lacking POSIX:2001): New section.
52715         (String handling <string.h>): Move strdup to the new section.
52716         Suggested by Simon Josefsson and Paolo Bonzini.
52717
52718 2008-09-21  Bruno Haible  <bruno@clisp.org>
52719
52720         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52721         exponents in %e and %g results on 'long double'. Needed for mingw's
52722         improved *printf functions.
52723         * tests/test-vasprintf-posix.c (test_function): Likewise.
52724         * tests/test-snprintf-posix.h (test_function): Likewise.
52725         * tests/test-sprintf-posix.h (test_function): Likewise.
52726         Reported by Eric Blake.
52727
52728 2008-09-21  Bruno Haible  <bruno@clisp.org>
52729
52730         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52731         * tests/test-sprintf-posix.h (test_function): Likewise.
52732
52733 2008-09-21  Bruno Haible  <bruno@clisp.org>
52734
52735         * modules/getpass (Depends-on): Add strdup-posix.
52736
52737         New module 'strdup-posix'.
52738         * modules/strdup-posix: New file.
52739         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52740         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52742         REPLACE_STRDUP.
52743         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52744         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52745         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52746         strdup-posix.
52747
52748         * modules/strdup (Depends-on): Remove malloc-posix.
52749
52750 2008-09-20  Bruno Haible  <bruno@clisp.org>
52751
52752         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52753         Wildenhues.
52754
52755 2008-09-20  Bruno Haible  <bruno@clisp.org>
52756
52757         Ensure that wint_t gets defined on IRIX 5.3.
52758         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52759         * lib/wctype.in.h (wint_t): Likewise.
52760         (__wctype_wint_t): Remove type.
52761         (isw*): Use wint_t instead of __wctype_wint_t.
52762         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52763         * modules/wchar (Files): Add m4/wint_t.m4.
52764         (Makefile.am): Substitute HAVE_WINT_T.
52765         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52766         * tests/test-wctype.c: Check that wint_t is defined.
52767         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52768         * doc/posix-headers/wctype.texi: Likewise.
52769         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52770
52771 2008-09-18  Bruno Haible  <bruno@clisp.org>
52772
52773         * gnulib-tool (func_exit): Update comment.
52774
52775 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52776
52777         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52778         assumes strdup exists and does not depend on strdup to return
52779         ENOMEM on out of memory conditions.
52780
52781 2008-09-18  Bruno Haible  <bruno@clisp.org>
52782
52783         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52784         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52785         digits for the exponent.
52786
52787 2008-09-18  Jim Meyering  <meyering@redhat.com>
52788             Bruno Haible  <bruno@clisp.org>
52789
52790         * lib/vasnprintf.c (decimal_point_char): Define also if
52791         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52792
52793 2008-09-16  Bruno Haible  <bruno@clisp.org>
52794         and Eric Blake  <ebb9@byu.net>
52795
52796         vasnprintf: support Irix 5.3
52797         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52798         that mishandle long double infinity.
52799         Reported by Tom G. Christensen.
52800
52801 2008-09-16  Bruno Haible  <bruno@clisp.org>
52802
52803         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52804         Solaris 9.
52805         * doc/glibc-functions/alphasort.texi: Likewise.
52806         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52807
52808 2008-09-16  Jim Meyering  <meyering@redhat.com>
52809
52810         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52811         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52812         a umask modification leak out of a subshell.  Otherwise, the
52813         opensolaris /bin/sh would be accepted and thus cause unwarranted
52814         failures in the coreutils test suite.
52815
52816 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52817
52818         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52819         to succeed.
52820
52821 2008-09-16  Jim Meyering  <meyering@redhat.com>
52822
52823         avoid spurious test failure when library is built without ACL support
52824         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52825         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52826         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52827         * tests/test-copy-acl.sh: Likewise.
52828
52829 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52830
52831         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52832         based on character occurrence counts.
52833
52834 2008-09-15  Eric Blake  <ebb9@byu.net>
52835
52836         tests: avoid some compiler warnings
52837         * tests/test-memchr.c (main): Pass NULL indirectly.
52838         * tests/test-closein.c (main): Avoid unused variable.
52839
52840 2008-09-15  Bruno Haible  <bruno@clisp.org>
52841
52842         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52843         are missing on OpenBSD 4.0 individually.
52844         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52845
52846 2008-09-15  Bruno Haible  <bruno@clisp.org>
52847
52848         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52849         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52850         * doc/posix-functions/perror.texi: Likewise.
52851         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52852         is missing.
52853         Reported by Eric Blake.
52854
52855         * lib/errno.in.h: Use replacement values >= 2000.
52856         Reported by Eric Blake.
52857
52858 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52859
52860         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52861         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52862         limit.
52863         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52864         compareseq was aborted.
52865
52866 2008-09-14  Bruno Haible  <bruno@clisp.org>
52867
52868         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52869         yvec_edit_count.
52870         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52871         (fstrcmp_bounded): Simplify result computation accordingly.
52872
52873 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52874
52875         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52876         (fstrcmp): Define in terms of fstrcmp_bounded.
52877         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52878         lower_bound argument.
52879         Return quickly if the result is certainly < lower_bound.
52880         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52881
52882 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52883
52884         * lib/diffseq.h (EARLY_ABORT): New macro.
52885         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52886         evaluates to true.
52887
52888 2008-09-14  Bruno Haible  <bruno@clisp.org>
52889
52890         * modules/perror-tests: New file.
52891         * tests/test-perror.sh: New file.
52892         * tests/test-perror.c: New file.
52893
52894         New module 'perror'.
52895         * lib/stdio.in.h (perror): New declaration.
52896         * lib/perror.c: New file.
52897         * m4/perror.m4: New file.
52898         * modules/perror: New file.
52899         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52900         * doc/posix-functions/perror.texi: Mention the perror module.
52901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52902         REPLACE_PERROR.
52903         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52904         REPLACE_PERROR.
52905
52906 2008-09-14  Bruno Haible  <bruno@clisp.org>
52907
52908         * modules/stdio (Makefile.am): Reorder to match the order in
52909         lib/stdio.in.h.
52910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52911
52912 2008-09-13  Bruno Haible  <bruno@clisp.org>
52913
52914         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52915
52916 2008-09-13  Bruno Haible  <bruno@clisp.org>
52917
52918         Extend strerror to cover the added errno values.
52919         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52920         (rpl_strerror): Provide error messages for the added errno values and
52921         for the WSA* values.
52922         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52923         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52924         strerror.
52925         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52926         * modules/strerror (Depends-on): Add errno.
52927         * doc/posix-functions/strerror.texi: Document the change.
52928         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52929         and EOVERFLOW.
52930
52931 2008-09-13  Bruno Haible  <bruno@clisp.org>
52932
52933         * modules/EOVERFLOW: Remove file.
52934         * m4/eoverflow.m4: Remove file.
52935         * modules/EOVERFLOW-tests: Remove file.
52936         * tests/test-EOVERFLOW.c: Remove file.
52937         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52938         * modules/ftell (Depends-on): Likewise.
52939         * modules/getdelim (Depends-on): Likewise.
52940         * modules/getugroups (Depends-on): Likewise.
52941         * modules/poll (Depends-on): Likewise.
52942         * modules/snprintf (Depends-on): Likewise.
52943         * modules/sprintf-posix (Depends-on): Likewise.
52944         * modules/vasnprintf (Depends-on): Likewise.
52945         * modules/vasprintf (Depends-on): Likewise.
52946         * modules/vfprintf-posix (Depends-on): Likewise.
52947         * modules/vsnprintf (Depends-on): Likewise.
52948         * modules/vsprintf-posix (Depends-on): Likewise.
52949         * modules/xvasprintf (Depends-on): Likewise.
52950         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52951         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52952         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52953         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52954         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52955         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52956         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52957         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52958         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52959         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52960         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52961         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52962         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52963         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52964         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52965         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52966         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52967         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52968         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52969         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52970         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52971         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52972         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52973         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52974         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52975         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52976         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52977         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52978         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52979         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52980         * MODULES.html.sh: Remove EOVERFLOW.
52981         * NEWS: Mention the change.
52982
52983 2008-09-13  Bruno Haible  <bruno@clisp.org>
52984
52985         * modules/errno-tests: New file.
52986         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52987
52988         * lib/errno.in.h: New file.
52989         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52990         * modules/errno: New file.
52991         * doc/posix-headers/errno.texi: Update documentation.
52992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52993
52994 2008-09-13  Bruno Haible  <bruno@clisp.org>
52995
52996         * tests/test-poll.c: Use #if for native Windows, rather than testing
52997         __MSVCRT__.
52998
52999 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53000             Bruno Haible  <bruno@clisp.org>
53001
53002         * lib/glob.c: Don't include <pwd.h> on native Windows.
53003         (WINDOWS32): New macro.
53004         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53005
53006 2008-09-13  Bruno Haible  <bruno@clisp.org>
53007
53008         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53009         (ETIMEDOUT): Remove macro.
53010         (glthread_cond_timedwait_multithreaded): New declaration.
53011         (glthread_cond_timedwait): Use it.
53012         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53013         (glthread_cond_timedwait_multithreaded): New function.
53014
53015 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53016
53017         * modules/poll-tests: Do not check for io.h.
53018         * tests/test-poll.c: Check for __MSVCRT__ instead.
53019
53020 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53021
53022         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53023         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53024         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53025
53026 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53027
53028         * modules/poll-tests: New.
53029         * tests/test-poll.c: New.
53030
53031 2008-09-12  Eric Blake  <ebb9@byu.net>
53032
53033         frexp: test for NetBSD failure on -0.0
53034         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53035         not all, bugs from NetBSD 3.0 have been fixed.
53036         * doc/posix-functions/frexp.texi (frexp): Document bug.
53037         Reported by Thomas Klausner.
53038
53039         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53040         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53041         literal -0.0.
53042         Reported by Jonathan C. Patschke <jp@centtech.com>.
53043
53044 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53045
53046         * lib/glthread/cond.h: Use dummy implementation also if
53047         USE_WIN32_THREADS.
53048
53049 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53050
53051         * modules/fnmatch-posix (License): Change to LGPLv2+.
53052         * modules/fnmatch-gnu (License): Likewise.
53053
53054 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53055
53056         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53057
53058 2008-09-11  Jim Meyering  <meyering@redhat.com>
53059
53060         * users.txt: Add gtk-vnc.
53061
53062 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53063
53064         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53065         rotate amounts.
53066
53067         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53068         required for 16-bit and 8-bit rotates.
53069         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53070         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53071         UINT8_MAX instead of hard-coded constants.
53072         Suggested by Paul Eggert.
53073
53074 2008-09-07  Bruno Haible  <bruno@clisp.org>
53075
53076         * tests/test-striconveh.c (main): Check behaviour when converting from
53077         UTF-7.
53078
53079         Make striconveh work better with stateful encodings.
53080         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53081         that iconv does not increment the inptr when returning -1/EINVAL.
53082
53083 2008-09-07  Bruno Haible  <bruno@clisp.org>
53084
53085         * build-aux/config.rpath: Update according to libtool-2.2.6.
53086         * build-aux/config.libpath: Likewise.
53087
53088 2008-09-06  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53091         * lib/freadptr.c (freadptr): Likewise.
53092         * lib/freadseek.c (freadptrinc): Likewise.
53093         Reported by Simon Josefsson.
53094
53095 2008-09-06  Bruno Haible  <bruno@clisp.org>
53096
53097         * modules/freadptr (License): Change to LGPLv2+.
53098         * modules/freadseek (License): Likewise.
53099         Suggested by Eric Blake.
53100
53101         * modules/memchr2 (License): Change to LGPLv2+.
53102         Approved by Eric Blake.
53103
53104 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53105             Bruno Haible  <bruno@clisp.org>
53106
53107         Make gnulib-tool work with native 'sed' on AIX.
53108         * gnulib-tool (sed_noop): New variable.
53109         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53110         func_add_or_update, func_create_testdir): Use it to initialize sed
53111         script variables.
53112         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53113
53114 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53115             Bruno Haible  <bruno@clisp.org>
53116
53117         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53118         also works after #include directives.
53119
53120 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53121
53122         getdate.y: reject an out-of-range timezone value
53123         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53124         the range [-24...+24].  When specified with only one or two digits,
53125         * tests/test-getdate.c: Tests for the fix.
53126         * doc/getdate.texi: Document this change.
53127
53128 2008-09-03  Bruno Haible  <bruno@clisp.org>
53129
53130         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53131
53132 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53133
53134         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53135         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53136         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53137         Blake <ebb9@byu.net>.
53138
53139         * tests/test-bitrotate.c: Add more test vectors.
53140
53141 2008-09-02  Eric Blake  <ebb9@byu.net>
53142
53143         vasnprintf-posix: handle large precision via %.*d
53144         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53145         when handling it ourselves.
53146         * tests/test-vasnprintf-posix.c (test_function): Add test.
53147         * tests/test-snprintf-posix.h (test_function): Likewise.
53148         * tests/test-sprintf-posix.h (test_function): Likewise.
53149         * tests/test-vasprintf-posix.c (test_function): Likewise.
53150         Reported by Alain Guibert.
53151
53152 2008-09-01  Eric Blake  <ebb9@byu.net>
53153
53154         c-stack: make configure-time check more robust
53155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53156         successful sigaction call.
53157         Reported by Tom G. Christensen.
53158
53159 2008-09-01  Bruno Haible  <bruno@clisp.org>
53160
53161         New module 'findprog-lgpl'.
53162         * modules/findprog-lgpl: New file.
53163         * lib/findprog-lgpl.c: New file.
53164         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53165         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53166         to decide whether to use strdup or xstrdup, concatenated_filename or
53167         xconcatenated_filename.
53168
53169 2008-09-01  Bruno Haible  <bruno@clisp.org>
53170
53171         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53172         'xconcat-filename' (GPL).
53173         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53174         (License): Change to LGPLv2+.
53175         * modules/xconcat-filename: New file.
53176         * lib/concat-filename.h (concatenated_filename): Change specification.
53177         (xconcatenated_filename): New declaration.
53178         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53179         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53180         memory situations.
53181         * lib/xconcat-filename.c: New file.
53182         * NEWS: Mention the change.
53183         * lib/findprog.c: Include concat-filename.h, not filename.h.
53184         (find_in_path): Use xconcatenated_filename instead of
53185         concatenated_filename.
53186         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53187         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53188         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53189         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53190         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53191         instead of concatenated_filename.
53192         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53193         (execute_java_class): Use xconcatenated_filename instead of
53194         concatenated_filename.
53195         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53196         * modules/javacomp (Depends-on): Likewise.
53197         * modules/javaexec (Depends-on): Likewise.
53198
53199 2008-09-01  Bruno Haible  <bruno@clisp.org>
53200
53201         Split module 'filename' into 'filename' and 'concat-filename'.
53202         * modules/filename: Keep only lib/filename.h.
53203         (License): Change to LGPLv2+.
53204         * modules/concat-filename: New file, extracted from modules/filename.
53205         * lib/filename.h (concatenated_filename): Remove declaration.
53206         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53207         * lib/concat-filename.c: Include concat-filename.h.
53208         * NEWS: Mention the change.
53209
53210 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53211
53212         * lib/bitrotate.h (rotl8, rotr8): Add.
53213
53214         * modules/bitrotate (configure.ac): Need
53215         AC_REQUIRE([AC_C_INLINE]).
53216         (Description): Mention stdint.h.  Reported by Bruno Haible
53217         <bruno@clisp.org>.
53218
53219         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53220         Paolo Bonzini <bonzini@gnu.org>.
53221
53222 2008-08-31  Bruno Haible  <bruno@clisp.org>
53223
53224         Assume Solaris specific bi-arch conventions on Solaris systems.
53225         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53226         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53227         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53228         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53229         like acl_libdirstem.
53230         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53231         acl_libdirstem.
53232         * NEWS: Mention the change.
53233         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53234
53235 2008-08-31  Jim Meyering  <meyering@redhat.com>
53236
53237         * lib/strftime.h: Add comments describing the two added arguments.
53238
53239         remove duplicate #include directives
53240         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53241         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53242
53243 2008-08-31  Bruno Haible  <bruno@clisp.org>
53244
53245         New module 'sigpipe-die'.
53246         * modules/sigpipe-die: New file.
53247         * lib/sigpipe-die.h: New file.
53248         * lib/sigpipe-die.c: New file.
53249         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53250
53251 2008-08-31  Bruno Haible  <bruno@clisp.org>
53252
53253         Don't override previously installed signal handlers.
53254         * lib/fatal-signal.c (saved_sigactions): New variable.
53255         (uninstall_handlers): Reset the signal to the saved handler, not
53256         to SIG_DFL (except when ignored).
53257         (install_handlers): Save the previous handlers.
53258
53259 2008-08-30  Bruno Haible  <bruno@clisp.org>
53260
53261         * gnulib-tool (func_reset_sigpipe): New function.
53262         (func_get_automake_snippet, func_modules_transitive_closure,
53263         func_import): Invoke it before a join command that reads from stdin,
53264         to avoid "echo: write error: Broken pipe" error messages on stderr.
53265         Reported by Sam Steingold <sds@gnu.org>.
53266
53267 2008-08-30  Bruno Haible  <bruno@clisp.org>
53268
53269         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53270         Code copied from m4/open.m4.
53271         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53272         access and the filename ends in a slash. Code copied from lib/open.c.
53273         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53274         * tests/test-fopen.c (main): Check against bug with trailing slash.
53275
53276 2008-08-29  Bruno Haible  <bruno@clisp.org>
53277
53278         Avoid some "gcc -pedantic" warnings.
53279         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53280         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53281         * lib/dirent.in.h: Likewise.
53282         * lib/fcntl.in.h: Likewise.
53283         * lib/float.in.h: Likewise.
53284         * lib/iconv.in.h: Likewise.
53285         * lib/inttypes.in.h: Likewise.
53286         * lib/locale.in.h: Likewise.
53287         * lib/math.in.h: Likewise.
53288         * lib/netinet_in.in.h: Likewise.
53289         * lib/search.in.h: Likewise.
53290         * lib/signal.in.h: Likewise.
53291         * lib/stdarg.in.h: Likewise.
53292         * lib/stdint.in.h: Likewise.
53293         * lib/stdio.in.h: Likewise.
53294         * lib/stdlib.in.h: Likewise.
53295         * lib/string.in.h: Likewise.
53296         * lib/strings.in.h: Likewise.
53297         * lib/sys_select.in.h: Likewise.
53298         * lib/sys_socket.in.h: Likewise.
53299         * lib/sys_stat.in.h: Likewise.
53300         * lib/sys_time.in.h: Likewise.
53301         * lib/sysexits.in.h: Likewise.
53302         * lib/time.in.h: Likewise.
53303         * lib/unistd.in.h: Likewise.
53304         * lib/wchar.in.h: Likewise.
53305         * lib/wctype.in.h: Likewise.
53306         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53307         * modules/fchdir (Makefile.am): Likewise.
53308         * modules/fcntl (Makefile.am): Likewise.
53309         * modules/float (Makefile.am): Likewise.
53310         * modules/iconv_open (Makefile.am): Likewise.
53311         * modules/inttypes (Makefile.am): Likewise.
53312         * modules/locale (Makefile.am): Likewise.
53313         * modules/math (Makefile.am): Likewise.
53314         * modules/netinet_in (Makefile.am): Likewise.
53315         * modules/search (Makefile.am): Likewise.
53316         * modules/signal (Makefile.am): Likewise.
53317         * modules/stdarg (Makefile.am): Likewise.
53318         * modules/stdint (Makefile.am): Likewise.
53319         * modules/stdio (Makefile.am): Likewise.
53320         * modules/stdlib (Makefile.am): Likewise.
53321         * modules/string (Makefile.am): Likewise.
53322         * modules/strings (Makefile.am): Likewise.
53323         * modules/sys_select (Makefile.am): Likewise.
53324         * modules/sys_socket (Makefile.am): Likewise.
53325         * modules/sys_stat (Makefile.am): Likewise.
53326         * modules/sys_time (Makefile.am): Likewise.
53327         * modules/sysexits (Makefile.am): Likewise.
53328         * modules/time (Makefile.am): Likewise.
53329         * modules/unistd (Makefile.am): Likewise.
53330         * modules/wchar (Makefile.am): Likewise.
53331         * modules/wctype (Makefile.am): Likewise.
53332         Reported by Reuben Thomas <rrt@sc3d.org>.
53333
53334 2008-08-29  Bruno Haible  <bruno@clisp.org>
53335
53336         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53337         any more.
53338
53339 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53340
53341         * MODULES.html.sh (Misc): Add bitrotate.
53342
53343         * modules/bitrotate: New file.
53344
53345         * lib/bitrotate.h: New file.
53346
53347         * modules/bitrotate-tests: New file.
53348
53349         * tests/test-bitrotate.c: New file.
53350
53351         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53352         on the bitrotate module.
53353
53354         * lib/arctwo.c: Use new bitrotate module.
53355
53356 2008-08-29  Jim Meyering  <meyering@redhat.com>
53357
53358         bootstrap: merge changes from coreutils
53359         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53360         of copied files.  Remove a kludge, now that this is fixed.
53361         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53362         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53363         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53364
53365 2008-08-29  Bruno Haible  <bruno@clisp.org>
53366
53367         * MODULES.html.sh: Remove --cvs-urls option.
53368
53369 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53370
53371         maint.mk: adjust to file name change
53372         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53373
53374 2008-08-28  Jim Meyering  <meyering@redhat.com>
53375
53376         * modules/getndelim2 (License): Relicense to LGPLv2+.
53377         Approved by Richard Stallman for the version of 1995, and by
53378         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53379
53380 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53381
53382         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53383         dummy if one is not available.  Do not touch them if
53384         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53385         (getc_maybe_unlocked): New.
53386         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53387
53388 2008-08-26  Eric Blake  <ebb9@byu.net>
53389
53390         doc/INSTALL: resync from autoconf
53391         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53392         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53393         moving...
53394         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53395         * INSTALL: Regenerate.
53396         * INSTALL.ISO: New file.
53397         * INSTALL.UTF-8: Likewise.
53398
53399 2008-08-26  Jim Meyering  <meyering@redhat.com>
53400
53401         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53402         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53403         these definitions conditional, so that they may be overridden, too.
53404
53405 2008-08-26  Bruno Haible  <bruno@clisp.org>
53406
53407         Generate INSTALL file variants with prettier quotes.
53408         * doc/Makefile (INSTALL_PRELUDE): New macro.
53409         (INSTALL): Use it.
53410         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53411
53412 2008-08-26  Bruno Haible  <bruno@clisp.org>
53413
53414         Run makeinfo in an English locale.
53415         * doc/Makefile (MAKEINFO): New variable.
53416
53417 2008-08-26  Bruno Haible  <bruno@clisp.org>
53418
53419         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53420         Suggested by Eric Blake.
53421
53422 2008-08-25  Bruno Haible  <bruno@clisp.org>
53423
53424         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53425
53426 2008-08-25  Eric Blake  <ebb9@byu.net>
53427
53428         c-stack: test that stack overflow can be caught
53429         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53430         that platform allows handling stack overflow; at least OS/2 EMX
53431         has sigaltstack, but crashes before transferring control to
53432         handler on stack overflow.
53433         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53434         check for HAVE_STACK_OVERFLOW_HANDLING.
53435         Reported by Elbert Pol.
53436
53437 2008-08-25  Bruno Haible  <bruno@clisp.org>
53438
53439         * doc/posix-functions/strftime.texi: Fix description of strftime
53440         module.
53441
53442 2008-08-24  Bruno Haible  <bruno@clisp.org>
53443
53444         * tests/uniwidth/test-uc_width2.c: New file.
53445         * tests/uniwidth/test-uc_width2.sh: New file.
53446         * modules/uniwidth/width-tests (Files): Add the new files.
53447         (TESTS): Add uniwidth/test-uc_width2.sh.
53448         (TESTS_ENVIRONMENT): New variable.
53449         (check_PROGRAMS): Add test-uc_width2.
53450         (test_uc_width2_SOURCES): New variable.
53451
53452         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53453         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53454         not 0x00AB.
53455         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53456
53457 2008-08-22  Eric Blake  <ebb9@byu.net>
53458
53459         test-lock, test-tls: mention why a test is skipped
53460         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53461         skipped.
53462         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53463
53464         count-one-bits: relax license
53465         * modules/count-one-bits (License): Relicense to LGPLv2+.
53466         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53467
53468 2008-08-22  Andreas Schwab  <schwab@suse.de>
53469
53470         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53471         Remove spurious space in assignment.
53472
53473 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53474
53475         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53476         Paul Eggert <eggert@CS.UCLA.EDU>.
53477
53478 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53479
53480         * modules/gettext: Add m4/threadlib.m4.
53481
53482 2008-08-19  Eric Blake  <ebb9@byu.net>
53483
53484         test-c-stack: fix compilation failure on FreeBSD 5.0
53485         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53486         headers before <sys/resource.h>.
53487         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53488         the bug.
53489         Reported by Nelson H. F. Beebe.
53490
53491         strverscmp: migrate from "strverscmp.h" to <string.h>
53492         * modules/string (Makefile.am): Add new hooks.
53493         * modules/strverscmp (Files): Remove strverscmp.h.
53494         (Depends-on): Add string.
53495         (configure.ac): Add indicator.
53496         (Include): Mention new header.
53497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53498         defaults.
53499         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53500         results.
53501         * lib/strverscmp.h: Delete.
53502         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53503         * tests/test-strverscmp.c (includes): Adjust client.
53504         * lib/check-version.c (includes): Likewise.
53505         * NEWS: Document the change.
53506
53507         strverscmp: add unit test
53508         * modules/strverscmp-tests: New file.
53509         * tests/test-strverscmp.c: Likewise.
53510
53511 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53512
53513         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53514         regarding Windows crypto stuff, from Mono.
53515
53516 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53517
53518         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53519         if present, for intel RND.  Return error on failures.
53520
53521 2008-08-18  Ben Pfaff  <blp@gnu.org>
53522
53523         gitlog-to-changelog: give better diagnostic for failed pipe-open
53524         * build-aux/gitlog-to-changelog: Improve error message: suggest
53525         that the version of Git may be too old.
53526
53527 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53528
53529         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53530         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53531
53532 2008-08-18  Bruno Haible  <bruno@clisp.org>
53533
53534         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53535         pthread_in_use().
53536
53537 2008-08-18  Bruno Haible  <bruno@clisp.org>
53538
53539         * lib/glthread/threadlib.c: Include <pthread.h>.
53540
53541 2008-08-18  Bruno Haible  <bruno@clisp.org>
53542
53543         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53544         glthread_recursive_lock_* macros.
53545         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53546         Fix syntax error.
53547
53548 2008-08-18  Bruno Haible  <bruno@clisp.org>
53549
53550         * lib/glthread/thread.c: Avoid forcing a context switch right after
53551         thread creation.
53552
53553 2008-08-17  Bruno Haible  <bruno@clisp.org>
53554
53555         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53556         * lib/glthread/thread.h: Provide Win32 specific implementation.
53557         * modules/thread (Files): Add lib/glthread/thread.c.
53558         (Depends-on): Add lock.
53559         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53560
53561 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53562
53563         New module 'yield'.
53564         * modules/yield: New file.
53565         * lib/glthread/yield.h: New file.
53566         * m4/yield.m4: New file.
53567         * MODULES.html.sh (Multithreading): Add yield.
53568
53569 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53570
53571         New module 'thread'.
53572         * modules/thread: New file.
53573         * lib/glthread/thread.h: New file.
53574         * m4/thread.m4: New file.
53575         * MODULES.html.sh (Multithreading): Add thread.
53576
53577 2008-08-17  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/glthread/lock.h: Include <stdlib.h> always.
53580         * lib/glthread/tls.h: Likewise.
53581         * lib/glthread/cond.h: Likewise.
53582
53583 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53584
53585         New module 'cond'.
53586         * modules/cond: New file.
53587         * lib/glthread/cond.h: New file.
53588         * lib/glthread/cond.c: New file.
53589         * m4/cond.m4: New file.
53590         * MODULES.html.sh (Multithreading): Add cond.
53591
53592 2008-08-16  Eric Blake  <ebb9@byu.net>
53593
53594         c-stack: fix regression on Irix 5.3 from 2008-06-21
53595         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53596         sa_sigaction...
53597         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53598         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53599         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53600         * modules/signal (Makefile.am): Use the value.
53601         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53602         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53603         * doc/posix-headers/signal.texi (signal.h): Document this
53604         portability issue.
53605         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53606         Reported by Tom G. Christensen.
53607
53608 2008-08-17  Bruno Haible  <bruno@clisp.org>
53609
53610         New module 'threadlib'.
53611         * modules/threadlib: New file.
53612         * lib/glthread/threadlib.c: New file, extracted from
53613         lib/glthread/lock.c.
53614         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53615         functions.
53616         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53617         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53618         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53619         macros.
53620         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53621         (gl_DISABLE_THREADS): Remove macro.
53622         * modules/lock (Files): Remove build-aux/config.rpath.
53623         (Depends-on): Remove havelib. Add threadlib.
53624         (configure.ac-early): Remove section.
53625         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53626         * modules/tls (Depends-on): Remove lock. Add threadlib.
53627         (Link): New section, copied from threadlib.
53628         * MODULES.html.sh (Multithreading): Add threadlib.
53629
53630 2008-08-14  Bruno Haible  <bruno@clisp.org>
53631
53632         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53633         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53634         glthread_rwlock_unlock, glthread_rwlock_destroy,
53635         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53636         glthread_recursive_lock_destroy): Define as macros always.
53637         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53638         glthread_lock_lock.
53639         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53640         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53641         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53642         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53643         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53644         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53645         (glthread_recursive_lock_lock_func): Renamed from
53646         glthread_recursive_lock_lock.
53647         (glthread_recursive_lock_unlock_func): Renamed from
53648         glthread_recursive_lock_unlock.
53649         (glthread_recursive_lock_destroy_func): Renamed from
53650         glthread_recursive_lock_destroy.
53651
53652 2008-08-14  Bruno Haible  <bruno@clisp.org>
53653
53654         * lib/glthread/lock.h: Renamed from lib/lock.h.
53655         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53656         * lib/glthread/tls.h: Renamed from lib/tls.h.
53657         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53658         * lib/fstrcmp.c: Update includes.
53659         * lib/strsignal.c: Update includes.
53660         * modules/lock (Files, Makefile.am): Update.
53661         (Include): Change to "glthread/lock.h".
53662         * modules/tls (Files, Makefile.am): Update.
53663         (Include): Change to "glthread/tls.h".
53664         * tests/test-lock.c: Update includes.
53665         * tests/test-tls.c: Update includes.
53666         * NEWS: Mention the renamed header files.
53667
53668 2008-08-11  Jim Meyering  <meyering@redhat.com>
53669
53670         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53671
53672 2008-08-11  Eric Blake  <ebb9@byu.net>
53673
53674         test-c-stack: avoid C99-ism
53675         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53676         before statement.
53677         Reported by Alain Guibert.
53678
53679 2008-08-10  Jim Meyering  <meyering@redhat.com>
53680
53681         ensure that return value of uinttostr et al are not ignored
53682         * lib/inttostr.h (__GNUC_PREREQ): Define.
53683         (__attribute_warn_unused_result__): Define.
53684         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53685
53686 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53687
53688         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53689         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53690
53691 2008-08-07  Jim Meyering  <meyering@redhat.com>
53692
53693         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53694
53695         * modules/mkstemp (License): Relicense under LGPLv2+.
53696         * modules/tempname (License): Likewise.
53697
53698 2008-08-06  Bruno Haible  <bruno@clisp.org>
53699
53700         * lib/poll.c (poll): Further micro-optimization.
53701
53702 2008-08-06  Jim Meyering  <meyering@redhat.com>
53703
53704         inet_pton.c: use locale-independent tolower
53705         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53706         (inet_pton6): Use c_tolower rather than tolower.
53707         * modules/inet_pton (Depends-on): Add c-ctype.
53708
53709 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53710
53711         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53712         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53713
53714 2008-08-06  Jim Meyering  <meyering@redhat.com>
53715
53716         * modules/inet_pton (License): Relicense under LGPLv2+.
53717
53718 2008-08-03  Bruno Haible  <bruno@clisp.org>
53719
53720         Additional non-aborting API for lock and tls.
53721         * lib/lock.h: Include <errno.h>.
53722         (glthread_lock_init): New macro/function.
53723         (gl_lock_init): Define as wrapper around glthread_lock_init.
53724         (glthread_lock_lock): New macro/function.
53725         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53726         (glthread_lock_unlock): New macro/function.
53727         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53728         (glthread_lock_destroy): New macro/function.
53729         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53730         (glthread_rwlock_init): New macro/function.
53731         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53732         (glthread_rwlock_rdlock): New macro/function.
53733         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53734         (glthread_rwlock_wrlock): New macro/function.
53735         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53736         (glthread_rwlock_unlock): New macro/function.
53737         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53738         (glthread_rwlock_destroy): New macro/function.
53739         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53740         (glthread_recursive_lock_init): New macro/function.
53741         (gl_recursive_lock_init): Define as wrapper around
53742         glthread_recursive_lock_init.
53743         (glthread_recursive_lock_lock): New macro/function.
53744         (gl_recursive_lock_lock): Define as wrapper around
53745         glthread_recursive_lock_lock.
53746         (glthread_recursive_lock_unlock): New macro/function.
53747         (gl_recursive_lock_unlock): Define as wrapper around
53748         glthread_recursive_lock_unlock.
53749         (glthread_recursive_lock_destroy): New macro/function.
53750         (gl_recursive_lock_destroy): Define as wrapper around
53751         glthread_recursive_lock_destroy.
53752         (glthread_once): New macro/function.
53753         (gl_once): Define as wrapper around glthread_once.
53754         Update function declarations.
53755         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53756         glthread_rwlock_init. Return error code.
53757         (glthread_rwlock_rdlock_multithreaded): Renamed from
53758         glthread_rwlock_rdlock. Return error code.
53759         (glthread_rwlock_wrlock_multithreaded): Renamed from
53760         glthread_rwlock_wrlock. Return error code.
53761         (glthread_rwlock_unlock_multithreaded): Renamed from
53762         glthread_rwlock_unlock. Return error code.
53763         (glthread_rwlock_destroy_multithreaded): Renamed from
53764         glthread_rwlock_destroy. Return error code.
53765         (glthread_recursive_lock_init_multithreaded): Renamed from
53766         glthread_recursive_lock_init. Return error code.
53767         (glthread_recursive_lock_lock_multithreaded): Renamed from
53768         glthread_recursive_lock_lock. Return error code.
53769         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53770         glthread_recursive_lock_unlock. Return error code.
53771         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53772         glthread_recursive_lock_destroy. Return error code.
53773         (glthread_once_call): Make static.
53774         (glthread_once_multithreaded): Renamed from glthread_once.
53775         * lib/tls.h: Include <errno.h>.
53776         (glthread_tls_key_init): New macro/function.
53777         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53778         (glthread_tls_set): New macro/function.
53779         (gl_tls_set): Define as wrapper around glthread_tls_set.
53780         (glthread_tls_key_destroy): New macro/function.
53781         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53782         Update function declarations.
53783         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53784         glthread_tls_get.
53785         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53786
53787 2008-08-04  Eric Blake  <ebb9@byu.net>
53788
53789         gnumakefile: use space, not TAB, outside of targets
53790         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53791
53792 2008-08-02  Jim Meyering  <meyering@redhat.com>
53793
53794         getdate.y: avoid locale-dependent date parsing failure
53795         In Turkish locales, getdate would fail to recognize keywords
53796         containing a lowercase "i".  The solution is not to rely on
53797         locale-sensitive case-conversion.
53798         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53799         (lookup_word): Use c_toupper in place of toupper.
53800         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53801         Reported by Vefa Bicakci <bicave@superonline.com> in
53802         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53803         * modules/getdate (Depends-on): Add c-ctype.
53804
53805 2008-08-02  Bruno Haible  <bruno@clisp.org>
53806
53807         * gnulib-tool (func_import): When updating or creating a .gitignore
53808         file, prepend each added line with a slash, and ignore leading slashes
53809         from the existing lines.
53810         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53811
53812 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53813
53814         Portability fix for GNU make 3.79.1.
53815         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53816         versions do not understand.
53817
53818 2008-08-01  Bruno Haible  <bruno@clisp.org>
53819
53820         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53821         * tests/test-isnanf.h (zero): New variable.
53822         (main): Avoid literal -0.0f.
53823         * tests/test-isnand.h (zero): New variable.
53824         (main): Avoid literal -0.0.
53825         * tests/test-isnanl.h (zero): New variable.
53826         (main): Avoid literal -0.0L.
53827         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53828         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53829         -0.0, -0.0L.
53830         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53831         (test_signbitd): Avoid literal -0.0.
53832         (test_signbitl): Avoid literal -0.0L.
53833         * tests/test-ceilf1.c (zero): New variable.
53834         (main): Avoid literal -0.0f.
53835         * tests/test-ceill.c (zero): New variable.
53836         (main): Avoid literal -0.0L.
53837         * tests/test-floorf1.c (zero): New variable.
53838         (main): Avoid literal -0.0f.
53839         * tests/test-floorl.c (zero): New variable.
53840         (main): Avoid literal -0.0L.
53841         * tests/test-roundf1.c (zero): New variable.
53842         (main): Avoid literal -0.0f.
53843         * tests/test-round1.c (zero): New variable.
53844         (main): Avoid literal -0.0.
53845         * tests/test-roundl.c (zero): New variable.
53846         (main): Avoid literal -0.0L.
53847         * tests/test-truncf1.c (zero): New variable.
53848         (main): Avoid literal -0.0f.
53849         * tests/test-trunc1.c (zero): New variable.
53850         (main): Avoid literal -0.0.
53851         * tests/test-truncl.c (zero): New variable.
53852         (main): Avoid literal -0.0L.
53853         * tests/test-frexp.c (zero): New variable.
53854         (main): Avoid literal -0.0.
53855         * tests/test-frexpl.c (zero): New variable.
53856         (main): Avoid literal -0.0L.
53857         * tests/test-ldexpl.c (zero): New variable.
53858         (main): Avoid literal -0.0L.
53859         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53860         (zerod, zerol): New variables.
53861         (test_function): Avoid literals -0.0, -0.0L.
53862         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53863         (zerod, zerol): New variables.
53864         (test_function): Avoid literals -0.0, -0.0L.
53865         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53866         (zerod, zerol): New variables.
53867         (test_function): Avoid literals -0.0, -0.0L.
53868         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53869         (zerod, zerol): New variables.
53870         (test_function): Avoid literals -0.0, -0.0L.
53871         * tests/test-strtod.c (zero): New variable.
53872         (main): Avoid literal -0.0.
53873         Reported by Jonathan C. Patschke <jp@centtech.com>.
53874
53875 2008-07-31  Jim Meyering  <meyering@redhat.com>
53876
53877         sha256.h: correct definition of SHA224_DIGEST_SIZE
53878         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53879         Reported by Paulie Pena IV <paulie4@gmail.com>.
53880         Define as 224 / 8, rather than as a literal.
53881         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53882         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53883         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53884
53885 2008-07-31  Bruno Haible  <bruno@clisp.org>
53886
53887         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53888         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53889         Reported by Jonathan Patschke <jp@centtech.com>.
53890
53891 2008-07-31  Bruno Haible  <bruno@clisp.org>
53892
53893         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53894         Reported by Paolo Bonzini <bonzini@gnu.org>.
53895
53896 2008-07-30  Eric Blake  <ebb9@byu.net>
53897
53898         test-strtod: allow compilation without -lm
53899         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53900         Reported by Dennis Clarke <blastwave@gmail.com>.
53901
53902 2008-07-28  Jim Meyering  <meyering@redhat.com>
53903
53904         bootstrap: work also when there are no .po files in po/
53905         * build-aux/bootstrap (update_po_files): Complete the change
53906         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53907
53908 2008-07-27  Jim Meyering  <meyering@redhat.com>
53909
53910         * users.txt: Add zile.
53911
53912 2008-07-26  Ben Pfaff  <blp@gnu.org>
53913
53914         Add missing dependencies on new m4/exponent[fdl].m4 files.
53915         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53916         * modules/isnand-nolibm: Add m4/exponentd.m4.
53917         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53918         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53919         m4/isnan[fdl].m4, because the macros actually used moved.
53920         Reported by Jim Meyering.
53921
53922 2008-07-14  Ben Pfaff  <blp@gnu.org>
53923
53924         Add isinf module.
53925         * lib/isinf.c: New file.
53926         * lib/math.in.h: Define isinf macro if we have decided to replace
53927         it.
53928         * m4/isinf.m4: New file.
53929         * m4/math_h.m4: Initialize and substitute variables for isinf
53930         module.
53931         * modules/isinf: New file.
53932         * modules/isinf-tests: New file.
53933         * modules/math: Add substitutions for new module.
53934         * tests/test-isinf.c: New file.
53935         * doc/posix-functions/isinf.texi: Mention new module.
53936         * MODULES.html.sh: Mention new module.
53937
53938 2008-07-14  Ben Pfaff  <blp@gnu.org>
53939
53940         Factor out some macros for use by additional modules.
53941         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53942         exponentf.m4.
53943         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53944         exponentd.m4.
53945         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53946         file exponentl.m4.
53947         * m4/exponentf.m4: New file.
53948         * m4/exponentd.m4: New file.
53949         * m4/exponentl.m4: New file.
53950         * modules/isnanf: Use new file m4/exponentf.m4.
53951         * modules/isnand: Use new file m4/exponentd.m4.
53952         * modules/isnanl: Use new file m4/exponentl.m4.
53953
53954 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53955
53956         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53957         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53958         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53959         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53960
53961         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53962         readlink on platforms without PATH_MAX.
53963
53964 2008-07-21  Eric Blake  <ebb9@byu.net>
53965
53966         Warn, not fail, on stale version.
53967         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53968
53969         Don't allow installation with stale devel version number.
53970         * top/GNUmakefile (_is-install-target): New macro.
53971         (_curr-ver): Forbid installation with stale version number.
53972
53973 2008-07-20  Bruno Haible  <bruno@clisp.org>
53974
53975         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53976         TESTS_ENVIRONMENT.
53977         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53978
53979 2008-07-20  Bruno Haible  <bruno@clisp.org>
53980
53981         * lib/c-stack.h (c_stack_action): Add documentation.
53982         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53983
53984 2008-07-20  Bruno Haible  <bruno@clisp.org>
53985
53986         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53987         * modules/readlink (License): Likewise.
53988
53989 2008-07-17  Eric Blake  <ebb9@byu.net>
53990
53991         * modules/c-stack (Link): Fix typo.
53992
53993         Make c-stack use libsigsegv, when available.
53994         * modules/c-stack (Depends-on): Add libsigsegv.
53995         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53996         needed.
53997         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53998         (segv_handler, overflow_handler, c_stack_action)
53999         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54000         implementation when libsigsegv is available, but only when using
54001         the library is necessary.
54002         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54003         comment, explaining why XSI check fails on Linux.
54004         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54005         * tests/test-c-stack2.sh: Tweak skip message.
54006         * NEWS: Document new link-time requirements.
54007
54008 2008-07-16  Eric Blake  <ebb9@byu.net>
54009
54010         c-stack: Expose false positives when not using libsigsegv.
54011         * modules/c-stack-tests (Files): Expand test.
54012         * tests/test-c-stack.c (main): Add means to conditionally trigger
54013         non-overflow SIGSEGV.
54014         * tests/test-c-stack2.sh: New file.
54015
54016 2008-07-14  Bruno Haible  <bruno@clisp.org>
54017
54018         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54019         Reported by Eric Blake.
54020
54021 2008-07-14  Sam Steingold  <sds@gnu.org>
54022             Bruno Haible  <bruno@clisp.org>
54023
54024         New module libsigsegv.
54025         * modules/libsigsegv: New file.
54026         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54027         modifications.
54028         * MODULES.html.sh (Signal handling): New section.
54029
54030 2008-07-14  Bruno Haible  <bruno@clisp.org>
54031
54032         * modules/unictype/ctype-* (Description): Add the word "function".
54033         Improves the resulting doc in MODULES.html.
54034
54035 2008-07-12  Ben Pfaff  <blp@gnu.org>
54036
54037         Add longlong module.
54038         * modules/longlong: New file.
54039
54040 2008-07-12  Bruno Haible  <bruno@clisp.org>
54041
54042         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54043         to empty.
54044
54045 2008-07-10  Ben Pfaff  <blp@gnu.org>
54046
54047         Add isnan module.
54048         * doc/posix-functions/isnan.texi: Mention new module.
54049         * lib/math.in.h: Define isnan macro if we have decided to replace
54050         it.
54051         * m4/isnan.m4: New file.
54052         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54053         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54054         also.
54055         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54056         redundancy.
54057         * m4/math_h.m4: Initialize and substitute variables for isnan
54058         module.
54059         * modules/isnan: New file.
54060         * modules/isnan-tests: New file.
54061         * modules/math: Add substitutions for new module.
54062         * tests/test-isnan.c: New file.
54063         * MODULES.html.sh: Mention new module.
54064
54065 2008-07-10  Ben Pfaff  <blp@gnu.org>
54066
54067         Add isnanf module.
54068         * lib/isnanf.m4: New file.
54069         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54070         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54071         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54072         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54073         * modules/isnanf: New file.
54074         * modules/isnanf-tests: New file.
54075         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54076         files.
54077         * tests/test-isnanf-nolibm.c: factored most of its contents into
54078         new file tests/test-isnanf.h.
54079         * tests/test-isnanf.h: New file.
54080         * tests/test-isnanf.c: New file.
54081         * MODULES.html.sh: Mention new module.
54082         * doc/glibc-functions/isnanf.texi: Mention new module.
54083
54084 2008-07-10  Ben Pfaff  <blp@gnu.org>
54085
54086         Add isnand module.
54087         * lib/isnand.h: New file.
54088         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54089         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54090         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54091         functionality also.
54092         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54093         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54094         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54095         * modules/isnand: New file.
54096         * modules/isnand-tests: New file.
54097         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54098         files.
54099         * tests/test-isnand-nolibm.c: factored most of its contents into
54100         new file tests/test-isnand.h.
54101         * tests/test-isnand.h: New file.
54102         * tests/test-isnand.c: New file.
54103         * MODULES.html.sh: Mention new module.
54104
54105 2008-07-10  Ben Pfaff  <blp@gnu.org>
54106
54107         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54108         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54109         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54110         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54111         * modules/isnanf-nolibm: Update references to renamed files.
54112         * modules/isnand-nolibm: Likewise.
54113         * modules/isnanf-nolibm-tests: Likewise.
54114         * modules/isnand-nolibm-tests: Likewise.
54115         * lib/frexp.c: Likewise.
54116         * lib/isfinite.c: Likewise.
54117         * lib/signbitd.c: Likewise.
54118         * lib/signbitf.c: Likewise.
54119         * lib/vasnprintf.c: Likewise.
54120         * tests/test-ceilf1.c: Likewise.
54121         * tests/test-ceilf2.c: Likewise.
54122         * tests/test-floorf1.c: Likewise.
54123         * tests/test-floorf2.c: Likewise.
54124         * tests/test-frexp.c: Likewise.
54125         * tests/test-round1.c: Likewise.
54126         * tests/test-round2.c: Likewise.
54127         * tests/test-roundf1.c: Likewise.
54128         * tests/test-strtod.c: Likewise.
54129         * tests/test-trunc1.c: Likewise.
54130         * tests/test-trunc2.c: Likewise.
54131         * tests/test-truncf1.c: Likewise.
54132         * tests/test-truncf2.c: Likewise.
54133         * NEWS: Mention the renamed header files.
54134
54135 2008-07-11  Jim Meyering  <meyering@redhat.com>
54136
54137         vc-list-files: make the last-resort awk code more portable
54138         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54139         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54140         does not support it.
54141
54142 2008-07-10  Eric Blake  <ebb9@byu.net>
54143
54144         Work with tar's bootstrap.
54145         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54146         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54147         an m4 comment.
54148
54149 2008-07-09  Jim Meyering  <meyering@redhat.com>
54150
54151         posix-shell.m4: fix typo that made this test malfunction
54152         * m4/posix-shell.m4: Remove capitalization in variable name.
54153
54154 2008-07-08  Bruno Haible  <bruno@clisp.org>
54155
54156         * m4/onceonly.m4: Update comments.
54157         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54158
54159 2008-07-04  Jim Meyering  <meyering@redhat.com>
54160
54161         * users.txt: Add vc-dwim.
54162         (bison, coreutils): Use the gitweb URL.
54163
54164 2008-07-03  Jim Meyering  <meyering@redhat.com>
54165
54166         * users.txt: Add libffcall.  From Sam Steingold.
54167
54168 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54169
54170         getdate.y: do not ignore TZ with relative day, month or year offset
54171         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54172         relative-date-handling, since otherwise, the latter would clobber the
54173         sole output (an updated Start value) of the tz-handling block.
54174         * tests/test-getdate.c: Tests for the fix
54175
54176 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54177
54178         Recognize 'foo_LIBRARIES += libgnu.a'.
54179         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54180         makefile snippet has already specified an installation location,
54181         also using '+='.
54182
54183 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54184
54185         getdate.y: factor out common actions
54186         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54187         Use them in place of open-coded actions.
54188
54189 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54190
54191         Add self-test for getdate module.
54192         * modules/getdate-tests: New file.
54193         * tests/test-getdate.c: New file.
54194
54195 2008-06-29  Bruno Haible  <bruno@clisp.org>
54196
54197         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54198         .gitignore.
54199         Reported by Sylvain Beucler <beuc@beuc.net>.
54200
54201 2008-06-29  Bruno Haible  <bruno@clisp.org>
54202
54203         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54204         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54205
54206 2008-06-29  Bruno Haible  <bruno@clisp.org>
54207
54208         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54209         EXTRA_DIST.
54210         Reported by Sylvain Beucler <beuc@beuc.net>.
54211
54212 2008-06-26  Jim Meyering  <meyering@redhat.com>
54213
54214         make several modules depend on the "open" module
54215         This provides slightly increased consistency when opening-for-write
54216         the name of a non-directory spelled with a trailing slash.
54217         * modules/chdir-safer: Likewise.
54218         * modules/chown: Likewise.
54219         * modules/clean-temp: Likewise.
54220         * modules/copy-file: Likewise.
54221         * modules/fchdir: Likewise.
54222         * modules/fcntl-safer: Likewise.
54223         * modules/pipe: Likewise.
54224         * modules/utime: Likewise.
54225         Prompted by Eric Blake and Bruno Haible.
54226
54227 2008-06-24  Andreas Schwab  <schwab@suse.de>
54228
54229         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54230         literals can be used as initializers for global variables.
54231
54232 2008-06-23  Eric Blake  <ebb9@byu.net>
54233
54234         Make gnulib-cache.m4 easier to diff.
54235         * gnulib-tool (func_import): Allow newlines when reading cached
54236         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54237
54238 2008-06-23  Bruno Haible  <bruno@clisp.org>
54239
54240         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54241         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54242         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54243         m4/signalblocking.m4.
54244         (gl_PREREQ_SIGACTION): Don't invoke it.
54245         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54246         gl_PREREQ_SIG_HANDLER_H.
54247         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54248         Don't check for sigaction here.
54249
54250 2008-06-23  Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54253         (install_handlers): Don't set the SA_RESETHAND flag.
54254
54255 2008-06-23  Bruno Haible  <bruno@clisp.org>
54256
54257         * m4/sigaction.m4: Comment fixes.
54258         * lib/signal.in.h: Likewise.
54259
54260 2008-06-23  Eric Blake  <ebb9@byu.net>
54261
54262         Fix typo.
54263         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54264
54265         Avoid SA_ namespace.
54266         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54267         Reported by Ralf Wildenhues.
54268
54269         Avoid test failure due to SA_RESTORER.
54270         * tests/test-sigaction.c (SA_MASK): New macro.
54271         (main): Avoid failing due to extension flags being set.
54272         Reported by Jim Meyering.
54273
54274         Revert use of sig-handler.h in sigprocmask.c.
54275         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54276         it requires the existence of struct sigaction.
54277         * lib/sigprocmask.c (handler_t): Restore typedef.
54278         (rpl_signal, old_handlers): Use local type.
54279
54280 2008-06-22  Bruno Haible  <bruno@clisp.org>
54281
54282         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54283         conditionally.
54284         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54285
54286 2008-06-22  Bruno Haible  <bruno@clisp.org>
54287
54288         * doc/posix-functions/siginterrupt.texi: Move note.
54289
54290         * lib/signal.in.h (SA_RESTART): New macro.
54291         * lib/sigaction.c: Update comment.
54292
54293         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54294
54295         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54296         (gl_PREREQ_SIGPROCMASK): Invoke it.
54297         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54298
54299         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54300
54301         * lib/sigprocmask.c: Update a comment.
54302
54303 2008-06-21  Eric Blake  <ebb9@byu.net>
54304
54305         Use sigaction module rather than signal().
54306         * modules/c-stack (Depends-on): Add sigaction.
54307         * modules/fatal-signal (Depends-on): Likewise.
54308         * modules/nanosleep (Depends-on): Likewise.
54309         * modules/sigprocmask (Files): Add sig-handler.h.
54310         * modules/sigaction (Files): Likewise.
54311         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54312         Eggert.
54313         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54314         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54315         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54316         (init_fatal_signals): Likewise.
54317         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54318         (siginterrupt): Delete fallback.
54319         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54320         instead.
54321         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54322         siginterrupt.
54323
54324         New module sigaction, for mingw.
54325         * modules/sigaction: New module...
54326         * modules/sigaction-tests: ...and its test.
54327         * m4/sigaction.m4: New file.
54328         * lib/sigaction.c: Likewise.
54329         * tests/test-sigaction.c: Likewise.
54330         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54331         * modules/signal (Makefile.am): Likewise.
54332         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54333         needed.
54334         * doc/posix-headers/signal.texi (signal.h): Mention provided
54335         types.
54336         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54337         that sigaction is preferable.
54338         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54339         module.
54340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54341         sigaction.
54342
54343         Improve robustness of sigprocmask by overriding signal.
54344         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54345         is in use.
54346         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54347         (SIGKILL, SIGSTOP): Provide fallbacks.
54348         (rpl_signal): Implement.
54349         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54350         signal can be called inside handlers.
54351
54352         Fix nanosleep module on mingw.
54353         * modules/nanosleep (Depends-on): Add sys_select.
54354         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54355
54356         Fix licensing of sigprocmask.
54357         * modules/raise (License): Relicense as LGPL.
54358
54359 2008-06-21  Bruno Haible  <bruno@clisp.org>
54360
54361         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54362         result if it contains question marks.
54363         Reported by Michael Geng <linux@michaelgeng.de>.
54364
54365 2008-06-19  Bruno Haible  <bruno@clisp.org>
54366
54367         Fix CVS-ism.
54368         * doc/gnulib.texi: Include updated-stamp.texi.
54369         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54370         (updated-stamp.texi): New rule.
54371         (gnulib.info): Depend on it.
54372         * doc/.gitignore: Add updated-stamp.texi.
54373         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54374
54375 2008-06-19  Bruno Haible  <bruno@clisp.org>
54376
54377         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54378         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54379
54380 2008-06-19  Eric Blake  <ebb9@byu.net>
54381
54382         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54383         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54384         Reported by Stepan Kasal.
54385
54386 2008-06-18  Bruno Haible  <bruno@clisp.org>
54387
54388         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54389         Reported by Eric Blake.
54390
54391 2008-06-18  Eric Blake  <ebb9@byu.net>
54392
54393         Work around cygwin 1.5.25 strsignal bug.
54394         * tests/test-strsignal.c: Allow for const char *.
54395         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54396
54397 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54398
54399         * users.txt: Update URL to article and add author/date
54400         information.
54401
54402 2008-06-17  Bruno Haible  <bruno@clisp.org>
54403
54404         New macro gl_DISABLE_THREADS.
54405         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54406         if the user did not pass --enable-threads or --disable-threads option.
54407         (gl_DISABLE_THREADS): New macro.
54408         Reported by Eric Blake <ebb9@byu.net>.
54409
54410 2008-06-17  Bruno Haible  <bruno@clisp.org>
54411
54412         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54413         when the macro ignores it.
54414         Based on a patch by Eric Blake <ebb9@byu.net>.
54415
54416 2008-06-17  Bruno Haible  <bruno@clisp.org>
54417
54418         * modules/tls (License): Change to LGPLv2+.
54419         Reported by Eric Blake.
54420
54421 2008-06-17  Eric Blake  <ebb9@byu.net>
54422
54423         Simplify c-stack prerequisites.
54424         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54426         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54427         check.
54428         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54429         <sys/resource.h>.
54430
54431         Move c-stack test into testsuite.
54432         * modules/c-stack-tests: New file.
54433         * lib/c-stack.c [DEBUG]: Move test program...
54434         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54435         fail test if sigaltstack is lacking.
54436         * tests/test-c-stack.sh: New driver file.
54437
54438 2008-06-16  Eric Blake  <ebb9@byu.net>
54439
54440         Use raise module consistently.
54441         * modules/fatal-signal (Depends-on): Add raise.
54442         * modules/sigprocmask (Depends-on): Likewise.
54443         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54444         * lib/sigprocmask.c (sigprocmask): Likewise.
54445         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54446         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54447
54448         Fix compliance bug in sigpending.
54449         * lib/sigprocmask.c (sigpending): Return pending array via
54450         parameter, not return value.
54451
54452 2008-06-14  Eric Blake  <ebb9@byu.net>
54453
54454         Improve obstack-printf test code.
54455         * tests/test-obstack-printf.c (test_function): Fix comment, and
54456         simplify usage of obstack_* in macros.  Add a test for coverage.
54457         Reported by Bruno Haible.
54458
54459 2008-06-14  Bruno Haible  <bruno@clisp.org>
54460
54461         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54462         array size as a constant, not as a const variable.
54463         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54464         AC_USE_SYSTEM_EXTENSIONS.
54465         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54466         Test whether the obstack_printf function actually exists.
54467         * modules/obstack-printf (Depends-on): Add extensions.
54468         (Include): Remove obstack.h.
54469         * modules/obstack-printf-posix (Depends-on): Add extensions.
54470         (Include): Remove obstack.h.
54471
54472 2008-06-13  Eric Blake  <ebb9@byu.net>
54473
54474         Add obstack-printf and obstack-printf-posix modules.
54475         * modules/obstack-printf: New file.
54476         * modules/obstack-printf-posix: Likewise.
54477         * MODULES.html.sh (Misc): Mention them.
54478         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54479         Likewise.
54480         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54481         Likewise.
54482         * modules/stdio (Makefile.am): Accomodate new modules.
54483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54484         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54485         Declare.
54486         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54487         functions.
54488         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54489         (gl_REPLACE_OBSTACK_PRINTF): New macros
54490         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54491         * tests/test-obstack-printf.c: New file.
54492         * modules/obstack-printf-tests: Likewise.
54493         * modules/obstack-printf-posix-tests: Likewise.
54494
54495 2008-06-11  Bruno Haible  <bruno@clisp.org>
54496
54497         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54498         * lib/open.c: Include errno.h.
54499         (open): Fail when attempting to write to a file that has a trailing
54500         slash.
54501         * tests/test-open.c (main): Test against trailing slash bug.
54502         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54503
54504 2008-06-10  Bruno Haible  <bruno@clisp.org>
54505
54506         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54507         for $? to work inside the trap command, with various /bin/sh-s.
54508         * tests/test-vc-list-files-cvs.sh: Likewise.
54509
54510 2008-06-10  Bruno Haible  <bruno@clisp.org>
54511
54512         * lib/acl-internal.h: Don't include gettext.h here.
54513         * lib/set-mode-acl.c: Include gettext.h here.
54514         * lib/copy-acl.c: Likewise.
54515
54516 2008-06-10  Bruno Haible  <bruno@clisp.org>
54517
54518         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54519         * lib/wait-process.c (wait_subprocess): Likewise.
54520         * lib/execute.h (execute): Add termsigp argument.
54521         * lib/execute.c (execute): Likewise.
54522         * lib/csharpcomp.c (compile_csharp_using_pnet,
54523         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54524         * lib/csharpexec.c (execute_csharp_using_pnet,
54525         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54526         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54527         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54528         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54529         is_jikes_present): Update.
54530         * lib/javaexec.c (execute_java_class): Update.
54531         * lib/javaversion.c (execute_and_read_line): Update.
54532         * NEWS: Document the changes.
54533         Reported by Eric Blake.
54534
54535 2008-06-10  Eric Blake  <ebb9@byu.net>
54536
54537         Add missing include.
54538         * tests/test-strstr.c (includes): Add <signal.h>.
54539         * tests/test-strcasestr.c (includes): Likewise.
54540         * tests/test-memmem.c (includes): Likewise.
54541
54542 2008-06-10  Bruno Haible  <bruno@clisp.org>
54543
54544         * lib/wait-process.c (wait_subprocess): Add an assertion.
54545
54546 2008-06-10  Bruno Haible  <bruno@clisp.org>
54547
54548         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54549
54550 2008-06-10  Bruno Haible  <bruno@clisp.org>
54551
54552         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54553         using alarm().
54554         * tests/test-strcasestr.c (main): Likewise.
54555         * tests/test-strstr.c (main): Likewise.
54556
54557 2008-06-09  Bruno Haible  <bruno@clisp.org>
54558
54559         Work around the Solaris 10 ACE ACLs ABI change.
54560         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54561         declare if ACL_NO_TRIVIAL is present.
54562         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54563         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54564         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54565         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54566         define if ACL_NO_TRIVIAL is present.
54567         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54568         and use the current ABI.
54569         (file_has_acl): Use same #if condition as elsewhere.
54570         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54571         in use, and use the current ABI.
54572         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54573         Reported by Jim Meyering.
54574
54575 2008-06-09  Eric Blake  <ebb9@byu.net>
54576
54577         Work around environments that (stupidly) ignore SIGALRM.
54578         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54579         before using alarm().
54580         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54581         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54582         Reported by Ian Beckwith <ianb@erislabs.net>.
54583
54584         Produce autobuild blurb earlier in log.
54585         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54586
54587 2008-06-09  Jim Meyering  <meyering@redhat.com>
54588         and OndÅ™ej Vašík  <ovasik@redhat.com>
54589
54590         utimens.c: correct kernel bug work-around
54591         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54592         failure, not success, and the kernel bug we're trying to work
54593         around affects not just the utimensat call, but also the fallback
54594         futimens call.
54595         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54596         not success.
54597         [HAVE_FUTIMENS]: Use the same work-around, here.
54598
54599 2008-06-09  Jim Meyering  <meyering@redhat.com>
54600
54601         add more guards around definition of ACE_-related code
54602         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54603         ALLOW and ACE_OWNER are also defined.
54604
54605 2008-06-08  Bruno Haible  <bruno@clisp.org>
54606
54607         * lib/acl-internal.h: Add me as co-author.
54608         * lib/file-has-acl.c: Likewise.
54609         * lib/set-mode-acl.c: Likewise.
54610         * lib/copy-acl.c: Likewise.
54611
54612 2008-06-08  Bruno Haible  <bruno@clisp.org>
54613
54614         Add support for AIX ACLs.
54615         * lib/acl-internal.h (acl_nontrivial): New declaration.
54616         * lib/file-has-acl.c (acl_nontrivial): New function.
54617         (file_has_acl): Add implementation using AIX 4 ACL API.
54618         * lib/set-mode-acl.c (qset_acl): Likewise.
54619         * lib/copy-acl.c (qcopy_acl): Likewise.
54620
54621 2008-06-08  Bruno Haible  <bruno@clisp.org>
54622
54623         Add support for HP-UX ACLs.
54624         * lib/acl-internal.h (acl_nontrivial): New declaration.
54625         * lib/file-has-acl.c (acl_nontrivial): New function.
54626         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54627         * lib/set-mode-acl.c (qset_acl): Likewise.
54628         * lib/copy-acl.c (qcopy_acl): Likewise.
54629
54630 2008-06-08  Bruno Haible  <bruno@clisp.org>
54631
54632         Add support for Cygwin ACLs.
54633         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54634         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54635         the chmod_or_fchmod call.
54636         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54637
54638 2008-06-08  Bruno Haible  <bruno@clisp.org>
54639
54640         Fix bug with setuid modes in Solaris 10+ code.
54641         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54642         succeeded, when the mode contains some special bits.
54643
54644 2008-06-08  Bruno Haible  <bruno@clisp.org>
54645
54646         Add support for Solaris 7..10 ACLs.
54647         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54648         declarations.
54649         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54650         functions.
54651         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54652         * lib/set-mode-acl.c (qset_acl): Likewise.
54653         * lib/copy-acl.c (qcopy_acl): Likewise.
54654
54655 2008-06-08  Bruno Haible  <bruno@clisp.org>
54656
54657         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54658         declaration.
54659         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54660         (acl_access_nontrivial): Remove MacOS X case.
54661         (file_has_acl): Use acl_extended_nontrivial.
54662         * lib/copy-acl.c (qcopy_acl): Likewise.
54663
54664 2008-06-08  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54667
54668 2008-06-08  Jim Meyering  <meyering@redhat.com>
54669
54670         * modules/acl (Maintainer): Add Bruno Haible.
54671
54672 2008-06-07  Bruno Haible  <bruno@clisp.org>
54673
54674         Improve support for Tru64 ACLs.
54675         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54676         ACL on OSF/1.
54677
54678 2008-06-07  Bruno Haible  <bruno@clisp.org>
54679
54680         Add support for MacOS X ACLs.
54681         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54682         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54683         * lib/set-mode-acl.c (qset_acl): Likewise.
54684         * lib/copy-acl.c (qcopy_acl): Likewise.
54685
54686 2008-06-07  Bruno Haible  <bruno@clisp.org>
54687
54688         Fix memory leak introduced on 2008-05-22.
54689         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54690         use.
54691
54692 2008-06-07  Bruno Haible  <bruno@clisp.org>
54693
54694         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54695         to construct an empty ACL.
54696
54697 2008-06-07  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54700         precisely.
54701         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54702
54703 2008-06-07  Bruno Haible  <bruno@clisp.org>
54704
54705         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54706         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54707
54708 2008-06-07  Bruno Haible  <bruno@clisp.org>
54709
54710         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54711         regardless of POSIX.
54712         * doc/posix-functions/_longjmp.texi: Likewise.
54713         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54714         SystemV platform in this case.
54715
54716 2008-06-06  Eric Blake  <ebb9@byu.net>
54717
54718         Document abort() bugs.
54719         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54720
54721         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54722         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54723         sigsetjmp.
54724         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54725         siglongjmp, but only as a macro.
54726         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54727         is obsolete.
54728         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54729
54730         Tweak documentation to cover cygwin argz bugs.
54731         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54732         argz bug fix; no code change needed since no cygwin releases
54733         occurred between the last fix and the bug being tested.
54734         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54735         module and recently fixed cygwin bugs.
54736         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54737         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54738         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54739         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54740         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54741         Likewise.
54742         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54743         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54744         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54745         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54746         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54747         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54748         Likewise.
54749
54750         Avoid gcc warning on cygwin.
54751         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54752         !ACL_NO_TRIVIAL]: Avoid unused variable.
54753
54754 2008-06-05  Eric Blake  <ebb9@byu.net>
54755
54756         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54757         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54758         git-version-gen fails to come up with a version.
54759         Reported by Simon Josefsson.
54760
54761 2008-06-05  Jim Meyering  <meyering@redhat.com>
54762             Paul Eggert  <eggert@cs.ucla.edu>
54763
54764         utimens.c: work around a probable Linux kernel bug
54765         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54766         appears to be a kernel bug that causes utimensat to return 280
54767         instead of 0, indicating success.
54768
54769 2008-06-04  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54772         2008-06-01 commit.
54773
54774 2008-06-04  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54777         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54778         (file_has_acl): Use it. Save errno afterwards.
54779         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54780
54781 2008-06-03  Bruno Haible  <bruno@clisp.org>
54782
54783         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54784         draft code. Simplify #ifs.
54785         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54786         Put Solaris code after POSIX-draft code. Fix comments regarding
54787         Solaris 10, HP-UX. Mention Cygwin.
54788         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54789
54790 2008-06-03  Eric Blake  <ebb9@byu.net>
54791
54792         Provide fallback for older kernels.
54793         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54794         Provide runtime fallback if kernel lacks support.
54795         Reported by Mike Frysinger.
54796
54797 2008-06-02  Bruno Haible  <bruno@clisp.org>
54798
54799         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54800         it exists.
54801
54802 2008-06-02  Bruno Haible  <bruno@clisp.org>
54803
54804         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54805         * lib/copy-acl.c (qcopy_acl): Update comment.
54806
54807 2008-06-02  Bruno Haible  <bruno@clisp.org>
54808
54809         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54810         like ACL APIs.
54811
54812 2008-06-02  Bruno Haible  <bruno@clisp.org>
54813
54814         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54815         * tests/test-set-mode-acl.sh: Likewise.
54816         * tests/test-copy-acl.sh: Likewise.
54817         * tests/test-copy-file.sh: Likewise.
54818
54819 2008-06-02  Bruno Haible  <bruno@clisp.org>
54820
54821         * tests/test-file-has-acl.sh: Remove unused code.
54822
54823 2008-06-01  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54826         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54827         messages.
54828         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54829
54830 2008-06-01  Bruno Haible  <bruno@clisp.org>
54831
54832         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54833         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54834         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54835         APIs.
54836         * modules/acl-tests (configure.ac): Remove tests now contained in
54837         m4/acl.m4.
54838
54839 2008-06-02  Jim Meyering  <meyering@redhat.com>
54840
54841         announce-gen: use a better key-server host name
54842         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54843         it may be more consistently reliable.  Suggested by Werner Koch
54844         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54845
54846 2008-06-01  Bruno Haible  <bruno@clisp.org>
54847
54848         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54849         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54850
54851 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54852
54853         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54854
54855 2008-06-01  Bruno Haible  <bruno@clisp.org>
54856
54857         New ACL tests.
54858         * tests/test-file-has-acl.sh: New file.
54859         * tests/test-file-has-acl.c: New file.
54860         * tests/test-set-mode-acl.sh: New file.
54861         * tests/test-set-mode-acl.c: New file.
54862         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54863         * tests/test-copy-acl.c: New file.
54864         * modules/acl-tests: New file, based on modules/copy-file-tests.
54865         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54866         (Depends-on): Add acl-tests.
54867         (configure.ac): Remove checks.
54868         (Makefile.am): Don't create test-sameacls program here any more.
54869
54870 2008-06-01  Bruno Haible  <bruno@clisp.org>
54871
54872         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54873         * tests/test-sameacls.c: Include progname.h.
54874         (main): Invoke set_program_name. Portability fixes for MacOS X,
54875         Solaris, HP-UX.
54876
54877 2008-06-01  Bruno Haible  <bruno@clisp.org>
54878
54879         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54880         function.
54881         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54882
54883 2008-06-01  Bruno Haible  <bruno@clisp.org>
54884
54885         * modules/rpmatch (Depends-on): Add strdup.
54886
54887 2008-06-01  Bruno Haible  <bruno@clisp.org>
54888
54889         * lib/pipe.c: Include unistd-safer.h.
54890         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54891         * modules/pipe (Depends-on): Add unistd-safer.
54892
54893 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54894
54895         * modules/autobuild (configure.ac): Call AB_INIT.
54896
54897 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54898
54899         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54900         Suggested by Bruno Haible <bruno@clisp.org>.
54901
54902 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54903
54904         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54905         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54906         <bruno@clisp.org>.
54907
54908 2008-05-29  Eric Blake  <ebb9@byu.net>
54909
54910         Prefer new POSIX 200x interfaces over futimesat.
54911         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54912         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54913         when available.
54914         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54915
54916 2008-05-28  Bruno Haible  <bruno@clisp.org>
54917
54918         * modules/stpcpy (License): Change to LGPLv2+.
54919         Requested by David Lutterkort <dlutter@redhat.com>.
54920
54921 2008-05-27  Bruno Haible  <bruno@clisp.org>
54922
54923         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54924         current mingw.
54925         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54926
54927 2008-05-27  Bruno Haible  <bruno@clisp.org>
54928
54929         * modules/iconv_open (Link): New section, from module 'iconv'.
54930         * modules/striconv (Link): Likewise.
54931         * modules/striconveh (Link): Likewise.
54932         * modules/xstriconv (Link): Likewise.
54933         * modules/unicodeio (Link): Likewise.
54934         * modules/propername (Link): Likewise.
54935         Reported by Jim Meyering.
54936
54937 2008-05-26  Jim Meyering  <meyering@redhat.com>
54938
54939         sha256: do not artificially restrict buffer length to be < 2^32
54940         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54941         uint32_t to size_t.
54942         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54943         to match.
54944
54945         avoid unaligned access errors, e.g., on sparc
54946         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54947         direct access through a possibly-unaligned uint64* pointer.
54948         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54949         direct access through a possibly-unaligned uint32* pointer.
54950         Prompted by this patch from Tom "spot" Callaway:
54951         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54952
54953         sha512.c: fix typo in comment
54954         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54955
54956 2008-05-25  Bruno Haible  <bruno@clisp.org>
54957
54958         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54959         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54960         (Makefile.am): Update lib_SOURCES.
54961
54962 2008-05-25  Bruno Haible  <bruno@clisp.org>
54963
54964         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54965
54966 2008-05-25  Jim Meyering  <meyering@redhat.com>
54967
54968         useless-if-before-free: freed expr may have white-space differences
54969         * build-aux/useless-if-before-free: Recognize cases in which the
54970         freed expression differs from the tested one in embedded white
54971         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54972         $1 was used, so we can't make any regexp shy.  Improved tests now
54973         detect this.
54974
54975         useless-if-before-free: accept white space in the expression.
54976         * build-aux/useless-if-before-free: For now, any white space
54977         in the expression must be identical in the free argument.
54978
54979         useless-if-before-free: efficiency tweak
54980         * build-aux/useless-if-before-free: Make the expression-matching
54981         regexp "shy".
54982         Make the *outer* regexp shy, not the expr-matching one.
54983
54984         update code-in-comment to accept cast of free arg
54985         * build-aux/useless-if-before-free: Update regexp.
54986
54987 2008-05-25  Bruno Haible  <bruno@clisp.org>
54988
54989         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54990         * modules/copy-file-tests (Files, Makefile.am): Update.
54991         * tests/test-copy-file.c (func_test_copy): Update.
54992
54993 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54994
54995         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54996
54997 2008-05-23  Bruno Haible  <bruno@clisp.org>
54998
54999         Improve support for ACLs on OSF/1.
55000         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55001         Remove fallback for unknown flavors of ACLs.
55002
55003 2008-05-22  Bruno Haible  <bruno@clisp.org>
55004
55005         Add support for ACLs on OSF/1.
55006         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55007         replacements.
55008         (acl_free_text): New macro fallback.
55009         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55010         acl_free.
55011         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55012         acl_free_text function. Require AC_C_INLINE.
55013
55014 2008-05-22  Bruno Haible  <bruno@clisp.org>
55015
55016         Make copy_acl work on MacOS X 10.5.
55017         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55018         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55019         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55020         If MODE_INSIDE_ACL, don't assume that every system has the same text
55021         representation for ACLs as FreeBSD.
55022         * lib/copy-acl.c (copy_acl): Add support for platforms with
55023         !MODE_INSIDE_ACL.
55024         * lib/file-has-acl.c (file_has_acl): Likewise.
55025         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55026         FreeBSD, MacOS X, or IRIX, respectively.
55027
55028 2008-05-22  Bruno Haible  <bruno@clisp.org>
55029
55030         * lib/acl.h: Don't include <sys/acl.h>.
55031         (GETACLCNT): Move fallback to lib/acl-internal.h.
55032         * lib/acl-internal.h: Include <sys/acl.h> here.
55033         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55034
55035 2008-05-22  Bruno Haible  <bruno@clisp.org>
55036
55037         Split off copy_acl function to separate file.
55038         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55039         * lib/acl.c (copy_acl): Moved function to separate file.
55040         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55041         * modules/acl (Files): Add lib/copy-acl.c.
55042         (Makefiles.am): Augment lib_SOURCES.
55043
55044 2008-05-22  Bruno Haible  <bruno@clisp.org>
55045
55046         * modules/copy-file-tests: New file.
55047         * tests/test-copy-file.sh: New file.
55048         * tests/test-copy-file.c: New file.
55049         * tests/test-copy-file-sameacls.c: New file.
55050
55051 2008-05-22  Eric Blake  <ebb9@byu.net>
55052
55053         Avoid gcc warning.
55054         * tests/test-memcmp.c (main): Pass NULL indirectly.
55055
55056 2008-05-21  Bruno Haible  <bruno@clisp.org>
55057
55058         Add reference doc about ACLs.
55059         * doc/acl-resources.txt: New file.
55060         * doc/acl-cygwin.txt: New file.
55061
55062 2008-05-21  Bruno Haible  <bruno@clisp.org>
55063
55064         Avoid one more warning from gcc.
55065         * lib/vasnprintf.c (IF_LINT): Update comments.
55066         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55067
55068 2008-05-21  Jim Meyering  <meyering@redhat.com>
55069
55070         avoid a warning from gcc
55071         * lib/vasnprintf.c (IF_LINT): Define.
55072         (scale10_round_decimal_long_double):
55073         Use it to avoid a "may be used uninitialized" warning.
55074         (scale10_round_decimal_double): Likewise.
55075
55076 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55077
55078         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55079         declared.
55080
55081 2008-05-20  Bruno Haible  <bruno@clisp.org>
55082
55083         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55084         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55085
55086 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55087
55088         * modules/memcmp-tests: New file.
55089         * tests/test-memcmp.c: New file.
55090
55091 2008-05-19  Bruno Haible  <bruno@clisp.org>
55092
55093         * modules/propername (Notice, configure.ac): Put quoted "..." into
55094         --keyword option.
55095         * lib/propername.h: Update comments accordingly.
55096         Reported by Eric Blake.
55097
55098 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55099
55100         * modules/getpass-gnu (Depends-on): Add fseeko.
55101
55102 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55103
55104         * modules/base64-tests: New file.
55105
55106 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55107
55108         * lib/base64.c (base64_decode_ctx): If a decode context structure
55109         was passed in use it to ignore newlines.  If a context structure
55110         was _not_ passed in, continue to treat newlines as garbage (this
55111         is the historical behavior).  Formerly base64_decode.
55112         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55113         takes a decode context structure.
55114         * lib/base64.h (base64_decode): Macro for four-argument calls.
55115         (base64_decode_alloc): Likewise.
55116         * lib/base64.c (base64_decode_ctx): If a decode context structure
55117         was passed in use it to ignore newlines.  If a context structure
55118         was _not_ passed in, continue to treat newlines as garbage (this
55119         is the historical behavior).  Formerly base64_decode.
55120         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55121         takes a decode context structure.
55122         * lib/base64.h (base64_decode): Macro for four-argument calls.
55123         (base64_decode_alloc): Likewise.
55124
55125 2008-05-19  Jim Meyering  <meyering@redhat.com>
55126
55127         avoid a warning from gcc
55128         * lib/trim.c (IF_LINT): Define.
55129         (trim2): Use it to avoid a "may be used uninitialized" warning.
55130
55131         Fix doc typo.
55132         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55133
55134 2008-05-19  Bruno Haible  <bruno@clisp.org>
55135
55136         * doc/glibc-functions/getpass.texi: Document limits of other
55137         implementations.
55138
55139 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55140             Bruno Haible <bruno@clisp.org>
55141
55142         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55143
55144 2008-05-18  Bruno Haible  <bruno@clisp.org>
55145
55146         * modules/propername: New file, from GNU gettext.
55147         * lib/propername.h: New file, from GNU gettext.
55148         * lib/propername.c: New file, from GNU gettext.
55149         * MODULES.html.sh (Internationalization functions): Add propername.
55150
55151 2008-05-16  Jim Meyering  <meyering@redhat.com>
55152             Bruno Haible  <bruno@clisp.org>
55153
55154         Avoid some warnings from "gcc -Wshadow".
55155         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55156
55157 2008-05-15  Eric Blake  <ebb9@byu.net>
55158
55159         Extend previous patch to cygwin 1.7.0.
55160         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55161         fast implementation in cygwin >= 1.7.0.
55162         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55164
55165 2008-05-15  Bruno Haible  <bruno@clisp.org>
55166
55167         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55168         implementation in glibc >= 2.9.
55169         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55171
55172 2008-05-15  Bruno Haible  <bruno@clisp.org>
55173
55174         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55175         (Unicode string functions): Add unilbrk/*.
55176         Reported by Karl Berry.
55177
55178 2008-05-15  Eric Blake  <ebb9@byu.net>
55179
55180         Fix violation of <stdbool.h> replacement in regex.
55181         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55182         * lib/regexec.c (re_search_internal): Likewise.
55183         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55184
55185 2008-05-15  Jim Meyering  <meyering@redhat.com>
55186
55187         avoid distracting test output when git or cvs is not found
55188         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55189         * tests/test-vc-list-files-git.sh: Likewise.
55190
55191 2008-05-15  Eric Blake  <ebb9@byu.net>
55192
55193         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55194         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55195         glibc version.
55196         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55197         * doc/posix-functions/strstr.texi (strstr): Likewise.
55198         * lib/str-two-way.h (MAX): Sychronize with glibc.
55199
55200 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55201
55202         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55203         opr.ctx_type.
55204         (calc_first): Initialize constraint field.
55205         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55206         Fix grammar.
55207         (duplicate_node): Merge constraint field for all node types.
55208         (calc_eclosure_iter): Look at constraint field for all node types.
55209         * lib/regex_internal.c (create_cd_newstate): Don't look at
55210         opr.ctx_type.
55211
55212 2008-05-14  Bruno Haible  <bruno@clisp.org>
55213
55214         Help GCC to do better code generation.
55215         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55216         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55217         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55218         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55219         Declare with attribute 'malloc' if supported.
55220
55221 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55222
55223         use "echo STR|wc -c" rather than unportable "expr length STR"
55224         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55225         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55226
55227 2008-05-14  Jim Meyering  <meyering@redhat.com>
55228
55229         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55230         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55231         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55232         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55233         via Collin Lasse.
55234
55235 2008-05-14  Eric Blake  <ebb9@byu.net>
55236
55237         Avoid quadratic growth in gl_LIBSOURCES.
55238         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55239         Suggested by Bruno Haible.
55240
55241         Test xmemdup0.
55242         * modules/xmemdup0-tests: New file.
55243         * tests/test-xmemdup0.c: Likewise.
55244
55245 2008-05-13  Eric Blake  <ebb9@byu.net>
55246
55247         Split xmemdup0 into its own module.
55248         * modules/xmemdup0: New file.
55249         * lib/xmemdup0.h: Likewise.
55250         * lib/xmemdup0.c: Likewise.
55251         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55252         * lib/xalloc.h (xmemdup0): Remove.
55253         * lib/xmalloc.c (xmemdup0): Likewise.
55254
55255 2008-05-13  Eric Blake  <ebb9@byu.net>
55256             Bruno Haible  <bruno@clisp.org>
55257
55258         Reduce number of forks required during autoconf.
55259         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55260         and gl_LIBSOURCES_DIR.
55261         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55262         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55263         m4_syscmd per file.
55264         <m4_foreach_w>: Move...
55265         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55266
55267 2008-05-13  Eric Blake  <ebb9@byu.net>
55268
55269         * gnulib-tool: Fix various comment typos.
55270
55271 2008-05-12  Bruno Haible  <bruno@clisp.org>
55272
55273         Tailor the linebreaking algorithm.
55274         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55275
55276 2008-05-12  Bruno Haible  <bruno@clisp.org>
55277
55278         Update to Unicode 5.0.0.
55279         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55280         LBP_JV, LBP_JT. Redistribute values.
55281         (unilbrk_table): Change size.
55282         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55283         Unicode TR#14 rev. 22.
55284         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55285         LBP_JV, LBP_JT. Redistribute values.
55286         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55287         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55288         Update.
55289         * lib/unilbrk/lbrkprop1.h: Regenerated.
55290         * lib/unilbrk/lbrkprop2.h: Regenerated.
55291         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55292         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55293         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55294         Likewise.
55295         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55296         Likewise.
55297         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55298         result.
55299         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55300         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55301         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55302         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55303         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55304         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55305
55306 2008-05-11  Bruno Haible  <bruno@clisp.org>
55307
55308         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55309
55310 2008-05-11  Bruno Haible  <bruno@clisp.org>
55311
55312         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55313         * modules/unilbrk/gen-lbrk: New file.
55314
55315 2008-05-11  Bruno Haible  <bruno@clisp.org>
55316
55317         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55318         * m4/sha512.m4 (gl_SHA512): Likewise.
55319
55320 2008-05-11  Jim Meyering  <meyering@redhat.com>
55321
55322         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55323         * modules/crypto/sha256: New file.
55324         * modules/crypto/sha512: Likewise.
55325         * lib/sha256.c: Likewise.
55326         * lib/sha256.h: Likewise.
55327         * lib/sha512.c: Likewise.
55328         * lib/sha512.h: Likewise.
55329         * lib/u64.h: Likewise.
55330         * m4/sha256.m4: Likewise.
55331         * m4/sha512.m4: Likewise.
55332         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55333
55334 2008-05-10  Bruno Haible  <bruno@clisp.org>
55335
55336         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55337         (Input/Output <stdio.h>): Add xprintf.
55338         (Signal handling <signal.h>): Add strsignal.
55339         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55340         (Core language properties): Add func.
55341         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55342         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55343         strings.
55344         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55345         (Input/output): New section.
55346         (File system functions): Add openat-die, stat-macros.
55347         (Networking functions): Add sockets.
55348         (Unicode string functions): Add unictype/*.
55349         (Support for building libraries and executables): Add gperf.
55350         (Support for building documentation): Add agpl-3.0.
55351         (Misc): Add nocrash.
55352
55353 2008-05-10  Bruno Haible  <bruno@clisp.org>
55354
55355         * modules/unictype/gen-ctype: New file.
55356
55357 2008-05-10  Jim Meyering  <meyering@redhat.com>
55358
55359         Make chdir-safer.c more efficient on a system with no symlinks.
55360         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55361         also if ELOOP is zero.  Suggested by Bruno Haible.
55362
55363         Make chdir-safer.c slightly safer.
55364         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55365         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55366
55367         Avoid compile failure on systems without ELOOP (like mingw).
55368         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55369         Reported by Bruno Haible.
55370
55371 2008-05-10  Bruno Haible  <bruno@clisp.org>
55372
55373         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55374         (is_utf8_encoding): Use a case-insensitive comparison.
55375         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55376         streq.
55377
55378 2008-05-10  Bruno Haible  <bruno@clisp.org>
55379
55380         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55381         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55382         * lib/unilbrk/ulc-common.h (iconv_string_length,
55383         iconv_string_keeping_offsets): Remove declarations.
55384         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55385         Don't include <iconv.h>, streq.h, xsize.h.
55386         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55387         conversion.
55388         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55389         <iconv.h>, streq.h, xsize.h.
55390         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55391         conversion.
55392         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55393         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55394         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55395         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55396
55397 2008-05-10  Bruno Haible  <bruno@clisp.org>
55398
55399         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55400         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55401
55402         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55403         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55404
55405         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55406         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55407
55408         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55409         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55410
55411         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55412         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55413
55414         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55415         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55416
55417         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55418         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55419
55420         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55421         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55422
55423 2008-05-10  Bruno Haible  <bruno@clisp.org>
55424
55425         Split up 'linebreak' module.
55426         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55427         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55428         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55429         modifications.
55430         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55431         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55432         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55433         lib/linebreak.c.
55434         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55435         lib/linebreak.c.
55436         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55437         lib/linebreak.c.
55438         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55439         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55440         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55441         lib/linebreak.c.
55442         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55443         lib/linebreak.c.
55444         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55445         lib/linebreak.c.
55446         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55447         lib/linebreak.c.
55448         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55449         lib/linebreak.c.
55450         * modules/unilbrk/base: New file.
55451         * modules/unilbrk/tables: New file.
55452         * modules/unilbrk/u8-possible-linebreaks: New file.
55453         * modules/unilbrk/u16-possible-linebreaks: New file.
55454         * modules/unilbrk/u32-possible-linebreaks: New file.
55455         * modules/unilbrk/ulc-common: New file.
55456         * modules/unilbrk/ulc-possible-linebreaks: New file.
55457         * modules/unilbrk/u8-width-linebreaks: New file.
55458         * modules/unilbrk/u16-width-linebreaks: New file.
55459         * modules/unilbrk/u32-width-linebreaks: New file.
55460         * modules/unilbrk/ulc-width-linebreaks: New file.
55461         * lib/linebreak.h: Remove file.
55462         * lib/linebreak.c: Remove file.
55463         * m4/linebreak.m4: Remove file.
55464         * modules/linebreak: Remove file.
55465         * NEWS: Mention the changes.
55466
55467 2008-05-09  Eric Blake  <ebb9@byu.net>
55468
55469         Add xmemdup0.
55470         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55471         implementation.
55472         * lib/xmalloc.c (xmemdup0): New C implementation.
55473
55474 2008-05-08  Bruno Haible  <bruno@clisp.org>
55475
55476         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55477
55478 2008-05-07  Eric Blake  <ebb9@byu.net>
55479
55480         Support cross-compilation of <wctype.h>.
55481         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55482         AC_CACHE_CHECK.
55483
55484 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55485
55486         * build-aux/vc-list-files: Add support for bzr.
55487
55488 2008-05-03  Jim Meyering  <meyering@redhat.com>
55489
55490         avoid failed assertion with tight malloc
55491         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55492
55493 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55494
55495         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55496         are needed from arpa/inet.h.
55497         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55498         Reported by Bruno Haible.
55499
55500 2008-05-02  Jim Meyering  <meyering@redhat.com>
55501
55502         avoid compilation error on FreeBSD 6
55503         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55504
55505 2008-05-01  Jim Meyering  <meyering@redhat.com>
55506
55507         useless-if-before-free: correct --help's exit status description
55508         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55509         for one or more matches, etc.  Reported by Bruno Haible.
55510
55511         vc-list-files: make the stand-alone gnulib test work
55512         * modules/vc-list-files-tests (configure.ac):
55513         Define and AC_SUBST abs_aux_dir.
55514         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55515         $(abs_top_srcdir) to each script and having each of them
55516         duplicate the work of setting PATH, set PATH here, using
55517         the new variable, abs_aux_dir instead.
55518         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55519         * tests/test-vc-list-files-git.sh: Likewise.
55520         Reported by Bruno Haible.
55521
55522 2008-05-01  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55525         reallocation. Rename 'done' to 'found_delimiter'.
55526
55527 2008-05-01  Jim Meyering  <meyering@redhat.com>
55528
55529         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55530         * build-aux/vc-list-files: Use `...`, not $(...).
55531
55532 2008-04-30  Jim Meyering  <meyering@redhat.com>
55533
55534         add tests for vc-list-files
55535         * modules/vc-list-files-tests: New module.
55536         * tests/test-vc-list-files-cvs.sh: New file.
55537         * tests/test-vc-list-files-git.sh: New file.
55538
55539         avoid a warning from gcc
55540         * lib/getndelim2.c (IF_LINT): Define.
55541         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55542
55543         vc-list-files: work properly with build-aux/cvsu, too
55544         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55545         to all cvs-based clauses.
55546
55547         vc-list-files: work properly in the CVS+awk case, too
55548         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55549
55550         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55551         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55552         take more than one file argument, so .  Add quotes, just in case $dir
55553         ever contains a shell meta-character.  Prompted by Soren Hansen in
55554         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55555
55556 2008-04-29  Eric Blake  <ebb9@byu.net>
55557
55558         Optimize getndelim2 to use block operations when possible.
55559         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55560         freadseek, and memchr2.
55561         * lib/getndelim2.c (getndelim2): Use them for block reads.
55562
55563 2008-04-29  Bruno Haible  <bruno@clisp.org>
55564
55565         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55566         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55567         * modules/inet_ntop (Depends-on): Add extensions.
55568         * modules/inet_pton (Depends-on): Likewise.
55569         Reported by Simon Josefsson.
55570
55571 2008-04-29  Jim Meyering  <meyering@redhat.com>
55572
55573         When the is more than one match in a block, match all of them.
55574         * build-aux/useless-if-before-free: Iterate through each block
55575         until there are no more matches.
55576
55577         Fix broken useless-if-before-free script.
55578         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55579         the expression to match cast of argument to free-like function.
55580
55581 2008-04-29  Eric Blake  <ebb9@byu.net>
55582
55583         Use new header.
55584         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55585
55586 2008-04-29  Jim Meyering  <meyering@redhat.com>
55587
55588         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55589         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55590         by gnulib to exist and to declare e.g., inet_ntop.
55591         Don't include "inet_ntop.h", now removed.
55592
55593         * m4/arpa_inet_h.m4: Remove trailing blanks.
55594
55595 2008-04-29  Eric Blake  <ebb9@byu.net>
55596
55597         Silence valgrind on safe reads beyond potential array bounds.
55598         * lib/rawmemchr.valgrind: New file.
55599         * lib/strchrnul.valgrind: Likewise.
55600         * modules/rawmemchr (Files): Distribute new file.
55601         * modules/strchrnul (Files): Likewise.
55602         Suggested by Bruno Haible.
55603
55604 2008-04-29  Bruno Haible  <bruno@clisp.org>
55605
55606         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55607         (inet_ntop, inet_pton): Change portability warning's wording.
55608         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55609         Invoke gl_CHECK_NEXT_HEADERS.
55610         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55611         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55612         set ARPA_INET_H.
55613         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55614         * modules/arpa_inet (Description): No longer only for systems that
55615         lack it.
55616         (Depends-on): Add include_next.
55617         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55618         HAVE_ARPA_INET_H.
55619
55620 2008-04-29  Jim Meyering  <meyering@redhat.com>
55621
55622         * modules/mkdir (License): Re-license as LGPLv2+.
55623
55624 2008-04-29  Bruno Haible  <bruno@clisp.org>
55625
55626         * modules/rawmemchr (Maintainer): Set to Eric.
55627         * modules/strchrnul (Maintainer): Likewise.
55628
55629 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55630
55631         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55632         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55633
55634         * modules/arpa_inet (arpa/inet.h): Use them.
55635
55636 2008-04-28  Eric Blake  <ebb9@byu.net>
55637
55638         Test getndelim2.
55639         * modules/getndelim2-tests: New file.
55640         * tests/test-getndelim2.c: Likewise.
55641         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55642         stream.
55643         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55644
55645         * MODULES.html.sh: Document new module.
55646
55647 2008-04-20  Bruno Haible  <bruno@clisp.org>
55648
55649         * lib/c-stack.c (die): Use raise.
55650         * modules/c-stack (Depends-on): Add raise.
55651
55652 2008-04-28  Bruno Haible  <bruno@clisp.org>
55653
55654         Expect rpmatch to be declared.
55655         * lib/yesno.c (rpmatch): Remove declaration.
55656
55657         Declare rpmatch.
55658         * lib/stdlib.in.h (rpmatch): New declaration.
55659         * lib/rpmatch.c: Include <stdlib.h> first.
55660         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55661         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55663         HAVE_RPMATCH.
55664         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55665         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55666         (Include): Set to <stdlib.h>.
55667         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55668         HAVE_RPMATCH.
55669         * NEWS: Document the change.
55670
55671 2008-04-28  Bruno Haible  <bruno@clisp.org>
55672
55673         Change rpmatch to use nl_langinfo when appropriate.
55674         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55675         (N_): New macro.
55676         (localized_pattern): New function/macro.
55677         (try): Remove match, nomatch arguments. Copy the pattern into safe
55678         memory before caching it.
55679         (rpmatch): Use localized_pattern. Add translator comments.
55680         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55681         Suggested by Eric Blake.
55682         * modules/rpmatch (Depends-on): Add stdbool.
55683
55684 2008-04-28  Eric Blake  <ebb9@byu.net>
55685
55686         Add rawmemchr module, matching glibc.
55687         * modules/string (Makefile.am): New indicator.
55688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55689         * lib/string.in.h (rawmemchr): Declare when appropriate.
55690         * modules/rawmemchr: New file.
55691         * m4/rawmemchr.m4: Likewise.
55692         * lib/rawmemchr.c: Likewise.
55693         * modules/rawmemchr-tests: Likewise.
55694         * tests/test-rawmemchr.c: Likewise.
55695         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55696         module.
55697         * modules/strchrnul (Depends-on): Add rawmemchr.
55698         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55699
55700         Whitespace cleanup.
55701         * tests/test-strchrnul.c: Reindent.
55702         * lib/strchrnul.c: Likewise.
55703
55704         Optimize and test strchrnul.
55705         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55706         * modules/strchrnul-tests: New file.
55707         * tests/test-strchrnul.c: Likewise.
55708
55709         Remove intprops dependency.
55710         * modules/memchr (Depends-on): Remove intprops.
55711         * modules/memrchr (Depends-on): Likewise.
55712         * modules/memchr2 (Depends-on): Likewise.
55713         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55714         * lib/memrchr.c (__memrchr): Likewise.
55715         * lib/memrchr2.c (memchr2): Likewise.
55716         Reported by Simon Josefsson.
55717
55718 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55719
55720         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55721         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55722
55723 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55724
55725         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55726
55727         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55728
55729         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55730
55731         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55732         declarations.
55733         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55734
55735         * m4/inet_pton.m4: Don't check for header files.
55736
55737         * m4/inet_ntop.m4: Don't check for header files.
55738
55739 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55740
55741         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55742         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55743         trigger for cygwin).
55744         Reported by Bruno Haible  <bruno@clisp.org>.
55745
55746 2008-04-28  Bruno Haible  <bruno@clisp.org>
55747
55748         * doc/posix-functions/strdup.texi: Mention mingw problem.
55749
55750 2008-04-27  Bruno Haible  <bruno@clisp.org>
55751
55752         * modules/stat-time-tests (Depends-on): Add sleep.
55753         * tests/test-stat-time.c (force_unlink): New function.
55754         (cleanup): Use it.
55755         (test_mtime): Remove the ctime related tests.
55756         (test_ctime): New function, containing the ctime related tests.
55757         (main): Call test_ctime, except on native Windows platforms.
55758
55759 2008-04-27  Bruno Haible  <bruno@clisp.org>
55760
55761         * lib/rpmatch.c (rpmatch): Add some comments.
55762         Reported by James Youngman <jay@gnu.org>.
55763
55764 2008-04-27  Bruno Haible  <bruno@clisp.org>
55765
55766         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55767         quiet NaNs.
55768
55769 2008-04-27  Bruno Haible  <bruno@clisp.org>
55770
55771         Make test-yesno.sh work on mingw.
55772         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55773         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55774         (main): Set stdin to binary mode.
55775         * modules/yesno-tests (Depends-on): Add binary-io.
55776
55777 2008-04-27  Bruno Haible  <bruno@clisp.org>
55778
55779         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55780         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55781         argument that lie outside the IEEE 854 domain.
55782         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55783         (gl_ISFINITE): Use it.
55784         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55785
55786 2008-04-27  Bruno Haible  <bruno@clisp.org>
55787
55788         Allow local renaming in config.h.
55789         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55790
55791 2008-04-27  Bruno Haible  <bruno@clisp.org>
55792
55793         * lib/memchr.c (__memchr): Change type of 'i'.
55794         * lib/memchr2.c (memchr2): Likewise.
55795
55796 2008-04-26  Eric Blake  <ebb9@byu.net>
55797         and Bruno Haible  <bruno@clisp.org>
55798
55799         Optimize and test memrchr.
55800         * modules/memrchr (Depends-on): Add intprops.
55801         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55802         * modules/memrchr-tests: New file.
55803         * tests/test-memrchr.c: New file.
55804
55805 2008-04-26  Bruno Haible  <bruno@clisp.org>
55806
55807         Add tentative support for DragonFly BSD.
55808         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55809         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55810         fp.
55811         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55812         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55813         * lib/fpurge.c (fpurge): Likewise.
55814         * lib/freadable.c (freaadable): Likewise.
55815         * lib/freadahead.c (freadahead): Likewise.
55816         * lib/freading.c (freading): Likewise.
55817         * lib/freadptr.c (freadptr): Likewise.
55818         * lib/freadseek.c (freadptrinc): Likewise.
55819         * lib/fseeko.c (fseeko): Likewise.
55820         * lib/fseterr.c (fseterr): Likewise.
55821         * lib/fwritable.c (fwritable): Likewise.
55822         * lib/fwriting.c (fwriting): Likewise.
55823
55824 2008-04-26  Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/stdio-impl.h: New file.
55827         * lib/fbufmode.c: Include stdio-impl.h.
55828         (fbufmode): Use fp_, remove redundant #defines.
55829         * lib/fflush.c: Include stdio-impl.h.
55830         (clear_ungetc_buffer): Remove redundant #defines.
55831         * lib/fpurge.c: Include stdio-impl.h.
55832         (fpurge): Remove redundant #defines.
55833         * lib/freadable.c: Include stdio-impl.h.
55834         (freadable): Remove redundant #defines.
55835         * lib/freadahead.c: Include stdio-impl.h.
55836         (freadahead): Remove redundant #defines.
55837         * lib/freading.c: Include stdio-impl.h.
55838         (freading): Remove redundant #defines.
55839         * lib/freadptr.c: Include stdio-impl.h.
55840         (freadptr): Remove redundant #defines.
55841         * lib/freadseek.c: Include stdio-impl.h.
55842         (freadptrinc): Remove redundant #defines.
55843         * lib/fseeko.c: Include stdio-impl.h.
55844         (rpl_fseeko): Remove redundant #defines.
55845         * lib/fseterr.c: Include stdio-impl.h.
55846         (fseterr): Remove redundant #defines.
55847         * lib/fwritable.c: Include stdio-impl.h.
55848         (fwritable: Remove redundant #defines.
55849         * lib/fwriting.c: Include stdio-impl.h.
55850         (fwriting): Remove redundant #defines.
55851         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55852         * modules/fflush (Files): Likewise.
55853         * modules/fpurge (Files): Likewise.
55854         * modules/freadable (Files): Likewise.
55855         * modules/freadahead (Files): Likewise.
55856         * modules/freading (Files): Likewise.
55857         * modules/freadptr (Files): Likewise.
55858         * modules/freadseek (Files): Likewise.
55859         * modules/fseeko (Files): Likewise.
55860         * modules/fseterr (Files): Likewise.
55861         * modules/fwritable (Files): Likewise.
55862         * modules/fwriting (Files): Likewise.
55863
55864 2008-04-26  Bruno Haible  <bruno@clisp.org>
55865
55866         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55867         restore_seek_optimization, update_fpos_cache): New functions, extracted
55868         from rpl_fflush.
55869         (rpl_fflush): Use them.
55870         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55871         (gl_REPLACE_FFLUSH): Use it.
55872
55873 2008-04-26  Bruno Haible  <bruno@clisp.org>
55874
55875         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55876         on Solaris.
55877         * tests/test-xstrtoimax.sh: Likewise.
55878         * tests/test-xstrtoumax.sh: Likewise.
55879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55880
55881 2008-04-26  Bruno Haible  <bruno@clisp.org>
55882
55883         * modules/memchr-tests: New file.
55884         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55885
55886 2008-04-26  Eric Blake  <ebb9@byu.net>
55887             Bruno Haible  <bruno@clisp.org>
55888
55889         * lib/memchr.c: Include intprops.h.
55890         (__memchr): Optimize parallel detection of matching bytes. Rename local
55891         variables. Add explanatory comments.
55892
55893 2008-04-26  Bruno Haible  <bruno@clisp.org>
55894
55895         Fix module 'memchr', broken since 2000-10-28.
55896         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55897
55898 2008-04-26  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55901         comments.
55902
55903 2008-04-25  Eric Blake  <ebb9@byu.net>
55904
55905         Use native fstatat on cygwin 1.7.0.
55906         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55907         first.
55908
55909 2008-04-23  Eric Blake  <ebb9@byu.net>
55910
55911         Improve memchr2 performance.
55912         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55913         NUL bytes.
55914         * modules/memchr2 (Depends-on): Use intprops.h.
55915
55916 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55917
55918         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55919         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55920         <blp@cs.stanford.edu>.
55921
55922 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55923
55924         * lib/arpa_inet.in.h: New file.
55925
55926         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55927         (Makefile.am): Sed in substitute header file.
55928
55929         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55930         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55931
55932         * modules/inet_ntop (configure.ac): Use
55933         gl_ARPA_INET_MODULE_INDICATOR.
55934
55935         * modules/inet_pton (configure.ac): Use
55936         gl_ARPA_INET_MODULE_INDICATOR.
55937
55938 2008-04-22  Jim Meyering  <meyering@redhat.com>
55939
55940         * modules/verify (License): Re-license as LGPLv2+.
55941
55942 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55943
55944         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55945         parameter to void* as per POSIX standard (MinGW uses char*).
55946
55947 2008-04-21  Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55950         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55951         Define to replacements if REPLACE_ISWCNTRL is 1.
55952         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55953         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55954         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55955         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55956         what it fixes.
55957         * doc/posix-functions/iswalpha.texi: Likewise.
55958         * doc/posix-functions/iswblank.texi: Likewise.
55959         * doc/posix-functions/iswcntrl.texi: Likewise.
55960         * doc/posix-functions/iswdigit.texi: Likewise.
55961         * doc/posix-functions/iswgraph.texi: Likewise.
55962         * doc/posix-functions/iswlower.texi: Likewise.
55963         * doc/posix-functions/iswprint.texi: Likewise.
55964         * doc/posix-functions/iswpunct.texi: Likewise.
55965         * doc/posix-functions/iswspace.texi: Likewise.
55966         * doc/posix-functions/iswupper.texi: Likewise.
55967         * doc/posix-functions/iswxdigit.texi: Likewise.
55968         Reported by Alain Guibert.
55969
55970 2008-04-21  Bruno Haible  <bruno@clisp.org>
55971
55972         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55973         Patch by Alain Guibert.
55974
55975 2008-04-21  Bruno Haible  <bruno@clisp.org>
55976
55977         Fix test failures on mingw.
55978         * tests/test-xstrtol.c (print_no_progname): New function.
55979         (main): Install it in error_print_progname hook.
55980         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55981         * tests/test-xstrtoimax.sh: Likewise.
55982         * tests/test-xstrtoumax.sh: Likewise.
55983
55984 2008-04-21  Bruno Haible  <bruno@clisp.org>
55985
55986         Fix test failure on mingw.
55987         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55988
55989 2008-04-21  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55992         Actually assign a value.
55993
55994 2008-04-20  Bruno Haible  <bruno@clisp.org>
55995
55996         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55997         take 2.
55998         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55999         'canonicalize-lgpl' module is also used.
56000         * lib/canonicalize-lgpl.c: Undo last change.
56001         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56002
56003 2008-04-20  Bruno Haible  <bruno@clisp.org>
56004
56005         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56006         config.h. Provide _mkdir based fallback for mingw.
56007         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56008         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56009         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56010         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56011         rather than defining mkdir in config.h.
56012         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56013         (gl_SYS_STAT_H_DEFAULTS): New macro.
56014         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56015         HAVE_IO_H any more.
56016         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56017         HAVE_DECL_MKDIR and HAVE_IO_H.
56018
56019 2008-04-20  Bruno Haible  <bruno@clisp.org>
56020
56021         * lib/isapipe.c: Port to native Windows platforms.
56022
56023 2008-04-20  Bruno Haible  <bruno@clisp.org>
56024
56025         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56026
56027 2008-04-21  Eric Blake  <ebb9@byu.net>
56028
56029         Work around preprocessors that don't handle UINTMAX_MAX.
56030         * lib/memchr2.c (memchr2): Avoid embedded #if.
56031         Reported by Alain Guibert, fix suggested by Bruno Haible.
56032
56033 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56034
56035         * doc/posix-functions/strftime.texi (strftime): Explain better
56036         Windows incompatibility.  Suggested by Micah Cowan
56037         <micah@cowan.name>.
56038
56039 2008-04-20  Bruno Haible  <bruno@clisp.org>
56040
56041         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56042         unistr/u8-mblen.
56043
56044 2008-04-20  Bruno Haible  <bruno@clisp.org>
56045
56046         Fix test failure on platforms with non-GNU iconv.
56047         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56048         (U_TO_U8): Use it, rather than u16_to_u8.
56049         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56050         units at the end of the input string.
56051         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56052
56053 2008-04-20  Bruno Haible  <bruno@clisp.org>
56054
56055         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56056         when the resulting length is 0.
56057         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56058
56059 2008-04-20  Bruno Haible  <bruno@clisp.org>
56060
56061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56062         works.
56063         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56064
56065 2008-04-20  Bruno Haible  <bruno@clisp.org>
56066
56067         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56068         * modules/tsearch-tests (configure.ac): Test for initstate function.
56069
56070 2008-04-20  Bruno Haible  <bruno@clisp.org>
56071
56072         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56073         for nlink_t if missing.
56074         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56075
56076 2008-04-19  Bruno Haible  <bruno@clisp.org>
56077
56078         Work around snprintf bug on Linux libc5.
56079         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56081         gl_SNPRINTF_SIZE1.
56082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56083         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56084         that test failed.
56085         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56086         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56087         * modules/snprintf (Files): Add m4/printf.m4.
56088         * modules/vsnprintf (Files): Likewise.
56089         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56090         * doc/posix-functions/vsnprintf.texi: Likewise.
56091
56092 2008-04-19  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56095         from 0.0058 to less than 10^-7.
56096
56097 2008-04-19  Bruno Haible  <bruno@clisp.org>
56098
56099         Fix rounding when a precision is given.
56100         * lib/vasnprintf.c (is_borderline): New function.
56101         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56102         9...9x.
56103         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56104         %e, %g.
56105         * tests/test-vasprintf-posix.c (test_function): Likewise.
56106         * tests/test-snprintf-posix.h (test_function): Likewise.
56107         * tests/test-sprintf-posix.h (test_function): Likewise.
56108         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56109         * tests/test-printf-posix.h (test_function): Likewise.
56110         * tests/test-printf-posix.output: Update.
56111         Reported by John Darrington <john@darrington.wattle.id.au> via
56112         Ben Pfaff <blp@cs.stanford.edu>.
56113
56114 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56115
56116         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56117         Suggested by Bruno Haible <bruno@clisp.org>.
56118
56119 2008-04-17  Bruno Haible  <bruno@clisp.org>
56120
56121         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56122         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56123         implementation.
56124         Patch by Bruce Merry <bmerry@gmail.com>.
56125
56126 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56127
56128         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56129         doesn't work under Windows.
56130
56131 2008-04-16  Bruno Haible  <bruno@clisp.org>
56132
56133         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56134         New macros.
56135         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56136         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56137         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56138         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56139         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56140         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56141         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56142         macros.
56143         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56144         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56145         Northern Sotho, Uighur.
56146
56147 2008-04-16  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56150         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56151         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56152         Reported by Daniel Bergström <daniel@octocode.com>.
56153
56154 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56155             Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56158         function.
56159         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56160         New functions, mostly extracted from gl_locale_name_default.
56161         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56162
56163 2008-04-16  Eric Blake  <ebb9@byu.net>
56164
56165         Adjust strtod detection to catch glibc 2.7 bug.
56166         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56167         Reported by John Gatewood Ham.
56168
56169 2008-04-16  Bruno Haible  <bruno@clisp.org>
56170
56171         Add tentative support for Linux libc5.
56172         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56173         * lib/fpurge.c (fpurge): Likewise.
56174         * lib/freadable.c (freadable): Likewise.
56175         * lib/freadahead.c (freadahead): Likewise.
56176         * lib/freading.c (freading): Likewise.
56177         * lib/freadptr.c (freadptr): Likewise.
56178         * lib/freadseek.c (freadptrinc): Likewise.
56179         * lib/fseeko.c (rpl_fseeko): Likewise.
56180         * lib/fseterr.c (fseterr): Likewise.
56181         * lib/fwritable.c (fwritable): Likewise.
56182         * lib/fwriting.c (fwriting): Likewise.
56183         Reported by Alain Guibert <alguibert+bts@free.fr>.
56184
56185 2008-04-15  Bruno Haible  <bruno@clisp.org>
56186
56187         * modules/mathl (configure.ac): Define module indicator.
56188
56189 2008-04-15  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/logl.c (logl): Remove unused variables.
56192
56193 2008-04-15  Bruno Haible  <bruno@clisp.org>
56194
56195         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56196         fails.
56197
56198 2008-04-15  Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/trim.c (trim2): Fix argument of isspace() macro.
56201
56202 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56203
56204         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56205         to 0.
56206         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56207
56208 2008-04-14  Bruno Haible  <bruno@clisp.org>
56209
56210         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56211         AC_LANG_PROGRAM argument.
56212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56213         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56215         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56216         * m4/math_h.m4 (gl_MATH_H): Likewise.
56217         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56218         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56219         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56220         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56221         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56222         * m4/regex.m4 (gl_REGEX): Likewise.
56223         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56224         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56226         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56227         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56228         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56229         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56230         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56231
56232 2008-04-14  Jim Meyering  <meyering@redhat.com>
56233
56234         test-strtod: fix typos: s/abs/fabs/
56235         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56236
56237 2008-04-13  Bruno Haible  <bruno@clisp.org>
56238
56239         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56240         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56241         module is also used and while not building the reloc-wrapper.
56242
56243 2008-04-13  Bruno Haible  <bruno@clisp.org>
56244
56245         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56246
56247 2008-04-13  Bruno Haible  <bruno@clisp.org>
56248
56249         Fix AIX compilation failure introduced on 2008-04-02.
56250         * tests/test-frexp.c (exp): Undefine before redefining.
56251         * tests/test-frexpl.c (exp): Likewise.
56252
56253 2008-04-13  Bruno Haible  <bruno@clisp.org>
56254
56255         Work around a HP-UX stdio bug.
56256         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56257         * tests/test-ftello.c (main): Likewise.
56258         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56259         * doc/posix-functions/ftello.texi: Likewise.
56260
56261 2008-04-13  Bruno Haible  <bruno@clisp.org>
56262
56263         Make test-signbit pass on HP-UX/hppa.
56264         * tests/test-signbit.c (minus_zerol): New variable.
56265         (test_signbitl): Use it.
56266
56267 2008-04-13  Bruno Haible  <bruno@clisp.org>
56268
56269         Make truncl work on OSF/1 4.0.
56270         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56271         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56272         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56274         HAVE_DECL_TRUNCL.
56275         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56276         HAVE_DECL_TRUNCL.
56277         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56278
56279 2008-04-13  Bruno Haible  <bruno@clisp.org>
56280
56281         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56282
56283 2008-04-13  Bruno Haible  <bruno@clisp.org>
56284
56285         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56286         expression, so as to avoid HP-UX 11 cc compiler bug.
56287
56288 2008-04-13  Bruno Haible  <bruno@clisp.org>
56289
56290         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56291
56292 2008-04-13  Bruno Haible  <bruno@clisp.org>
56293
56294         * lib/git-merge-changelog.c: Remove empty declaration outside of
56295         functions.
56296
56297 2008-04-13  Bruno Haible  <bruno@clisp.org>
56298
56299         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56300
56301 2008-04-13  Bruno Haible  <bruno@clisp.org>
56302
56303         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56304         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56305         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56306         also if it exists but lacks definitions of the SHUT_* macros.
56307         * modules/sys_socket (Description): Update.
56308         Reported by Elbert Pol <e.pol@chello.nl>.
56309
56310 2008-04-13  Bruno Haible  <bruno@clisp.org>
56311
56312         * lib/localcharset.c (OS2): Don't redefine if already defined.
56313         Reported by Elbert Pol <e.pol@chello.nl>.
56314
56315 2008-04-13  Bruno Haible  <bruno@clisp.org>
56316
56317         * lib/binary-io.h [__EMX__]: Include <io.h>.
56318         Reported by Elbert Pol <e.pol@chello.nl>.
56319
56320 2008-04-12  Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/fpucw.h: Enable the definitions also for x86_64.
56323         Needed for NetBSD/x86_64.
56324         Reported by Thomas Klausner <tk@giga.or.at>.
56325
56326 2008-04-12  Bruno Haible  <bruno@clisp.org>
56327
56328         * tests/test-strtod.c: Include isnand.h.
56329         (main): Use isnand instead of isnan.
56330         Reported by Jim Meyering.
56331
56332 2008-04-12  Bruno Haible  <bruno@clisp.org>
56333
56334         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56335         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56336
56337 2008-04-12  Jim Meyering  <meyering@redhat.com>
56338
56339         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56340
56341 2008-04-12  Bruno Haible  <bruno@clisp.org>
56342
56343         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56344         Reported by Elbert Pol <e.pol@chello.nl>.
56345
56346 2008-04-12  Eric Blake  <ebb9@byu.net>
56347
56348         Work around Solaris 10 math.h bug.
56349         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56350         (gl_MATH_H_DEFAULTS): Set up default.
56351         * modules/math (Makefile.am): Replace new indicators.
56352         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56353         * tests/test-math.c (main): Test this.
56354         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56355         * doc/posix-headers/math.texi (math.h): Mention bug.
56356         Reported by Nelson H. F. Beebe and Jim Meyering.
56357
56358 2008-04-11  Bruno Haible  <bruno@clisp.org>
56359
56360         Adapt to future versions of Apple GCC.
56361         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56362         Reported by Peter O'Gorman <peter@pogma.com>.
56363
56364 2008-04-11  Bruno Haible  <bruno@clisp.org>
56365
56366         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56367
56368 2008-04-11  Bruno Haible  <bruno@clisp.org>
56369
56370         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56371
56372         * modules/getaddrinfo-tests (Makefile.am): Define
56373         test_getaddrinfo_LDADD.
56374
56375 2008-04-11  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56378         (init): Fix syntax error.
56379         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56380         is declared.
56381
56382 2008-04-11  Bruno Haible  <bruno@clisp.org>
56383
56384         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56385         * modules/glob (Depends-on): Add stdbool.
56386
56387 2008-04-11  Bruno Haible  <bruno@clisp.org>
56388
56389         * lib/trim.c: Include <string.h>.
56390
56391 2008-04-11  Eric Blake  <ebb9@byu.net>
56392
56393         Avoid compile failure on OS/2.
56394         * lib/regex_internal.h (internal_function): Disable optimization
56395         on OS/2 (__EMX__), where it caused compiler error.
56396         Reported by Elbert Pol.
56397
56398 2008-04-11  Bruno Haible  <bruno@clisp.org>
56399
56400         Flush the standard error stream before aborting. Needed on mingw.
56401         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56402         * tests/test-array_list.c (ASSERT): Likewise.
56403         * tests/test-array_oset.c (ASSERT): Likewise.
56404         * tests/test-avltree_list.c (ASSERT): Likewise.
56405         * tests/test-avltree_oset.c (ASSERT): Likewise.
56406         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56407         * tests/test-binary-io.c (ASSERT): Likewise.
56408         * tests/test-byteswap.c (ASSERT): Likewise.
56409         * tests/test-c-ctype.c (ASSERT): Likewise.
56410         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56411         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56412         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56413         * tests/test-c-strstr.c (ASSERT): Likewise.
56414         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56415         * tests/test-canonicalize.c (ASSERT): Likewise.
56416         * tests/test-carray_list.c (ASSERT): Likewise.
56417         * tests/test-ceilf1.c (ASSERT): Likewise.
56418         * tests/test-ceilf2.c (ASSERT): Likewise.
56419         * tests/test-ceill.c (ASSERT): Likewise.
56420         * tests/test-count-one-bits.c (ASSERT): Likewise.
56421         * tests/test-fbufmode.c (ASSERT): Likewise.
56422         * tests/test-fflush2.c (ASSERT): Likewise.
56423         * tests/test-floorf1.c (ASSERT): Likewise.
56424         * tests/test-floorf2.c (ASSERT): Likewise.
56425         * tests/test-floorl.c (ASSERT): Likewise.
56426         * tests/test-fopen.c (ASSERT): Likewise.
56427         * tests/test-fpending.c (ASSERT): Likewise.
56428         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56429         * tests/test-fpurge.c (ASSERT): Likewise.
56430         * tests/test-freadable.c (ASSERT): Likewise.
56431         * tests/test-freadahead.c (ASSERT): Likewise.
56432         * tests/test-freading.c (ASSERT): Likewise.
56433         * tests/test-freadptr.c (ASSERT): Likewise.
56434         * tests/test-freadptr2.c (ASSERT): Likewise.
56435         * tests/test-freadseek.c (ASSERT): Likewise.
56436         * tests/test-freopen.c (ASSERT): Likewise.
56437         * tests/test-frexp.c (ASSERT): Likewise.
56438         * tests/test-frexpl.c (ASSERT): Likewise.
56439         * tests/test-fseek.c (ASSERT): Likewise.
56440         * tests/test-fseeko.c (ASSERT): Likewise.
56441         * tests/test-fstrcmp.c (ASSERT): Likewise.
56442         * tests/test-ftell.c (ASSERT): Likewise.
56443         * tests/test-ftello.c (ASSERT): Likewise.
56444         * tests/test-func.c (ASSERT): Likewise.
56445         * tests/test-fwritable.c (ASSERT): Likewise.
56446         * tests/test-fwriting.c (ASSERT): Likewise.
56447         * tests/test-getdelim.c (ASSERT): Likewise.
56448         * tests/test-getline.c (ASSERT): Likewise.
56449         * tests/test-i-ring.c (ASSERT): Likewise.
56450         * tests/test-iconv-utf.c (ASSERT): Likewise.
56451         * tests/test-iconv.c (ASSERT): Likewise.
56452         * tests/test-isfinite.c (ASSERT): Likewise.
56453         * tests/test-isnand.c (ASSERT): Likewise.
56454         * tests/test-isnanf.c (ASSERT): Likewise.
56455         * tests/test-isnanl.h (ASSERT): Likewise.
56456         * tests/test-ldexpl.c (ASSERT): Likewise.
56457         * tests/test-linked_list.c (ASSERT): Likewise.
56458         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56459         * tests/test-localename.c (ASSERT): Likewise.
56460         * tests/test-lseek.c (ASSERT): Likewise.
56461         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56462         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56463         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56464         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56465         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56466         * tests/test-mbschr.c (ASSERT): Likewise.
56467         * tests/test-mbscspn.c (ASSERT): Likewise.
56468         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56469         * tests/test-mbspbrk.c (ASSERT): Likewise.
56470         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56471         * tests/test-mbsrchr.c (ASSERT): Likewise.
56472         * tests/test-mbsspn.c (ASSERT): Likewise.
56473         * tests/test-mbsstr1.c (ASSERT): Likewise.
56474         * tests/test-mbsstr2.c (ASSERT): Likewise.
56475         * tests/test-mbsstr3.c (ASSERT): Likewise.
56476         * tests/test-memchr2.c (ASSERT): Likewise.
56477         * tests/test-memmem.c (ASSERT): Likewise.
56478         * tests/test-open.c (ASSERT): Likewise.
56479         * tests/test-printf-frexp.c (ASSERT): Likewise.
56480         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56481         * tests/test-printf-posix.c (ASSERT): Likewise.
56482         * tests/test-quotearg.c (ASSERT): Likewise.
56483         * tests/test-rbtree_list.c (ASSERT): Likewise.
56484         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56485         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56486         * tests/test-round1.c (ASSERT): Likewise.
56487         * tests/test-roundf1.c (ASSERT): Likewise.
56488         * tests/test-roundl.c (ASSERT): Likewise.
56489         * tests/test-signbit.c (ASSERT): Likewise.
56490         * tests/test-sleep.c (ASSERT): Likewise.
56491         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56492         * tests/test-snprintf.c (ASSERT): Likewise.
56493         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56494         * tests/test-stat-time.c (ASSERT): Likewise.
56495         * tests/test-strcasestr.c (ASSERT): Likewise.
56496         * tests/test-strerror.c (ASSERT): Likewise.
56497         * tests/test-striconv.c (ASSERT): Likewise.
56498         * tests/test-striconveh.c (ASSERT): Likewise.
56499         * tests/test-striconveha.c (ASSERT): Likewise.
56500         * tests/test-strsignal.c (ASSERT): Likewise.
56501         * tests/test-strstr.c (ASSERT): Likewise.
56502         * tests/test-strtod.c (ASSERT): Likewise.
56503         * tests/test-trunc1.c (ASSERT): Likewise.
56504         * tests/test-trunc2.c (ASSERT): Likewise.
56505         * tests/test-truncf1.c (ASSERT): Likewise.
56506         * tests/test-truncf2.c (ASSERT): Likewise.
56507         * tests/test-truncl.c (ASSERT): Likewise.
56508         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56509         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56510         * tests/test-vasnprintf.c (ASSERT): Likewise.
56511         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56512         * tests/test-vasprintf.c (ASSERT): Likewise.
56513         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56514         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56515         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56516         * tests/test-vsnprintf.c (ASSERT): Likewise.
56517         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56518         * tests/test-wcwidth.c (ASSERT): Likewise.
56519         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56520         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56521         * tests/test-xvasprintf.c (ASSERT): Likewise.
56522         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56523         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56524         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56525         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56526         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56527         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56528         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56529         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56530         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56531         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56532         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56533         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56534         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56535         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56536         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56537         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56538         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56539         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56540         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56541         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56542         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56543         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56544         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56545         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56546         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56547         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56548         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56549         * tests/unictype/test-combining.c (ASSERT): Likewise.
56550         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56551         * tests/unictype/test-digit.c (ASSERT): Likewise.
56552         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56553         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56554         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56555         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56556         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56557         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56558         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56559         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56560         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56561         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56562         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56563         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56564         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56565         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56566         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56567         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56568         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56569         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56570         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56571         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56572         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56573         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56574         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56575         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56576         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56577         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56578         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56579         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56580         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56581         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56582         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56583         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56584         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56585         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56586         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56587         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56588         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56589         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56590         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56591         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56592         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56593         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56594         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56595         Reported by Eric Blake.
56596
56597 2008-04-11  Bruno Haible  <bruno@clisp.org>
56598
56599         * lib/wchar.in.h: Tweak comment.
56600
56601 2008-04-11  Bruno Haible  <bruno@clisp.org>
56602
56603         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56604         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56605         gl_COMMON.
56606         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56607
56608 2008-04-11  Bruno Haible  <bruno@clisp.org>
56609
56610         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56611
56612 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56613
56614         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56615         of attempting to use non-existing /dev/*random.  Based on patch
56616         from Adam Strzelecki <ono@java.pl> in
56617         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56618
56619 2008-04-08  Bruno Haible  <bruno@clisp.org>
56620
56621         Add tentative support for emx+gcc.
56622         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56623         * lib/fpurge.c (fpurge): Likewise.
56624         * lib/freadable.c (freadable): Likewise.
56625         * lib/freadahead.c (freadahead): Likewise.
56626         * lib/freading.c (freading): Likewise.
56627         * lib/freadptr.c (freadptr): Likewise.
56628         * lib/freadseek.c (freadptrinc): Likewise.
56629         * lib/fseeko.c (rpl_fseeko): Likewise.
56630         * lib/fseterr.c (fseterr): Likewise.
56631         * lib/fwritable.c (fwritable): Likewise.
56632         * lib/fwriting.c (fwriting): Likewise.
56633         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56634
56635 2008-04-09  Eric Blake  <ebb9@byu.net>
56636
56637         Avoid some autoconf warnings.
56638         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56639         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56640         * m4/afs.m4 (gl_AFS): Likewise.
56641         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56642         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56643         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56644         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56645         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56646         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56647         (AC_CHECK_DECLS_ONCE): Likewise.
56648         Rename file...
56649         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56650         gnulib-tool requires autoconf 2.59 or better.
56651         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56652
56653 2008-04-08  Eric Blake  <ebb9@byu.net>
56654
56655         Use 'git describe --match' if present (added in git 1.5.5).
56656         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56657         if possible.
56658
56659 2008-04-08  Bruno Haible  <bruno@clisp.org>
56660
56661         Add tentative support for OpenServer.
56662         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56663         _ptr, _cnt.
56664         * lib/fpurge.c (fpurge): Likewise.
56665         * lib/freadable.c (freadable): Likewise.
56666         * lib/freadahead.c (freadahead): Likewise.
56667         * lib/freading.c (freading): Likewise.
56668         * lib/freadptr.c (freadptr): Likewise.
56669         * lib/freadseek.c (freadptrinc): Likewise.
56670         * lib/fseeko.c (rpl_fseeko): Likewise.
56671         * lib/fseterr.c (fseterr): Likewise.
56672         * lib/fwritable.c (fwritable): Likewise.
56673         * lib/fwriting.c (fwriting): Likewise.
56674         Reported by Roger Cornelius <rac@tenzing.org> and
56675         Brian K. White <brian@aljex.com>.
56676
56677 2008-04-06  Jim Meyering  <meyering@redhat.com>
56678
56679         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56680
56681 2008-04-06  Bruno Haible  <bruno@clisp.org>
56682
56683         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56684         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56685         * tests/test-printf-posix.sh: Likewise.
56686         * tests/test-vfprintf-posix.sh: Likewise.
56687         * tests/test-vprintf-posix.sh: Likewise.
56688         * tests/test-xprintf-posix.sh: Likewise.
56689
56690 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56691
56692         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56693         hide error from 'ls', needed on OS/2.
56694         Report by Elbert Pol <elbert.pol@gmail.com>.
56695
56696 2008-04-04  Eric Blake  <ebb9@byu.net>
56697
56698         Make test-fseeko.c failures meaningful.
56699         * tests/test-fseeko.c: Print line number on failure.
56700         * tests/test-fseek.c: Likewise.
56701         Reported by Nelson H. F. Beebe.
56702
56703         Improve strtod bug detection check.
56704         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56705         required for Solaris 10.
56706         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56707
56708 2008-04-04  Bruno Haible  <bruno@clisp.org>
56709
56710         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56711         by m4/setenv.m4.
56712
56713 2008-04-03  Eric Blake  <ebb9@byu.net>
56714
56715         Ensure sane .version contents.
56716         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56717         version string.
56718         * build-aux/git-version-gen: Improve documentation.
56719
56720         Make GNU make output nicer.
56721         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56722         MAKECMDGOALS to enforce message for all command line targets.  Set
56723         srcdir for use in maint.mk.
56724
56725         Another maintainer tweak.
56726         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56727         a target that regenerates version.
56728
56729 2008-04-03  Jim Meyering  <meyering@redhat.com>
56730
56731         vc-list-files: don't cause coreutils "make po-check" failure
56732         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56733
56734 2008-04-03  Eric Blake  <ebb9@byu.net>
56735
56736         Allow VPATH usage of vc-list-files.
56737         * build-aux/vc-list-files (scriptversion): Add timestamp.
56738         (options): Add --help, --version, -C.
56739         (CVS): Support installed cvsu.
56740
56741 2008-04-02  Bruno Haible  <bruno@clisp.org>
56742
56743         Avoid some "statement with no effect" warnings from gcc.
56744         * tests/test-wctype.c (main): Explicitly ignore unused values.
56745         Reported by Jim Meyering.
56746
56747 2008-04-02  Jim Meyering  <meyering@redhat.com>
56748
56749         Avoid some warnings from "gcc -Wshadow".
56750         * tests/test-frexp.c (exp): Define to a different identifier.
56751         * tests/test-frexpl.c (exp): Likewise.
56752
56753 2008-04-03  Jim Meyering  <meyering@redhat.com>
56754
56755         bootstrap: remove dangling *.[ch] symlinks from lib
56756         * build-aux/bootstrap [dangling symlink removal]: Move find's
56757         -depth option to precede all others, to avoid a warning.
56758         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56759
56760 2008-04-02  Bruno Haible  <bruno@clisp.org>
56761
56762         Avoid some warnings from "gcc -Wshadow".
56763         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56764         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56765         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56766         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56767         Reported by Jim Meyering.
56768
56769 2008-04-01  Bruno Haible  <bruno@clisp.org>
56770
56771         Fix test to work on IRIX 6.5 with cc.
56772         * tests/test-math.c (numeric_equal): New function.
56773         (main): Use it.
56774
56775 2008-04-01  Bruno Haible  <bruno@clisp.org>
56776
56777         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56778
56779 2008-04-01  Bruno Haible  <bruno@clisp.org>
56780
56781         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56782         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56783         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56784         (Depends-on): Remove math.
56785
56786         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56787         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56788         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56789         (Depends-on): Remove math.
56790
56791         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56792         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56793         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56794         (Depends-on): Remove math.
56795         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56796         (Depends-on): Remove math.
56797
56798         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56799         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56800         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56801         (Depends-on): Remove math.
56802         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56803         (Depends-on): Remove math.
56804
56805         * tests/test-round1.c: Include nan.h.
56806         (main): Use NaNd instead of NAN.
56807         * modules/round-tests (Files): Add tests/nan.h.
56808
56809         * tests/test-trunc1.c: Include nan.h.
56810         (main): Use NaNd instead of NAN.
56811         * modules/trunc-tests (Files): Add tests/nan.h.
56812
56813         * tests/test-roundf1.c: Include nan.h.
56814         (main): Use NaNf instead of NAN.
56815         * modules/roundf-tests (Files): Add tests/nan.h.
56816
56817         * tests/test-truncf1.c: Include nan.h.
56818         (main): Use NaNf instead of NAN.
56819         * modules/truncf-tests (Files): Add tests/nan.h.
56820
56821         * tests/test-ceilf1.c: Include nan.h.
56822         (main): Use NaNf instead of NAN.
56823         * modules/ceilf-tests (Files): Add tests/nan.h.
56824
56825         * tests/test-floorf1.c: Include nan.h.
56826         (main): Use NaNf instead of NAN.
56827         * modules/floorf-tests (Files): Add tests/nan.h.
56828
56829         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56830         (main): Use NaNf instead of NAN.
56831         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56832
56833         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56834         (main): Use NaNd instead of NAN.
56835         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56836
56837         * tests/test-frexp.c: Include nan.h.
56838         (main): Use NaNd instead of NAN.
56839         * modules/frexp-tests (Files): Add tests/nan.h.
56840
56841         * lib/isnan.c: Don't include <math.h>.
56842         (FUNC): Don't use NAN macro.
56843         * modules/isnand-nolibm (Depends-on): Remove math.
56844         * modules/isnanf-nolibm (Depends-on): Remove math.
56845         * modules/isnanl (Depends-on): Remove math.
56846         * modules/isnanl-nolibm (Depends-on): Remove math.
56847
56848         * tests/nan.h: New file.
56849
56850 2008-04-01  Eric Blake  <ebb9@byu.net>
56851
56852         Fix typos.
56853         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56854         values to be the right type.
56855
56856         For now, cater to gnulib strtod inaccuracies.
56857         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56858         fractional results.  While not as nice from a QoI perspective, it
56859         is a quicker patch than correctly implementing decimal to binary
56860         rounding.
56861
56862 2008-03-31  Eric Blake  <ebb9@byu.net>
56863
56864         Guarantee a definition of NAN.
56865         * lib/math.in.h (NAN): Define if missing.
56866         * tests/test-math.c (main): Test it.
56867         * doc/posix-headers/math.texi (math.h): Document this.
56868         * lib/isnan.c (rpl_isnand): Use it.
56869         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56870         * tests/test-floorf1.c (NaN): Likewise.
56871         * tests/test-frexp.c (NaN): Likewise.
56872         * tests/test-isnand.c (NaN): Likewise.
56873         * tests/test-isnanf.c (NaN): Likewise.
56874         * tests/test-round1.c (NaN): Likewise.
56875         * tests/test-roundf1.c (NaN): Likewise.
56876         * tests/test-snprintf-posix.h (NaN): Likewise.
56877         * tests/test-sprintf-posix.h (NaN): Likewise.
56878         * tests/test-trunc1.c (NaN): Likewise.
56879         * tests/test-truncf1.c (NaN): Likewise.
56880         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56881         * tests/test-vasprintf-posix.c (NaN): Likewise.
56882         * modules/isnand-nolibm (Depends-on): Add math.
56883         * modules/isnanf-nolibm (Depends-on): Likewise.
56884         * modules/isnanl (Depends-on): Likewise.
56885         * modules/isnanl-nolibm (Depends-on): Likewise.
56886         * modules/snprintf-posix-tests (Depends-on): Likewise.
56887         * modules/sprintf-posix-tests (Depends-on): Likewise.
56888         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56889         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56890         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56891         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56892
56893 2008-03-31  Bruno Haible  <bruno@clisp.org>
56894
56895         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56896         * doc/posix-functions/strtod.texi: Likewise.
56897
56898 2008-03-31  Bruno Haible  <bruno@clisp.org>
56899
56900         * tests/test-strtod.c (main): Don't use C99 syntax.
56901
56902 2008-03-31  Bruno Haible  <bruno@clisp.org>
56903
56904         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56905         Reported by Eric Blake.
56906
56907 2008-03-31  Jim Meyering  <meyering@redhat.com>
56908
56909         Don't compare actual signbit return values.
56910         * tests/test-strtod.c (main): Rather, compare only their
56911         zero/non-zero nature.
56912
56913 2008-03-31  Eric Blake  <ebb9@byu.net>
56914
56915         More strtod documentation.
56916         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56917         failures as distinct bugs.
56918
56919 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56920
56921         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56922         Problem reported by Erik Benada in
56923         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56924
56925 2008-03-30  Bruno Haible  <bruno@clisp.org>
56926
56927         * tests/test-strtod.c: Add comments about which assertion fails on which
56928         platform.
56929         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56930
56931 2008-03-30  Eric Blake  <ebb9@byu.net>
56932
56933         Test signbit behavior on zeros.
56934         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56935         (test_signbitd, test_signbitl): Likewise.
56936
56937         More strtod touchups.
56938         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56939         sign of negative underflow, for now.  Use .5, not .1.
56940         * doc/posix-functions/strtod.texi (strtod): Mention these
56941         limitations.
56942         Reported by Jim Meyering.
56943
56944 2008-03-30  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56947         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56948
56949 2008-03-30  Bruno Haible  <bruno@clisp.org>
56950
56951         Avoid failure when attempting to return empty iconv results on some
56952         platforms.
56953         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56954         allocation, don't report ENOMEM when the resulting string is empty.
56955
56956 2008-03-30  Bruno Haible  <bruno@clisp.org>
56957
56958         Fix buffer overrun.
56959         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56960         Don't consider the width for tmp_length. Check count against tmp_length
56961         before doing the padding. Ensure enough allocation during padding.
56962
56963 2008-03-30  Eric Blake  <ebb9@byu.net>
56964
56965         strtod touchups.
56966         * lib/strtod.c (strtod): Avoid compiler warnings.
56967         Reported by Jim Meyering.
56968
56969 2008-03-30  Bruno Haible  <bruno@clisp.org>
56970
56971         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56972         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56973         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56974         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56975         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56976         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56977         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56978         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56979
56980         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56981         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56982         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56983         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56984         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56985         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56986         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56987         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56988
56989         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56990         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56991         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56992         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56993         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56994         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56995         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56996         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56997
56998         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56999         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57000
57001         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57002         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57003
57004         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57005         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57006
57007         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57009         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57010
57011         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57013         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57014
57015         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57017         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57018
57019         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57020         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57021         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57022
57023         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57024         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57025         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57026         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57027         (Depends-on): Add EOVERFLOW.
57028         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57029         (Depends-on): Add EOVERFLOW.
57030         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57031         (Depends-on): Add EOVERFLOW.
57032         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57033         (Depends-on): Add EOVERFLOW.
57034         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57035         (Depends-on): Add EOVERFLOW.
57036         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57037         (Depends-on): Add EOVERFLOW.
57038         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57039         (Depends-on): Add EOVERFLOW.
57040         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57041         (Depends-on): Add EOVERFLOW.
57042
57043         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57045         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57046
57047         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57048         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57049         * modules/snprintf (Depends-on): Add EOVERFLOW.
57050
57051         * lib/poll.c (EOVERFLOW): Remove fallback.
57052         * modules/poll (Depends-on): Add EOVERFLOW.
57053
57054         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57055         * modules/getugroups (Depends-on): Add EOVERFLOW.
57056
57057         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57058         * modules/getdelim (Depends-on): Add EOVERFLOW.
57059
57060         * lib/ftell.c (EOVERFLOW): Remove fallback.
57061         * modules/ftell (Depends-on): Add EOVERFLOW.
57062
57063         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57064         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57065         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57066
57067         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57068
57069         * modules/EOVERFLOW-tests: New file.
57070         * tests/test-EOVERFLOW.c: New file.
57071
57072         * modules/EOVERFLOW: New file.
57073         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57074
57075 2008-03-30  Bruno Haible  <bruno@clisp.org>
57076
57077         Fix bug introduced on 2007-06-10.
57078         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57079         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57080
57081 2008-03-30  Bruno Haible  <bruno@clisp.org>
57082
57083         Improve freadseek's efficiency after ungetc.
57084         * lib/freadseek.c: Include freadahead.h.
57085         (freadptrinc): New function, extracted from freadseek.
57086         (freadseek): Use it in a loop. Use freadahead to determine the number
57087         of loop iterations.
57088         * modules/freadseek (Depends-on): Add freadahead.
57089         (configure.ac): Require AC_C_INLINE.
57090
57091 2008-03-30  Bruno Haible  <bruno@clisp.org>
57092
57093         * lib/freadseek.c (freadseek): Don't ignore the return value of
57094         freadptr.
57095
57096 2008-03-29  Eric Blake  <ebb9@byu.net>
57097
57098         Add hex float support.
57099         * modules/strtod (Depends-on): Add c-ctype.
57100         (Link): Mention POW_LIB.
57101         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57102         whitespace between 'e' and exponent.
57103         * tests/test-strtod.c (main): Enable hex float tests.
57104         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57105         now provides.
57106
57107         Document various strtod bugs, with some fixes.
57108         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57109         "-0x", "inf", "nan", and hex constants.
57110         * doc/posix-functions/atof.texi (atof): Likewise.
57111         * modules/stdlib (Makefile.am): Support strtod.
57112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57113         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57114         detect additional strtod bugs.
57115         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57116         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57117         bool where appropriate.  Parse 'inf' and 'nan'.
57118         * tests/test-strtod.c: New file.
57119         * modules/strtod (Depends-on): Add stdbool, stdlib.
57120         (configure.ac): Turn on module indicator.
57121         * modules/strtod-tests: New module.
57122
57123 2008-03-29  Eric Blake  <ebb9@byu.net>
57124
57125         Fix ftell on mingw.
57126         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57127         * modules/ftell-tests (Depends-on): Add binary-io.
57128         * modules/ftello-tests (Depends-on): Likewise.
57129         * tests/test-ftell.c (main): Enhance test to cover behavior after
57130         ungetc.  Enforce binary mode.
57131         * tests/test-ftello.c (main): Likewise.
57132
57133         Pass test-freadseek on cygwin.
57134         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57135         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57136         ungetc buffer.
57137
57138         * tests/test-fflush2.c (main): Fix typo.
57139
57140 2008-03-29  Bruno Haible  <bruno@clisp.org>
57141
57142         * tests/test-fflush2.c (main): Temporarily disable the contents of
57143         this test.
57144         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57145         Reported by Eric Blake.
57146
57147 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57148
57149         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57150         (GC_SHA224_DIGEST_SIZE): Add.
57151
57152         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57153         (gc_hash_digest_length): Likewise.
57154         (gc_hash_buffer): Likewise.
57155
57156 2008-03-25  Bruno Haible  <bruno@clisp.org>
57157
57158         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57159         detail which gettext release to use.
57160         Reported by Simon Josefsson.
57161
57162 2008-03-26  Jim Meyering  <meyering@redhat.com>
57163
57164         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57165         * modules/gnumakefile (clean-GNUmakefile): Also, use
57166         test ... && ... || : syntax rather than if-then ... fi.
57167
57168         gnumakefile: Don't double-quote-expand $(VPATH) value.
57169         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57170
57171 2008-03-24  Eric Blake  <ebb9@byu.net>
57172
57173         Alter GNUmakefile to install into top directory.
57174         * modules/maintainer-makefile: Split, and add dependency...
57175         * modules/gnumakefile: to this new module.
57176         * build-aux/GNUmakefile: Move...
57177         * top/GNUmakefile: ...here.
57178         * build-aux/maint.mk: Move...
57179         * top/maint.mk: ...here.
57180         * MODULES.html.sh (Support for maintaining...): Document new
57181         module.
57182
57183 2008-03-23  Bruno Haible  <bruno@clisp.org>
57184
57185         * gnulib-tool: New options --vc-files, --no-vc-files.
57186         (func_usage): Document them.
57187         (vc_files): New variable.
57188         (func_import): Consider vc_files.
57189         (func_create_testdir): Set vc_files to empty.
57190         Suggested by Jim Meyering and Karl Berry.
57191
57192 2008-03-23  Bruno Haible  <bruno@clisp.org>
57193
57194         Fix regex compilation error on HP-UX 11.
57195         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57196         * modules/regex (Files): Add m4/mbstate_t.m4.
57197         Reported by Ton Voon <ton.voon@altinity.com>.
57198
57199 2008-03-23  Bruno Haible  <bruno@clisp.org>
57200
57201         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57202
57203 2008-03-23  Eric Blake  <ebb9@byu.net>
57204             Bruno Haible  <bruno@clisp.org>
57205
57206         Install files from top/ in the destination directory.
57207         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57208         augmentation also for the files from top/.
57209         (func_import, func_create_testdir): Rewrite file names:
57210         top/filename -> filename.
57211
57212 2008-03-23  Bruno Haible  <bruno@clisp.org>
57213
57214         Tweak "gnulib --version" output.
57215         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57216
57217 2008-03-23  Bruno Haible  <bruno@clisp.org>
57218
57219         Tweak "gnulib --version" output.
57220         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57221         rather than contents of ChangeLog, when possible.
57222
57223 2008-03-21  Eric Blake  <ebb9@byu.net>
57224
57225         More --version tweaks.
57226         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57227         date of last ChangeLog entry.
57228
57229 2008-03-21  Jim Meyering  <meyering@redhat.com>
57230
57231         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57232
57233 2008-03-20  Eric Blake  <ebb9@byu.net>
57234
57235         VPATH fix.
57236         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57237
57238 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57239
57240         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57241         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57242
57243 2008-03-20  Eric Blake  <ebb9@byu.net>
57244
57245         Sync GNUmakefile with coreutils.
57246         * build-aux/GNUmakefile (have-Makefile): Rename...
57247         (_have-Makefile): ...to this, for namespace consideration.
57248         (GNUmakefile.cfg): Include, if present.
57249         (_autoreconf): Define a default.
57250         (_is-dist-target): New rule for rebuilds to pick up intra-release
57251         version.
57252         (maint-cfg.mk): Rename...
57253         (cfg.mk): ...to this.
57254
57255 2008-03-18  Jim Meyering  <meyering@redhat.com>
57256
57257         New script and module: mktempd
57258         * MODULES.html.sh (maint+release support): Add mktempd.
57259         * build-aux/mktempd: New file.
57260         * modules/mktempd: New file.
57261
57262 2008-03-15  Jim Meyering  <meyering@redhat.com>
57263
57264         Undo last change.
57265         * lib/sha1.c, lib/md5.c: 63 != ~63.
57266         Reported by Andreas Schwab.
57267
57268         sha1.c, md5.c: Hoist a redundant expression.
57269         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57270         "ctx->buflen" only once, before calling *_process_block.
57271         * lib/md5.c (md5_process_bytes): Likewise.
57272
57273 2008-03-14  Eric Blake  <ebb9@byu.net>
57274
57275         Bump copyright year in files generated by gnulib-tool.
57276         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57277         gnulib-tool, rather than hard-coding it.
57278
57279         Fix 'gnulib-tool --version' output to work with git.
57280         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57281         (startup): ...here.
57282         (func_version): Use it to invoke git-version-gen, rather than
57283         relying on CVS keyword expansion.  Modernize wording.
57284         (cvsdatestamp, last_checkin_date, version): Kill unused
57285         variables.
57286
57287 2008-03-12  Jim Meyering  <meyering@redhat.com>
57288
57289         Recognize optional cast of the argument to free.
57290         * build-aux/useless-if-before-free: Update regexps.
57291
57292         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57293
57294 2008-03-11  Bruno Haible  <bruno@clisp.org>
57295
57296         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57297         by a single package.
57298         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57299         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57300         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57301         Reported by Sam Steingold <sds@gnu.org>.
57302
57303 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57304
57305         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57306         repositories.
57307
57308 2008-03-11  Bruno Haible  <bruno@clisp.org>
57309
57310         Avoid conflicts between local macro definitions.
57311         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57312         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57313
57314 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57315             Bruno Haible  <bruno@clisp.org>
57316
57317         Make va_copy work with some version of xlc on AIX 5.1.
57318         * lib/stdarg.in.h: New file.
57319         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57320         On AIX, use a <stdarg.h> file substitute.
57321         * modules/stdarg (Files): Add lib/stdarg.in.h.
57322         (Depends-on): Add include_next.
57323         (Makefile.am): Build a stdarg.h substitute if requested.
57324         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57325
57326 2008-03-10  Bruno Haible  <bruno@clisp.org>
57327
57328         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57329         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57330         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57331
57332 2008-03-10  Bruno Haible  <bruno@clisp.org>
57333
57334         * modules/stdlib (Depends-on): Add include_next, remove
57335         absolute-header.
57336
57337 2008-03-09  Bruno Haible  <bruno@clisp.org>
57338
57339         * lib/freadahead.h (freadahead): Document more precisely.
57340         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57341         the sum of both buffer sizes.
57342         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57343         * NEWS: Document the change.
57344
57345 2008-03-09  Bruno Haible  <bruno@clisp.org>
57346
57347         Extend freadptr to return also the buffer size.
57348         * lib/freadptr.h (freadptr): Add sizep argument.
57349         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57350         (freadptr): Add sizep argument. Determine buffer size like freadahead
57351         does.
57352         * tests/test-freadptr.c: Don't include freadahead.h.
57353         (main): Adapt for new calling convention of freadptr.
57354         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57355         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57356         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57357         tests/test-freadptr2.sh.
57358         (Depends): Remove freadahead.
57359         (TESTS): Add test-freadptr2.sh.
57360         (check_PROGRAMS): Add test-freadptr2.
57361
57362 2008-03-09  Bruno Haible  <bruno@clisp.org>
57363
57364         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57365         Report and solution by Simon Josefsson.
57366
57367 2008-03-06  Bruno Haible  <bruno@clisp.org>
57368
57369         Make fflush after ungetc work on BSD platforms.
57370         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57371         * tests/test-fflush2.c: New file.
57372         * tests/test-fflush2.sh: New file.
57373         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57374         tests/test-fflush2.c.
57375         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57376         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57377
57378 2008-03-06  Eric Blake  <ebb9@byu.net>
57379
57380         Likewise for ftello.
57381         * modules/ftello (Dependencies): Add extensions.
57382         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57383
57384 2008-03-06  Bruno Haible  <bruno@clisp.org>
57385
57386         * modules/fseeko (Dependencies): Add extensions.
57387         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57388         Needed on glibc systems.
57389
57390 2008-03-06  Bruno Haible  <bruno@clisp.org>
57391
57392         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57393         email address.
57394         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57395
57396 2008-03-06  Bruno Haible  <bruno@clisp.org>
57397
57398         * users.txt: Add libgnupdf.
57399
57400 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57401
57402         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57403         (Header File Substitutes, Function Substitutes,
57404         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57405         (Build robot for gnulib): Fix typo.
57406
57407 2008-03-06  Bruno Haible  <bruno@clisp.org>
57408
57409         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57410         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57411
57412 2008-03-06  Bruno Haible  <bruno@clisp.org>
57413
57414         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57415         * doc/gnulib.texi: Include it.
57416
57417 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57418
57419         * modules/func (License): Change license to unlimited; there was
57420         no LGPL parts in the module anyway.
57421
57422 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57423
57424         * modules/__func__: Renamed to modules/func.
57425         * modules/__func__-tests: Renamed to modules/func-tests.
57426         * tests/test-__func__.c: Renamed to tests/test-func.c.
57427         * m4/__func__.m4: Renamed to m4/func.m4.
57428         * doc/gnulib.texi (__func__): Section renamed to func.
57429         Suggested by Eric Blake <ebb9@byu.net>.
57430
57431 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57432
57433         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57434         about __func__.  Make example self-contained.  Suggested by Eric
57435         Blake <ebb9@byu.net>.
57436
57437         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57438         Suggested by Eric Blake <ebb9@byu.net>.
57439
57440 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57441
57442         * modules/__func__: New file.
57443         * modules/__func__-tests: New file.
57444         * tests/test-__func__.c: New file.
57445         * m4/__func__.m4: New file.
57446         * doc/gnulib.texi (__func__): Document __func__ module.
57447
57448 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57449
57450         * modules/byteswap (License): Re-license as LGPLv2+.
57451
57452 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57453
57454         * doc/Makefile: Add pdf target.
57455
57456 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57457
57458         * modules/inline (License): Use 'unlimited', since there are only
57459         *.m4 files in this module.
57460
57461 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57462             Bruno Haible  <bruno@clisp.org>
57463
57464         Add support for HP C 7.1 on OpenVMS 8.3.
57465         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57466
57467 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57468
57469         Update VMS specifics.
57470         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57471
57472 2008-03-02  Jim Meyering  <meyering@redhat.com>
57473
57474         Remove the last dependency on the "free" module.
57475         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57476         Reported by Bob Proulx.
57477
57478         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57479
57480         Remove useless "if" tests before free.  Deprecate "free" module.
57481         * doc/posix-functions/free.texi: Mention that this
57482         module is no longer useful.
57483         * modules/free (Notice): Say this module is obsolete.
57484         * modules/readutmp (Depends-on): Remove free.
57485         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57486         * lib/putenv.c (putenv): Likewise.
57487         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57488         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57489         * tests/test-c-strcasestr.c (main): Likewise.
57490         * tests/test-c-strstr.c (main): Likewise.
57491         * tests/test-mbscasestr1.c (main): Likewise.
57492         * tests/test-mbscasestr2.c (main): Likewise.
57493         * tests/test-mbsstr1.c (main): Likewise.
57494         * tests/test-mbsstr2.c (main): Likewise.
57495         * tests/test-memmem.c (main): Likewise.
57496         * tests/test-strcasestr.c (main): Likewise.
57497         * tests/test-striconv.c (main): Likewise.
57498         * tests/test-striconveh.c (main): Likewise.
57499         * tests/test-striconveha.c (main): Likewise.
57500         * tests/test-strstr.c (main): Likewise.
57501
57502         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57503
57504         bootstrap: sync from coreutils again
57505         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57506
57507 2008-03-01  Jim Meyering  <meyering@redhat.com>
57508
57509         bootstrap: sync from coreutils
57510         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57511         also when the target doesn't exist.
57512
57513 2008-03-01  Eric Blake  <ebb9@byu.net>
57514
57515         Fix bugs in last patch.
57516         * lib/memchr2.c (memchr2): Fix typo.
57517         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57518         extension.
57519         Reported by Bruce Korb.
57520
57521         New module 'memchr2'.
57522         * modules/memchr2: New file.
57523         * modules/memchr2-tests: Likewise.
57524         * lib/memchr2.h: Likewise.
57525         * lib/memchr2.c: Likewise, based on memchr.c.
57526         * tests/test-memchr2.c: New test.
57527         * MODULES.html.sh (String handling): Add memchr2.
57528
57529 2008-02-29  Bruno Haible  <bruno@clisp.org>
57530
57531         * modules/freadseek-tests: New file.
57532         * tests/test-freadseek.sh: New file.
57533         * tests/test-freadseek.c: New file.
57534
57535         New module 'freadseek'.
57536         * modules/freadseek: New file.
57537         * lib/freadseek.h: New file.
57538         * lib/freadseek.c: New file.
57539         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57540
57541 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57542
57543         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57544         wydawca.
57545
57546         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57547         program_invocation_name and program_invocation_short_name are
57548         present.
57549
57550 2008-02-28  Bruno Haible  <bruno@clisp.org>
57551
57552         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57553         * tests/test-freadptr.sh: Also test non-seekable stdin.
57554
57555 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57556
57557         * build-aux/bootstrap (source_base, m4_base)
57558         (doc_base, tests_base): New variables.
57559         (gnulib_tool_options): Do not hardcode base directories, use
57560         the above variables instead.
57561
57562 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57563
57564         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57565
57566 2008-02-28  Bruno Haible  <bruno@clisp.org>
57567
57568         * modules/freadptr-tests: New file.
57569         * tests/test-freadptr.sh: New file.
57570         * tests/test-freadptr.c: New file.
57571
57572         New module 'freadptr'.
57573         * modules/freadptr: New file.
57574         * lib/freadptr.h: New file.
57575         * lib/freadptr.c: New file.
57576         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57577
57578 2008-02-26  Karl Berry  <karl@freefriends.org>
57579
57580         Sync from Libtool:
57581         * libltdl/argz.c (argz_add, argz_count): New functions.
57582         * libltdl/argz.in.h: Declare them.
57583         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57584
57585 2008-02-22  Bruno Haible  <bruno@clisp.org>
57586
57587         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57588         is a pointer type.  Needed for HP-UX 10.
57589         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57590         * doc/posix-functions/gmtime_r.texi: Likewise.
57591         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57592
57593 2008-02-24  Bruno Haible  <bruno@clisp.org>
57594
57595         * modules/environ-tests: New file.
57596         * tests/test-environ.c: New file.
57597
57598         New module 'environ'.
57599         * modules/environ: New file.
57600         * lib/unistd.in.h (environ): New declaration.
57601         * m4/environ.m4: New file.
57602         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57603         after use.
57604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57605         HAVE_DECL_ENVIRON.
57606         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57607         HAVE_DECL_ENVIRON.
57608         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57609         wrong claim that 'environ' is missing on some systems.
57610         * modules/execute (Depends-on): Add environ.
57611         * lib/execute.c (environ): Remove fallback declaration.
57612         * modules/pipe (Depends-on): Add environ.
57613         * lib/pipe.c (environ): Remove fallback declaration.
57614         * modules/setenv (Depends-on): Add environ.
57615         * lib/setenv.c (environ): Remove fallback declaration.
57616         * modules/unsetenv (Depends-on): Add environ.
57617         * lib/unsetenv.c (environ): Remove fallback declaration.
57618         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57619         m4/environ.m4.
57620         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57621         (gl_PREREQ_UNSETENV): Likewise.
57622
57623 2008-02-24  Bruno Haible  <bruno@clisp.org>
57624
57625         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57626
57627 2008-02-20  Bob Proulx  <bob@proulx.com>
57628
57629         Enable use of older two part flavor 'git describe'.
57630         * build-aux/git-version-gen: If using the older two part flavor of
57631         git version then recreate the third part now present in the
57632         newer three part flavor of git describe.
57633
57634 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57635
57636         * lib/fts.c (fts_build): Typo correction to comment.
57637
57638 2008-02-17  Bruno Haible  <bruno@clisp.org>
57639
57640         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57641         generating no-op conflicts.
57642
57643 2008-02-17  Bruno Haible  <bruno@clisp.org>
57644
57645         Speed up by 10%.
57646         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57647         result_entries, rather than an index-based loop.
57648
57649 2008-02-17  Bruno Haible  <bruno@clisp.org>
57650
57651         Speed up by 25%.
57652         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57653         'hashcode_cached'.
57654         (entry_create): New function.
57655         (entry_hashcode): Use the cached hashcode if possible.
57656         (read_changelog_file, try_split_merged_entry): Use entry_create.
57657
57658 2008-02-17  Bruno Haible  <bruno@clisp.org>
57659
57660         Speed up from O(n^2) to O(n) for long ChangeLog files.
57661         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57662         (read_changelog_file): Change implementation of entries_reversed list
57663         to rbtreehash.
57664         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57665
57666 2008-02-17  Bruno Haible  <bruno@clisp.org>
57667
57668         New option --split-merged-entry.
57669         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57670         (find_paragraph_end, try_split_merged_entry): New functions.
57671         (long_options): Add option --split-merged-entry.
57672         (usage): Document option --split-merged-entry.
57673         (main): Implement option --split-merged-entry.
57674         Reported by Eric Blake.
57675
57676 2008-02-17  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/git-merge-changelog.c: Include c-strstr.h.
57679         (main): Support the "git pull --rebase" situation.
57680         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57681         Reported by Eric Blake.
57682
57683 2008-02-16  Eric Blake  <ebb9@byu.net>
57684
57685         Avoid doubling \ in common case of "c-maybe" quoting style.
57686         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57687         eliding outer quotes.
57688         * lib/quotearg.h: Document this.
57689         * tests/test-quotearg.c (result_strings, inputs, results_g)
57690         (flag_results, locale_results): Test it by adding a new string to
57691         each test group.
57692         (compare_strings): Test new string.
57693
57694 2008-02-13  Eric Blake  <ebb9@byu.net>
57695
57696         Avoid trigraph quoting in default output.
57697         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57698         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57699         unless explicitly requested.
57700         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57701
57702 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57703
57704         Don't rely on signed integer overflowing to negative value.
57705         * lib/getugroups.c (getugroups): Include <limits.h>.
57706         Instead, compare against INT_MAX, and increment only if the test passes.
57707
57708 2008-02-13  Jim Meyering  <meyering@redhat.com>
57709         and Eric Blake  <ebb9@byu.net>
57710
57711         Avoid shadowing warning and compile errors on Linux.
57712         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57713         forwarding macros on Linux.
57714         (dcgettext): Define a stub, for Linux.
57715         (results_g, main): Avoid warnings.
57716
57717 2008-02-12  Eric Blake  <ebb9@byu.net>
57718
57719         Silence warning in last patch.
57720         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57721
57722         Quotearg part 4: add tests, fix c-maybe colon quoting.
57723         * lib/quotearg.h: Improve documentation.
57724         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57725         escapes when adding outer quotes.  When quoting trigraphs, use
57726         valid C notation.  When quoting NUL, omit extra characters if next
57727         character is not digit.  Alter prototype.
57728         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57729         callers.
57730         * modules/quotearg-tests: New module.
57731         * tests/test-quotearg.c: New test.
57732
57733 2008-02-07  Eric Blake  <ebb9@byu.net>
57734
57735         Quotearg part 3: add flag to control outer quote elision.
57736         * lib/quotearg.h (c_maybe_quoting_style): New style.
57737         (enum quoting_flags): Better documentation of flags.
57738         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57739         c-maybe style.
57740         (quotearg_buffer_restyled): Handle new flag to elide outer
57741         quotes.
57742
57743         Quotearg part 2: add flag that can control NUL elision.
57744         * lib/quotearg.h (set_quoting_flags): New prototype.
57745         * lib/quotearg.c (struct quoting_options): Add flag field.
57746         (set_quoting_flags): New function.
57747         (quotearg_buffer_restyled): Add flags parameter.
57748         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57749         (quotearg_n_options): Set the flag, since length cannot be
57750         returned.
57751         (quoting_options_from_style): Default flags correctly.
57752
57753         Quotearg part 1: more wrappers, restore quotearg_char state.
57754         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57755         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57756         (quotearg_colon_mem): New wrappers.
57757         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57758         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57759         functions.
57760         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57761         (quotearg_colon_mem): New functions.
57762
57763 2008-02-11  Bruno Haible  <bruno@clisp.org>
57764
57765         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57766         library in the current directory: it does not work with parallel make.
57767         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57768
57769 2008-02-11  Bruno Haible  <bruno@clisp.org>
57770
57771         * .gitattributes: New file.
57772
57773 2008-02-11  Jim Meyering  <meyering@redhat.com>
57774
57775         useless-if-before-free: Fix reversed exit values.
57776         * build-aux/useless-if-before-free: Use correct values
57777         for EXIT_MATCH and EXIT_NO_MATCH.
57778
57779         * build-aux/useless-if-before-free: Close stdout carefully.
57780
57781 2008-02-10  Bruno Haible  <bruno@clisp.org>
57782
57783         New module 'git-merge-changelog'.
57784         * modules/git-merge-changelog: New file.
57785         * lib/git-merge-changelog.c: New file.
57786
57787 2008-02-10  Jim Meyering  <meyering@redhat.com>
57788
57789         useless-if-before-free: New option: --list (-l).
57790
57791         useless-if-before-free: Don't exit immediately upon open failure.
57792         * build-aux/useless-if-before-free: Exit 2 for errors.
57793         Upon failure to open a file, don't exit immediately.
57794         Rather, just warn and continue with any remaining files.
57795
57796 2008-02-10  Bruno Haible  <bruno@clisp.org>
57797
57798         New abstract list operation 'node_set_value'.
57799         * lib/gl_list.h (gl_list_node_set_value): New function.
57800         (struct gl_list_implementation): New field node_set_value.
57801         * lib/gl_list.c (gl_list_node_set_value): New function.
57802         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57803         (gl_array_list_implementation): Update.
57804         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57805         (gl_carray_list_implementation): Update.
57806         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57807         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57808         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57809         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57810         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57811         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57812         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57813         Update.
57814         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57815         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57816         (gl_sublist_list_implementation): Update.
57817
57818 2008-02-10  Bruno Haible  <bruno@clisp.org>
57819
57820         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57821         Needed when ELEMENT is #defined to 'some_type *'.
57822
57823 2008-02-10  Jim Meyering  <meyering@redhat.com>
57824
57825         New script and module: useless-if-before-free
57826         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57827         * build-aux/useless-if-before-free: New file.
57828         * modules/useless-if-before-free: New file.
57829
57830         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57831
57832         xstrtol_error: Fix typo.
57833         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57834         s/exit_failure/exit_status/.
57835
57836 2008-02-09  Jim Meyering  <meyering@redhat.com>
57837
57838         New script and module: gitlog-to-changelog
57839         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57840         * modules/gitlog-to-changelog: New file.
57841         * build-aux/gitlog-to-changelog: New file.
57842
57843 2008-02-08  Jim Meyering  <meyering@redhat.com>
57844
57845         Avoid two "parameter unused" warnings.
57846         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57847         Mark "st" as used.
57848
57849         Use "git COMMAND", not "git-COMMAND".
57850         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57851         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57852         * build-aux/git-version-gen: Use "git status", not "git-status".
57853
57854 2008-02-07  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57857         Avoids a crash on Windows Vista.
57858         Reported by Adam Strzelecki <ono@java.pl> via
57859         Simon Josefsson <simon@josefsson.org>.
57860
57861 2008-02-06  Bruno Haible  <bruno@clisp.org>
57862
57863         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57864         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57865         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57867         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57869         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57870         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57871         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57872         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57873         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57874         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57876         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57877         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57878         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57879         left-adjust flag.
57880         * tests/test-snprintf-posix.h (test_function): Likewise.
57881         * tests/test-sprintf-posix.h (test_function): Likewise.
57882         * tests/test-vasprintf-posix.c (test_function): Likewise.
57883         * doc/posix-functions/fprintf.texi: Update.
57884         * doc/posix-functions/printf.texi: Update.
57885         * doc/posix-functions/snprintf.texi: Update.
57886         * doc/posix-functions/sprintf.texi: Update.
57887         * doc/posix-functions/vfprintf.texi: Update.
57888         * doc/posix-functions/vprintf.texi: Update.
57889         * doc/posix-functions/vsnprintf.texi: Update.
57890         * doc/posix-functions/vsprintf.texi: Update.
57891         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57892
57893 2008-02-06  Bruno Haible  <bruno@clisp.org>
57894
57895         Fix bug introduced on 2008-01-26.
57896         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57897
57898 2008-02-06  Bruno Haible  <bruno@clisp.org>
57899
57900         Fix bug introduced on 2007-06-10.
57901         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57902         !NEED_PRINTF_FLAG_ZERO.
57903
57904 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57905
57906         getloadavg: use libperfstat on AIX5
57907         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57908
57909 2008-02-03  Bruno Haible  <bruno@clisp.org>
57910
57911         * lib/diffseq.h: Add comments about required #includes.
57912         Reported by Michael Biggs <gnulib@doubleplum.net>.
57913
57914 2008-02-01  Bruno Haible  <bruno@clisp.org>
57915
57916         * users.txt: Add gnuit.
57917
57918 2008-01-31  Bruno Haible  <bruno@clisp.org>
57919
57920         * lib/md4.c (set_uint32): Mark as inline.
57921         * lib/md5.c (set_uint32): Likewise.
57922         * lib/sha1.c (set_uint32): Likewise.
57923         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57924         * m4/md5.m4 (gl_MD5): Likewise.
57925         * m4/sha1.m4 (gl_SHA1): Likewise.
57926
57927 2008-01-31  Jim Meyering  <meyering@redhat.com>
57928
57929         Use "sizeof VAR", rather than a literal "4".
57930         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57931         * lib/md4.c (md4_read_ctx): Likewise.
57932         * lib/sha1.c (sha1_read_ctx): Likewise.
57933
57934 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57935
57936         * tests/test-sha1.c: New file, based on test-md5.c.
57937
57938         * modules/crypto/sha1-tests: New file.
57939
57940 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57941
57942         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57943
57944 2008-01-31  Jim Meyering  <meyering@redhat.com>
57945
57946         Prefer "sizeof v" over the equivalent "4".
57947         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57948         * lib/md5.c (set_uint32): Likewise.
57949         * lib/sha1.c (set_uint32): Likewise.
57950
57951 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57952
57953         * lib/sha1.c (set_uint32): Mark function as static.
57954
57955 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57956
57957         md2: clarify comments to say that alignment is not required.
57958         * lib/md2.h: Remove warning about alignment in comment.
57959         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57960         never been required.
57961
57962 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57963
57964         md4: adapt alignment constraint fix from sha1.
57965         * lib/md4.c (set_uint32): New function, from sha1.c
57966         (md4_read_ctx): Use it.
57967         (md4_finish_ctx): Doc fix.
57968         * lib/md4.h: Doc fix.
57969
57970 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57971
57972         md5: adapt alignment constraint fix from sha1.
57973         * lib/md5.c (set_uint32): New function, from sha1.c
57974         (md5_read_ctx): Use it.
57975         (md5_finish_ctx): Doc fix.
57976         * lib/md5.h: Doc fix.
57977
57978 2008-01-30  Peter Palfrader  <weasel@debian.org>
57979
57980         sha1: remove the result buffer alignment constraint
57981         * lib/sha1.c (set_uint32): New function.
57982         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57983         constraint.
57984         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57985         * lib/sha1.h: Likewise.
57986
57987 2008-01-30  Andreas Schwab  <schwab@suse.de>
57988             Bruno Haible  <bruno@clisp.org>
57989
57990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57991         correct definition of LDBL_MIN_EXP.
57992
57993 2008-01-30  Karl Berry  <karl@gnu.org>
57994
57995         * config/srclist-update: try to preserve x bit on updates.
57996         * config/srclistvars.sh: update for karl.
57997
57998 2008-01-29  Jim Meyering  <meyering@redhat.com>
57999
58000         vasnprintf.c: Avoid warning about unused label
58001         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58002         "overflow" label definition and associated code with the
58003         same cpp condition that guards the sole use of that label.
58004
58005 2008-01-26  Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58008         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58009         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58010         * lib/isnanl-nolibm.h (isnanl): Likewise.
58011         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58012
58013 2008-01-26  Bruno Haible  <bruno@clisp.org>
58014
58015         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58016         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58017
58018 2008-01-26  Bruno Haible  <bruno@clisp.org>
58019
58020         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58021         GCC >= 4.0 built-in.
58022         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58023
58024 2008-01-26  Bruno Haible  <bruno@clisp.org>
58025
58026         Rename isnan, applicable to 'double' only, to isnand.
58027         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58028         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58029         (configure.ac): Update.
58030         (Include): Replace "isnan.h" with "isnand.h".
58031         * m4/isnand.m4: Renamed from m4/isnan.m4.
58032         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58033         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58034         instead of isnan.c.
58035         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58036         instead of HAVE_ISNAN_IN_LIBC.
58037         (isnand): Renamed from isnan.
58038         * lib/isnand.c: New file.
58039         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58040         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58041         (Makefile.am): Update.
58042         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58043         Include isnand.h instead of isnan.h.
58044         (main): Test isnand instead of isnan.
58045         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58046         isnan-nolibm.
58047         * modules/frexp (Depends-on): Likewise.
58048         * modules/frexp-tests (Depends-on): Likewise.
58049         * modules/frexp-nolibm (Depends-on): Likewise.
58050         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58051         * modules/isfinite (Depends-on): Likewise.
58052         * modules/round-tests (Depends-on): Likewise.
58053         * modules/signbit (Depends-on): Likewise.
58054         * modules/signbit-tests (Depends-on): Likewise.
58055         * modules/snprintf-posix (Depends-on): Likewise.
58056         * modules/sprintf-posix (Depends-on): Likewise.
58057         * modules/trunc-tests (Depends-on): Likewise.
58058         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58059         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58060         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58062         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58063         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58064         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58065         * modules/vasnprintf-posix (Depends-on): Likewise.
58066         * modules/vasprintf-posix (Depends-on): Likewise.
58067         * modules/vfprintf-posix (Depends-on): Likewise.
58068         * modules/vsnprintf-posix (Depends-on): Likewise.
58069         * modules/vsprintf-posix (Depends-on): Likewise.
58070         * lib/frexp.c: Include isnand.h instead of isnan.h.
58071         (ISNAN): Set to isnand instead of isnan.
58072         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58073         (gl_isfinited): Use isnand instead of isnan.
58074         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58075         (gl_signbitd): Use isnand instead of isnan.
58076         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58077         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58078         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58079         (main): Use isnand instead of isnan.
58080         * tests/test-round1.c: Include isnand.h.
58081         (main): Use isnand instead of isnan.
58082         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58083         (ISNAN): Set to isnand instead of isnan.
58084         * tests/test-trunc1.c: Include isnand.h.
58085         (main): Use isnand instead of isnan.
58086         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58087         (equal): Use isnand instead of isnan.
58088         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58089         isnand-nolibm.
58090         * NEWS: Mention the change.
58091
58092 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58093             Bruno Haible  <bruno@clisp.org>
58094
58095         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58096         the GCC builtins for signbits are present and set
58097         REPLACE_SIGNBIT_USING_GCC if so.
58098         * lib/math.in.h (signbit): Define using GCC builtins if
58099         REPLACE_SIGNBIT_USING_GCC is set.
58100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58101         REPLACE_SIGNBIT_USING_GCC.
58102         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58103
58104 2008-01-25  Jim Meyering  <meyering@redhat.com>
58105
58106         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58107         * lib/poll.c: Include <config.h>, not "config.h".
58108         * tests/test-getaddrinfo.c: Likewise.
58109
58110 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58111
58112         * modules/sockets-tests: New file.
58113
58114 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58115
58116         * modules/sockets: New module, can be used to call WSA_Startup and
58117         WSA_Cleanup when needed.
58118
58119         * lib/sockets.h, lib/sockets.c: New files.
58120
58121         * m4/sockets.m4: New file.
58122
58123         * tests/test-sockets.c: New file.
58124
58125 2008-01-19  Bruno Haible  <bruno@clisp.org>
58126
58127         * doc/posix-headers: Renamed from doc/headers.
58128         * doc/posix-functions: Renamed from doc/functions.
58129         * doc/gnulib.texi: Update.
58130
58131 2008-01-19  Bruno Haible  <bruno@clisp.org>
58132
58133         * doc/glibc-functions/strcasestr.texi: Include contents of
58134         doc/functions/strcasestr.texi, fixing the list of platforms.
58135         * doc/functions/strcasestr.texi: Remove file.
58136
58137 2008-01-19  Bruno Haible  <bruno@clisp.org>
58138
58139         * doc/glibc-functions/memmem.texi: Include contents of
58140         doc/functions/memmem.texi.
58141         * doc/functions/memmem.texi: Remove file.
58142
58143 2008-01-18  Bruno Haible  <bruno@clisp.org>
58144
58145         * doc/glibc-functions/*.texi: New files.
58146         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58147         to use the new files.
58148
58149 2008-01-17  Bruno Haible  <bruno@clisp.org>
58150
58151         * tests/test-gethostname.c (main): Fix printf statement.
58152
58153 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58154
58155         * modules/gethostname-tests: New file.
58156
58157         * tests/test-gethostname.c: New file.
58158
58159 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58160
58161         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58162         used by the UNAME case.  Reported by Bruno Haible
58163         <bruno@clisp.org>.
58164
58165 2008-01-17  Eric Blake  <ebb9@byu.net>
58166
58167         Convert c-strcasestr to be more efficient.
58168         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58169         (Depends-on): Add c-strcase, remove malloca, strnlen.
58170         * tests/test-c-strcasestr.c (main): Enhance test.
58171         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58172
58173 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58174
58175         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58176         Use it in creating po/Makevars.
58177
58178 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58179
58180         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58181         Applications that requires it should initialize libgcrypt
58182         manually.
58183
58184 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58185
58186         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58187
58188 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58189
58190         Fix problem with getdate on mingw32 reported by Simon Josefsson
58191         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58192         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58193         tzname", when deciding whether to declare tzname.
58194         * lib/strftime.c (tzname): Likewise.
58195
58196 2008-01-15  Bruno Haible  <bruno@clisp.org>
58197
58198         Work around a MacOS X 10.5 bug in frexpl().
58199         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58200         * doc/functions/frexpl.texi: Document the bug.
58201         Reported by Elias Pipping <pipping@gentoo.org>.
58202
58203 2008-01-14  Eric Blake  <ebb9@byu.net>
58204
58205         Touch up previous patch.
58206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58207         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58208
58209         Convert strcasestr module to use Two-Way algorithm.
58210         * modules/strcasestr-simple: New module, based on the old
58211         strcasestr, but with Two-Way rather than KMP.
58212         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58213         * lib/string.in.h (rpl_strcasestr): Declare.
58214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58215         performance.
58216         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58217         * modules/string (Makefile.am): Support strcasestr.
58218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58219         * modules/strcasestr-tests (Depends-on): Check for alarm.
58220         * tests/test-strcasestr.c: Augment test.
58221         * lib/str-two-way.h: Clean up stray macro.
58222         * NEWS: Document new module.
58223         * MODULES.html.sh (string handling): Likewise.
58224         * doc/functions/strcasestr.texi: New file.
58225         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58226         here, since it is not a POSIX function.
58227
58228 2008-01-14  Colin Watson  <cjwatson@debian.org>
58229             Bruno Haible  <bruno@clisp.org>
58230
58231         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58232         works fine; if not, set REPLACE_STRSIGNAL.
58233         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58235         REPLACE_STRSIGNAL.
58236         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58237         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58238         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58239
58240 2008-01-14  Bruno Haible  <bruno@clisp.org>
58241
58242         * modules/strsignal (Include): Change to <string.h>.
58243
58244 2008-01-14  Colin Watson  <cjwatson@debian.org>
58245
58246         * modules/argp (Notice): Add a notice recommending to change
58247         XGETTEXT_OPTIONS.
58248         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58249
58250 2008-01-13  Colin Watson  <cjwatson@debian.org>
58251
58252         * modules/strsignal-tests: New file.
58253         * tests/test-strsignal.c: New file.
58254
58255         * lib/strsignal.c: New file, from glibc with modifications.
58256         * lib/siglist.h: New file, from glibc with modifications.
58257         * lib/string.in.h (strsignal): New declaration.
58258         * m4/strsignal.m4: New file.
58259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58260         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58261         * modules/strsignal: New file.
58262         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58263         HAVE_DECL_STRSIGNAL.
58264
58265 2008-01-13  Bruno Haible  <bruno@clisp.org>
58266
58267         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58268         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58269         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58270         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58271
58272 2008-01-13  Bruno Haible  <bruno@clisp.org>
58273
58274         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58275         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58276         * lib/argp.h (__attribute__): Likewise.
58277         * lib/c-stack.c (__attribute__): Likewise.
58278         * lib/error.h (__attribute__): Likewise.
58279         * lib/fts.c (__attribute__): Likewise.
58280         * lib/openat.h (__attribute__): Likewise.
58281         * lib/stdio.in.h (__attribute__): Likewise.
58282         * lib/string.in.h (__attribute__): Likewise.
58283         * lib/utimens.c (__attribute__): Likewise.
58284         * lib/vasnprintf.h (__attribute__): Likewise.
58285         * lib/xalloc.h (__attribute__): Likewise.
58286         * lib/xprintf.h (__attribute__): Likewise.
58287         * lib/xstrtol.h (__attribute__): Likewise.
58288         * lib/xvasprintf.h (__attribute__): Likewise.
58289
58290 2008-01-12  Bruno Haible  <bruno@clisp.org>
58291
58292         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58293         * doc/glibc-headers/a.out.texi: New file.
58294         * doc/glibc-headers/aliases.texi: New file.
58295         * doc/glibc-headers/alloca.texi: New file.
58296         * doc/glibc-headers/ar.texi: New file.
58297         * doc/glibc-headers/argp.texi: New file.
58298         * doc/glibc-headers/argz.texi: New file.
58299         * doc/glibc-headers/byteswap.texi: New file.
58300         * doc/glibc-headers/crypt.texi: New file.
58301         * doc/glibc-headers/endian.texi: New file.
58302         * doc/glibc-headers/envz.texi: New file.
58303         * doc/glibc-headers/err.texi: New file.
58304         * doc/glibc-headers/error.texi: New file.
58305         * doc/glibc-headers/execinfo.texi: New file.
58306         * doc/glibc-headers/fpu_control.texi: New file.
58307         * doc/glibc-headers/fstab.texi: New file.
58308         * doc/glibc-headers/fts.texi: New file.
58309         * doc/glibc-headers/getopt.texi: New file.
58310         * doc/glibc-headers/ieee754.texi: New file.
58311         * doc/glibc-headers/ifaddrs.texi: New file.
58312         * doc/glibc-headers/libintl.texi: New file.
58313         * doc/glibc-headers/mcheck.texi: New file.
58314         * doc/glibc-headers/mntent.texi: New file.
58315         * doc/glibc-headers/obstack.texi: New file.
58316         * doc/glibc-headers/paths.texi: New file.
58317         * doc/glibc-headers/printf.texi: New file.
58318         * doc/glibc-headers/pty.texi: New file.
58319         * doc/glibc-headers/resolv.texi: New file.
58320         * doc/glibc-headers/shadow.texi: New file.
58321         * doc/glibc-headers/sysexits.texi: New file.
58322         * doc/glibc-headers/ttyent.texi: New file.
58323
58324 2008-01-12  Jim Meyering  <meyering@redhat.com>
58325
58326         announce-gen: emit Gnulib's git-based version string.
58327         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58328         New option --gnulib-version=V, where V is expected to be
58329         the output of running git describe in the gnulib directory.
58330         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58331         not useful, and plan to stop publishing an xdelta file with each
58332         coreutils release.
58333
58334         * build-aux/announce-gen: Also check for lzma-compressed files.
58335
58336 2008-01-11  Bruno Haible  <bruno@clisp.org>
58337
58338         * tests/test-memmem.c (main): Increase maximum allowed time.
58339         * tests/test-strstr.c (main): Likewise.
58340
58341 2008-01-11  Bruno Haible  <bruno@clisp.org>
58342
58343         * doc/functions/memmem.texi: Add more precisions about platforms.
58344         * doc/functions/strstr.texi: Likewise.
58345
58346 2008-01-10  Eric Blake  <ebb9@byu.net>
58347
58348         * m4/strstr.m4: Delete cruft from copy-n-paste.
58349         Reported by Bruno Haible.
58350
58351 2008-01-10  Bruno Haible  <bruno@clisp.org>
58352
58353         Make c-strstr rely on strstr.
58354         * lib/c-strstr.c: Don't include str-kmp.h.
58355         (c_strstr): Define in terms of strstr.
58356         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58357         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58358
58359 2008-01-10  Bruno Haible  <bruno@clisp.org>
58360
58361         * doc/gnulib.texi (String Functions in C Locale): New section.
58362         * doc/c-ctype.texi: New file.
58363         * doc/c-strcase.texi: New file.
58364         * doc/c-strcaseeq.texi: New file.
58365         * doc/c-strcasestr.texi: New file.
58366         * doc/c-strstr.texi: New file.
58367         * doc/c-strtod.texi: New file.
58368         * doc/c-strtold.texi: New file.
58369
58370 2008-01-10  Eric Blake  <ebb9@byu.net>
58371
58372         * lib/relocatable.h: Fix a comment.
58373
58374 2008-01-10  Eric Blake  <ebb9@byu.net>
58375
58376         Share two-way algorithm.
58377         * lib/str-two-way.h: New file, merged from...
58378         * lib/memmem.c: ...here...
58379         * lib/strstr.c: ...and here.
58380         * modules/memmem (Files): Use it.
58381         * modules/strstr (Files): Likewise.
58382
58383         Avoid quadratic strstr implementations.
58384         * lib/strstr.c: New file.
58385         * m4/strstr.m4: Likewise.
58386         * modules/strstr: Likewise.
58387         * modules/strstr-tests: Likewise.
58388         * tests/test-strstr.c: Likewise.
58389         * lib/string.in.h (rpl_strstr): Declare.
58390         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58392         * modules/string (Makefile.am): Likewise.
58393         * MODULES.html.sh (string handling): Mention new module.
58394         * doc/functions/strstr.texi (strstr): Document the bug.
58395
58396 2008-01-10  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/relocatable.h (relocate): State whether result is freshly
58399         allocated or not.
58400         * lib/relocatable.c (relocate): Return a freshly allocated string
58401         instead of a pointer to a privately held string.
58402         Reported by Sylvain Beucler <beuc@gnu.org>.
58403
58404 2008-01-10  Colin Watson  <cjwatson@debian.org>
58405
58406         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58407         s/S_ISNLK/S_ISLNK/.
58408
58409 2008-01-09  Bruno Haible  <bruno@clisp.org>
58410
58411         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58412         and other files.
58413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58414         if it's only a guess.
58415         * modules/memmem: Simplify by depending on memmem-simple.
58416
58417 2008-01-09  Bruno Haible  <bruno@clisp.org>
58418
58419         Work around OpenBSD 4.0 tdelete() bug.
58420         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58421         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58422         macros and don't redefine the enum values.
58423         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58424         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58425         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58426
58427 2008-01-09  Bruno Haible  <bruno@clisp.org>
58428
58429         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58430         (main): Don't perform the tests if setlocale did not install a UTF-8
58431         locale. Needed on OpenBSD 4.0.
58432         * modules/wcwidth-tests (Depends-on): Add localcharset.
58433
58434 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58435
58436         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58437         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58438         * NEWS: announce this.
58439         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58440
58441 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58442         and Eric Blake  <ebb9@byu.net>
58443
58444         Add memmem-simple module.
58445         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58446         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58447         * modules/memmem-simple: New file.
58448         * modules/memmem (Description): Tweak.
58449         * MODULES.html.sh (string handling): Mention new module.
58450         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58451         addressed by memmem-simple.
58452         * NEWS: Document the difference.
58453
58454 2008-01-09  Eric Blake  <ebb9@byu.net>
58455
58456         Give gcc some memmem optimization hints.
58457         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58458         (strcasestr): Declare as pure.
58459         * modules/memmem (Maintainer): Claim my implementation.
58460
58461 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58462
58463         Support AIX 6.1 and higher.
58464         * build-aux/config.libpath: Likewise.
58465         * build-aux/config.rpath: Likewise.
58466
58467 2008-01-08  Jim Meyering  <meyering@redhat.com>
58468             Bruno Haible  <bruno@clisp.org>
58469
58470         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58471         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58472         Reported by Peter Fales in
58473         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58474
58475 2008-01-08  Bruno Haible  <bruno@clisp.org>
58476
58477         * modules/unictype/category-of (Depends-on): Add
58478         unictype/category-none.
58479         * modules/unictype/category-and-tests (Depends-on): Add
58480         unictype/category-{L,N,Lu,Nd}.
58481         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58482         * modules/unictype/category-or-tests (Depends-on): Add
58483         unictype/category-{L,N}.
58484         * modules/unictype/category-name-tests (Depends-on): Add
58485         unictype/category-{Z,Nl}.
58486         Reported by Simon Josefsson.
58487
58488 2008-01-08  Bruno Haible  <bruno@clisp.org>
58489
58490         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58491         convention better.
58492         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58493         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58494         Reported by Peter Miller <millerp@canb.auug.org.au>.
58495
58496 2008-01-08  Eric Blake  <ebb9@byu.net>
58497
58498         Rewrite memmem to guarantee linear complexity without malloc.
58499         * lib/memmem.c (memmem): Use Two-Way rather than
58500         Knuth-Morris-Pratt, to allow O(1) space usage.
58501         (critical_factorization, two_way_short_needle)
58502         (two_way_long_needle): New functions.
58503         (knuth_morris_pratt): Delete.
58504         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58505         Add stdint.
58506         * tests/test-memmem.c (main): Add tests for periodic needle and
58507         sublinear performance.
58508         * doc/functions/memmem.texi (memmem): Document other deficiencies
58509         in cygwin and older glibc.
58510
58511 2008-01-08  Bruno Haible  <bruno@clisp.org>
58512
58513         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58514         augmentation.
58515
58516 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58517
58518         Add a configure time option: --disable-acl.
58519         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58520         AC_ARG_ENABLE(acl).
58521
58522 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58523
58524         * tests/test-localename.c: Don't include obsolete "setenv.h".
58525
58526         * modules/localename-tests (Depends-on): Need unsetenv.
58527
58528 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58529
58530         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58531
58532 2008-01-06  Colin Watson  <cjwatson@debian.org>
58533
58534         * users.txt: Add man-db.
58535
58536 2008-01-07  Bruno Haible  <bruno@clisp.org>
58537
58538         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58539         previous section name.
58540
58541 2008-01-07  Bruno Haible  <bruno@clisp.org>
58542
58543         * lib/progname.c (set_program_name): Don't strip off a leading
58544         "lt-" prefix outside a .libs directory.
58545         Suggested by Paul Eggert.
58546
58547 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58548             Bruno Haible  <bruno@clisp.org>
58549
58550         Improve memory cleanup in 'relocatable' module.
58551         * lib/relocatable.h (compute_curr_prefix): Change return type to
58552         'char *'.
58553         * lib/relocatable.c (compute_curr_prefix): Change return type to
58554         'char *'. Free curr_installdir after use.
58555         (relocate): Free curr_prefix_better after use.
58556         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58557
58558 2008-01-01  Bruno Haible  <bruno@clisp.org>
58559
58560         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58561         failure on older glibc systems.
58562         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58563
58564 2008-01-05  Eric Blake  <ebb9@byu.net>
58565
58566         Avoid quadratic system memmem.
58567         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58568         Reported by Ralf Wildenhues.
58569
58570         Fix memmem test for mingw.
58571         * modules/memmem-tests (configure.ac): Check for alarm.
58572         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58573         it.
58574         * doc/functions/memmem.texi: New file.
58575         * doc/gnulib.texi (Function Substitutes): Add memmem.
58576         Reported by Bruno Haible.
58577
58578 2008-01-04  Bruno Haible  <bruno@clisp.org>
58579
58580         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58581         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58582         gl_HEADER_STRING_H_DEFAULTS.
58583
58584 2008-01-04  Eric Blake  <ebb9@byu.net>
58585
58586         Shorten duration of memmem test.
58587         * tests/test-memmem.c (main): Use alarm to declare failure if test
58588         is taking too long.
58589         Reported by Ralf Wildenhues.
58590
58591 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58592
58593         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58594         string, needed by strerror.
58595
58596 2008-01-03  Colin Watson  <cjwatson@debian.org>
58597             Bruno Haible  <bruno@clisp.org>
58598
58599         * doc/gnulib-tool.texi (Localization): New section.
58600
58601 2008-01-02  Bruno Haible  <bruno@clisp.org>
58602
58603         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58604         variables to 'unsigned char *' type.
58605         Reported by Paul Eggert.
58606
58607 2008-01-02  Jim Meyering  <jim@meyering.net>
58608
58609         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58610
58611 2007-12-31  Jim Meyering  <jim@meyering.net>
58612
58613         Avoid use of private FTS type name.
58614         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58615
58616 2007-12-30  Karl Berry  <karl@gnu.org>
58617
58618         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58619         work around defect in Texinfo and/or the standalone Info browser.
58620
58621 2007-12-30  Bruno Haible  <bruno@clisp.org>
58622
58623         Unify 5 copies of the KMP code.
58624         * lib/str-kmp.h: New file.
58625         * lib/c-strcasestr.c: Include str-kmp.h.
58626         (knuth_morris_pratt): Remove function.
58627         (c_strcasestr): Update.
58628         * lib/c-strstr.c: Include str-kmp.h.
58629         (knuth_morris_pratt): Remove function.
58630         (c_strcasestr): Update.
58631         * lib/mbscasestr.c: Include str-kmp.h.
58632         (knuth_morris_pratt_unibyte): Remove function.
58633         * lib/mbsstr.c: Include str-kmp.h.
58634         (knuth_morris_pratt_unibyte): Remove function.
58635         * lib/strcasestr.c: Include str-kmp.h.
58636         (knuth_morris_pratt): Remove function.
58637         (strcasestr): Update.
58638         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58639         * modules/c-strstr (Files): Likewise.
58640         * modules/mbscasestr (Files): Likewise.
58641         * modules/mbsstr (Files): Likewise.
58642         * modules/strcasestr (Files): Likewise.
58643         Suggested by Paul Eggert.
58644
58645 2007-12-30  Bruno Haible  <bruno@clisp.org>
58646
58647         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58648         defined.
58649
58650 2007-12-30  Bruno Haible  <bruno@clisp.org>
58651
58652         * lib/xmalloca.h: Include xalloc.h.
58653         (xnmalloca): New macro.
58654
58655 2007-12-30  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/malloca.h (nmalloca): New macro.
58658         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58659         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58660         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58661         knuth_morris_pratt_multibyte): Likewise.
58662         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58663         knuth_morris_pratt_multibyte): Likewise.
58664         * lib/memmem.c (knuth_morris_pratt): Likewise.
58665         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58666
58667 2007-12-25  Bruno Haible  <bruno@clisp.org>
58668
58669         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58670         * lib/glob.c: Don't include openat.h.
58671         (link_exists2_p): Add back the code that deals with the
58672         !GLOB_ALTDIRFUNC case.
58673         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58674         let it do the filename concatenation.
58675         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58676         * modules/glob (Depends-on): Remove openat.
58677
58678 2007-12-31  Bruno Haible  <bruno@clisp.org>
58679
58680         * modules/dirfd (License): Change to LGPLv2+.
58681         Approved by Jim Meyering.
58682
58683 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58684
58685         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58686         when multiplying M by sizeof (size_t).
58687
58688 2007-12-10  Martin Lambers  <marlam@marlam.de>
58689
58690         Override getpagesize on mingw.
58691         * lib/getpagesize.c: New file.
58692         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58693         * modules/getpagesize (Files): Add lib/getpagesize.c.
58694         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58696         REPLACE_GETPAGESIZE.
58697         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58698
58699 2007-12-25  Bruno Haible  <bruno@clisp.org>
58700
58701         * modules/localcharset (Notice): New field.
58702         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58703         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58704
58705 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58706             Bruno Haible  <bruno@clisp.org>
58707
58708         Avoid using the syntax symbol() in formatted documentation.
58709         * MODULES.html.sh (func_module): When replacing symbol() with a
58710         hyperlink, remove the parentheses. Show an error if some remain.
58711         Recognize and render the '...' syntax.
58712         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58713         Rework. Add paragraph about GCC's inlining.
58714         * doc/alloca.texi: Likewise.
58715         * doc/error.texi: Remove parentheses from symbol reference.
58716         * doc/gnulib-intro.texi: Likewise.
58717         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58718         * modules/fnmatch (Description): Reword to say "the ... function".
58719         * modules/full-read (Description): Likewise.
58720         * modules/full-write (Description): Likewise.
58721         * modules/safe-read (Description): Likewise.
58722         * modules/safe-write (Description): Likewise.
58723         * modules/strchrnul (Description): Likewise.
58724         * modules/trim (Description): Likewise.
58725         * modules/error (Description): Remove parentheses from symbol
58726         references.
58727         * modules/verror (Description): Likewise.
58728         Reported by Karl Berry.
58729
58730 2007-12-25  Bruno Haible  <bruno@clisp.org>
58731
58732         Fixup after 2007-10-16 commit.
58733         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58734
58735 2007-12-24  Bruno Haible  <bruno@clisp.org>
58736
58737         Make --enable-relocatable work with DESTDIR.
58738         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58739         to compute installdir from destprog.
58740         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58741         also set the RELOC_DESTDIR variable.
58742         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58743
58744 2007-12-24  Bruno Haible  <bruno@clisp.org>
58745
58746         Fix link error due to xalloc_die().
58747         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58748         of xreadlink.
58749         * lib/relocwrapper.c: Update comments.
58750         * build-aux/install-reloc: Remove xreadlink.c from file list.
58751         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58752         xreadlink.c.
58753         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58754
58755 2007-12-24  Bruno Haible  <bruno@clisp.org>
58756
58757         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58758         * lib/setenv.h: Remove file.
58759         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58760         lib/setenv.h.
58761         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58762         (Depends-on): Add stdlib.
58763         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58764         gl_FUNC_UNSETENV.
58765         (Include): Replace setenv.h with <stdlib.h>.
58766         * modules/unsetenv: New file.
58767         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58768         * lib/unsetenv.c: Include <stdlib.h> first.
58769         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58770         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58771         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58772         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58773         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58774         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58776         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58777         * doc/functions/unsetenv.texi: Update.
58778         * modules/xsetenv (Depends-on): Add unsetenv.
58779         * modules/getdate (Depends-on): Likewise.
58780         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58781         * lib/xsetenv.c: Don't include setenv.h.
58782         * lib/getdate.y: Likewise.
58783         * lib/relocwrapper.c: Likewise.
58784         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58785         (Depends-on): Add stdlib.
58786         * NEWS: Mention the changes.
58787         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58788
58789 2007-12-23  Bruno Haible  <bruno@clisp.org>
58790
58791         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58792         indentation.
58793
58794 2007-12-23  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/c-strcasestr.c: Add more comments.
58797         * lib/c-strstr.c: Likewise.
58798         * lib/mbscasestr.c: Likewise.
58799         * lib/mbsstr.c: Likewise.
58800         * lib/strcasestr.c: Likewise.
58801         * lib/memmem.c: Likewise.
58802
58803 2007-12-23  Bruno Haible  <bruno@clisp.org>
58804
58805         * tests/test-memmem.c: Include <string.h> first.
58806
58807 2007-12-22  Bruno Haible  <bruno@clisp.org>
58808
58809         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58810         the contents of $testsbase.
58811         Reported by Ralf Wildenhues.
58812
58813 2007-12-22  Bruno Haible  <bruno@clisp.org>
58814
58815         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58816         two variables local_ldadd_before, local_ldadd_last.
58817
58818 2007-12-20  Eric Blake  <ebb9@byu.net>
58819
58820         Work around circular library issue when cross-compiling.
58821         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58822         that progname.o does not need to pull in rpl_memcmp.
58823
58824 2007-12-19  Eric Blake  <ebb9@byu.net>
58825
58826         Fix memmem to avoid O(n^2) worst-case complexity.
58827         * lib/memmem.c (knuth_morris_pratt): New function.
58828         (memmem): Use it if first few naive iterations fail.
58829         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58830         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58831         * modules/memchr (License): Likewise.
58832         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58833         malloca.
58834         * tests/test-memmem.c: Rewrite, borrowing ideas from
58835         test-mbsstr1.c; the old version wouldn't even compile!
58836         * modules/memmem-tests: New file.
58837         * lib/string.in.h (rpl_memmem): Add declaration.
58838         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58840         REPLACE_MEMMEM.
58841
58842 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58843
58844         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58845         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58846         before any system include files, and undef after them all.  This
58847         should fix a problem on VMS reported by John E. Malmberg in
58848         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58849
58850 2007-12-17  Eric Blake  <ebb9@byu.net>
58851
58852         Revert addition of verify, for BSD/OS.
58853         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58854         can't handle large files, for the sake of obsolete platforms.
58855         * modules/fseeko (Depends-on): Remove verify.
58856         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58857         * doc/functions/ftello.texi (ftello): Likewise.
58858         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58859         Reported by Larry Jones.
58860
58861 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58862
58863         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58864         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58865
58866 2007-12-17  Jim Meyering  <meyering@redhat.com>
58867
58868         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58869         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58870         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58871         * modules/getcwd (Depends-on): Add openat.
58872         Reported by Petr Salinger.
58873
58874 2007-12-17  Bruno Haible  <bruno@clisp.org>
58875
58876         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58877         avoid a segmentation fault of the configure test on x86_64 systems.
58878
58879 2007-12-15  Jim Meyering  <meyering@redhat.com>
58880
58881         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58882
58883 2007-12-13  Eric Blake  <ebb9@byu.net>
58884
58885         Another fseek test.
58886         * tests/test-fseek.c (main): Also test ungetc handling.
58887         * tests/test-fseeko.c (main): Likewise.
58888         * modules/fseeko (Depends-on): Add verify.
58889         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58890         large.
58891         Reported by Larry Jones.
58892
58893         Fix fseeko on mingw.
58894         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58895         seek.
58896
58897         Beef up fseek tests.
58898         * tests/test-fseek.c (main): Also test eof handling.
58899         * tests/test-fseeko.c (main): Likewise.
58900         Reported by Larry Jones.
58901
58902 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58903
58904         Fix fseeko on BSD-based platforms.
58905         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58906         successful seek.
58907
58908 2007-12-12  Eric Blake  <ebb9@byu.net>
58909
58910         Allow circular dependency of separate libtests.a
58911         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58912         when use_libtests.
58913
58914 2007-12-11  Eric Blake  <ebb9@byu.net>
58915
58916         Fix bug with -0.0L in previous patch.
58917         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58918         * tests/test-isnan.c (main): Also test on zeroes.
58919         * tests/test-isnanf.c (main): Likewise.
58920         * tests/test-isnanl.h (main): Likewise.
58921
58922         Detect pseudo-denormals on x86 even when cross-compiling.
58923         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58924         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58925         invalid bit patterns that happen to satisfy ==.
58926
58927         Avoid link failures with separate libtests.a.
58928         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58929         last, to satisfy circular dependencies.
58930
58931 2007-12-11  Eric Blake  <ebb9@byu.net>
58932         and Bruno Haible  <bruno@clisp.org>
58933
58934         Fix OpenBSD 4.0 <float.h> handling of long double.
58935         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58936         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58937         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58938
58939 2007-12-11  Jim Meyering  <meyering@redhat.com>
58940
58941         * users.txt: Add libvirt.
58942
58943         Support versions of autoconf prior to 2.59c.
58944         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58945         if it is not already defined.
58946
58947 2007-12-09  Bruno Haible  <bruno@clisp.org>
58948
58949         Let 'gnulib-tool --import' collect sources needed for the tests in
58950         tests/ rather than in lib/.
58951         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58952         argument. If true, add rules to generate libtests.a, and put libtests.a
58953         into $(LDADD). Consider source files in subdirectories and set
58954         uses_subdirs.
58955         (func_emit_initmacro_start, func_emit_initmacro_end,
58956         func_emit_initmacro_done): Pass all arguments explicitly.
58957         (func_import): Determine two module lists main_modules,
58958         testsrelated_modules. Determine use_libtests. Determine two variables
58959         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58960         instead of just sed_transform_lib_file. Determine two variables
58961         main_files and testsrelated_files. Compute 'files' as the union of
58962         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58963         func_add_or_update. In the generated gnulib-comp.m4, collect the
58964         object files for tests/ in different variables than those for lib/.
58965         Substitute LIBTESTS_LIBDEPS.
58966         (func_create_testdir): Combine the uses_subdirs results from
58967         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58968
58969 2007-12-09  Bruno Haible  <bruno@clisp.org>
58970
58971         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58972         the build-aux directory.
58973
58974 2007-12-09  Bruno Haible  <bruno@clisp.org>
58975
58976         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58977         introduced on 2006-09-09.
58978
58979 2007-12-07  Jim Meyering  <meyering@redhat.com>
58980
58981         Let these macros work also with autoconf-2.59.
58982         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58983         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58984         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58985
58986 2007-12-06  Jim Meyering  <meyering@redhat.com>
58987
58988         Avoid a configure-time syntax error in gl_FUNC_ACL.
58989         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58990         function in each branch, before testing the cache variable.
58991
58992 2007-12-04  Eric Blake  <ebb9@byu.net>
58993
58994         Make scripts executable.
58995         * build-aux/config.guess: Add execute permissions.
58996         * build-aux/config.sub: Likewise.
58997         * build-aux/gendocs.sh: Likewise.
58998
58999         Fix frexp on mingw.
59000         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59001         cross-compiling.
59002         * doc/functions/frexp.texi (frexp): Document the bug.
59003
59004         Make cygwin fseeko check more reliable.
59005         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59006         version numbers, rather than unrelated feature check.
59007         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59008         * doc/functions/ftello.texi (ftello): Likewise.
59009         Reported by Bruno Haible.
59010
59011         * m4/strerror.m4: Bump version number.
59012
59013 2007-12-03  Bruno Haible  <bruno@clisp.org>
59014
59015         * doc/functions/mprotect.texi: Mention the mingw problem.
59016
59017 2007-12-03  Eric Blake  <ebb9@byu.net>
59018
59019         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59020         REPLACE_STRERROR is initialized before this macro.
59021
59022 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59023
59024         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59025         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59026         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59027         put -lsec in even for programs other than 'ls'.  This fixes a problem
59028         for gettext reported by Bruno Haible in
59029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59030         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59031         Add support for Solaris 10.  This isn't efficient, but should get the
59032         job done for now.
59033
59034 2007-12-03  James Youngman  <jay@gnu.org>
59035
59036         * doc/regexprops-generic.texi: change "an close-group" to "a
59037         close-group" and "illegal" to "not allowed".
59038
59039 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59040
59041         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59042         pr_byname.h. Needed for the rare case when the maintainer has done
59043         "make maintainer-clean" in the source directory and then attempts a
59044         build outside the source directory.
59045         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59046         scripts_byname.h.
59047
59048 2007-12-02  Martin Lambers <marlam@marlam.de>
59049             Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/getpagesize.h: Remove file.
59052         * lib/unistd.in.h: Include declaration of getpagesize here.
59053         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59054         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59055         HAVE_SYS_PARAM_H.
59056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59057         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59058         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59059         (Depends-on): Add unistd.
59060         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59061         (Include): Use <unistd.h> instead of getpagesize.h.
59062         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59063         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59064         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59065         gl_GETPAGESIZE invocation, already handled by module dependency.
59066         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59067
59068 2007-12-02  Bruno Haible  <bruno@clisp.org>
59069
59070         * modules/strings-tests: New file.
59071         * tests/test-strings.c: New file.
59072
59073         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59074         * lib/strings.in.h: New file.
59075         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59076         * m4/strings_h.m4: New file.
59077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59078         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59079         * modules/strings: New file.
59080         * modules/string (Makefile.am): Update.
59081         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59082         Reported by Karl Berry.
59083
59084 2007-12-01  Eric Blake  <ebb9@byu.net>
59085
59086         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59087         accomodate fix in cygwin 1.5.25.
59088
59089 2007-12-01  Jim Meyering  <meyering@redhat.com>
59090
59091         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59092         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59093         that would inhibit utf8-optimization of a regexp containing line-
59094         or buffer-anchors, e.g., `^', `$'.
59095
59096 2007-11-30  Bruno Haible  <bruno@clisp.org>
59097
59098         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59099         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59100         glthread_recursive_lock_init.
59101         * lib/lock.c (glthread_recursive_lock_init)
59102         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59103         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59104
59105 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59106
59107         New function qset_acl, like set_acl but with syscall semantics.
59108         * lib/acl.h (qset_acl): New decl.
59109         * lib/acl.c (qset_acl): New function.
59110         (set_acl): Use new function.  Use more-consistent diagnostics.
59111
59112 2007-11-28  Jim Meyering  <meyering@redhat.com>
59113
59114         * modules/physmem (License): Change from GPL to LGPLv2+.
59115
59116 2007-11-26  Bruno Haible  <bruno@clisp.org>
59117
59118         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59119         'long double' type has excess precision.
59120         Reported by Jim Meyering in
59121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59122
59123 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59124
59125         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59126         Sync from <http://gnu.org/licenses>.
59127         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59128         with license text from same location.
59129         * doc/maintain.texi, doc/standards.texi:  Sync from
59130         <http://savannah.gnu.org/projects/gnustandards>.
59131
59132 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59133         and Jim Meyering  <meyering@redhat.com>
59134
59135         Adjust getdate' grammar to accept a slightly more regular language.
59136         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59137         Before, the former was rejected.
59138         * lib/getdate.y (digits_to_date_time): New function, factored
59139         out of ...
59140         (number): ...here.  Just call digits_to_date_time.
59141         (hybrid): New non-terminal to handle an <unsigned number,
59142         signed relative offset> sequence consistently.
59143
59144 2007-11-18  Jim Meyering  <meyering@redhat.com>
59145
59146         Pull my changes from coreutils:
59147         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59148         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59149         use of $gnulib_tool_option_extras, so that it's separated from the
59150         preceding argument.
59151
59152         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59153         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59154         parent destination directories before copying a file into place.
59155
59156 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59157
59158         bootstrap: work also with 4-argument variant of AC_INIT
59159         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59160
59161 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59162
59163         Port test-getaddrinfo to Solaris.
59164         Problem reported by Bruno Haible in
59165         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59166         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59167         explanation of setting 'hints'.
59168         Don't reject an implementation merely because it returns EAI_SERVICE.
59169         (EAI_SERVICE): Define to 0 if not defined.
59170
59171 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59172
59173         The license of gnu-make and posix-shell is now "GPLed build tool".
59174         * modules/gnu-make (License): Likewise.
59175         * modules/posix-shell (License): Likewise.
59176
59177         New module posix-shell, for determining a POSIX shell
59178         or perhaps something that is close enough to a POSIX shell.
59179         * m4/posix-shell.m4: New file.
59180         * modules/posix-shell: New file.
59181
59182         * MODULES.html.sh: Mention new module.
59183
59184         New module gnu-make, for determining whether we're using GNU Make.
59185         * m4/gnu-make.m4: New file.
59186         * modules/gnu-make: New file.
59187         * MODULES.html.sh: Mention new module.
59188
59189 2007-11-14  Jim Meyering  <meyering@redhat.com>
59190
59191         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59192         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59193         use this macro to create a function _definition_.
59194         Remove useless "#undef ARGMATCH_DIE".
59195
59196 2007-11-14  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/config.charset: Update for OpenBSD 4.1.
59199         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59200
59201 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         Document 64-bit #if problems in stdint.texi.
59204         * doc/headers/stdint.texi (stdint.h): Mention problems with
59205         64-bit-#if, and how to work around them.
59206
59207         Don't insist on 'long long int' support in the preprocessor.  It
59208         breaks too many things.  For example, PRIdMAX still uses a 'long
59209         long int' format with the latest Sun compiler, even though
59210         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59211         preprocessor problem.  This causes the latest coreutils to dump
59212         core on Solaris 10 sparc with the Sun C compiler.
59213         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59214         the troublesome expressions at configure-time, not at #if-time.
59215         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59216         preprocessor.
59217         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59218         compile-time C checks, done at 'configure'-time.
59219         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59220         * modules/inttypes (Makefile): Substitute the new symbols that
59221         gl_INTTYPES_H now generates.
59222         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59223
59224 2007-11-12  Bruno Haible  <bruno@clisp.org>
59225
59226         Tests for Unicode character classification functions.
59227
59228         * modules/unictype/bidicategory-byname-tests: New file.
59229         * modules/unictype/bidicategory-name-tests: New file.
59230         * modules/unictype/bidicategory-of-tests: New file.
59231         * modules/unictype/bidicategory-test-tests: New file.
59232         * modules/unictype/block-list-tests: New file.
59233         * modules/unictype/block-of-tests: New file.
59234         * modules/unictype/block-test-tests: New file.
59235         * modules/unictype/category-C-tests: New file.
59236         * modules/unictype/category-Cc-tests: New file.
59237         * modules/unictype/category-Cf-tests: New file.
59238         * modules/unictype/category-Cn-tests: New file.
59239         * modules/unictype/category-Co-tests: New file.
59240         * modules/unictype/category-Cs-tests: New file.
59241         * modules/unictype/category-L-tests: New file.
59242         * modules/unictype/category-Ll-tests: New file.
59243         * modules/unictype/category-Lm-tests: New file.
59244         * modules/unictype/category-Lo-tests: New file.
59245         * modules/unictype/category-Lt-tests: New file.
59246         * modules/unictype/category-Lu-tests: New file.
59247         * modules/unictype/category-M-tests: New file.
59248         * modules/unictype/category-Mc-tests: New file.
59249         * modules/unictype/category-Me-tests: New file.
59250         * modules/unictype/category-Mn-tests: New file.
59251         * modules/unictype/category-N-tests: New file.
59252         * modules/unictype/category-Nd-tests: New file.
59253         * modules/unictype/category-Nl-tests: New file.
59254         * modules/unictype/category-No-tests: New file.
59255         * modules/unictype/category-P-tests: New file.
59256         * modules/unictype/category-Pc-tests: New file.
59257         * modules/unictype/category-Pd-tests: New file.
59258         * modules/unictype/category-Pe-tests: New file.
59259         * modules/unictype/category-Pf-tests: New file.
59260         * modules/unictype/category-Pi-tests: New file.
59261         * modules/unictype/category-Po-tests: New file.
59262         * modules/unictype/category-Ps-tests: New file.
59263         * modules/unictype/category-S-tests: New file.
59264         * modules/unictype/category-Sc-tests: New file.
59265         * modules/unictype/category-Sk-tests: New file.
59266         * modules/unictype/category-Sm-tests: New file.
59267         * modules/unictype/category-So-tests: New file.
59268         * modules/unictype/category-Z-tests: New file.
59269         * modules/unictype/category-Zl-tests: New file.
59270         * modules/unictype/category-Zp-tests: New file.
59271         * modules/unictype/category-Zs-tests: New file.
59272         * modules/unictype/category-and-not-tests: New file.
59273         * modules/unictype/category-and-tests: New file.
59274         * modules/unictype/category-byname-tests: New file.
59275         * modules/unictype/category-name-tests: New file.
59276         * modules/unictype/category-none-tests: New file.
59277         * modules/unictype/category-of-tests: New file.
59278         * modules/unictype/category-or-tests: New file.
59279         * modules/unictype/category-test-withtable-tests: New file.
59280         * modules/unictype/combining-class-tests: New file.
59281         * modules/unictype/ctype-alnum-tests: New file.
59282         * modules/unictype/ctype-alpha-tests: New file.
59283         * modules/unictype/ctype-blank-tests: New file.
59284         * modules/unictype/ctype-cntrl-tests: New file.
59285         * modules/unictype/ctype-digit-tests: New file.
59286         * modules/unictype/ctype-graph-tests: New file.
59287         * modules/unictype/ctype-lower-tests: New file.
59288         * modules/unictype/ctype-print-tests: New file.
59289         * modules/unictype/ctype-punct-tests: New file.
59290         * modules/unictype/ctype-space-tests: New file.
59291         * modules/unictype/ctype-upper-tests: New file.
59292         * modules/unictype/ctype-xdigit-tests: New file.
59293         * modules/unictype/decimal-digit-tests: New file.
59294         * modules/unictype/digit-tests: New file.
59295         * modules/unictype/mirror-tests: New file.
59296         * modules/unictype/numeric-tests: New file.
59297         * modules/unictype/property-alphabetic-tests: New file.
59298         * modules/unictype/property-ascii-hex-digit-tests: New file.
59299         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59300         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59301         * modules/unictype/property-bidi-block-separator-tests: New file.
59302         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59303         * modules/unictype/property-bidi-common-separator-tests: New file.
59304         * modules/unictype/property-bidi-control-tests: New file.
59305         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59306         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59307         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59308         * modules/unictype/property-bidi-european-digit-tests: New file.
59309         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59310         * modules/unictype/property-bidi-left-to-right-tests: New file.
59311         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59312         * modules/unictype/property-bidi-other-neutral-tests: New file.
59313         * modules/unictype/property-bidi-pdf-tests: New file.
59314         * modules/unictype/property-bidi-segment-separator-tests: New file.
59315         * modules/unictype/property-bidi-whitespace-tests: New file.
59316         * modules/unictype/property-byname-tests: New file.
59317         * modules/unictype/property-combining-tests: New file.
59318         * modules/unictype/property-composite-tests: New file.
59319         * modules/unictype/property-currency-symbol-tests: New file.
59320         * modules/unictype/property-dash-tests: New file.
59321         * modules/unictype/property-decimal-digit-tests: New file.
59322         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59323         * modules/unictype/property-deprecated-tests: New file.
59324         * modules/unictype/property-diacritic-tests: New file.
59325         * modules/unictype/property-extender-tests: New file.
59326         * modules/unictype/property-format-control-tests: New file.
59327         * modules/unictype/property-grapheme-base-tests: New file.
59328         * modules/unictype/property-grapheme-extend-tests: New file.
59329         * modules/unictype/property-grapheme-link-tests: New file.
59330         * modules/unictype/property-hex-digit-tests: New file.
59331         * modules/unictype/property-hyphen-tests: New file.
59332         * modules/unictype/property-id-continue-tests: New file.
59333         * modules/unictype/property-id-start-tests: New file.
59334         * modules/unictype/property-ideographic-tests: New file.
59335         * modules/unictype/property-ids-binary-operator-tests: New file.
59336         * modules/unictype/property-ids-trinary-operator-tests: New file.
59337         * modules/unictype/property-ignorable-control-tests: New file.
59338         * modules/unictype/property-iso-control-tests: New file.
59339         * modules/unictype/property-join-control-tests: New file.
59340         * modules/unictype/property-left-of-pair-tests: New file.
59341         * modules/unictype/property-line-separator-tests: New file.
59342         * modules/unictype/property-logical-order-exception-tests: New file.
59343         * modules/unictype/property-lowercase-tests: New file.
59344         * modules/unictype/property-math-tests: New file.
59345         * modules/unictype/property-non-break-tests: New file.
59346         * modules/unictype/property-not-a-character-tests: New file.
59347         * modules/unictype/property-numeric-tests: New file.
59348         * modules/unictype/property-other-alphabetic-tests: New file.
59349         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59350         * modules/unictype/property-other-grapheme-extend-tests: New file.
59351         * modules/unictype/property-other-id-continue-tests: New file.
59352         * modules/unictype/property-other-id-start-tests: New file.
59353         * modules/unictype/property-other-lowercase-tests: New file.
59354         * modules/unictype/property-other-math-tests: New file.
59355         * modules/unictype/property-other-uppercase-tests: New file.
59356         * modules/unictype/property-paired-punctuation-tests: New file.
59357         * modules/unictype/property-paragraph-separator-tests: New file.
59358         * modules/unictype/property-pattern-syntax-tests: New file.
59359         * modules/unictype/property-pattern-white-space-tests: New file.
59360         * modules/unictype/property-private-use-tests: New file.
59361         * modules/unictype/property-punctuation-tests: New file.
59362         * modules/unictype/property-quotation-mark-tests: New file.
59363         * modules/unictype/property-radical-tests: New file.
59364         * modules/unictype/property-sentence-terminal-tests: New file.
59365         * modules/unictype/property-soft-dotted-tests: New file.
59366         * modules/unictype/property-space-tests: New file.
59367         * modules/unictype/property-terminal-punctuation-tests: New file.
59368         * modules/unictype/property-test-tests: New file.
59369         * modules/unictype/property-titlecase-tests: New file.
59370         * modules/unictype/property-unassigned-code-value-tests: New file.
59371         * modules/unictype/property-unified-ideograph-tests: New file.
59372         * modules/unictype/property-uppercase-tests: New file.
59373         * modules/unictype/property-variation-selector-tests: New file.
59374         * modules/unictype/property-white-space-tests: New file.
59375         * modules/unictype/property-xid-continue-tests: New file.
59376         * modules/unictype/property-xid-start-tests: New file.
59377         * modules/unictype/property-zero-width-tests: New file.
59378         * modules/unictype/scripts-tests: New file.
59379         * modules/unictype/syntax-c-ident-tests: New file.
59380         * modules/unictype/syntax-c-whitespace-tests: New file.
59381         * modules/unictype/syntax-java-ident-tests: New file.
59382         * modules/unictype/syntax-java-whitespace-tests: New file.
59383         * tests/unictype/test-bidi_byname.c: New file.
59384         * tests/unictype/test-bidi_name.c: New file.
59385         * tests/unictype/test-bidi_of.c: New file.
59386         * tests/unictype/test-bidi_test.c: New file.
59387         * tests/unictype/test-block_list.c: New file.
59388         * tests/unictype/test-block_of.c: New file.
59389         * tests/unictype/test-block_test.c: New file.
59390         * tests/unictype/test-categ_and.c: New file.
59391         * tests/unictype/test-categ_and_not.c: New file.
59392         * tests/unictype/test-categ_byname.c: New file.
59393         * tests/unictype/test-categ_name.c: New file.
59394         * tests/unictype/test-categ_none.c: New file.
59395         * tests/unictype/test-categ_of.c: New file.
59396         * tests/unictype/test-categ_or.c: New file.
59397         * tests/unictype/test-categ_test_withtable.c: New file.
59398         * tests/unictype/test-combining.c: New file.
59399         * tests/unictype/test-decdigit.c: New file.
59400         * tests/unictype/test-digit.c: New file.
59401         * tests/unictype/test-mirror.c: New file.
59402         * tests/unictype/test-numeric.c: New file.
59403         * tests/unictype/test-pr_byname.c: New file.
59404         * tests/unictype/test-pr_test.c: New file.
59405         * tests/unictype/test-predicate-part1.h: New file.
59406         * tests/unictype/test-predicate-part2.h: New file.
59407         * tests/unictype/test-scripts.c: New file.
59408         * tests/unictype/test-sy_c_ident.c: New file.
59409         * tests/unictype/test-sy_java_ident.c: New file.
59410
59411         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59412         for Unicode 5.0.0.
59413         * tests/unictype/test-categ_Cc.c: Likewise.
59414         * tests/unictype/test-categ_Cf.c: Likewise.
59415         * tests/unictype/test-categ_Cn.c: Likewise.
59416         * tests/unictype/test-categ_Co.c: Likewise.
59417         * tests/unictype/test-categ_Cs.c: Likewise.
59418         * tests/unictype/test-categ_L.c: Likewise.
59419         * tests/unictype/test-categ_Ll.c: Likewise.
59420         * tests/unictype/test-categ_Lm.c: Likewise.
59421         * tests/unictype/test-categ_Lo.c: Likewise.
59422         * tests/unictype/test-categ_Lt.c: Likewise.
59423         * tests/unictype/test-categ_Lu.c: Likewise.
59424         * tests/unictype/test-categ_M.c: Likewise.
59425         * tests/unictype/test-categ_Mc.c: Likewise.
59426         * tests/unictype/test-categ_Me.c: Likewise.
59427         * tests/unictype/test-categ_Mn.c: Likewise.
59428         * tests/unictype/test-categ_N.c: Likewise.
59429         * tests/unictype/test-categ_Nd.c: Likewise.
59430         * tests/unictype/test-categ_Nl.c: Likewise.
59431         * tests/unictype/test-categ_No.c: Likewise.
59432         * tests/unictype/test-categ_P.c: Likewise.
59433         * tests/unictype/test-categ_Pc.c: Likewise.
59434         * tests/unictype/test-categ_Pd.c: Likewise.
59435         * tests/unictype/test-categ_Pe.c: Likewise.
59436         * tests/unictype/test-categ_Pf.c: Likewise.
59437         * tests/unictype/test-categ_Pi.c: Likewise.
59438         * tests/unictype/test-categ_Po.c: Likewise.
59439         * tests/unictype/test-categ_Ps.c: Likewise.
59440         * tests/unictype/test-categ_S.c: Likewise.
59441         * tests/unictype/test-categ_Sc.c: Likewise.
59442         * tests/unictype/test-categ_Sk.c: Likewise.
59443         * tests/unictype/test-categ_Sm.c: Likewise.
59444         * tests/unictype/test-categ_So.c: Likewise.
59445         * tests/unictype/test-categ_Z.c: Likewise.
59446         * tests/unictype/test-categ_Zl.c: Likewise.
59447         * tests/unictype/test-categ_Zp.c: Likewise.
59448         * tests/unictype/test-categ_Zs.c: Likewise.
59449         * tests/unictype/test-ctype_alnum.c: Likewise.
59450         * tests/unictype/test-ctype_alpha.c: Likewise.
59451         * tests/unictype/test-ctype_blank.c: Likewise.
59452         * tests/unictype/test-ctype_cntrl.c: Likewise.
59453         * tests/unictype/test-ctype_digit.c: Likewise.
59454         * tests/unictype/test-ctype_graph.c: Likewise.
59455         * tests/unictype/test-ctype_lower.c: Likewise.
59456         * tests/unictype/test-ctype_print.c: Likewise.
59457         * tests/unictype/test-ctype_punct.c: Likewise.
59458         * tests/unictype/test-ctype_space.c: Likewise.
59459         * tests/unictype/test-ctype_upper.c: Likewise.
59460         * tests/unictype/test-ctype_xdigit.c: Likewise.
59461         * tests/unictype/test-decdigit.h: Likewise.
59462         * tests/unictype/test-digit.h: Likewise.
59463         * tests/unictype/test-numeric.h: Likewise.
59464         * tests/unictype/test-pr_alphabetic.c: Likewise.
59465         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59466         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59467         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59468         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59469         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59470         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59471         * tests/unictype/test-pr_bidi_control.c: Likewise.
59472         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59473         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59474         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59475         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59476         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59477         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59478         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59479         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59480         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59481         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59482         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59483         * tests/unictype/test-pr_combining.c: Likewise.
59484         * tests/unictype/test-pr_composite.c: Likewise.
59485         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59486         * tests/unictype/test-pr_dash.c: Likewise.
59487         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59488         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59489         * tests/unictype/test-pr_deprecated.c: Likewise.
59490         * tests/unictype/test-pr_diacritic.c: Likewise.
59491         * tests/unictype/test-pr_extender.c: Likewise.
59492         * tests/unictype/test-pr_format_control.c: Likewise.
59493         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59494         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59495         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59496         * tests/unictype/test-pr_hex_digit.c: Likewise.
59497         * tests/unictype/test-pr_hyphen.c: Likewise.
59498         * tests/unictype/test-pr_id_continue.c: Likewise.
59499         * tests/unictype/test-pr_id_start.c: Likewise.
59500         * tests/unictype/test-pr_ideographic.c: Likewise.
59501         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59502         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59503         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59504         * tests/unictype/test-pr_iso_control.c: Likewise.
59505         * tests/unictype/test-pr_join_control.c: Likewise.
59506         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59507         * tests/unictype/test-pr_line_separator.c: Likewise.
59508         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59509         * tests/unictype/test-pr_lowercase.c: Likewise.
59510         * tests/unictype/test-pr_math.c: Likewise.
59511         * tests/unictype/test-pr_non_break.c: Likewise.
59512         * tests/unictype/test-pr_not_a_character.c: Likewise.
59513         * tests/unictype/test-pr_numeric.c: Likewise.
59514         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59515         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59516         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59517         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59518         * tests/unictype/test-pr_other_id_start.c: Likewise.
59519         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59520         * tests/unictype/test-pr_other_math.c: Likewise.
59521         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59522         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59523         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59524         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59525         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59526         * tests/unictype/test-pr_private_use.c: Likewise.
59527         * tests/unictype/test-pr_punctuation.c: Likewise.
59528         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59529         * tests/unictype/test-pr_radical.c: Likewise.
59530         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59531         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59532         * tests/unictype/test-pr_space.c: Likewise.
59533         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59534         * tests/unictype/test-pr_titlecase.c: Likewise.
59535         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59536         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59537         * tests/unictype/test-pr_uppercase.c: Likewise.
59538         * tests/unictype/test-pr_variation_selector.c: Likewise.
59539         * tests/unictype/test-pr_white_space.c: Likewise.
59540         * tests/unictype/test-pr_xid_continue.c: Likewise.
59541         * tests/unictype/test-pr_xid_start.c: Likewise.
59542         * tests/unictype/test-pr_zero_width.c: Likewise.
59543         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59544         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59545
59546 2007-11-12  Bruno Haible  <bruno@clisp.org>
59547
59548         Unicode character classification functions.
59549         * lib/unictype.h: New file.
59550         * modules/unictype/base: New file.
59551         * modules/unictype/category-L: New file.
59552         * modules/unictype/category-Lu: New file.
59553         * modules/unictype/category-Ll: New file.
59554         * modules/unictype/category-Lt: New file.
59555         * modules/unictype/category-Lm: New file.
59556         * modules/unictype/category-Lo: New file.
59557         * modules/unictype/category-M: New file.
59558         * modules/unictype/category-Mn: New file.
59559         * modules/unictype/category-Mc: New file.
59560         * modules/unictype/category-Me: New file.
59561         * modules/unictype/category-N: New file.
59562         * modules/unictype/category-Nd: New file.
59563         * modules/unictype/category-Nl: New file.
59564         * modules/unictype/category-No: New file.
59565         * modules/unictype/category-P: New file.
59566         * modules/unictype/category-Pc: New file.
59567         * modules/unictype/category-Pd: New file.
59568         * modules/unictype/category-Ps: New file.
59569         * modules/unictype/category-Pe: New file.
59570         * modules/unictype/category-Pi: New file.
59571         * modules/unictype/category-Pf: New file.
59572         * modules/unictype/category-Po: New file.
59573         * modules/unictype/category-S: New file.
59574         * modules/unictype/category-Sm: New file.
59575         * modules/unictype/category-Sc: New file.
59576         * modules/unictype/category-Sk: New file.
59577         * modules/unictype/category-So: New file.
59578         * modules/unictype/category-Z: New file.
59579         * modules/unictype/category-Zs: New file.
59580         * modules/unictype/category-Zl: New file.
59581         * modules/unictype/category-Zp: New file.
59582         * modules/unictype/category-C: New file.
59583         * modules/unictype/category-Cc: New file.
59584         * modules/unictype/category-Cf: New file.
59585         * modules/unictype/category-Cs: New file.
59586         * modules/unictype/category-Co: New file.
59587         * modules/unictype/category-Cn: New file.
59588         * modules/unictype/category-or: New file.
59589         * modules/unictype/category-of: New file.
59590         * modules/unictype/category-test: New file.
59591         * modules/unictype/category-test-withtable: New file.
59592         * modules/unictype/category-byname: New file.
59593         * modules/unictype/category-none: New file.
59594         * modules/unictype/category-and: New file.
59595         * modules/unictype/category-and-not: New file.
59596         * modules/unictype/category-name: New file.
59597         * modules/unictype/combining-class: New file.
59598         * modules/unictype/category-all: New file.
59599         * modules/unictype/bidicategory-all: New file.
59600         * modules/unictype/bidicategory-byname: New file.
59601         * modules/unictype/bidicategory-name: New file.
59602         * modules/unictype/bidicategory-of: New file.
59603         * modules/unictype/bidicategory-test: New file.
59604         * modules/unictype/decimal-digit: New file.
59605         * modules/unictype/digit: New file.
59606         * modules/unictype/numeric: New file.
59607         * modules/unictype/mirror: New file.
59608         * modules/unictype/property-white-space: New file.
59609         * modules/unictype/property-alphabetic: New file.
59610         * modules/unictype/property-other-alphabetic: New file.
59611         * modules/unictype/property-not-a-character: New file.
59612         * modules/unictype/property-default-ignorable-code-point: New file.
59613         * modules/unictype/property-other-default-ignorable-code-point: New
59614         file.
59615         * modules/unictype/property-deprecated: New file.
59616         * modules/unictype/property-logical-order-exception: New file.
59617         * modules/unictype/property-variation-selector: New file.
59618         * modules/unictype/property-private-use: New file.
59619         * modules/unictype/property-unassigned-code-value: New file.
59620         * modules/unictype/property-uppercase: New file.
59621         * modules/unictype/property-other-uppercase: New file.
59622         * modules/unictype/property-lowercase: New file.
59623         * modules/unictype/property-other-lowercase: New file.
59624         * modules/unictype/property-titlecase: New file.
59625         * modules/unictype/property-soft-dotted: New file.
59626         * modules/unictype/property-id-start: New file.
59627         * modules/unictype/property-other-id-start: New file.
59628         * modules/unictype/property-id-continue: New file.
59629         * modules/unictype/property-other-id-continue: New file.
59630         * modules/unictype/property-xid-start: New file.
59631         * modules/unictype/property-xid-continue: New file.
59632         * modules/unictype/property-pattern-white-space: New file.
59633         * modules/unictype/property-pattern-syntax: New file.
59634         * modules/unictype/property-join-control: New file.
59635         * modules/unictype/property-grapheme-base: New file.
59636         * modules/unictype/property-grapheme-extend: New file.
59637         * modules/unictype/property-other-grapheme-extend: New file.
59638         * modules/unictype/property-grapheme-link: New file.
59639         * modules/unictype/property-bidi-control: New file.
59640         * modules/unictype/property-bidi-left-to-right: New file.
59641         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59642         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59643         * modules/unictype/property-bidi-european-digit: New file.
59644         * modules/unictype/property-bidi-eur-num-separator: New file.
59645         * modules/unictype/property-bidi-eur-num-terminator: New file.
59646         * modules/unictype/property-bidi-arabic-digit: New file.
59647         * modules/unictype/property-bidi-common-separator: New file.
59648         * modules/unictype/property-bidi-block-separator: New file.
59649         * modules/unictype/property-bidi-segment-separator: New file.
59650         * modules/unictype/property-bidi-whitespace: New file.
59651         * modules/unictype/property-bidi-non-spacing-mark: New file.
59652         * modules/unictype/property-bidi-boundary-neutral: New file.
59653         * modules/unictype/property-bidi-pdf: New file.
59654         * modules/unictype/property-bidi-embedding-or-override: New file.
59655         * modules/unictype/property-bidi-other-neutral: New file.
59656         * modules/unictype/property-hex-digit: New file.
59657         * modules/unictype/property-ascii-hex-digit: New file.
59658         * modules/unictype/property-ideographic: New file.
59659         * modules/unictype/property-unified-ideograph: New file.
59660         * modules/unictype/property-radical: New file.
59661         * modules/unictype/property-ids-binary-operator: New file.
59662         * modules/unictype/property-ids-trinary-operator: New file.
59663         * modules/unictype/property-zero-width: New file.
59664         * modules/unictype/property-space: New file.
59665         * modules/unictype/property-non-break: New file.
59666         * modules/unictype/property-iso-control: New file.
59667         * modules/unictype/property-format-control: New file.
59668         * modules/unictype/property-dash: New file.
59669         * modules/unictype/property-hyphen: New file.
59670         * modules/unictype/property-punctuation: New file.
59671         * modules/unictype/property-line-separator: New file.
59672         * modules/unictype/property-paragraph-separator: New file.
59673         * modules/unictype/property-quotation-mark: New file.
59674         * modules/unictype/property-sentence-terminal: New file.
59675         * modules/unictype/property-terminal-punctuation: New file.
59676         * modules/unictype/property-currency-symbol: New file.
59677         * modules/unictype/property-math: New file.
59678         * modules/unictype/property-other-math: New file.
59679         * modules/unictype/property-paired-punctuation: New file.
59680         * modules/unictype/property-left-of-pair: New file.
59681         * modules/unictype/property-combining: New file.
59682         * modules/unictype/property-composite: New file.
59683         * modules/unictype/property-decimal-digit: New file.
59684         * modules/unictype/property-numeric: New file.
59685         * modules/unictype/property-diacritic: New file.
59686         * modules/unictype/property-extender: New file.
59687         * modules/unictype/property-ignorable-control: New file.
59688         * modules/unictype/property-test: New file.
59689         * modules/unictype/property-byname: New file.
59690         * modules/unictype/property-all: New file.
59691         * modules/unictype/scripts: New file.
59692         * modules/unictype/scripts-all: New file.
59693         * modules/unictype/block-of: New file.
59694         * modules/unictype/block-test: New file.
59695         * modules/unictype/block-list: New file.
59696         * modules/unictype/block-all: New file.
59697         * modules/unictype/syntax-c-whitespace: New file.
59698         * modules/unictype/syntax-java-whitespace: New file.
59699         * modules/unictype/syntax-c-ident: New file.
59700         * modules/unictype/syntax-java-ident: New file.
59701         * modules/unictype/ctype-alnum: New file.
59702         * modules/unictype/ctype-alpha: New file.
59703         * modules/unictype/ctype-cntrl: New file.
59704         * modules/unictype/ctype-digit: New file.
59705         * modules/unictype/ctype-graph: New file.
59706         * modules/unictype/ctype-lower: New file.
59707         * modules/unictype/ctype-print: New file.
59708         * modules/unictype/ctype-punct: New file.
59709         * modules/unictype/ctype-space: New file.
59710         * modules/unictype/ctype-upper: New file.
59711         * modules/unictype/ctype-xdigit: New file.
59712         * modules/unictype/ctype-blank: New file.
59713         * lib/unictype/bidi_byname.c: New file.
59714         * lib/unictype/bidi_name.c: New file.
59715         * lib/unictype/bidi_of.c: New file.
59716         * lib/unictype/bidi_test.c: New file.
59717         * lib/unictype/bitmap.h: New file.
59718         * lib/unictype/block_test.c: New file.
59719         * lib/unictype/blocks.c: New file.
59720         * lib/unictype/categ_C.c: New file.
59721         * lib/unictype/categ_Cc.c: New file.
59722         * lib/unictype/categ_Cf.c: New file.
59723         * lib/unictype/categ_Cn.c: New file.
59724         * lib/unictype/categ_Co.c: New file.
59725         * lib/unictype/categ_Cs.c: New file.
59726         * lib/unictype/categ_L.c: New file.
59727         * lib/unictype/categ_Ll.c: New file.
59728         * lib/unictype/categ_Lm.c: New file.
59729         * lib/unictype/categ_Lo.c: New file.
59730         * lib/unictype/categ_Lt.c: New file.
59731         * lib/unictype/categ_Lu.c: New file.
59732         * lib/unictype/categ_M.c: New file.
59733         * lib/unictype/categ_Mc.c: New file.
59734         * lib/unictype/categ_Me.c: New file.
59735         * lib/unictype/categ_Mn.c: New file.
59736         * lib/unictype/categ_N.c: New file.
59737         * lib/unictype/categ_Nd.c: New file.
59738         * lib/unictype/categ_Nl.c: New file.
59739         * lib/unictype/categ_No.c: New file.
59740         * lib/unictype/categ_P.c: New file.
59741         * lib/unictype/categ_Pc.c: New file.
59742         * lib/unictype/categ_Pd.c: New file.
59743         * lib/unictype/categ_Pe.c: New file.
59744         * lib/unictype/categ_Pf.c: New file.
59745         * lib/unictype/categ_Pi.c: New file.
59746         * lib/unictype/categ_Po.c: New file.
59747         * lib/unictype/categ_Ps.c: New file.
59748         * lib/unictype/categ_S.c: New file.
59749         * lib/unictype/categ_Sc.c: New file.
59750         * lib/unictype/categ_Sk.c: New file.
59751         * lib/unictype/categ_Sm.c: New file.
59752         * lib/unictype/categ_So.c: New file.
59753         * lib/unictype/categ_Z.c: New file.
59754         * lib/unictype/categ_Zl.c: New file.
59755         * lib/unictype/categ_Zp.c: New file.
59756         * lib/unictype/categ_Zs.c: New file.
59757         * lib/unictype/categ_and.c: New file.
59758         * lib/unictype/categ_and_not.c: New file.
59759         * lib/unictype/categ_byname.c: New file.
59760         * lib/unictype/categ_name.c: New file.
59761         * lib/unictype/categ_none.c: New file.
59762         * lib/unictype/categ_of.c: New file.
59763         * lib/unictype/categ_or.c: New file.
59764         * lib/unictype/categ_test.c: New file.
59765         * lib/unictype/combining.c: New file.
59766         * lib/unictype/ctype_alnum.c: New file.
59767         * lib/unictype/ctype_alpha.c: New file.
59768         * lib/unictype/ctype_blank.c: New file.
59769         * lib/unictype/ctype_cntrl.c: New file.
59770         * lib/unictype/ctype_digit.c: New file.
59771         * lib/unictype/ctype_graph.c: New file.
59772         * lib/unictype/ctype_lower.c: New file.
59773         * lib/unictype/ctype_print.c: New file.
59774         * lib/unictype/ctype_punct.c: New file.
59775         * lib/unictype/ctype_space.c: New file.
59776         * lib/unictype/ctype_upper.c: New file.
59777         * lib/unictype/ctype_xdigit.c: New file.
59778         * lib/unictype/decdigit.c: New file.
59779         * lib/unictype/digit.c: New file.
59780         * lib/unictype/identsyntaxmap.h: New file.
59781         * lib/unictype/mirror.c: New file.
59782         * lib/unictype/numeric.c: New file.
59783         * lib/unictype/pr_alphabetic.c: New file.
59784         * lib/unictype/pr_ascii_hex_digit.c: New file.
59785         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59786         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59787         * lib/unictype/pr_bidi_block_separator.c: New file.
59788         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59789         * lib/unictype/pr_bidi_common_separator.c: New file.
59790         * lib/unictype/pr_bidi_control.c: New file.
59791         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59792         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59793         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59794         * lib/unictype/pr_bidi_european_digit.c: New file.
59795         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59796         * lib/unictype/pr_bidi_left_to_right.c: New file.
59797         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59798         * lib/unictype/pr_bidi_other_neutral.c: New file.
59799         * lib/unictype/pr_bidi_pdf.c: New file.
59800         * lib/unictype/pr_bidi_segment_separator.c: New file.
59801         * lib/unictype/pr_bidi_whitespace.c: New file.
59802         * lib/unictype/pr_byname.c: New file.
59803         * lib/unictype/pr_byname.gperf: New file.
59804         * lib/unictype/pr_combining.c: New file.
59805         * lib/unictype/pr_composite.c: New file.
59806         * lib/unictype/pr_currency_symbol.c: New file.
59807         * lib/unictype/pr_dash.c: New file.
59808         * lib/unictype/pr_decimal_digit.c: New file.
59809         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59810         * lib/unictype/pr_deprecated.c: New file.
59811         * lib/unictype/pr_diacritic.c: New file.
59812         * lib/unictype/pr_extender.c: New file.
59813         * lib/unictype/pr_format_control.c: New file.
59814         * lib/unictype/pr_grapheme_base.c: New file.
59815         * lib/unictype/pr_grapheme_extend.c: New file.
59816         * lib/unictype/pr_grapheme_link.c: New file.
59817         * lib/unictype/pr_hex_digit.c: New file.
59818         * lib/unictype/pr_hyphen.c: New file.
59819         * lib/unictype/pr_id_continue.c: New file.
59820         * lib/unictype/pr_id_start.c: New file.
59821         * lib/unictype/pr_ideographic.c: New file.
59822         * lib/unictype/pr_ids_binary_operator.c: New file.
59823         * lib/unictype/pr_ids_trinary_operator.c: New file.
59824         * lib/unictype/pr_ignorable_control.c: New file.
59825         * lib/unictype/pr_iso_control.c: New file.
59826         * lib/unictype/pr_join_control.c: New file.
59827         * lib/unictype/pr_left_of_pair.c: New file.
59828         * lib/unictype/pr_line_separator.c: New file.
59829         * lib/unictype/pr_logical_order_exception.c: New file.
59830         * lib/unictype/pr_lowercase.c: New file.
59831         * lib/unictype/pr_math.c: New file.
59832         * lib/unictype/pr_non_break.c: New file.
59833         * lib/unictype/pr_not_a_character.c: New file.
59834         * lib/unictype/pr_numeric.c: New file.
59835         * lib/unictype/pr_other_alphabetic.c: New file.
59836         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59837         * lib/unictype/pr_other_grapheme_extend.c: New file.
59838         * lib/unictype/pr_other_id_continue.c: New file.
59839         * lib/unictype/pr_other_id_start.c: New file.
59840         * lib/unictype/pr_other_lowercase.c: New file.
59841         * lib/unictype/pr_other_math.c: New file.
59842         * lib/unictype/pr_other_uppercase.c: New file.
59843         * lib/unictype/pr_paired_punctuation.c: New file.
59844         * lib/unictype/pr_paragraph_separator.c: New file.
59845         * lib/unictype/pr_pattern_syntax.c: New file.
59846         * lib/unictype/pr_pattern_white_space.c: New file.
59847         * lib/unictype/pr_private_use.c: New file.
59848         * lib/unictype/pr_punctuation.c: New file.
59849         * lib/unictype/pr_quotation_mark.c: New file.
59850         * lib/unictype/pr_radical.c: New file.
59851         * lib/unictype/pr_sentence_terminal.c: New file.
59852         * lib/unictype/pr_soft_dotted.c: New file.
59853         * lib/unictype/pr_space.c: New file.
59854         * lib/unictype/pr_terminal_punctuation.c: New file.
59855         * lib/unictype/pr_test.c: New file.
59856         * lib/unictype/pr_titlecase.c: New file.
59857         * lib/unictype/pr_unassigned_code_value.c: New file.
59858         * lib/unictype/pr_unified_ideograph.c: New file.
59859         * lib/unictype/pr_uppercase.c: New file.
59860         * lib/unictype/pr_variation_selector.c: New file.
59861         * lib/unictype/pr_white_space.c: New file.
59862         * lib/unictype/pr_xid_continue.c: New file.
59863         * lib/unictype/pr_xid_start.c: New file.
59864         * lib/unictype/pr_zero_width.c: New file.
59865         * lib/unictype/scripts.c: New file.
59866         * lib/unictype/sy_c_ident.c: New file.
59867         * lib/unictype/sy_c_whitespace.c: New file.
59868         * lib/unictype/sy_java_ident.c: New file.
59869         * lib/unictype/sy_java_whitespace.c: New file.
59870
59871         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59872         Unicode 5.0.0.
59873         * lib/unictype/blocks.h: Likewise.
59874         * lib/unictype/categ_C.h: Likewise.
59875         * lib/unictype/categ_Cc.h: Likewise.
59876         * lib/unictype/categ_Cf.h: Likewise.
59877         * lib/unictype/categ_Cn.h: Likewise.
59878         * lib/unictype/categ_Co.h: Likewise.
59879         * lib/unictype/categ_Cs.h: Likewise.
59880         * lib/unictype/categ_L.h: Likewise.
59881         * lib/unictype/categ_Ll.h: Likewise.
59882         * lib/unictype/categ_Lm.h: Likewise.
59883         * lib/unictype/categ_Lo.h: Likewise.
59884         * lib/unictype/categ_Lt.h: Likewise.
59885         * lib/unictype/categ_Lu.h: Likewise.
59886         * lib/unictype/categ_M.h: Likewise.
59887         * lib/unictype/categ_Mc.h: Likewise.
59888         * lib/unictype/categ_Me.h: Likewise.
59889         * lib/unictype/categ_Mn.h: Likewise.
59890         * lib/unictype/categ_N.h: Likewise.
59891         * lib/unictype/categ_Nd.h: Likewise.
59892         * lib/unictype/categ_Nl.h: Likewise.
59893         * lib/unictype/categ_No.h: Likewise.
59894         * lib/unictype/categ_P.h: Likewise.
59895         * lib/unictype/categ_Pc.h: Likewise.
59896         * lib/unictype/categ_Pd.h: Likewise.
59897         * lib/unictype/categ_Pe.h: Likewise.
59898         * lib/unictype/categ_Pf.h: Likewise.
59899         * lib/unictype/categ_Pi.h: Likewise.
59900         * lib/unictype/categ_Po.h: Likewise.
59901         * lib/unictype/categ_Ps.h: Likewise.
59902         * lib/unictype/categ_S.h: Likewise.
59903         * lib/unictype/categ_Sc.h: Likewise.
59904         * lib/unictype/categ_Sk.h: Likewise.
59905         * lib/unictype/categ_Sm.h: Likewise.
59906         * lib/unictype/categ_So.h: Likewise.
59907         * lib/unictype/categ_Z.h: Likewise.
59908         * lib/unictype/categ_Zl.h: Likewise.
59909         * lib/unictype/categ_Zp.h: Likewise.
59910         * lib/unictype/categ_Zs.h: Likewise.
59911         * lib/unictype/categ_of.h: Likewise.
59912         * lib/unictype/combining.h: Likewise.
59913         * lib/unictype/ctype_alnum.h: Likewise.
59914         * lib/unictype/ctype_alpha.h: Likewise.
59915         * lib/unictype/ctype_blank.h: Likewise.
59916         * lib/unictype/ctype_cntrl.h: Likewise.
59917         * lib/unictype/ctype_digit.h: Likewise.
59918         * lib/unictype/ctype_graph.h: Likewise.
59919         * lib/unictype/ctype_lower.h: Likewise.
59920         * lib/unictype/ctype_print.h: Likewise.
59921         * lib/unictype/ctype_punct.h: Likewise.
59922         * lib/unictype/ctype_space.h: Likewise.
59923         * lib/unictype/ctype_upper.h: Likewise.
59924         * lib/unictype/ctype_xdigit.h: Likewise.
59925         * lib/unictype/decdigit.h: Likewise.
59926         * lib/unictype/digit.h: Likewise.
59927         * lib/unictype/mirror.h: Likewise.
59928         * lib/unictype/numeric.h: Likewise.
59929         * lib/unictype/pr_alphabetic.h: Likewise.
59930         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59931         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59932         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59933         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59934         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59935         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59936         * lib/unictype/pr_bidi_control.h: Likewise.
59937         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59938         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59939         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59940         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59941         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59942         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59943         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59944         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59945         * lib/unictype/pr_bidi_pdf.h: Likewise.
59946         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59947         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59948         * lib/unictype/pr_combining.h: Likewise.
59949         * lib/unictype/pr_composite.h: Likewise.
59950         * lib/unictype/pr_currency_symbol.h: Likewise.
59951         * lib/unictype/pr_dash.h: Likewise.
59952         * lib/unictype/pr_decimal_digit.h: Likewise.
59953         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59954         * lib/unictype/pr_deprecated.h: Likewise.
59955         * lib/unictype/pr_diacritic.h: Likewise.
59956         * lib/unictype/pr_extender.h: Likewise.
59957         * lib/unictype/pr_format_control.h: Likewise.
59958         * lib/unictype/pr_grapheme_base.h: Likewise.
59959         * lib/unictype/pr_grapheme_extend.h: Likewise.
59960         * lib/unictype/pr_grapheme_link.h: Likewise.
59961         * lib/unictype/pr_hex_digit.h: Likewise.
59962         * lib/unictype/pr_hyphen.h: Likewise.
59963         * lib/unictype/pr_id_continue.h: Likewise.
59964         * lib/unictype/pr_id_start.h: Likewise.
59965         * lib/unictype/pr_ideographic.h: Likewise.
59966         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59967         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59968         * lib/unictype/pr_ignorable_control.h: Likewise.
59969         * lib/unictype/pr_iso_control.h: Likewise.
59970         * lib/unictype/pr_join_control.h: Likewise.
59971         * lib/unictype/pr_left_of_pair.h: Likewise.
59972         * lib/unictype/pr_line_separator.h: Likewise.
59973         * lib/unictype/pr_logical_order_exception.h: Likewise.
59974         * lib/unictype/pr_lowercase.h: Likewise.
59975         * lib/unictype/pr_math.h: Likewise.
59976         * lib/unictype/pr_non_break.h: Likewise.
59977         * lib/unictype/pr_not_a_character.h: Likewise.
59978         * lib/unictype/pr_numeric.h: Likewise.
59979         * lib/unictype/pr_other_alphabetic.h: Likewise.
59980         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59981         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59982         * lib/unictype/pr_other_id_continue.h: Likewise.
59983         * lib/unictype/pr_other_id_start.h: Likewise.
59984         * lib/unictype/pr_other_lowercase.h: Likewise.
59985         * lib/unictype/pr_other_math.h: Likewise.
59986         * lib/unictype/pr_other_uppercase.h: Likewise.
59987         * lib/unictype/pr_paired_punctuation.h: Likewise.
59988         * lib/unictype/pr_paragraph_separator.h: Likewise.
59989         * lib/unictype/pr_pattern_syntax.h: Likewise.
59990         * lib/unictype/pr_pattern_white_space.h: Likewise.
59991         * lib/unictype/pr_private_use.h: Likewise.
59992         * lib/unictype/pr_punctuation.h: Likewise.
59993         * lib/unictype/pr_quotation_mark.h: Likewise.
59994         * lib/unictype/pr_radical.h: Likewise.
59995         * lib/unictype/pr_sentence_terminal.h: Likewise.
59996         * lib/unictype/pr_soft_dotted.h: Likewise.
59997         * lib/unictype/pr_space.h: Likewise.
59998         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59999         * lib/unictype/pr_titlecase.h: Likewise.
60000         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60001         * lib/unictype/pr_unified_ideograph.h: Likewise.
60002         * lib/unictype/pr_uppercase.h: Likewise.
60003         * lib/unictype/pr_variation_selector.h: Likewise.
60004         * lib/unictype/pr_white_space.h: Likewise.
60005         * lib/unictype/pr_xid_continue.h: Likewise.
60006         * lib/unictype/pr_xid_start.h: Likewise.
60007         * lib/unictype/pr_zero_width.h: Likewise.
60008         * lib/unictype/scripts.h: Likewise.
60009         * lib/unictype/scripts_byname.gperf: Likewise.
60010         * lib/unictype/sy_c_ident.h: Likewise.
60011         * lib/unictype/sy_c_whitespace.h: Likewise.
60012         * lib/unictype/sy_java_ident.h: Likewise.
60013         * lib/unictype/sy_java_whitespace.h: Likewise.
60014
60015         * lib/unictype/Makefile: New file.
60016         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60017         glibc.
60018         * lib/unictype/3level.h: New file, copied from glibc.
60019         * lib/unictype/3levelbit.h: New file.
60020
60021 2007-11-11  Bruno Haible  <bruno@clisp.org>
60022
60023         * modules/gperf: New file.
60024         * modules/iconv_open (Depends-on): Add it.
60025         (Makefile.am): Remove the GPERF definition.
60026
60027 2007-11-11  Bruno Haible  <bruno@clisp.org>
60028
60029         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60030         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60031
60032 2007-11-11  Bruno Haible  <bruno@clisp.org>
60033
60034         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60035         (usage): Remove function.
60036
60037 2007-11-11  Bruno Haible  <bruno@clisp.org>
60038
60039         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60040         gl_FUNC_CEILF_LIBS.
60041         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60042         gl_FUNC_CEIL_LIBS.
60043         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60044         gl_FUNC_CEILL_LIBS.
60045         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60046         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60047         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60048
60049 2007-11-11  Bruno Haible  <bruno@clisp.org>
60050
60051         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60052         roundf were declared but do not exist on functions.
60053         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60054         roundl were declared but do not exist on functions.
60055         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60056         HAVE_FLOORL_AND_CEILL, respectively.
60057         Needed for Sun C on Solaris 10.
60058
60059 2007-11-11  Bruno Haible  <bruno@clisp.org>
60060
60061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60062         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60063         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60064         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60065         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60066         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60067         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60068         HAVE_DECL_ROUNDF.
60069         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60070         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60072         of HAVE_DECL_ROUND*.
60073         * modules/math (Makefile.am): Update.
60074
60075 2007-11-10  Bruno Haible  <bruno@clisp.org>
60076
60077         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60078         ptrdiff_t as m4/intl.m4.
60079
60080 2007-11-10  Jim Meyering  <meyering@redhat.com>
60081
60082         Avoid link failure for the argmatch test.
60083         * tests/test-argmatch.c (usage): Define function to avoid a link
60084         failure: argmatch_die requires a usage function.
60085
60086 2007-11-09  Bruno Haible  <bruno@clisp.org>
60087
60088         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60089         * doc/functions/vsnprintf.texi: Likewise.
60090         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60091         with a size argument < 2.
60092
60093 2007-11-09  Bruno Haible  <bruno@clisp.org>
60094
60095         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60096         buffer. Fixes an inefficiency introduced on 2007-11-03.
60097
60098 2007-11-09  Bruno Haible  <bruno@clisp.org>
60099
60100         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60101         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60102
60103 2007-11-08  Jim Meyering  <meyering@redhat.com>
60104
60105         Change cache variable name prefix "jm_" to "gl_" everywhere.
60106         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60107         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60108         * m4/uptime.m4: s/gl_/jm_/
60109
60110 2007-11-07  Bruno Haible  <bruno@clisp.org>
60111
60112         Update to GNU gettext 0.17.
60113         * m4/intl.m4: Update to GNU gettext 0.17.
60114         * m4/po.m4: Likewise.
60115         * modules/gettext (Files): Remove m4/ulonglong.m4.
60116         (configure.ac): Require gettext infrastructure from version 0.17.
60117
60118 2007-11-06  Bruno Haible  <bruno@clisp.org>
60119
60120         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60121         symbolic values are not defined in a public header.
60122         * lib/freadable.c (freadable) [QNX]: Likewise.
60123         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60124         * lib/freading.c (freading) [QNX]: Likewise.
60125         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60126         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60127         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60128         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60129         Reported by Alain Magloire.
60130
60131         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60132
60133 2007-11-05  Bruno Haible  <bruno@clisp.org>
60134
60135         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60136         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60137         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60138         Reported by Eric Blake.
60139
60140 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60141             Bruno Haible  <bruno@clisp.org>
60142
60143         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60144         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60145         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60146         (malloc): Undefine also before including <stdlib.h>.
60147         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60148         Needed on OSF/1 4.0.
60149
60150 2007-11-05  Jim Meyering  <meyering@redhat.com>
60151
60152         git-version-gen: sync from coreutils.
60153         * build-aux/git-version-gen: Add comments.
60154         Change the first '-' to '.' in the snapshot version string,
60155         e.g., 6.9-377-08144 -> 6.9.377-08144
60156         Remove first parameter.
60157         Don't declare a version "-dirty" merely because a time
60158         stamp has changed.
60159
60160 2007-11-04  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/lock.h: Protect all macro definitions containing an 'if'
60163         statement through a "do { ... } while (0)".
60164         * lib/tls.h: Likewise.
60165
60166 2007-11-04  Bruno Haible  <bruno@clisp.org>
60167
60168         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60169
60170 2007-11-04  Bruno Haible  <bruno@clisp.org>
60171
60172         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60173         * modules/fprintf-posix (Depends-on): Add nocrash.
60174         * modules/snprintf-posix (Depends-on): Likewise.
60175         * modules/sprintf-posix (Depends-on): Likewise.
60176         * modules/vasnprintf-posix (Depends-on): Likewise.
60177         * modules/vasprintf-posix (Depends-on): Likewise.
60178         * modules/vfprintf-posix (Depends-on): Likewise.
60179         * modules/vsnprintf-posix (Depends-on): Likewise.
60180         * modules/vsprintf-posix (Depends-on): Likewise.
60181         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60182         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60183         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60184         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60185         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60186         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60187         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60188
60189 2007-11-04  Bruno Haible  <bruno@clisp.org>
60190
60191         * modules/nocrash: New file.
60192         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60193         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60194
60195 2007-11-04  Bruno Haible  <bruno@clisp.org>
60196
60197         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60198         precision handling.
60199         * tests/test-vasprintf-posix.c (test_function): Likewise.
60200         * tests/test-snprintf-posix.h (test_function): Likewise.
60201         * tests/test-sprintf-posix.h (test_function): Likewise.
60202
60203         Fix *printf behaviour for large precisions on mingw and BeOS.
60204         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60205         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60207         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60208         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60209         gl_PRINTF_PRECISION and test its result. Invoke
60210         gl_PREREQ_VASNPRINTF_PRECISION.
60211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60218         * doc/functions/fprintf.texi: Update.
60219         * doc/functions/printf.texi: Update.
60220         * doc/functions/snprintf.texi: Update.
60221         * doc/functions/sprintf.texi: Update.
60222         * doc/functions/vfprintf.texi: Update.
60223         * doc/functions/vprintf.texi: Update.
60224         * doc/functions/vsnprintf.texi: Update.
60225         * doc/functions/vsprintf.texi: Update.
60226
60227 2007-11-04  Bruno Haible  <bruno@clisp.org>
60228
60229         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60230
60231 2007-11-04  Bruno Haible  <bruno@clisp.org>
60232
60233         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60234         Reported by Sylvain Beucler <beuc@gnu.org>.
60235
60236 2007-11-03  Bruno Haible  <bruno@clisp.org>
60237
60238         * tests/test-fprintf-posix2.sh: New file.
60239         * tests/test-fprintf-posix2.c: New file.
60240         * modules/fprintf-posix-tests (Files): Add them.
60241         (TESTS): Add test-fprintf-posix2.sh.
60242         (configure.ac): Check for getrlimit and setrlimit.
60243         (check_PROGRAMS): Add test-fprintf-posix2.
60244
60245         * tests/test-printf-posix2.sh: New file.
60246         * tests/test-printf-posix2.c: New file.
60247         * modules/printf-posix-tests (Files): Add them.
60248         (TESTS): Add test-printf-posix2.sh.
60249         (configure.ac): Check for getrlimit and setrlimit.
60250         (check_PROGRAMS): Add test-printf-posix2.
60251
60252         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60253         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60254         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60255         (decode_double): New function, copied from decode_long_double.
60256         (scale10_round_decimal_decoded): New function, extracted from
60257         scale10_round_decimal_long_double.
60258         (scale10_round_decimal_long_double): Use it.
60259         (scale10_round_decimal_double): New function.
60260         (floorlog10): New function.
60261         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60263         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60264         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60265         gl_PRINTF_ENOMEM and test its result. Invoke
60266         gl_PREREQ_VASNPRINTF_ENOMEM.
60267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60271         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60272         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60273         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60274         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60275         * modules/snprintf-posix (Depends-on): Likewise.
60276         * modules/sprintf-posix (Depends-on): Likewise.
60277         * modules/vasnprintf-posix (Depends-on): Likewise.
60278         * modules/vasprintf-posix (Depends-on): Likewise.
60279         * modules/vfprintf-posix (Depends-on): Likewise.
60280         * modules/vsnprintf-posix (Depends-on): Likewise.
60281         * modules/vsprintf-posix (Depends-on): Likewise.
60282         * doc/functions/fprintf.texi: Update.
60283         * doc/functions/printf.texi: Update.
60284         * doc/functions/snprintf.texi: Update.
60285         * doc/functions/sprintf.texi: Update.
60286         * doc/functions/vfprintf.texi: Update.
60287         * doc/functions/vprintf.texi: Update.
60288         * doc/functions/vsnprintf.texi: Update.
60289         * doc/functions/vsprintf.texi: Update.
60290
60291 2007-11-03  Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/frexp-nolibm-tests: New file.
60294
60295         * modules/frexp-nolibm: New file.
60296         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60297
60298 2007-11-03  Bruno Haible  <bruno@clisp.org>
60299
60300         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60301         value is C99 compliant.
60302         Needed for OSF/1 5.1.
60303
60304 2007-11-03  Bruno Haible  <bruno@clisp.org>
60305
60306         Fix out-of-memory handling of vasnprintf.
60307         * lib/printf-parse.c: Include <errno.h>.
60308         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60309         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60310         is already set.
60311
60312 2007-11-02  Eric Blake  <ebb9@byu.net>
60313
60314         Fix tests on cygwin.
60315         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60316
60317 2007-11-01  Bruno Haible  <bruno@clisp.org>
60318
60319         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60320         warning.
60321         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60322         needed for POSIX compatibility.
60323
60324 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60325
60326         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60327         for compatibility with GNU.
60328
60329 2007-11-01  Bruno Haible  <bruno@clisp.org>
60330
60331         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60332         (putenv): Renamed from rpl_putenv. Change argument type from
60333         'const char *' to 'char *'.
60334         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60335         of defining putenv in config.h, just set REPLACE_PUTENV.
60336         * modules/putenv (Depends-on): Add stdlib.
60337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60338         (Include): Use <stdlib.h>.
60339         * lib/stdlib.in.h (putenv): New declaration.
60340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60341         REPLACE_PUTENV.
60342         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60343         REPLACE_PUTENV.
60344         Needed for MacOS X 10.5.0.
60345         Reported by Peter O'Gorman <peter@pogma.com>.
60346
60347 2007-11-01  Jim Meyering  <meyering@redhat.com>
60348
60349         Treat an empty date string exactly like "0".
60350         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60351         if the remaining date string (to be parsed) is empty, use "0".
60352         Reported by Mischa Molhoek and discussed in this thread:
60353         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60354
60355 2007-10-31  Bruno Haible  <bruno@clisp.org>
60356
60357         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60358         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60359         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60360         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60361         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60362         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60363
60364 2007-10-31  Bruno Haible  <bruno@clisp.org>
60365
60366         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60367         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60368         (AC_TYPE_LONG_LONG_INT): Use it.
60369         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60370         it as well.
60371         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60372         to m4/longlong.m4.
60373         * modules/stdint (Files): Remove m4/ulonglong.m4.
60374         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60375         m4/ulonglong.m4.
60376         * modules/strtoumax (Files): Likewise.
60377
60378 2007-10-30  Bruno Haible  <bruno@clisp.org>
60379
60380         * modules/xvasprintf-posix: New file.
60381         Suggested by Eric Blake.
60382
60383 2007-10-30  Bruno Haible  <bruno@clisp.org>
60384
60385         * modules/xprintf-posix-tests: New file.
60386         * tests/test-xprintf-posix.sh: New file.
60387         * tests/test-xprintf-posix.c: New file.
60388         * tests/test-xfprintf-posix.c: New file.
60389
60390         * modules/xprintf-posix: New file.
60391
60392 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60393
60394         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60395         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60396         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60397
60398 2007-10-29  Bruno Haible  <bruno@clisp.org>
60399
60400         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60401         contain the special marker '_cv_'.
60402         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60403         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60404         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60405         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60406         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60407         Reported by Ralf Wildenhues.
60408
60409 2007-10-29  Bruno Haible  <bruno@clisp.org>
60410
60411         * gnulib-tool (func_import): When --lgpl is not specified, set
60412         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60413         GPLv3.
60414         Reported by Simon Josefsson.
60415
60416 2007-10-28  Bruno Haible  <bruno@clisp.org>
60417
60418         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60419         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60420         HAVE_DECL_ISFINITE.
60421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60422         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60423         HAVE_DECL_ISFINITE.
60424
60425 2007-10-28  Bruno Haible  <bruno@clisp.org>
60426
60427         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60428         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60429
60430 2007-10-28  Bruno Haible  <bruno@clisp.org>
60431
60432         Fix link errors with Sun C 5.0 on Solaris 10.
60433         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60434         function is declared but not present in the compiler's libm.
60435         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60436         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60437         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60438         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60439         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60440         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60441         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60443         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60444         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60445         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60446         HAVE_DECL_FLOORL.
60447
60448 2007-10-28  Bruno Haible  <bruno@clisp.org>
60449
60450         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60451         gl_FUNC_FLOORL. Cache the result.
60452         (gl_FUNC_FLOORL): Use it.
60453         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60454         gl_FUNC_CEILL. Cache the result.
60455         (gl_FUNC_CEILL): Use it.
60456
60457         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60458         gl_FUNC_FLOOR. Cache the result.
60459         (gl_FUNC_FLOOR): Use it.
60460         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60461         gl_FUNC_CEIL. Cache the result.
60462         (gl_FUNC_CEIL): Use it.
60463
60464         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60465         gl_FUNC_FLOORF. Cache the result.
60466         (gl_FUNC_FLOORF): Use it.
60467         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60468         gl_FUNC_CEILF. Cache the result.
60469         (gl_FUNC_CEILF): Use it.
60470
60471 2007-10-28  Bruno Haible  <bruno@clisp.org>
60472
60473         * gnulib-tool: Allow specifying the LGPL version number through
60474         --lgpl=2 or --lgpl=3.
60475         (func_usage): Document --lgpl with argument.
60476         Handle --lgpl=... arguments.
60477         (func_import): Recognize also gl_LGPL calls with an argument. When
60478         --lgpl=2 is used and the module's license is just LGPL, report an
60479         error. Set sed_transform_lib_file according to the lgpl variable. In
60480         the generated files, use --lgpl or gl_LGPL invocations with argument,
60481         if necessary.
60482         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60483         an LGPv2+ license.
60484         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60485         gl_LGPL macro.
60486
60487 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60488             Bruno Haible  <bruno@clisp.org>
60489
60490         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60491         (u16_uctomb_aux): Likewise.
60492         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60493         !HAVE_INLINE.
60494         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60495
60496 2007-10-28  Bruno Haible  <bruno@clisp.org>
60497
60498         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60499         Invoke AM_GETTEXT_OPTION if it exists.
60500         * modules/vasprintf: Likewise.
60501         * modules/verror: Likewise.
60502         * modules/xprintf: Likewise.
60503         * modules/xvasprintf: Likewise.
60504
60505 2007-10-27  Ben Pfaff  <blp@gnu.org>
60506
60507         * lib/math.in.h: Define isfinite macro and prototypes for
60508         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60509         implementations.
60510         * m4/math_h.m4: New substitutions for isfinite module.
60511         * lib/isfinite.c: New file.
60512         * m4/isfinite.m4: New file.
60513         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60514         * modules/isfinite: New file.
60515         * modules/isfinite-tests: New file.
60516         * tests/tests-isfinite.c: New file.
60517         * doc/functions/isfinite.texi: Mention isfinite module.
60518         * MODULES.html.sh: Mention new module.
60519
60520 2007-10-27  Ben Pfaff  <blp@gnu.org>
60521
60522         Ralf Wildenhues reported that Tru64 4.0D declares the round
60523         functions but does not have definitions.
60524         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60525         cannot be found in any library, set the output variable to
60526         "missing" instead of "".
60527         * m4/round.m4: Also use our substitute if we cannot find round in
60528         any library, even if it is declared.
60529         * m4/roundf.m4: Likewise for roundf.
60530         * m4/roundl.m4: Likewise for roundl.
60531         * lib/math.in.h: Undefine roundf, round, roundl before defining
60532         their replacements, to allow for hypothetical systems where these
60533         may be defined as macros but not available in libraries.
60534
60535 2007-10-27  Bruno Haible  <bruno@clisp.org>
60536
60537         * doc/gnulib.texi: Invoke @firstparagraphindent.
60538         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60539         changes in gnulib.
60540         (Source changes): New section.
60541
60542 2007-10-26  Bruno Haible  <bruno@clisp.org>
60543
60544         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60545         borrowed from autoconf.
60546
60547 2007-10-26  Bruno Haible  <bruno@clisp.org>
60548
60549         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60550         strerror returned the empty string. Needed on HP-UX 11.00.
60551
60552 2007-10-24  Micah Cowan  <micah@cowan.name>
60553
60554         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60555         * build-aux/bootstrap: Remove support for now-unnecessary option,
60556         --cvs-user, and envvars CVS_USER, CVS_RSH.
60557
60558 2007-10-24  Jim Meyering  <meyering@redhat.com>
60559
60560         Avoid diagnostics from sha1sum when there is no cached checksum.
60561         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60562         if the po.s1 file hasn't been created yet.
60563
60564         * build-aux/bootstrap: Sync from coreutils:
60565         2007-10-24  Jim Meyering  <meyering@redhat.com>
60566         Get gnulib from the git repository, not from an obsolete cvs one.
60567         * build-aux/bootstrap: Suggestion from Micah Cowan.
60568         2007-10-04  Jim Meyering  <jim@meyering.net>
60569         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60570         (update_po_files): Work also when there are no .po files in po/.
60571
60572 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         * README: Append ".git" to git and cg examples.
60575         Problem reported by Benoit Sigoure.
60576
60577 2007-10-23  Micah Cowan  <micah@cowan.name>
60578
60579         * users.txt: Add wget.
60580
60581 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60582
60583         Fix linking of some unistdio tests on FreeBSD.
60584         * modules/unistdio/u16-vsnprintf-tests
60585         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60586         * modules/unistdio/u16-vsprintf-tests
60587         (test_u16_vsnprintf1_LDADD): Likewise.
60588         * modules/unistdio/u32-vsnprintf-tests
60589         (test_u32_vsnprintf1_LDADD): Likewise.
60590         * modules/unistdio/u32-vsprintf-tests
60591         (test_u32_vsprintf1_LDADD): Likewise.
60592         * modules/unistdio/u8-vsnprintf-tests
60593         (test_u8_vsnprintf1_LDADD): Likewise.
60594         * modules/unistdio/u8-vsprintf-tests
60595         (test_u8_vsprintf1_LDADD): Likewise.
60596         * modules/unistdio/ulc-vsnprintf-tests
60597         (test_ulc_vsnprintf1_LDADD): Likewise.
60598         * modules/unistdio/ulc-vsprintf-tests
60599         (test_ulc_vsprintf1_LDADD): Likewise.
60600
60601         Fix linking of some uniconv tests on FreeBSD.
60602         * modules/uniconv/u16-conv-from-enc-tests
60603         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60604         * modules/uniconv/u16-conv-to-enc-tests
60605         (test_u16_conv_to_enc_LDADD): Likewise.
60606         * modules/uniconv/u16-strconv-from-enc-tests
60607         (test_u16_strconv_from_enc_LDADD): Likewise.
60608         * modules/uniconv/u16-strconv-to-enc-tests
60609         (test_u16_strconv_to_enc_LDADD): Likewise.
60610         * modules/uniconv/u32-conv-from-enc-tests
60611         (test_u32_conv_from_enc_LDADD): Likewise.
60612         * modules/uniconv/u32-conv-to-enc-tests
60613         (test_u32_conv_to_enc_LDADD): Likewise.
60614         * modules/uniconv/u32-strconv-from-enc-tests
60615         (test_u32_strconv_from_enc_LDADD): Likewise.
60616         * modules/uniconv/u32-strconv-to-enc-tests
60617         (test_u32_strconv_to_enc_LDADD): Likewise.
60618         * modules/uniconv/u8-conv-from-enc-tests
60619         (test_u8_conv_from_enc_LDADD): Likewise.
60620         * modules/uniconv/u8-conv-to-enc-tests
60621         (test_u8_conv_to_enc_LDADD): Likewise.
60622         * modules/uniconv/u8-strconv-from-enc-tests
60623         (test_u8_strconv_from_enc_LDADD): Likewise.
60624         * modules/uniconv/u8-strconv-to-enc-tests
60625         (test_u8_strconv_to_enc_LDADD): Likewise.
60626
60627 2007-10-22  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60630         size.
60631
60632 2007-10-22  Eric Blake  <ebb9@byu.net>
60633
60634         Tweak x*printf documentation.
60635         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60636         variable name and comments.
60637         Suggested by Bruno Haible.
60638
60639 2007-10-22  Bruno Haible  <bruno@clisp.org>
60640
60641         * lib/acl.c (copy_acl): Fix file name in comment.
60642
60643 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60644
60645         Fix Tru64 problem with stdbool.h.
60646         * lib/stdbool.in.h (false, true):
60647         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60648         Don't declare as an enum in this situation; it runs afoul of Tru64.
60649         Problem reported by Steven M. Schweda in
60650         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60651
60652 2007-10-22  Eric Blake  <ebb9@byu.net>
60653
60654         Also wrap vf?printf.
60655         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60656         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60657         (xvprintf, xvfprintf): New functions.
60658
60659 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60660
60661         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60662         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60663
60664         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60665         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60666
60667 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60670         by Bruno Haible.
60671
60672 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60673
60674         * lib/getloadavg.c
60675         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60676         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60677
60678         * tests/test-i-ring.c: Work for C89.
60679
60680 2007-10-22  Bruno Haible  <bruno@clisp.org>
60681
60682         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60683         -1u, in preprocessor expression, so that we don't test for the bug
60684         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60685         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60686
60687 2007-10-22  Eric Blake  <ebb9@byu.net>
60688
60689         * tests/test-yesno.sh: Silence stderr during test.
60690
60691 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60692
60693         * modules/crypto/gc-camellia: New file.
60694
60695         * m4/gc-camellia.m4: New file.
60696
60697         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60698
60699         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60700
60701 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60702
60703         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60704         --help to stdout.  Reported by sms@antinode.org (Steven
60705         M. Schweda).
60706
60707 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60708
60709         * users.txt: Fix link to libksba.
60710
60711 2007-10-21  Ben Pfaff  <blp@gnu.org>
60712
60713         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60714         round.c roundf implementation that depends on floorf and ceilf to
60715         be tested unconditionally.
60716
60717 2007-10-21  Ben Pfaff  <blp@gnu.org>
60718
60719         * m4/check-libm-func.m4: Removed.
60720         * m4/check-math-lib.m4: New file.
60721         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60722         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60723         definition and lack of AC_LIBOBJ([roundf]).
60724         * m4/roundl.m4: Ditto, and similarly for roundl.
60725         * modules/round: Reference new m4 file.
60726         * modules/roundf: Ditto.
60727         * modules/roundl: Ditto.
60728         * tests/test-round2.c (main): Use ROUND instead of round.
60729         Bug report from Bruno Haible.
60730
60731 2007-10-21  Bruno Haible  <bruno@clisp.org>
60732
60733         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60734         context.
60735
60736 2007-10-21  Bruno Haible  <bruno@clisp.org>
60737
60738         * tests/test-wcwidth.c (main): Allow negative result for some control
60739         characters.
60740
60741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60742         Needed on OSF/1 5.1.
60743
60744 2007-10-21  Bruno Haible  <bruno@clisp.org>
60745
60746         * tests/test-floorf1.c: Include isnanf.h.
60747         (main): Use isnanf() instead of isnan().
60748         * tests/test-ceilf1.c: Include isnanf.h.
60749         (main): Use isnanf() instead of isnan().
60750         * tests/test-truncf1.c: Include isnanf.h.
60751         (main): Use isnanf() instead of isnan().
60752         * tests/test-roundf1.c: Include isnanf.h.
60753         (main): Use isnanf() instead of isnan().
60754
60755 2007-10-21  Eric Blake  <ebb9@byu.net>
60756
60757         * users.txt: Update URL for m4.
60758
60759 2007-10-21  Bruno Haible  <bruno@clisp.org>
60760
60761         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60762
60763 2007-10-21  Bruno Haible  <bruno@clisp.org>
60764
60765         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60766         Git's management files if the CVS files are not present.
60767
60768 2007-10-20  Bruno Haible  <bruno@clisp.org>
60769
60770         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60771         gcc-3.4.x.
60772
60773 2007-10-20  Ben Pfaff  <blp@gnu.org>
60774
60775         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60776         implementations.
60777         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60778         * lib/round.c: New file.
60779         * lib/roundf.c: New file.
60780         * lib/roundl.c: New file.
60781         * m4/round.m4: New file.
60782         * m4/roundf.m4: New file.
60783         * m4/roundl.m4: New file.
60784         * m4/check-libm-func-m4: New file.
60785         * modules/math: Replace round, roundf, roundl related @VARS@ in
60786         math.in.h.
60787         * modules/round: New file.
60788         * modules/round-tests: New file.
60789         * modules/roundf: New file.
60790         * modules/roundf-tests: New file.
60791         * modules/roundl: New file.
60792         * modules/roundl-tests: New file.
60793         * tests/test-round1.c: New file.
60794         * tests/test-round2.c: New file.
60795         * tests/test-roundf1.c: New file.
60796         * tests/test-roundf2.c: New file.
60797         * tests/test-roundl.c: New file.
60798         * doc/functions/round.texi: Mention round module.
60799         * doc/functions/roundf.texi: Mention roundf module.
60800         * doc/functions/roundl.texi: Mention roundl module.
60801         * MODULES.html.sh: Mention new modules.
60802         Thanks to Bruno Haible for suggestions.
60803
60804 2007-10-20  Jim Meyering  <meyering@redhat.com>
60805
60806         * lib/xprintf.c: Include <config.h> unconditionally.
60807
60808         Change xprintf's license to GPL.
60809         * modules/xprintf (License): s/LGPL/GPL/, since this module
60810         depends on modules (exit and exitfail) which are GPL.
60811         Suggestion from Bruno Haible.
60812
60813         xprintf fixes.
60814         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60815         Use a clearer diagnostic.
60816         Patch from Bruno Haible.
60817
60818 2007-10-20  Bruno Haible  <bruno@clisp.org>
60819
60820         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60821         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60822         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60823
60824 2007-10-20  Bruno Haible  <bruno@clisp.org>
60825
60826         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60827         precision in the comparison result > x - 1 or similar.
60828         * tests/test-ceilf2.c (correct_result_p): Likewise.
60829         * tests/test-truncf2.c (correct_result_p): Likewise.
60830         * tests/test-trunc2.c (correct_result_p): Likewise.
60831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60832
60833 2007-10-20  Bruno Haible  <bruno@clisp.org>
60834
60835         * modules/ceil: New file.
60836         * m4/ceil.m4: New file.
60837         * doc/functions/ceil.texi: Mention the 'ceil' module.
60838
60839 2007-10-20  Bruno Haible  <bruno@clisp.org>
60840
60841         * modules/floor: New file.
60842         * m4/floor.m4: New file.
60843         * doc/functions/floor.texi: Mention the 'floor' module.
60844
60845 2007-10-20  Bruno Haible  <bruno@clisp.org>
60846
60847         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60848         of %a.
60849         * modules/floorf-tests (Depends-on): Likewise.
60850         * modules/truncf-tests (Depends-on): Likewise.
60851         * modules/trunc-tests (Depends-on): Likewise.
60852         Reported by Ben Pfaff.
60853
60854 2007-10-19  Jim Meyering  <meyering@redhat.com>
60855
60856         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60857         Don't bother testing specific errno values.  Just test ferror.
60858
60859         New module: xprintf
60860         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60861
60862 2007-10-19  Bruno Haible  <bruno@clisp.org>
60863
60864         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60865         syntax.
60866         * modules/javaexec (Makefile.am): Likewise.
60867         * modules/relocatable-prog (Makefile.am): Likewise.
60868         Suggested by Jim Meyering.
60869
60870 2007-10-18  Bruno Haible  <bruno@clisp.org>
60871
60872         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60873         Reported by Jim Meyering.
60874
60875 2007-10-18  Eric Blake  <ebb9@byu.net>
60876
60877         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60878
60879 2007-10-18  Bruno Haible  <bruno@clisp.org>
60880
60881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60882         the format string into writable memory. Needed in Fortify conditions.
60883
60884 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60885             Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60888         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60889         * modules/trim (Depends-on): Add mbchar.
60890         (configure.ac): Add gl_FUNC_MBRTOWC.
60891         (Makefile.am): Augment lib_SOURCES.
60892
60893 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60894
60895         Modify glob.c to use fstatat and dirfd, to simplify it.
60896         Suggested by Eric Blake.
60897         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60898         Don't include <stdbool.h>; not used.
60899         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60900         (link_exists_p): Simplify implementation, since we can now assume
60901         dirfd and fstatat.
60902         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60903
60904 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60905
60906         * gnulib-tool (func_get_dependencies): Fix sed script to
60907         match only tests.
60908
60909 2007-10-17  Bruno Haible  <bruno@clisp.org>
60910
60911         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60912         allow locale names without encoding suffix.
60913         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60914         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60915
60916 2007-10-16  Bruno Haible  <bruno@clisp.org>
60917
60918         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60919         * lib/getgroups.c (getgroups): Likewise.
60920         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60921
60922 2007-10-16  Bruno Haible  <bruno@clisp.org>
60923
60924         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60925         * modules/malloc-posix (License): Likewise.
60926         * modules/realloc-posix (License): Likewise.
60927         * modules/calloc-posix (License): Likewise.
60928         * modules/intprops (License): Change from GPL to LGPL, with
60929         Paul Eggert's approval.
60930
60931 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         Merge glibc changes into lib/glob.c.
60934
60935         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60936         2007-10-15 04:59:03 UTC.  Here are the changes:
60937
60938         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60939
60940         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60941
60942         * lib/glob.c: Add some branch prediction throughout.
60943
60944         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60945
60946         [BZ #5103]
60947         * lib/glob.c (glob): Recognize patterns starting \/.
60948
60949         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60950
60951         [BZ #3996]
60952         * lib/glob.c (attribute_hidden): Define if not defined.
60953         (glob): Unescape dirname, filename or username when needed and not
60954         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60955         is NULL.  Handle unescaped [ in pattern without closing ].
60956         Don't pass GLOB_CHECK down to recursive glob for directories.
60957         (__glob_pattern_type): New function.
60958         (__glob_pattern_p): Implement using __glob_pattern_type.
60959         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60960         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60961         Remove unreachable code.
60962
60963         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60964
60965         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60966         explain why there are no leaks.
60967
60968         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60969
60970         [BZ #3253]
60971         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60972         time, rather allocate increasingly bigger arrays of pointers, if
60973         possible with alloca, if too large with malloc.
60974
60975 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60978         Problem reported by H.Merijn Brand in
60979         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60980         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60981         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60982
60983 2007-10-15  Bruno Haible  <bruno@clisp.org>
60984
60985         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60986         with explicit rpl_ prefix.
60987         * lib/fopen.c (fopen): Likewise.
60988         * lib/freopen.c (freopen): Likewise.
60989         * lib/iconv.c (iconv): Likewise.
60990         * lib/iconv_close.c (iconv_close): Likewise.
60991
60992 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60993
60994         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60995
60996 2007-10-15  Bruno Haible  <bruno@clisp.org>
60997
60998         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60999         <stddef.h> instead of <stdlib.h> since we only need NULL.
61000         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61001
61002 2007-10-15  Bruno Haible  <bruno@clisp.org>
61003
61004         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61005         Replace paragraph talking about LIBOBJS.
61006         Reported by Colin Watson <cjwatson@debian.org>.
61007
61008 2007-10-15  Bruno Haible  <bruno@clisp.org>
61009
61010         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61011         <stdlib.h> before using NULL.
61012
61013 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61014
61015         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61016         Reported by Albert Chin <china@thewrittenword.com>.
61017
61018 2007-10-14  Bruno Haible  <bruno@clisp.org>
61019
61020         * modules/iconv_open-utf-tests: New file.
61021         * tests/test-iconv-utf.c: New file.
61022
61023         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61024         * modules/iconv_open-utf: New file.
61025         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61026         (iconv, iconv_close): New declarations.
61027         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61028         be defined.
61029         (iconv_open): Add special handling of conversion between UTF-8 and
61030         UTF-{16,32}{BE,LE}.
61031         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61032         * lib/iconv_close.c: New file.
61033         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61034         gl_FUNC_ICONV_OPEN.
61035         (gl_FUNC_ICONV_OPEN): Use it.
61036         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61037         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61038         and REPLACE_ICONV_UTF.
61039         * modules/iconv_open (Depends-on): Add c-strcase.
61040         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61041         ICONV_CONST.
61042         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61043
61044 2007-10-13  Albert Chin  <china@thewrittenword.com>
61045             Bruno Haible  <bruno@clisp.org>
61046
61047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61048         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61049
61050 2007-10-13  Bruno Haible  <bruno@clisp.org>
61051
61052         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61053         defined, use the ISO C99 inline semantics.
61054         * lib/argp.h (ARGP_EI): Likewise.
61055
61056 2007-10-13  Bruno Haible  <bruno@clisp.org>
61057
61058         Handle 'inline' change in gcc 4.3.0.
61059         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61060         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61061         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61062         argp_fmtstream_point): Disable 'extern' declaration if the function
61063         definition is going to be provided inline.
61064         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61065         semantics, not the ISO C99 inline semantics.
61066         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61067         'extern' declaration if the function definition is going to be provided
61068         inline.
61069         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61070         the GNU C inline semantics, not the ISO C99 inline semantics. With
61071         GCC 4.2, avoid a warning.
61072
61073 2007-10-13  Bruno Haible  <bruno@clisp.org>
61074
61075         * lib/freading.h (freading): Enable the use of __freading for
61076         glibc >= 2.7.
61077         * lib/freading.c (freading): Likewise.
61078
61079 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61080
61081         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61082         "warning: C99 inline functions are not supported; using GNU89".
61083
61084 2007-10-12  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61087         of 2.
61088         * tests/test-ceilf2.c: New file.
61089         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61090
61091         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61092         * modules/ceilf-tests: Update.
61093
61094 2007-10-12  Bruno Haible  <bruno@clisp.org>
61095
61096         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61097         of 2.
61098         * tests/test-floorf2.c: New file.
61099         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61100
61101         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61102         * modules/floorf-tests: Update.
61103
61104 2007-10-12  Bruno Haible  <bruno@clisp.org>
61105
61106         * tests/test-trunc2.c: New file.
61107         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61108
61109         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61110         * modules/trunc-tests: Update.
61111
61112 2007-10-12  Bruno Haible  <bruno@clisp.org>
61113
61114         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61115         of 2.
61116         * tests/test-truncf2.c: New file.
61117         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61118
61119         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61120         * modules/truncf-tests: Update.
61121
61122 2007-10-11  Eric Blake  <ebb9@byu.net>
61123
61124         Don't claim strerror is broken on Interix.
61125         * doc/functions/strerror.texi (strerror): Known broken systems are
61126         now Solaris 8, and not Interix.
61127         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61128         Interix on cross-compile.
61129         Reported by Martin Koeppe in
61130         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61131
61132 2007-10-11  Bruno Haible  <bruno@clisp.org>
61133
61134         * modules/i-ring-tests: New file.
61135         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61136         instead of assert.
61137
61138 2007-10-11  Bruno Haible  <bruno@clisp.org>
61139
61140         * modules/filenamecat-tests: New file.
61141         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61142         * lib/filenamecat.c: Remove test code.
61143
61144 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61145
61146         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61147
61148         * lib/strerror.c: Include <string.h> always, to test interface,
61149         and to remove the need for the dummy.
61150         Include intprops.h to compute width instead of doing it ourselves
61151         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61152         (strerror): Define it to return NULL if there's no system strerror.
61153         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61154         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61155         ancient pre-strerror Unix systems well any more.  Saying "unknown
61156         system error" is enough.
61157         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61158         simpler strerror.c implementation.
61159         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61160         Simplify the tests to reflect the simpler strerror implementation.
61161         * modules/strerror (Depends-on): Add intprops.
61162
61163 2007-10-09  Eric Blake  <ebb9@byu.net>
61164
61165         Silence test-fpending.
61166         * modules/fpending-tests (Files): Add wrapper script.
61167         * tests/test-fpending.sh: New file.
61168
61169 2007-10-09  Bruno Haible  <bruno@clisp.org>
61170
61171         * MODULES.html.sh (func_module): Don't create a hyperlink for
61172         function names like 'printf_frexp'.
61173         (Misc): Add crc, memxor.
61174         (Characteristics of floating types): New section.
61175         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61176         isnanf-nolibm, signbit, trunc, truncf, truncl.
61177         (Enhancements for ISO C 99 functions): New subsection Input/output.
61178         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61179         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61180         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61181         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61182         (Enhancements for POSIX:2001 functions): Add chdir-long.
61183         (File system functions): Add areadlink, chdir-safer, read-file.
61184         Remove cycle-check.
61185         (File system as inode set): New section.
61186         (Date and time): Add gethrxtime.
61187         (Multithreading): Add openmp.
61188         (Internationalization functions): Add localename.
61189         (Unicode string functions): Add unistr/u*-mbsnlen.
61190         (Support for maintaining and releasing projects): Add git-version-gen.
61191         (Lone files): Remove directories.
61192
61193 2007-10-08  Ben Pfaff  <blp@gnu.org>
61194
61195         * lib/xmalloca.h: Fix typo in comment.
61196
61197 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61198
61199         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61200         when avoiding problems with integer overflow.  Use a portable test
61201         instead.
61202
61203 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61204
61205         * modules/dummy (License): Change to LGPLv2+.
61206         * modules/float (License): Likewise
61207         * modules/realloc (License): Likewise
61208         * modules/stdlib (License): Likewise
61209
61210 2007-10-07  Bruno Haible  <bruno@clisp.org>
61211
61212         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61213         * floor.c (TWO_MANT_DIG): Likewise.
61214         * ceil.c (TWO_MANT_DIG): Likewise.
61215         Reported by Ben Pfaff.
61216
61217 2007-10-07  Bruno Haible  <bruno@clisp.org>
61218
61219         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61220         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61221         * lib/frexp.c (FUNC): Likewise.
61222         * lib/printf-frexp.h (printf_frexp): Likewise.
61223         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61224         * lib/printf-frexp.c (FUNC): Likewise.
61225         Suggested by Jim Meyering.
61226
61227 2007-10-07  Jim Meyering  <meyering@redhat.com>
61228
61229         Make xnanosleep's integer overflow test more robust.
61230         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61231         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61232
61233 2007-10-07  Bruno Haible  <bruno@clisp.org>
61234
61235         * NEWS: Mention the license change.
61236
61237         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61238         abbreviations in the modules files.
61239
61240         Change copyright notice from GPLv2+ to GPLv3+.
61241         * README: Change copyright notice.
61242         * MODULES.html.sh: Likewise.
61243         * build-aux/bootstrap.conf: Likewise.
61244         * build-aux/config.libpath: Likewise.
61245         * build-aux/csharpcomp.sh.in: Likewise.
61246         * build-aux/csharpexec.sh.in: Likewise.
61247         * build-aux/install-reloc: Likewise.
61248         * build-aux/javacomp.sh.in: Likewise.
61249         * build-aux/javaexec.sh.in: Likewise.
61250         * build-aux/ldd.sh.in: Likewise.
61251         * build-aux/reloc-ldflags: Likewise.
61252         * build-aux/relocatable.sh.in: Likewise.
61253         * build-aux/x-to-1.in: Likewise.
61254         * check-module: Likewise.
61255         * config/srclistvars.sh: Likewise.
61256         * gnulib-tool: Likewise.
61257         * lib/acl-internal.h: Likewise.
61258         * lib/acl.c: Likewise.
61259         * lib/acl.h: Likewise.
61260         * lib/acl_entries.c: Likewise.
61261         * lib/areadlink-with-size.c: Likewise.
61262         * lib/areadlink.c: Likewise.
61263         * lib/areadlink.h: Likewise.
61264         * lib/argmatch.c: Likewise.
61265         * lib/argmatch.h: Likewise.
61266         * lib/argp-ba.c: Likewise.
61267         * lib/argp-eexst.c: Likewise.
61268         * lib/argp-fmtstream.c: Likewise.
61269         * lib/argp-fmtstream.h: Likewise.
61270         * lib/argp-fs-xinl.c: Likewise.
61271         * lib/argp-help.c: Likewise.
61272         * lib/argp-namefrob.h: Likewise.
61273         * lib/argp-parse.c: Likewise.
61274         * lib/argp-pin.c: Likewise.
61275         * lib/argp-pv.c: Likewise.
61276         * lib/argp-pvh.c: Likewise.
61277         * lib/argp-xinl.c: Likewise.
61278         * lib/argp.h: Likewise.
61279         * lib/at-func.c: Likewise.
61280         * lib/atanl.c: Likewise.
61281         * lib/backupfile.c: Likewise.
61282         * lib/backupfile.h: Likewise.
61283         * lib/basename.c: Likewise.
61284         * lib/binary-io.h: Likewise.
61285         * lib/byteswap.in.h: Likewise.
61286         * lib/c-stack.c: Likewise.
61287         * lib/c-stack.h: Likewise.
61288         * lib/c-strcasestr.c: Likewise.
61289         * lib/c-strcasestr.h: Likewise.
61290         * lib/c-strstr.c: Likewise.
61291         * lib/c-strstr.h: Likewise.
61292         * lib/c-strtod.c: Likewise.
61293         * lib/calloc.c: Likewise.
61294         * lib/canon-host.c: Likewise.
61295         * lib/canon-host.h: Likewise.
61296         * lib/canonicalize-lgpl.c: Likewise.
61297         * lib/canonicalize.c: Likewise.
61298         * lib/canonicalize.h: Likewise.
61299         * lib/ceil.c: Likewise.
61300         * lib/ceilf.c: Likewise.
61301         * lib/ceill.c: Likewise.
61302         * lib/chdir-long.c: Likewise.
61303         * lib/chdir-long.h: Likewise.
61304         * lib/chdir-safer.c: Likewise.
61305         * lib/chdir-safer.h: Likewise.
61306         * lib/chown.c: Likewise.
61307         * lib/classpath.c: Likewise.
61308         * lib/classpath.h: Likewise.
61309         * lib/clean-temp.c: Likewise.
61310         * lib/clean-temp.h: Likewise.
61311         * lib/cloexec.c: Likewise.
61312         * lib/close-stream.c: Likewise.
61313         * lib/closein.c: Likewise.
61314         * lib/closein.h: Likewise.
61315         * lib/closeout.c: Likewise.
61316         * lib/closeout.h: Likewise.
61317         * lib/concat-filename.c: Likewise.
61318         * lib/copy-file.c: Likewise.
61319         * lib/copy-file.h: Likewise.
61320         * lib/count-one-bits.h: Likewise.
61321         * lib/crc.c: Likewise.
61322         * lib/crc.h: Likewise.
61323         * lib/creat-safer.c: Likewise.
61324         * lib/csharpcomp.c: Likewise.
61325         * lib/csharpcomp.h: Likewise.
61326         * lib/csharpexec.c: Likewise.
61327         * lib/csharpexec.h: Likewise.
61328         * lib/cycle-check.c: Likewise.
61329         * lib/cycle-check.h: Likewise.
61330         * lib/diacrit.c: Likewise.
61331         * lib/diacrit.h: Likewise.
61332         * lib/diffseq.h: Likewise.
61333         * lib/dirchownmod.c: Likewise.
61334         * lib/dirent.in.h: Likewise.
61335         * lib/dirfd.c: Likewise.
61336         * lib/dirfd.h: Likewise.
61337         * lib/dirname.c: Likewise.
61338         * lib/dirname.h: Likewise.
61339         * lib/dummy.c: Likewise.
61340         * lib/dup-safer.c: Likewise.
61341         * lib/dup2.c: Likewise.
61342         * lib/eealloc.h: Likewise.
61343         * lib/error.c: Likewise.
61344         * lib/error.h: Likewise.
61345         * lib/euidaccess.c: Likewise.
61346         * lib/exclude.c: Likewise.
61347         * lib/exclude.h: Likewise.
61348         * lib/execute.c: Likewise.
61349         * lib/execute.h: Likewise.
61350         * lib/exitfail.c: Likewise.
61351         * lib/exitfail.h: Likewise.
61352         * lib/expl.c: Likewise.
61353         * lib/fatal-signal.c: Likewise.
61354         * lib/fatal-signal.h: Likewise.
61355         * lib/fbufmode.c: Likewise.
61356         * lib/fbufmode.h: Likewise.
61357         * lib/fchdir.c: Likewise.
61358         * lib/fchmodat.c: Likewise.
61359         * lib/fchownat.c: Likewise.
61360         * lib/fcntl--.h: Likewise.
61361         * lib/fcntl-safer.h: Likewise.
61362         * lib/fcntl.in.h: Likewise.
61363         * lib/fd-safer.c: Likewise.
61364         * lib/fflush.c: Likewise.
61365         * lib/file-has-acl.c: Likewise.
61366         * lib/file-set.c: Likewise.
61367         * lib/file-type.c: Likewise.
61368         * lib/file-type.h: Likewise.
61369         * lib/fileblocks.c: Likewise.
61370         * lib/filemode.c: Likewise.
61371         * lib/filemode.h: Likewise.
61372         * lib/filename.h: Likewise.
61373         * lib/filenamecat.c: Likewise.
61374         * lib/filenamecat.h: Likewise.
61375         * lib/findprog.c: Likewise.
61376         * lib/findprog.h: Likewise.
61377         * lib/float.in.h: Likewise.
61378         * lib/floor.c: Likewise.
61379         * lib/floorf.c: Likewise.
61380         * lib/floorl.c: Likewise.
61381         * lib/fopen-safer.c: Likewise.
61382         * lib/fopen.c: Likewise.
61383         * lib/fpending.c: Likewise.
61384         * lib/fpending.h: Likewise.
61385         * lib/fprintf.c: Likewise.
61386         * lib/fprintftime.h: Likewise.
61387         * lib/fpucw.h: Likewise.
61388         * lib/fpurge.c: Likewise.
61389         * lib/fpurge.h: Likewise.
61390         * lib/freadable.c: Likewise.
61391         * lib/freadable.h: Likewise.
61392         * lib/freadahead.c: Likewise.
61393         * lib/freadahead.h: Likewise.
61394         * lib/freading.c: Likewise.
61395         * lib/freading.h: Likewise.
61396         * lib/free.c: Likewise.
61397         * lib/freopen.c: Likewise.
61398         * lib/frexp.c: Likewise.
61399         * lib/frexpl.c: Likewise.
61400         * lib/fseek.c: Likewise.
61401         * lib/fseterr.c: Likewise.
61402         * lib/fseterr.h: Likewise.
61403         * lib/fstatat.c: Likewise.
61404         * lib/fstrcmp.c: Likewise.
61405         * lib/fstrcmp.h: Likewise.
61406         * lib/fsusage.c: Likewise.
61407         * lib/fsusage.h: Likewise.
61408         * lib/ftell.c: Likewise.
61409         * lib/ftello.c: Likewise.
61410         * lib/fts-cycle.c: Likewise.
61411         * lib/fts.c: Likewise.
61412         * lib/fts_.h: Likewise.
61413         * lib/full-read.c: Likewise.
61414         * lib/full-read.h: Likewise.
61415         * lib/full-write.c: Likewise.
61416         * lib/full-write.h: Likewise.
61417         * lib/fwritable.c: Likewise.
61418         * lib/fwritable.h: Likewise.
61419         * lib/fwriteerror.c: Likewise.
61420         * lib/fwriteerror.h: Likewise.
61421         * lib/fwriting.c: Likewise.
61422         * lib/fwriting.h: Likewise.
61423         * lib/gcd.c: Likewise.
61424         * lib/gcd.h: Likewise.
61425         * lib/getcwd.c: Likewise.
61426         * lib/getdate.h: Likewise.
61427         * lib/getdate.y: Likewise.
61428         * lib/getdomainname.c: Likewise.
61429         * lib/getdomainname.h: Likewise.
61430         * lib/getgroups.c: Likewise.
61431         * lib/gethostname.c: Likewise.
61432         * lib/gethrxtime.c: Likewise.
61433         * lib/gethrxtime.h: Likewise.
61434         * lib/getloadavg.c: Likewise.
61435         * lib/getndelim2.c: Likewise.
61436         * lib/getndelim2.h: Likewise.
61437         * lib/getnline.c: Likewise.
61438         * lib/getnline.h: Likewise.
61439         * lib/getopt.c: Likewise.
61440         * lib/getopt.in.h: Likewise.
61441         * lib/getopt1.c: Likewise.
61442         * lib/getopt_int.h: Likewise.
61443         * lib/getpagesize.h: Likewise.
61444         * lib/getsubopt.c: Likewise.
61445         * lib/gettime.c: Likewise.
61446         * lib/getugroups.c: Likewise.
61447         * lib/getugroups.h: Likewise.
61448         * lib/getusershell.c: Likewise.
61449         * lib/gl_anyavltree_list1.h: Likewise.
61450         * lib/gl_anyavltree_list2.h: Likewise.
61451         * lib/gl_anyhash_list1.h: Likewise.
61452         * lib/gl_anyhash_list2.h: Likewise.
61453         * lib/gl_anylinked_list1.h: Likewise.
61454         * lib/gl_anylinked_list2.h: Likewise.
61455         * lib/gl_anyrbtree_list1.h: Likewise.
61456         * lib/gl_anyrbtree_list2.h: Likewise.
61457         * lib/gl_anytree_list1.h: Likewise.
61458         * lib/gl_anytree_list2.h: Likewise.
61459         * lib/gl_anytree_oset.h: Likewise.
61460         * lib/gl_anytreehash_list1.h: Likewise.
61461         * lib/gl_anytreehash_list2.h: Likewise.
61462         * lib/gl_array_list.c: Likewise.
61463         * lib/gl_array_list.h: Likewise.
61464         * lib/gl_array_oset.c: Likewise.
61465         * lib/gl_array_oset.h: Likewise.
61466         * lib/gl_avltree_list.c: Likewise.
61467         * lib/gl_avltree_list.h: Likewise.
61468         * lib/gl_avltree_oset.c: Likewise.
61469         * lib/gl_avltree_oset.h: Likewise.
61470         * lib/gl_avltreehash_list.c: Likewise.
61471         * lib/gl_avltreehash_list.h: Likewise.
61472         * lib/gl_carray_list.c: Likewise.
61473         * lib/gl_carray_list.h: Likewise.
61474         * lib/gl_linked_list.c: Likewise.
61475         * lib/gl_linked_list.h: Likewise.
61476         * lib/gl_linkedhash_list.c: Likewise.
61477         * lib/gl_linkedhash_list.h: Likewise.
61478         * lib/gl_list.c: Likewise.
61479         * lib/gl_list.h: Likewise.
61480         * lib/gl_oset.c: Likewise.
61481         * lib/gl_oset.h: Likewise.
61482         * lib/gl_rbtree_list.c: Likewise.
61483         * lib/gl_rbtree_list.h: Likewise.
61484         * lib/gl_rbtree_oset.c: Likewise.
61485         * lib/gl_rbtree_oset.h: Likewise.
61486         * lib/gl_rbtreehash_list.c: Likewise.
61487         * lib/gl_rbtreehash_list.h: Likewise.
61488         * lib/gl_sublist.c: Likewise.
61489         * lib/gl_sublist.h: Likewise.
61490         * lib/group-member.c: Likewise.
61491         * lib/group-member.h: Likewise.
61492         * lib/hard-locale.c: Likewise.
61493         * lib/hard-locale.h: Likewise.
61494         * lib/hash-pjw.c: Likewise.
61495         * lib/hash-pjw.h: Likewise.
61496         * lib/hash-triple.c: Likewise.
61497         * lib/hash.c: Likewise.
61498         * lib/hash.h: Likewise.
61499         * lib/human.c: Likewise.
61500         * lib/human.h: Likewise.
61501         * lib/i-ring.c: Likewise.
61502         * lib/i-ring.h: Likewise.
61503         * lib/idcache.c: Likewise.
61504         * lib/imaxabs.c: Likewise.
61505         * lib/imaxdiv.c: Likewise.
61506         * lib/inet_pton.c: Likewise.
61507         * lib/inet_pton.h: Likewise.
61508         * lib/intprops.h: Likewise.
61509         * lib/inttostr.c: Likewise.
61510         * lib/inttostr.h: Likewise.
61511         * lib/inttypes.in.h: Likewise.
61512         * lib/isapipe.c: Likewise.
61513         * lib/isdir.c: Likewise.
61514         * lib/isnan.c: Likewise.
61515         * lib/isnan.h: Likewise.
61516         * lib/isnanf.c: Likewise.
61517         * lib/isnanf.h: Likewise.
61518         * lib/isnanl-nolibm.h: Likewise.
61519         * lib/isnanl.c: Likewise.
61520         * lib/isnanl.h: Likewise.
61521         * lib/javacomp.c: Likewise.
61522         * lib/javacomp.h: Likewise.
61523         * lib/javaexec.c: Likewise.
61524         * lib/javaexec.h: Likewise.
61525         * lib/javaversion.c: Likewise.
61526         * lib/javaversion.h: Likewise.
61527         * lib/javaversion.java: Likewise.
61528         * lib/lbrkprop.h: Likewise.
61529         * lib/lchmod.h: Likewise.
61530         * lib/lchown.c: Likewise.
61531         * lib/ldexpl.c: Likewise.
61532         * lib/linebreak.c: Likewise.
61533         * lib/linebreak.h: Likewise.
61534         * lib/linebuffer.c: Likewise.
61535         * lib/linebuffer.h: Likewise.
61536         * lib/locale.in.h: Likewise.
61537         * lib/logl.c: Likewise.
61538         * lib/long-options.c: Likewise.
61539         * lib/long-options.h: Likewise.
61540         * lib/lstat.c: Likewise.
61541         * lib/lstat.h: Likewise.
61542         * lib/math.in.h: Likewise.
61543         * lib/mbchar.c: Likewise.
61544         * lib/mbchar.h: Likewise.
61545         * lib/mbfile.h: Likewise.
61546         * lib/mbiter.h: Likewise.
61547         * lib/mbscasecmp.c: Likewise.
61548         * lib/mbscasestr.c: Likewise.
61549         * lib/mbschr.c: Likewise.
61550         * lib/mbscspn.c: Likewise.
61551         * lib/mbslen.c: Likewise.
61552         * lib/mbsncasecmp.c: Likewise.
61553         * lib/mbsnlen.c: Likewise.
61554         * lib/mbspbrk.c: Likewise.
61555         * lib/mbspcasecmp.c: Likewise.
61556         * lib/mbsrchr.c: Likewise.
61557         * lib/mbssep.c: Likewise.
61558         * lib/mbsspn.c: Likewise.
61559         * lib/mbsstr.c: Likewise.
61560         * lib/mbstok_r.c: Likewise.
61561         * lib/mbswidth.c: Likewise.
61562         * lib/mbswidth.h: Likewise.
61563         * lib/mbuiter.h: Likewise.
61564         * lib/memcasecmp.c: Likewise.
61565         * lib/memcasecmp.h: Likewise.
61566         * lib/memchr.c: Likewise.
61567         * lib/memcmp.c: Likewise.
61568         * lib/memcoll.c: Likewise.
61569         * lib/memcoll.h: Likewise.
61570         * lib/memcpy.c: Likewise.
61571         * lib/memrchr.c: Likewise.
61572         * lib/mkancesdirs.c: Likewise.
61573         * lib/mkdir-p.c: Likewise.
61574         * lib/mkdir-p.h: Likewise.
61575         * lib/mkdir.c: Likewise.
61576         * lib/mkdirat.c: Likewise.
61577         * lib/mkdtemp.c: Likewise.
61578         * lib/mkstemp-safer.c: Likewise.
61579         * lib/mkstemp.c: Likewise.
61580         * lib/modechange.c: Likewise.
61581         * lib/modechange.h: Likewise.
61582         * lib/mountlist.c: Likewise.
61583         * lib/mountlist.h: Likewise.
61584         * lib/mpsort.c: Likewise.
61585         * lib/nanosleep.c: Likewise.
61586         * lib/obstack.c: Likewise.
61587         * lib/obstack.h: Likewise.
61588         * lib/open-safer.c: Likewise.
61589         * lib/open.c: Likewise.
61590         * lib/openat-die.c: Likewise.
61591         * lib/openat-priv.h: Likewise.
61592         * lib/openat-proc.c: Likewise.
61593         * lib/openat.c: Likewise.
61594         * lib/openat.h: Likewise.
61595         * lib/pagealign_alloc.c: Likewise.
61596         * lib/pagealign_alloc.h: Likewise.
61597         * lib/physmem.c: Likewise.
61598         * lib/physmem.h: Likewise.
61599         * lib/pipe-safer.c: Likewise.
61600         * lib/pipe.c: Likewise.
61601         * lib/pipe.h: Likewise.
61602         * lib/posixtm.c: Likewise.
61603         * lib/posixtm.h: Likewise.
61604         * lib/posixver.c: Likewise.
61605         * lib/printf-frexp.c: Likewise.
61606         * lib/printf-frexp.h: Likewise.
61607         * lib/printf-frexpl.c: Likewise.
61608         * lib/printf-frexpl.h: Likewise.
61609         * lib/printf.c: Likewise.
61610         * lib/progname.c: Likewise.
61611         * lib/progname.h: Likewise.
61612         * lib/progreloc.c: Likewise.
61613         * lib/putenv.c: Likewise.
61614         * lib/quote.c: Likewise.
61615         * lib/quote.h: Likewise.
61616         * lib/quotearg.c: Likewise.
61617         * lib/quotearg.h: Likewise.
61618         * lib/raise.c: Likewise.
61619         * lib/readline.c: Likewise.
61620         * lib/readline.h: Likewise.
61621         * lib/readlink.c: Likewise.
61622         * lib/readtokens.c: Likewise.
61623         * lib/readtokens.h: Likewise.
61624         * lib/readtokens0.c: Likewise.
61625         * lib/readtokens0.h: Likewise.
61626         * lib/readutmp.c: Likewise.
61627         * lib/readutmp.h: Likewise.
61628         * lib/realloc.c: Likewise.
61629         * lib/relocwrapper.c: Likewise.
61630         * lib/rename-dest-slash.c: Likewise.
61631         * lib/rename.c: Likewise.
61632         * lib/rmdir.c: Likewise.
61633         * lib/rpmatch.c: Likewise.
61634         * lib/safe-read.c: Likewise.
61635         * lib/safe-read.h: Likewise.
61636         * lib/safe-write.c: Likewise.
61637         * lib/safe-write.h: Likewise.
61638         * lib/same-inode.h: Likewise.
61639         * lib/same.c: Likewise.
61640         * lib/same.h: Likewise.
61641         * lib/save-cwd.c: Likewise.
61642         * lib/save-cwd.h: Likewise.
61643         * lib/savedir.c: Likewise.
61644         * lib/savedir.h: Likewise.
61645         * lib/savewd.c: Likewise.
61646         * lib/savewd.h: Likewise.
61647         * lib/search.in.h: Likewise.
61648         * lib/setenv.c: Likewise.
61649         * lib/setenv.h: Likewise.
61650         * lib/settime.c: Likewise.
61651         * lib/sh-quote.c: Likewise.
61652         * lib/sh-quote.h: Likewise.
61653         * lib/sig2str.c: Likewise.
61654         * lib/sig2str.h: Likewise.
61655         * lib/signal.in.h: Likewise.
61656         * lib/signbitd.c: Likewise.
61657         * lib/signbitf.c: Likewise.
61658         * lib/signbitl.c: Likewise.
61659         * lib/sigprocmask.c: Likewise.
61660         * lib/sincosl.c: Likewise.
61661         * lib/sleep.c: Likewise.
61662         * lib/sprintf.c: Likewise.
61663         * lib/sqrtl.c: Likewise.
61664         * lib/stat-time.h: Likewise.
61665         * lib/stdio--.h: Likewise.
61666         * lib/stdio-safer.h: Likewise.
61667         * lib/stdlib--.h: Likewise.
61668         * lib/stdlib-safer.h: Likewise.
61669         * lib/stdlib.in.h: Likewise.
61670         * lib/stpcpy.c: Likewise.
61671         * lib/stpncpy.c: Likewise.
61672         * lib/strchrnul.c: Likewise.
61673         * lib/strcspn.c: Likewise.
61674         * lib/strerror.c: Likewise.
61675         * lib/strftime.c: Likewise.
61676         * lib/strftime.h: Likewise.
61677         * lib/striconveh.c: Likewise.
61678         * lib/striconveh.h: Likewise.
61679         * lib/striconveha.c: Likewise.
61680         * lib/striconveha.h: Likewise.
61681         * lib/stripslash.c: Likewise.
61682         * lib/strnlen1.c: Likewise.
61683         * lib/strnlen1.h: Likewise.
61684         * lib/strtod.c: Likewise.
61685         * lib/strtoimax.c: Likewise.
61686         * lib/strtok_r.c: Likewise.
61687         * lib/strtol.c: Likewise.
61688         * lib/strtoll.c: Likewise.
61689         * lib/strtoul.c: Likewise.
61690         * lib/strtoull.c: Likewise.
61691         * lib/sysexits.in.h: Likewise.
61692         * lib/tempname.c: Likewise.
61693         * lib/tempname.h: Likewise.
61694         * lib/timespec.h: Likewise.
61695         * lib/tls.c: Likewise.
61696         * lib/tls.h: Likewise.
61697         * lib/tmpdir.c: Likewise.
61698         * lib/tmpdir.h: Likewise.
61699         * lib/tmpfile-safer.c: Likewise.
61700         * lib/tmpfile.c: Likewise.
61701         * lib/trigl.c: Likewise.
61702         * lib/trigl.h: Likewise.
61703         * lib/trim.c: Likewise.
61704         * lib/trim.h: Likewise.
61705         * lib/trunc.c: Likewise.
61706         * lib/truncf.c: Likewise.
61707         * lib/truncl.c: Likewise.
61708         * lib/tsearch.c: Likewise.
61709         * lib/unicodeio.c: Likewise.
61710         * lib/unicodeio.h: Likewise.
61711         * lib/unistd--.h: Likewise.
61712         * lib/unistd-safer.h: Likewise.
61713         * lib/unistdio/ulc-fprintf.c: Likewise.
61714         * lib/unistdio/ulc-vfprintf.c: Likewise.
61715         * lib/unlinkdir.c: Likewise.
61716         * lib/unlinkdir.h: Likewise.
61717         * lib/unlocked-io.h: Likewise.
61718         * lib/unsetenv.c: Likewise.
61719         * lib/userspec.c: Likewise.
61720         * lib/utime.c: Likewise.
61721         * lib/utimecmp.c: Likewise.
61722         * lib/utimecmp.h: Likewise.
61723         * lib/utimens.c: Likewise.
61724         * lib/verify.h: Likewise.
61725         * lib/verror.c: Likewise.
61726         * lib/verror.h: Likewise.
61727         * lib/version-etc-fsf.c: Likewise.
61728         * lib/version-etc.c: Likewise.
61729         * lib/version-etc.h: Likewise.
61730         * lib/vfprintf.c: Likewise.
61731         * lib/vprintf.c: Likewise.
61732         * lib/vsprintf.c: Likewise.
61733         * lib/w32spawn.h: Likewise.
61734         * lib/wait-process.c: Likewise.
61735         * lib/wait-process.h: Likewise.
61736         * lib/wcwidth.c: Likewise.
61737         * lib/write-any-file.c: Likewise.
61738         * lib/xalloc-die.c: Likewise.
61739         * lib/xalloc.h: Likewise.
61740         * lib/xasprintf.c: Likewise.
61741         * lib/xgetcwd.c: Likewise.
61742         * lib/xgetcwd.h: Likewise.
61743         * lib/xgetdomainname.c: Likewise.
61744         * lib/xgetdomainname.h: Likewise.
61745         * lib/xgethostname.c: Likewise.
61746         * lib/xmalloc.c: Likewise.
61747         * lib/xmalloca.c: Likewise.
61748         * lib/xmalloca.h: Likewise.
61749         * lib/xmemcoll.c: Likewise.
61750         * lib/xnanosleep.c: Likewise.
61751         * lib/xreadlink.c: Likewise.
61752         * lib/xreadlink.h: Likewise.
61753         * lib/xsetenv.c: Likewise.
61754         * lib/xsetenv.h: Likewise.
61755         * lib/xstriconv.c: Likewise.
61756         * lib/xstriconv.h: Likewise.
61757         * lib/xstrndup.c: Likewise.
61758         * lib/xstrndup.h: Likewise.
61759         * lib/xstrtod.c: Likewise.
61760         * lib/xstrtod.h: Likewise.
61761         * lib/xstrtol-error.c: Likewise.
61762         * lib/xstrtol.c: Likewise.
61763         * lib/xstrtol.h: Likewise.
61764         * lib/xtime.h: Likewise.
61765         * lib/xvasprintf.c: Likewise.
61766         * lib/xvasprintf.h: Likewise.
61767         * lib/yesno.c: Likewise.
61768         * lib/yesno.h: Likewise.
61769         * posix-modules: Likewise.
61770         * tests/test-alloca-opt.c: Likewise.
61771         * tests/test-arcfour.c: Likewise.
61772         * tests/test-arctwo.c: Likewise.
61773         * tests/test-argmatch.c: Likewise.
61774         * tests/test-argp-2.sh: Likewise.
61775         * tests/test-argp.c: Likewise.
61776         * tests/test-arpa_inet.c: Likewise.
61777         * tests/test-array_list.c: Likewise.
61778         * tests/test-array_oset.c: Likewise.
61779         * tests/test-atexit.c: Likewise.
61780         * tests/test-avltree_list.c: Likewise.
61781         * tests/test-avltree_oset.c: Likewise.
61782         * tests/test-avltreehash_list.c: Likewise.
61783         * tests/test-base64.c: Likewise.
61784         * tests/test-binary-io.c: Likewise.
61785         * tests/test-byteswap.c: Likewise.
61786         * tests/test-c-ctype.c: Likewise.
61787         * tests/test-c-strcasecmp.c: Likewise.
61788         * tests/test-c-strcasestr.c: Likewise.
61789         * tests/test-c-strncasecmp.c: Likewise.
61790         * tests/test-c-strstr.c: Likewise.
61791         * tests/test-canonicalize-lgpl.c: Likewise.
61792         * tests/test-canonicalize.c: Likewise.
61793         * tests/test-carray_list.c: Likewise.
61794         * tests/test-ceilf.c: Likewise.
61795         * tests/test-ceill.c: Likewise.
61796         * tests/test-count-one-bits.c: Likewise.
61797         * tests/test-crc.c: Likewise.
61798         * tests/test-dirname.c: Likewise.
61799         * tests/test-fbufmode.c: Likewise.
61800         * tests/test-fcntl.c: Likewise.
61801         * tests/test-fflush.c: Likewise.
61802         * tests/test-floorf.c: Likewise.
61803         * tests/test-floorl.c: Likewise.
61804         * tests/test-fopen.c: Likewise.
61805         * tests/test-fprintf-posix.c: Likewise.
61806         * tests/test-fprintf-posix.h: Likewise.
61807         * tests/test-fpurge.c: Likewise.
61808         * tests/test-freadable.c: Likewise.
61809         * tests/test-freadahead.c: Likewise.
61810         * tests/test-freading.c: Likewise.
61811         * tests/test-freopen.c: Likewise.
61812         * tests/test-frexp.c: Likewise.
61813         * tests/test-frexpl.c: Likewise.
61814         * tests/test-fseek.c: Likewise.
61815         * tests/test-fseeko.c: Likewise.
61816         * tests/test-fseterr.c: Likewise.
61817         * tests/test-fstrcmp.c: Likewise.
61818         * tests/test-ftell.c: Likewise.
61819         * tests/test-ftello.c: Likewise.
61820         * tests/test-fwritable.c: Likewise.
61821         * tests/test-fwriting.c: Likewise.
61822         * tests/test-getaddrinfo.c: Likewise.
61823         * tests/test-getpass.c: Likewise.
61824         * tests/test-gettimeofday.c: Likewise.
61825         * tests/test-hmac-md5.c: Likewise.
61826         * tests/test-hmac-sha1.c: Likewise.
61827         * tests/test-iconv.c: Likewise.
61828         * tests/test-iconvme.c: Likewise.
61829         * tests/test-inttypes.c: Likewise.
61830         * tests/test-isnan.c: Likewise.
61831         * tests/test-isnanf.c: Likewise.
61832         * tests/test-isnanl-nolibm.c: Likewise.
61833         * tests/test-isnanl.c: Likewise.
61834         * tests/test-isnanl.h: Likewise.
61835         * tests/test-ldexpl.c: Likewise.
61836         * tests/test-linked_list.c: Likewise.
61837         * tests/test-linkedhash_list.c: Likewise.
61838         * tests/test-locale.c: Likewise.
61839         * tests/test-localename.c: Likewise.
61840         * tests/test-lock.c: Likewise.
61841         * tests/test-lseek.c: Likewise.
61842         * tests/test-malloca.c: Likewise.
61843         * tests/test-math.c: Likewise.
61844         * tests/test-mbscasecmp.c: Likewise.
61845         * tests/test-mbscasestr1.c: Likewise.
61846         * tests/test-mbscasestr2.c: Likewise.
61847         * tests/test-mbscasestr3.c: Likewise.
61848         * tests/test-mbscasestr4.c: Likewise.
61849         * tests/test-mbschr.c: Likewise.
61850         * tests/test-mbscspn.c: Likewise.
61851         * tests/test-mbsncasecmp.c: Likewise.
61852         * tests/test-mbspbrk.c: Likewise.
61853         * tests/test-mbspcasecmp.c: Likewise.
61854         * tests/test-mbsrchr.c: Likewise.
61855         * tests/test-mbsspn.c: Likewise.
61856         * tests/test-mbsstr1.c: Likewise.
61857         * tests/test-mbsstr2.c: Likewise.
61858         * tests/test-mbsstr3.c: Likewise.
61859         * tests/test-md5.c: Likewise.
61860         * tests/test-memmem.c: Likewise.
61861         * tests/test-netinet_in.c: Likewise.
61862         * tests/test-open.c: Likewise.
61863         * tests/test-printf-frexp.c: Likewise.
61864         * tests/test-printf-frexpl.c: Likewise.
61865         * tests/test-printf-posix.c: Likewise.
61866         * tests/test-printf-posix.h: Likewise.
61867         * tests/test-rbtree_list.c: Likewise.
61868         * tests/test-rbtree_oset.c: Likewise.
61869         * tests/test-rbtreehash_list.c: Likewise.
61870         * tests/test-read-file.c: Likewise.
61871         * tests/test-rijndael.c: Likewise.
61872         * tests/test-search.c: Likewise.
61873         * tests/test-signbit.c: Likewise.
61874         * tests/test-sleep.c: Likewise.
61875         * tests/test-snprintf-posix.c: Likewise.
61876         * tests/test-snprintf-posix.h: Likewise.
61877         * tests/test-snprintf.c: Likewise.
61878         * tests/test-sprintf-posix.c: Likewise.
61879         * tests/test-sprintf-posix.h: Likewise.
61880         * tests/test-stat-time.c: Likewise.
61881         * tests/test-stdbool.c: Likewise.
61882         * tests/test-stdint.c: Likewise.
61883         * tests/test-stdio.c: Likewise.
61884         * tests/test-stdlib.c: Likewise.
61885         * tests/test-stpncpy.c: Likewise.
61886         * tests/test-strcasestr.c: Likewise.
61887         * tests/test-striconv.c: Likewise.
61888         * tests/test-striconveh.c: Likewise.
61889         * tests/test-striconveha.c: Likewise.
61890         * tests/test-string.c: Likewise.
61891         * tests/test-sys_select.c: Likewise.
61892         * tests/test-sys_socket.c: Likewise.
61893         * tests/test-sys_stat.c: Likewise.
61894         * tests/test-sys_time.c: Likewise.
61895         * tests/test-sysexits.c: Likewise.
61896         * tests/test-time.c: Likewise.
61897         * tests/test-tls.c: Likewise.
61898         * tests/test-trunc.c: Likewise.
61899         * tests/test-truncf.c: Likewise.
61900         * tests/test-truncl.c: Likewise.
61901         * tests/test-unistd.c: Likewise.
61902         * tests/test-vasnprintf-posix.c: Likewise.
61903         * tests/test-vasnprintf-posix2.c: Likewise.
61904         * tests/test-vasnprintf.c: Likewise.
61905         * tests/test-vasprintf-posix.c: Likewise.
61906         * tests/test-vasprintf.c: Likewise.
61907         * tests/test-verify.c: Likewise.
61908         * tests/test-vfprintf-posix.c: Likewise.
61909         * tests/test-vprintf-posix.c: Likewise.
61910         * tests/test-vsnprintf-posix.c: Likewise.
61911         * tests/test-vsnprintf.c: Likewise.
61912         * tests/test-vsprintf-posix.c: Likewise.
61913         * tests/test-wchar.c: Likewise.
61914         * tests/test-wctype.c: Likewise.
61915         * tests/test-wcwidth.c: Likewise.
61916         * tests/test-xstrtol.c: Likewise.
61917         * tests/test-xvasprintf.c: Likewise.
61918         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61919         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61920         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61921         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61922         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61923         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61924         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61925         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61926         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61927         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61928         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61929         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61930         * tests/uniname/test-uninames.c: Likewise.
61931         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61932         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61933         * tests/unistdio/test-u16-printf1.h: Likewise.
61934         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61935         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61936         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61937         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61938         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61939         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61940         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61941         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61942         * tests/unistdio/test-u32-printf1.h: Likewise.
61943         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61944         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61945         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61946         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61947         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61948         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61949         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61950         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61951         * tests/unistdio/test-u8-printf1.h: Likewise.
61952         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61953         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61954         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61955         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61956         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61957         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61958         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61959         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61960         * tests/unistdio/test-ulc-printf1.h: Likewise.
61961         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61962         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61963         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61964         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61965         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61966         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61967         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61968         * tests/uniwidth/test-u16-width.c: Likewise.
61969         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61970         * tests/uniwidth/test-u32-width.c: Likewise.
61971         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61972         * tests/uniwidth/test-u8-width.c: Likewise.
61973         * tests/uniwidth/test-uc_width.c: Likewise.
61974         * config/srclist-update: Likewise.
61975         (fixlicense): Update to GPLv3+.
61976
61977         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61978         * tests/test-tsearch.c: Change copyright notice.
61979
61980         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61981         * lib/c-strcaseeq.h: Change copyright notice.
61982         * lib/streq.h: Likewise.
61983         * lib/uniconv.h: Likewise.
61984         * lib/uniconv/u-conv-from-enc.h: Likewise.
61985         * lib/uniconv/u-conv-to-enc.h: Likewise.
61986         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61987         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61988         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61989         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61990         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61991         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61992         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61993         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61994         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61995         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61996         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61997         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61998         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61999         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62000         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62001         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62002         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62003         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62004         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62005         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62006         * lib/uniname.h: Likewise.
62007         * lib/uniname/uniname.c: Likewise.
62008         * lib/unistdio.h: Likewise.
62009         * lib/unistdio/u-asnprintf.h: Likewise.
62010         * lib/unistdio/u-asprintf.h: Likewise.
62011         * lib/unistdio/u-printf-args.c: Likewise.
62012         * lib/unistdio/u-printf-args.h: Likewise.
62013         * lib/unistdio/u-printf-parse.h: Likewise.
62014         * lib/unistdio/u-snprintf.h: Likewise.
62015         * lib/unistdio/u-sprintf.h: Likewise.
62016         * lib/unistdio/u-vasprintf.h: Likewise.
62017         * lib/unistdio/u-vsnprintf.h: Likewise.
62018         * lib/unistdio/u-vsprintf.h: Likewise.
62019         * lib/unistdio/u16-asnprintf.c: Likewise.
62020         * lib/unistdio/u16-asprintf.c: Likewise.
62021         * lib/unistdio/u16-printf-parse.c: Likewise.
62022         * lib/unistdio/u16-snprintf.c: Likewise.
62023         * lib/unistdio/u16-sprintf.c: Likewise.
62024         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62025         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62026         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62027         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62028         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62029         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62030         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62031         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62032         * lib/unistdio/u16-vasnprintf.c: Likewise.
62033         * lib/unistdio/u16-vasprintf.c: Likewise.
62034         * lib/unistdio/u16-vsnprintf.c: Likewise.
62035         * lib/unistdio/u16-vsprintf.c: Likewise.
62036         * lib/unistdio/u32-asnprintf.c: Likewise.
62037         * lib/unistdio/u32-asprintf.c: Likewise.
62038         * lib/unistdio/u32-printf-parse.c: Likewise.
62039         * lib/unistdio/u32-snprintf.c: Likewise.
62040         * lib/unistdio/u32-sprintf.c: Likewise.
62041         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62042         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62043         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62044         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62045         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62046         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62047         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62048         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62049         * lib/unistdio/u32-vasnprintf.c: Likewise.
62050         * lib/unistdio/u32-vasprintf.c: Likewise.
62051         * lib/unistdio/u32-vsnprintf.c: Likewise.
62052         * lib/unistdio/u32-vsprintf.c: Likewise.
62053         * lib/unistdio/u8-asnprintf.c: Likewise.
62054         * lib/unistdio/u8-asprintf.c: Likewise.
62055         * lib/unistdio/u8-printf-parse.c: Likewise.
62056         * lib/unistdio/u8-snprintf.c: Likewise.
62057         * lib/unistdio/u8-sprintf.c: Likewise.
62058         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62059         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62060         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62061         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62062         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62063         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62064         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62065         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62066         * lib/unistdio/u8-vasnprintf.c: Likewise.
62067         * lib/unistdio/u8-vasprintf.c: Likewise.
62068         * lib/unistdio/u8-vsnprintf.c: Likewise.
62069         * lib/unistdio/u8-vsprintf.c: Likewise.
62070         * lib/unistdio/ulc-asnprintf.c: Likewise.
62071         * lib/unistdio/ulc-asprintf.c: Likewise.
62072         * lib/unistdio/ulc-printf-parse.c: Likewise.
62073         * lib/unistdio/ulc-snprintf.c: Likewise.
62074         * lib/unistdio/ulc-sprintf.c: Likewise.
62075         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62076         * lib/unistdio/ulc-vasprintf.c: Likewise.
62077         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62078         * lib/unistdio/ulc-vsprintf.c: Likewise.
62079         * lib/unistr.h: Likewise.
62080         * lib/unistr/u-cpy-alloc.h: Likewise.
62081         * lib/unistr/u-cpy.h: Likewise.
62082         * lib/unistr/u-endswith.h: Likewise.
62083         * lib/unistr/u-move.h: Likewise.
62084         * lib/unistr/u-set.h: Likewise.
62085         * lib/unistr/u-startswith.h: Likewise.
62086         * lib/unistr/u-stpcpy.h: Likewise.
62087         * lib/unistr/u-stpncpy.h: Likewise.
62088         * lib/unistr/u-strcat.h: Likewise.
62089         * lib/unistr/u-strcpy.h: Likewise.
62090         * lib/unistr/u-strcspn.h: Likewise.
62091         * lib/unistr/u-strdup.h: Likewise.
62092         * lib/unistr/u-strlen.h: Likewise.
62093         * lib/unistr/u-strncat.h: Likewise.
62094         * lib/unistr/u-strncpy.h: Likewise.
62095         * lib/unistr/u-strnlen.h: Likewise.
62096         * lib/unistr/u-strpbrk.h: Likewise.
62097         * lib/unistr/u-strspn.h: Likewise.
62098         * lib/unistr/u-strstr.h: Likewise.
62099         * lib/unistr/u-strtok.h: Likewise.
62100         * lib/unistr/u16-check.c: Likewise.
62101         * lib/unistr/u16-chr.c: Likewise.
62102         * lib/unistr/u16-cmp.c: Likewise.
62103         * lib/unistr/u16-cpy-alloc.c: Likewise.
62104         * lib/unistr/u16-cpy.c: Likewise.
62105         * lib/unistr/u16-endswith.c: Likewise.
62106         * lib/unistr/u16-mblen.c: Likewise.
62107         * lib/unistr/u16-mbsnlen.c: Likewise.
62108         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62109         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62110         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62111         * lib/unistr/u16-mbtouc.c: Likewise.
62112         * lib/unistr/u16-mbtoucr.c: Likewise.
62113         * lib/unistr/u16-move.c: Likewise.
62114         * lib/unistr/u16-next.c: Likewise.
62115         * lib/unistr/u16-prev.c: Likewise.
62116         * lib/unistr/u16-set.c: Likewise.
62117         * lib/unistr/u16-startswith.c: Likewise.
62118         * lib/unistr/u16-stpcpy.c: Likewise.
62119         * lib/unistr/u16-stpncpy.c: Likewise.
62120         * lib/unistr/u16-strcat.c: Likewise.
62121         * lib/unistr/u16-strchr.c: Likewise.
62122         * lib/unistr/u16-strcmp.c: Likewise.
62123         * lib/unistr/u16-strcpy.c: Likewise.
62124         * lib/unistr/u16-strcspn.c: Likewise.
62125         * lib/unistr/u16-strdup.c: Likewise.
62126         * lib/unistr/u16-strlen.c: Likewise.
62127         * lib/unistr/u16-strmblen.c: Likewise.
62128         * lib/unistr/u16-strmbtouc.c: Likewise.
62129         * lib/unistr/u16-strncat.c: Likewise.
62130         * lib/unistr/u16-strncmp.c: Likewise.
62131         * lib/unistr/u16-strncpy.c: Likewise.
62132         * lib/unistr/u16-strnlen.c: Likewise.
62133         * lib/unistr/u16-strpbrk.c: Likewise.
62134         * lib/unistr/u16-strrchr.c: Likewise.
62135         * lib/unistr/u16-strspn.c: Likewise.
62136         * lib/unistr/u16-strstr.c: Likewise.
62137         * lib/unistr/u16-strtok.c: Likewise.
62138         * lib/unistr/u16-to-u32.c: Likewise.
62139         * lib/unistr/u16-to-u8.c: Likewise.
62140         * lib/unistr/u16-uctomb-aux.c: Likewise.
62141         * lib/unistr/u16-uctomb.c: Likewise.
62142         * lib/unistr/u32-check.c: Likewise.
62143         * lib/unistr/u32-chr.c: Likewise.
62144         * lib/unistr/u32-cmp.c: Likewise.
62145         * lib/unistr/u32-cpy-alloc.c: Likewise.
62146         * lib/unistr/u32-cpy.c: Likewise.
62147         * lib/unistr/u32-endswith.c: Likewise.
62148         * lib/unistr/u32-mblen.c: Likewise.
62149         * lib/unistr/u32-mbsnlen.c: Likewise.
62150         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62151         * lib/unistr/u32-mbtouc.c: Likewise.
62152         * lib/unistr/u32-mbtoucr.c: Likewise.
62153         * lib/unistr/u32-move.c: Likewise.
62154         * lib/unistr/u32-next.c: Likewise.
62155         * lib/unistr/u32-prev.c: Likewise.
62156         * lib/unistr/u32-set.c: Likewise.
62157         * lib/unistr/u32-startswith.c: Likewise.
62158         * lib/unistr/u32-stpcpy.c: Likewise.
62159         * lib/unistr/u32-stpncpy.c: Likewise.
62160         * lib/unistr/u32-strcat.c: Likewise.
62161         * lib/unistr/u32-strchr.c: Likewise.
62162         * lib/unistr/u32-strcmp.c: Likewise.
62163         * lib/unistr/u32-strcpy.c: Likewise.
62164         * lib/unistr/u32-strcspn.c: Likewise.
62165         * lib/unistr/u32-strdup.c: Likewise.
62166         * lib/unistr/u32-strlen.c: Likewise.
62167         * lib/unistr/u32-strmblen.c: Likewise.
62168         * lib/unistr/u32-strmbtouc.c: Likewise.
62169         * lib/unistr/u32-strncat.c: Likewise.
62170         * lib/unistr/u32-strncmp.c: Likewise.
62171         * lib/unistr/u32-strncpy.c: Likewise.
62172         * lib/unistr/u32-strnlen.c: Likewise.
62173         * lib/unistr/u32-strpbrk.c: Likewise.
62174         * lib/unistr/u32-strrchr.c: Likewise.
62175         * lib/unistr/u32-strspn.c: Likewise.
62176         * lib/unistr/u32-strstr.c: Likewise.
62177         * lib/unistr/u32-strtok.c: Likewise.
62178         * lib/unistr/u32-to-u16.c: Likewise.
62179         * lib/unistr/u32-to-u8.c: Likewise.
62180         * lib/unistr/u32-uctomb.c: Likewise.
62181         * lib/unistr/u8-check.c: Likewise.
62182         * lib/unistr/u8-chr.c: Likewise.
62183         * lib/unistr/u8-cmp.c: Likewise.
62184         * lib/unistr/u8-cpy-alloc.c: Likewise.
62185         * lib/unistr/u8-cpy.c: Likewise.
62186         * lib/unistr/u8-endswith.c: Likewise.
62187         * lib/unistr/u8-mblen.c: Likewise.
62188         * lib/unistr/u8-mbsnlen.c: Likewise.
62189         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62190         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62191         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62192         * lib/unistr/u8-mbtouc.c: Likewise.
62193         * lib/unistr/u8-mbtoucr.c: Likewise.
62194         * lib/unistr/u8-move.c: Likewise.
62195         * lib/unistr/u8-next.c: Likewise.
62196         * lib/unistr/u8-prev.c: Likewise.
62197         * lib/unistr/u8-set.c: Likewise.
62198         * lib/unistr/u8-startswith.c: Likewise.
62199         * lib/unistr/u8-stpcpy.c: Likewise.
62200         * lib/unistr/u8-stpncpy.c: Likewise.
62201         * lib/unistr/u8-strcat.c: Likewise.
62202         * lib/unistr/u8-strchr.c: Likewise.
62203         * lib/unistr/u8-strcmp.c: Likewise.
62204         * lib/unistr/u8-strcpy.c: Likewise.
62205         * lib/unistr/u8-strcspn.c: Likewise.
62206         * lib/unistr/u8-strdup.c: Likewise.
62207         * lib/unistr/u8-strlen.c: Likewise.
62208         * lib/unistr/u8-strmblen.c: Likewise.
62209         * lib/unistr/u8-strmbtouc.c: Likewise.
62210         * lib/unistr/u8-strncat.c: Likewise.
62211         * lib/unistr/u8-strncmp.c: Likewise.
62212         * lib/unistr/u8-strncpy.c: Likewise.
62213         * lib/unistr/u8-strnlen.c: Likewise.
62214         * lib/unistr/u8-strpbrk.c: Likewise.
62215         * lib/unistr/u8-strrchr.c: Likewise.
62216         * lib/unistr/u8-strspn.c: Likewise.
62217         * lib/unistr/u8-strstr.c: Likewise.
62218         * lib/unistr/u8-strtok.c: Likewise.
62219         * lib/unistr/u8-to-u16.c: Likewise.
62220         * lib/unistr/u8-to-u32.c: Likewise.
62221         * lib/unistr/u8-uctomb-aux.c: Likewise.
62222         * lib/unistr/u8-uctomb.c: Likewise.
62223         * lib/unitypes.h: Likewise.
62224         * lib/uniwidth.h: Likewise.
62225         * lib/uniwidth/cjk.h: Likewise.
62226         * lib/uniwidth/u16-strwidth.c: Likewise.
62227         * lib/uniwidth/u16-width.c: Likewise.
62228         * lib/uniwidth/u32-strwidth.c: Likewise.
62229         * lib/uniwidth/u32-width.c: Likewise.
62230         * lib/uniwidth/u8-strwidth.c: Likewise.
62231         * lib/uniwidth/u8-width.c: Likewise.
62232         * lib/uniwidth/width.c: Likewise.
62233
62234 2007-10-07  Bruno Haible  <bruno@clisp.org>
62235
62236         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62237         The file is still under LGPL (see modules/inttypes).
62238
62239 2007-10-06  Bruno Haible  <bruno@clisp.org>
62240
62241         * modules/trunc (Dependencies): Add 'extensions'.
62242         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62243         Reported by Ben Pfaff <blp@gnu.org>.
62244
62245 2007-10-06  Bruno Haible  <bruno@clisp.org>
62246
62247         * modules/freopen-tests: New file.
62248         * tests/test-freopen.c: New file.
62249
62250         * modules/fopen-tests: New file.
62251         * tests/test-fopen.c: New file.
62252
62253         * modules/fopen: New file.
62254         * lib/fopen.c: New file.
62255         * m4/fopen.m4: New file.
62256         * modules/freopen: New file.
62257         * lib/freopen.c: New file.
62258         * m4/freopen.m4: New file.
62259         * lib/stdio.in.h (fopen, freopen): New declarations.
62260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62261         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62262         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62263         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62264         * doc/functions/fopen.texi: Mention the 'fopen' module.
62265         * doc/functions/freopen.texi: Mention the 'freopen' module.
62266
62267 2007-10-06  Bruno Haible  <bruno@clisp.org>
62268
62269         * modules/open-tests: New file.
62270         * tests/test-open.c: New file.
62271
62272         * modules/open: New file.
62273         * lib/open.c: New file.
62274         * m4/open.m4: New file.
62275         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62276         lib/open.c does.
62277         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62278         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62279         macros.
62280         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62281         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62282         REPLACE_OPEN.
62283         * doc/functions/open.texi: Mention the 'open' module.
62284
62285 2007-10-04  Bruno Haible  <bruno@clisp.org>
62286
62287         * modules/ceill-tests: New file.
62288         * tests/test-ceill.c: New file.
62289
62290         * modules/ceill: New file.
62291         * lib/ceill.c: Replace entire file.
62292         * m4/ceill.m4: New file.
62293         * lib/math.in.h (ceill): Replace declaration.
62294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62295         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62296         * doc/functions/ceill.texi: Mention the 'ceill' module.
62297         * modules/mathl (Files): Remove lib/ceill.c.
62298         (Depends-on): Add ceill.
62299
62300 2007-10-04  Bruno Haible  <bruno@clisp.org>
62301
62302         * modules/ceilf-tests: New file.
62303         * tests/test-ceilf.c: New file.
62304
62305         * modules/ceilf: New file.
62306         * lib/ceil.c: New file.
62307         * lib/ceilf.c: New file.
62308         * m4/ceilf.m4: New file.
62309         * lib/math.in.h (ceilf): New declaration.
62310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62311         HAVE_DECL_CEILF.
62312         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62313         HAVE_DECL_CEILF.
62314         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62315
62316 2007-10-04  Bruno Haible  <bruno@clisp.org>
62317
62318         * modules/floorl-tests: New file.
62319         * tests/test-floorl.c: New file.
62320
62321         * modules/floorl: New file.
62322         * lib/floorl.c: Replace entire file.
62323         * m4/floorl.m4: New file.
62324         * lib/math.in.h (floorl): Replace declaration.
62325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62326         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62327         * doc/functions/floorl.texi: Mention the 'floorl' module.
62328         * modules/mathl (Files): Remove lib/floorl.c.
62329         (Depends-on): Add floorl.
62330
62331 2007-10-04  Bruno Haible  <bruno@clisp.org>
62332
62333         * modules/floorf-tests: New file.
62334         * tests/test-floorf.c: New file.
62335
62336         * modules/floorf: New file.
62337         * lib/floor.c: New file.
62338         * lib/floorf.c: New file.
62339         * m4/floorf.m4: New file.
62340         * lib/math.in.h (floorf): New declaration.
62341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62342         HAVE_DECL_FLOORF.
62343         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62344         HAVE_DECL_FLOORF.
62345         * doc/functions/floorf.texi: Mention the 'floorf' module.
62346
62347 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62348             Bruno Haible  <bruno@clisp.org>
62349
62350         Advertise for the Git server instead of the CVS server.
62351         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62352         repository instead of the CVS one.
62353         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62354         about all VCS systems generically.
62355         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62356
62357 2007-10-04  Bruno Haible  <bruno@clisp.org>
62358
62359         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62360         means.
62361         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62362
62363 2007-10-04  Bruno Haible  <bruno@clisp.org>
62364
62365         * modules/truncl-tests: New file.
62366         * tests/test-truncl.c: New file.
62367
62368         * modules/truncl: New file.
62369         * lib/truncl.c: New file.
62370         * m4/truncl.m4: New file.
62371         * lib/math.in.h (truncl): New declaration.
62372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62373         HAVE_DECL_TRUNCL.
62374         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62375         HAVE_DECL_TRUNCL.
62376         * doc/functions/truncl.texi: Mention the 'truncl' module.
62377
62378 2007-10-04  Bruno Haible  <bruno@clisp.org>
62379
62380         * modules/truncf-tests: New file.
62381         * tests/test-truncf.c: New file.
62382
62383         * modules/truncf: New file.
62384         * lib/trunc.c: Make paramerizable through USE_* macros.
62385         * lib/truncf.c: New file.
62386         * m4/truncf.m4: New file.
62387         * lib/math.in.h (truncf): New declaration.
62388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62389         HAVE_DECL_TRUNCF.
62390         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62391         HAVE_DECL_TRUNCF.
62392         * doc/functions/truncf.texi: Mention the 'truncf' module.
62393
62394 2007-10-03  Bruno Haible  <bruno@clisp.org>
62395
62396         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62397         augmentation also for tests modules.
62398         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62399         * modules/atexit-tests (Makefile.am): Likewise.
62400         * modules/binary-io-tests (Makefile.am): Likewise.
62401         * modules/c-strcase-tests (Makefile.am): Likewise.
62402         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62403         * modules/canonicalize-tests (Makefile.am): Likewise.
62404         * modules/closein-tests (Makefile.am): Likewise.
62405         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62406         * modules/freadahead-tests (Makefile.am): Likewise.
62407         * modules/fseek-tests (Makefile.am): Likewise.
62408         * modules/fseeko-tests (Makefile.am): Likewise.
62409         * modules/ftell-tests (Makefile.am): Likewise.
62410         * modules/ftello-tests (Makefile.am): Likewise.
62411         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62412         * modules/isnanl-tests (Makefile.am): Likewise.
62413         * modules/lseek-tests (Makefile.am): Likewise.
62414         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62415         * modules/mbscasestr-tests (Makefile.am): Likewise.
62416         * modules/mbschr-tests (Makefile.am): Likewise.
62417         * modules/mbscspn-tests (Makefile.am): Likewise.
62418         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62419         * modules/mbspbrk-tests (Makefile.am): Likewise.
62420         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62421         * modules/mbsrchr-tests (Makefile.am): Likewise.
62422         * modules/mbsspn-tests (Makefile.am): Likewise.
62423         * modules/mbsstr-tests (Makefile.am): Likewise.
62424         * modules/printf-posix-tests (Makefile.am): Likewise.
62425         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62426         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62427         * modules/tsearch-tests (Makefile.am): Likewise.
62428         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62429         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62430         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62431         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62432         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62433         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62434         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62435         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62436         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62437         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62438         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62439         * modules/xstrtol-tests (Makefile.am): Likewise.
62440         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62441         * modules/yesno-tests (Makefile.am): Likewise.
62442
62443 2007-10-03  Bruno Haible  <bruno@clisp.org>
62444
62445         * modules/trunc-tests: New file.
62446         * tests/test-trunc.c: New file.
62447
62448         * modules/trunc: New file.
62449         * lib/trunc.c: New file.
62450         * m4/trunc.m4: New file.
62451         * lib/math.in.h (trunc): New declaration.
62452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62453         HAVE_DECL_TRUNC.
62454         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62455         HAVE_DECL_TRUNC.
62456         * doc/functions/trunc.texi: Mention the 'trunc' module.
62457
62458 2007-10-03  Bruno Haible  <bruno@clisp.org>
62459
62460         * tests/test-fpending.c: New file, mostly copied
62461         from coreutils/lib/t-fpending.c.
62462         * modules/fpending-tests: New file.
62463
62464 2007-10-03  Bruno Haible  <bruno@clisp.org>
62465
62466         Port the stdio extensions to QNX (untested).
62467         * lib/fseterr.c (fseterr): Add support for QNX.
62468         * lib/fbufmode.c (fbufmode): Likewise.
62469         * lib/freadable.c (freadable): Likewise.
62470         * lib/fwritable.c (fwritable): Likewise.
62471         * lib/freading.c (freading): Likewise.
62472         * lib/fwriting.c (fwriting): Likewise.
62473         * lib/freadahead.c (freadahed): Likewise.
62474         * lib/fpurge.c (fpurge): Likewise.
62475         * lib/fseeko.c (rpl_fseeko): Likewise.
62476
62477 2007-10-03  Bruno Haible  <bruno@clisp.org>
62478             Jim Meyering  <jim@meyering.net>
62479             Eric Blake  <ebb9@byu.net>
62480
62481         * doc/relocatable.texi: Use @command instead of @program.
62482
62483 2007-10-02  Jim Meyering  <jim@meyering.net>
62484
62485         Perform one more "_.h" -> ".in.h" substitution.
62486         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62487         instead of unistd_.h here, too.
62488
62489 2007-10-01  Bruno Haible  <bruno@clisp.org>
62490
62491         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62492         Needed for the alloca-opt module.
62493
62494 2007-09-30  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62497         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62498         alloca_.h.
62499         * lib/argz.in.h: Renamed from lib/argz_.h.
62500         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62501         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62502         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62503         byteswap_.h.
62504         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62505         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62506         dirent_.h.
62507         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62508         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62509         fcntl_.h.
62510         * lib/float.in.h: Renamed from lib/float_.h.
62511         * modules/float (Files, Makefile.am): Use float.in.h instead of
62512         float_.h.
62513         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62514         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62515         fnmatch_.h.
62516         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62517         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62518         getopt_.h.
62519         * lib/glob.in.h: Renamed from lib/glob_.h.
62520         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62521         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62522         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62523         iconv_.h.
62524         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62525         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62526         inttypes_.h.
62527         * lib/locale.in.h: Renamed from lib/locale_.h.
62528         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62529         locale_.h.
62530         * lib/math.in.h: Renamed from lib/math_.h.
62531         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62532         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62533         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62534         of netinet_in_.h. Add dependency.
62535         * lib/poll.in.h: Renamed from lib/poll_.h.
62536         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62537         * lib/search.in.h: Renamed from lib/search_.h.
62538         * modules/search (Files, Makefile.am): Use search.in.h instead of
62539         search_.h.
62540         * lib/signal.in.h: Renamed from lib/signal_.h.
62541         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62542         _signal.h.
62543         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62544         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62545         stdbool_.h.
62546         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62547         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62548         stdint_.h.
62549         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62550         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62551         stdio_.h.
62552         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62553         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62554         stdlib_.h.
62555         * lib/string.in.h: Renamed from lib/string_.h.
62556         * modules/string (Files, Makefile.am): Use string.in.h instead of
62557         string_.h.
62558         * doc/gnulib-tool.texi (Initial import): Update.
62559         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62560         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62561         of sys_select_.h. Add dependency.
62562         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62563         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62564         of sys_socket_.h.
62565         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62566         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62567         sys_stat_.h.
62568         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62569         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62570         sys_time_.h.
62571         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62572         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62573         sysexits_.h.
62574         * lib/time.in.h: Renamed from lib/time_.h.
62575         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62576         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62577         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62578         unistd_.h.
62579         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62580         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62581         wchar_.h.
62582         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62583         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62584         wctype_.h.
62585         * build-aux/bootstrap (slurp): Update.
62586         * lib/.cppi-disable: Update.
62587
62588 2007-09-30  Bruno Haible  <bruno@clisp.org>
62589
62590         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62591         Needed on BeOS.
62592
62593 2007-09-30  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62596
62597 2007-09-29  Bruno Haible  <bruno@clisp.org>
62598
62599         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62600
62601 2007-09-29  Bruno Haible  <bruno@clisp.org>
62602
62603         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62604         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62605         * build-aux/install-reloc: Compile also areadlink.c.
62606         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62607
62608 2007-09-29  Bruno Haible  <bruno@clisp.org>
62609
62610         * gnulib-tool (func_emit_initmacro_done): Indentation.
62611
62612 2007-09-29  Bruno Haible  <bruno@clisp.org>
62613
62614         * README: Add CVS checkout update instructions.
62615         Info from Bob Proulx <bob@proulx.com>.
62616
62617 2007-09-28  Eric Blake  <ebb9@byu.net>
62618
62619         Provide move-if-change.
62620         * build-aux/move-if-change: New file, based on best practice
62621         rather than any canonical upstream location.
62622
62623 2007-09-28  Jim Meyering  <jim@meyering.net>
62624
62625         Fix canonicalize loop-detection corner case.
62626         Do not attempt to stat the symlink values stored via seen_triple.
62627         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62628         on linux-2.6.18, (but not 2.6.22).
62629         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62630         triple_compare.  The former compares dev,ino,filename, while the latter
62631         would actually stat dirname(filename) when dev and ino were equal.
62632         * lib/hash-triple.c: Install <string.h>.
62633         (STREQ): Define.
62634         (triple_compare_ino_str): New function.
62635         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62636
62637 2007-09-28  Eric Blake  <ebb9@byu.net>
62638
62639         Enforce that AC_REPLACE_FUNCS files exist.
62640         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62641         override check for typos.
62642
62643         Fix test-closein on Solaris 10.
62644         * tests/test-closein.c (main): Don't assume stdin can be inherited
62645         closed on all systems.
62646         * tests/test-closein.sh: Likewise.
62647         Reported by Piotr Tarnowski.
62648
62649 2007-09-28  Jim Meyering  <jim@meyering.net>
62650
62651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62652
62653 2007-09-27  Jim Meyering  <jim@meyering.net>
62654
62655         canonicalize: Avoid a false-positive cycle failure.
62656         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62657         Sort.  Remove cycle-check.
62658         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62659         not cycle-check.h.
62660         (seen_triple): New function.
62661         (canonicalize_filename_mode): Use it instead of cycle-check.
62662         * tests/test-canonicalize.c: Add a test for this bug.
62663         * tests/test-canonicalize.sh: Set up and run the test.
62664
62665         New module, file-set, from coreutils.
62666         * modules/file-set: Define it.
62667         * lib/file-set.c, lib/file-set.h: Implement.
62668
62669         New module, hash-triple, from coreutils.
62670         * modules/hash-triple: Define it.
62671         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62672
62673 2007-09-25  Eric Blake  <ebb9@byu.net>
62674
62675         Fix strerror on Interix.
62676         * lib/string_.h (strerror): Declare replacement.
62677         * doc/functions/strerror.texi (strerror): Document the Interix
62678         shortcoming.
62679         * modules/string (Makefile.am): Support new hooks.
62680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62681         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62682         gl_FUNC_STRERROR_SEPARATE.
62683         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62684         * lib/strerror.c (rpl_strerror): Provide replacement.
62685         * modules/strerror (Depends-on): Add string.
62686         (configure.ac): Detect use of module.
62687         * tests/test-strerror.c: New file.
62688         * modules/strerror-tests: New test module.
62689         * modules/argp (Depends-on): Add strerror.
62690         * modules/error (Depends-on): Likewise.
62691         Reported by Martin Koeppe.
62692
62693 2007-09-24  Bruno Haible  <bruno@clisp.org>
62694
62695         * README: Update git instructions.
62696
62697 2007-09-24  Eric Blake  <ebb9@byu.net>
62698
62699         Revert fpending breakage from 2007-09-08.
62700         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62701         __fpending.c.
62702
62703 2007-09-24  Jim Meyering  <jim@meyering.net>
62704
62705         filenamecat.c: Add a test.
62706         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62707         showing how the function works when DIR is the empty string.
62708
62709 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62710
62711         * tests/test-canonicalize.sh: Turn on executable bit.
62712
62713 2007-09-19  Eric Blake  <ebb9@byu.net>
62714
62715         * README: Update CVS instructions.
62716
62717 2007-09-18  Bruno Haible  <bruno@clisp.org>
62718
62719         * modules/areadlink: New file.
62720         * lib/areadlink.h (areadlink): New declaration.
62721         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62722
62723 2007-09-17  Jim Meyering  <jim@meyering.net>
62724
62725         * lib/savewd.c (ESTALE) [!defined]: Define.
62726         Reported to be required on Interix by Martin Koeppe.
62727
62728 2007-09-17  Bruno Haible  <bruno@clisp.org>
62729
62730         * gnulib-tool (func_version): Use $version.
62731
62732 2007-09-16  Bruno Haible  <bruno@clisp.org>
62733
62734         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62735         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62736         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62737         Reported by Greg Schafer <gschafer@zip.com.au>.
62738
62739 2007-09-15  Bruno Haible  <bruno@clisp.org>
62740
62741         * gnulib-tool (sed): Try a little harder to make bash understand the
62742         alias.
62743         Reported by Bruce Korb <bruce.korb@gmail.com>.
62744
62745 2007-09-13  Eric Blake  <ebb9@byu.net>
62746
62747         * ChangeLog: Remove conflict markers.
62748
62749 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62750
62751         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62752         Reported by Bruno Haible <bruno@clisp.org>.
62753
62754 2007-09-12  Bruno Haible  <bruno@clisp.org>
62755
62756         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62757         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62758         is not defined.
62759
62760 2007-09-12  Eric Blake  <ebb9@byu.net>
62761
62762         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62763         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62764         Autoconf definition.
62765         * modules/euidaccess (Depends-on): Add extensions, for
62766         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62767         * modules/fnmatch (Depends-on): Likewise.
62768         * modules/getaddrinfo (Depends-on): Likewise.
62769         * modules/getdelim (Depends-on): Likewise.
62770         * modules/getline (Depends-on): Likewise.
62771         * modules/getsubopt (Depends-on): Likewise.
62772         * modules/gettext (Depends-on): Likewise.
62773         * modules/group-member (Depends-on): Likewise.
62774         * modules/mbchar (Depends-on): Likewise.
62775         * modules/memmem (Depends-on): Likewise.
62776         * modules/mempcpy (Depends-on): Likewise.
62777         * modules/memrchr (Depends-on): Likewise.
62778         * modules/pagealign_alloc (Depends-on): Likewise.
62779         * modules/readutmp (Depends-on): Likewise.
62780         * modules/stpcpy (Depends-on): Likewise.
62781         * modules/stpncpy (Depends-on): Likewise.
62782         * modules/strchrnul (Depends-on): Likewise.
62783         * modules/strndup (Depends-on): Likewise.
62784         * modules/strsep (Depends-on): Likewise.
62785         * modules/strverscmp (Depends-on): Likewise.
62786         * modules/vasprintf (Depends-on): Likewise.
62787         * modules/wcwidth (Depends-on): Likewise.
62788         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62789         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62790         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62791         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62792         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62793         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62794         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62795         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62796         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62797         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62798         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62799         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62800         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62801         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62802         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62803         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62804         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62805         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62806         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62807         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62809         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62810         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62811         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62812         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62814         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62815         so that lock.m4 can be used in gettext without extensions module.
62816
62817 2007-09-11  Bruno Haible  <bruno@clisp.org>
62818
62819         * m4/isc-posix.m4: Remove file.
62820         Suggested by Eric Blake.
62821
62822 2007-09-11  Eric Blake  <ebb9@byu.net>
62823
62824         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62825
62826 2007-09-10  Bruno Haible  <bruno@clisp.org>
62827
62828         * posix-modules: Fix typo in error message.
62829         Reported by Matt <mkraai@beckman.com>.
62830
62831 2007-09-09  Bruno Haible  <bruno@clisp.org>
62832
62833         * doc/functions/getdelim.texi: Update list of platforms lacking the
62834         function.
62835         * doc/functions/getline.texi: Likewise.
62836
62837 2007-09-09  Jim Meyering  <jim@meyering.net>
62838
62839         * lib/hash.c (hash_initialize): Detect calloc failure.
62840         Reported by Bruno Haible.
62841
62842 2007-09-09  Bruno Haible  <bruno@clisp.org>
62843
62844         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62845         malloc or realloc fails.
62846
62847 2007-09-09  Bruno Haible  <bruno@clisp.org>
62848
62849         * modules/getcwd (Depends-on): Add malloc-posix.
62850         * modules/glob (Depends-on): Likewise.
62851         * modules/putenv (Depends-on): Likewise.
62852         * modules/strdup (Depends-on): Likewise.
62853         * modules/getdelim (Depends-on): Add realloc-posix.
62854         * modules/read-file (Depends-on): Likewise.
62855
62856 2007-09-09  Bruno Haible  <bruno@clisp.org>
62857
62858         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62859         (gl_FUNC_MALLOC_POSIX): Require it.
62860         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62861         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62862         * modules/realloc (Files): Add m4/malloc.m4.
62863         * modules/calloc (Files): Likewise.
62864
62865 2007-09-09  Bruno Haible  <bruno@clisp.org>
62866
62867         * modules/malloc-posix: New file.
62868         * modules/malloc (Depends-on): Add malloc-posix.
62869         * lib/malloc.c: Include errno.h.
62870         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62871         and a POSIX-compatible malloc into a single function. Set ENOMEM
62872         when returning NULL.
62873         * m4/malloc.m4: New file.
62874         * doc/functions/malloc.texi: Mention the malloc-posix module.
62875         * lib/stdlib_.h (malloc): New declaration.
62876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62877         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62878         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62879         and HAVE_MALLOC_POSIX.
62880
62881 2007-09-09  Bruno Haible  <bruno@clisp.org>
62882
62883         * modules/realloc-posix: New file.
62884         * modules/realloc (Depends-on): Add realloc-posix.
62885         * lib/realloc.c: Include errno.h.
62886         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62887         and a POSIX-compatible realloc into a single function. Set ENOMEM
62888         when returning NULL.
62889         * m4/realloc.m4: New file.
62890         * doc/functions/realloc.texi: Mention the realloc-posix module.
62891         * lib/stdlib_.h (realloc): New declaration.
62892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62893         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62894         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62895         and HAVE_REALLOC_POSIX.
62896
62897 2007-09-09  Bruno Haible  <bruno@clisp.org>
62898
62899         * modules/calloc-posix: New file.
62900         * modules/calloc (Depends-on): Add calloc-posix.
62901         * lib/calloc.c: Include errno.h.
62902         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62903         and a POSIX-compatible calloc into a single function. Set ENOMEM
62904         when returning NULL.
62905         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62906         * doc/functions/calloc.texi: Mention the calloc-posix module.
62907         * lib/stdlib_.h (calloc): New declaration.
62908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62909         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62910         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62911         and HAVE_CALLOC_POSIX.
62912
62913 2007-09-09  Bruno Haible  <bruno@clisp.org>
62914
62915         Allow for modules to show an arbitrary notice.
62916         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62917         * gnulib-tool: New option --extract-notice.
62918         (func_usage): Document it.
62919         (sed_extract_prog): Update.
62920         (func_get_notice): New function.
62921         (func_modules_notice): New function.
62922         (func_import, func_create_testdir): Invoke it.
62923         Suggested by Jim Meyering.
62924
62925 2007-09-09  Bruno Haible  <bruno@clisp.org>
62926
62927         * gnulib-tool: New options --verbose, --quiet.
62928         (func_usage): Document them.
62929         (verbose): New variable.
62930         (func_execute_command): New function.
62931         (func_import): Don't show the module list and the file list if
62932         $verbose < 0.
62933         (func_create_testdir): Likewise. Use func_execute_command.
62934         (func_create_megatestdir): Use func_execute_command.
62935
62936 2007-09-08  Bruno Haible  <bruno@clisp.org>
62937
62938         * gnulib-tool (func_import): Prefer rsync over wget when available,
62939         for fetching the PO files.
62940
62941 2007-09-08  Bruno Haible  <bruno@clisp.org>
62942
62943         * posix-modules: New file. Portions copied from gnulib-tool.
62944         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62945
62946 2007-09-08  Jim Meyering  <jim@meyering.net>
62947
62948         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62949         * lib/fpending.h: Rename from __fpending.h.
62950         * lib/fpending.c: Rename from __fpending.c.
62951         Include "fpending.h", not "__fpending.h".
62952         * lib/__fpending.h, lib/__fpending.c: Remove files.
62953         * modules/fpending (Files): Reflect new file names.
62954         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62955
62956 2007-09-08  Bruno Haible  <bruno@clisp.org>
62957
62958         * m4/inttypes-h.m4: Remove stub file.
62959
62960 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62961
62962         * doc/headers/stdint.texi: Discuss #include_next issue.
62963
62964 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62965
62966         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62967
62968 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62969
62970         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62971         in variable name.
62972
62973 2007-09-03  Jim Meyering  <jim@meyering.net>
62974
62975         New module: git-version-gen.
62976         * modules/git-version-gen: New file.
62977
62978         Import changes from coreutils for bootstrap script.
62979
62980         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62981
62982         bootstrap: uses rsync to download the .po files
62983         * build-aux/bootstrap (po_download_command_format): New global.
62984         (download_po_files): Use rsync.
62985         (update_po_files): Don't remove .po files after download,
62986         so future rsync runs can take advantage of the copies.
62987
62988         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62989
62990         Solve the unnecessary-.po-file-regeneration problem once and for all.
62991         * build-aux/bootstrap (download_po_files): New function, renamed from
62992         get_translations.  Now, downloads, but doesn't update LINGUAS.
62993         (update_po_files): New function.
62994
62995         bootstrap: Ignore more.
62996         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62997         uniwidth to e.g., lib/.gitignore.
62998         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62999
63000         * build-aux/bootstrap: New setting: vc_ignore.
63001         (insert_sorted_if_absent): Create $file if absent.
63002         Adapt to new, possibly empty, list: $vc_ignore.
63003
63004         bootstrap: generate more ignorable names
63005         * build-aux/bootstrap (slurp): When generating ignorable names,
63006         also map .sin to .sed, .gperf to .c, and .y to .c.
63007
63008 2007-09-03  Jim Meyering  <jim@meyering.net>
63009
63010         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63011         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63012
63013 2007-09-02  Bruno Haible  <bruno@clisp.org>
63014
63015         Fix mis-recognition of 'mcs' on QNX 6.
63016         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63017         output contains the string "Mono".
63018         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63019         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63020
63021 2007-09-01  Bruno Haible  <bruno@clisp.org>
63022
63023         Fix collision between uniwidth/* and linebreak modules.
63024         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63025         u32_width): Remove declarations.
63026         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63027         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63028         streq3, streq2, streq1, streq0): Remove functions.
63029         (STREQ): Remove macro.
63030         (is_cjk_encoding): Remove function.
63031         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63032         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63033         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63034         * NEWS: Document the change.
63035
63036 2007-09-01  Bruno Haible  <bruno@clisp.org>
63037
63038         * lib/streq.h: Add double-inclusion guard.
63039
63040 2007-09-01  Karl Berry  <karl@gnu.org>
63041
63042         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63043
63044 2007-08-28  Jim Meyering  <jim@meyering.net>
63045
63046         Rename mreadlink_with_size to areadlink_with_size.
63047         * NEWS: Document the change.
63048         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63049         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63050         * lib/mreadlink.h: Rename this to...
63051         * lib/areadlink.h: ...this.
63052         * modules/mreadlink-with-size: Rename this to...
63053         * modules/areadlink-with-size: ...this.
63054         * lib/canonicalize.c: Reflect the renaming.
63055         * modules/canonicalize: Likewise.
63056
63057 2007-08-26  Bruno Haible  <bruno@clisp.org>
63058
63059         * gnulib-tool (func_import): When deciding which files to remove,
63060         consider also dangling symbolic links.
63061         Reported by Eric Blake.
63062
63063 2007-08-26  Bruno Haible  <bruno@clisp.org>
63064
63065         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63066
63067 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63068
63069         * lib/readline.c: Don't include getline.h, the prototype is now
63070         found in stdio.h.
63071
63072 2007-08-23  Jim Meyering  <jim@meyering.net>
63073
63074         Getdelim touchup.
63075         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63076         around the funlockfile call, since funlockfile never sets errno.
63077         Don't set errno upon failed realloc.
63078
63079 2007-08-22  Eric Blake  <ebb9@byu.net>
63080
63081         Getline touchups.
63082         * lib/getdelim.c (getdelim): Revert regression that required *n to
63083         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63085         getdelim, rather than whether implementation is missing.
63086         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63087         * lib/stdio_.h (getline): Also declare if replacement is
63088         required.
63089         * doc/functions/getdelim.texi: New file.
63090         * doc/functions/getline.texi: Likewise.
63091         * doc/gnulib.texi (Function Substitutes): Add new files.
63092         Reported by Bruno Haible.
63093
63094 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63095
63096         * users.txt: Add Guile.
63097
63098 2007-08-22  Eric Blake  <ebb9@byu.net>
63099
63100         * tests/test-getdelim.c (main): Use remove, not unlink.
63101         * tests/test-getline.c (main): Likewise.
63102
63103         Move getline and getdelim into stdio.h, per POSIX 200x.
63104         * modules/getline (Files): Remove getline.h.
63105         (Depends-on): Add stdio.
63106         (configure.ac): Add module indicator.
63107         * modules/getdelim (Files): Remove getdelim.h.
63108         (Depends-on): Add stdio.
63109         (configure.ac): Add module indicator.
63110         * modules/stdio (Makefile.am): Work with new indicators.
63111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63112         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63113         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63114         * lib/getdelim.h: Delete.
63115         * lib/getline.h: Delete.
63116         * lib/stdio_.h (getdelim, getline): Declare.
63117         * modules/getdelim-tests: New module.
63118         * modules/getline-tests: Likewise.
63119         * tests/test-getdelim.c: New file.
63120         * tests/test-getline.c: Likewise.
63121         * NEWS: Document the change.
63122         * lib/getline.c: Update choice of header.
63123         * lib/csharpcomp.c: Likewise.
63124         * lib/getpass.c: Likewise.
63125         * lib/javacomp.c: Likewise.
63126         * lib/javaversion.c: Likewise.
63127         * lib/yesno.c: Likewise.
63128         * lib/getdelim.c: Likewise.
63129         (getdelim): Set errno on failure, and avoid memory leak.
63130
63131 2007-08-19  Bruno Haible  <bruno@clisp.org>
63132
63133         * modules/closein (Depends-on): Add freadahead.
63134         * lib/closein.c: Include freadahead.h.
63135         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63136         is zero.
63137
63138 2007-08-19  Bruno Haible  <bruno@clisp.org>
63139
63140         * modules/freadahead-tests: New file.
63141         * tests/test-freadahead.sh: New file.
63142         * tests/test-freadahead.c: New file.
63143
63144         * modules/freadahead: New file.
63145         * lib/freadahead.h: New file.
63146         * lib/freadahead.c: New file.
63147         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63148         fbufmode, fpurge, freadable, fwritable.
63149
63150 2007-08-19  Eric Blake  <ebb9@byu.net>
63151
63152         Test yesno in combination with closein.
63153         * lib/yesno.c (yesno): Document use of stdin.
63154         * modules/yesno-tests (Files): New module.
63155         * tests/test-yesno.c (main): New file.
63156         * tests/test-yesno.sh: Likewise.
63157
63158 2007-08-19  Bruno Haible  <bruno@clisp.org>
63159
63160         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63161         * lib/fseeko.c (rpl_fseeko): Likewise.
63162         * lib/fseterr.c (fseterr): Likewise.
63163
63164 2007-08-19  Bruno Haible  <bruno@clisp.org>
63165
63166         * tests/test-lseek.c (main): Disable a test for BeOS.
63167         * doc/functions/lseek.texi: Document the BeOS bug.
63168
63169 2007-08-19  Bruno Haible  <bruno@clisp.org>
63170             Eric Blake  <ebb9@byu.net>
63171
63172         * lib/lseek.c: Include <sys/stat.h>.
63173         (rpl_lseek): Add workaround code also for Unix platforms.
63174         Needed for BeOS.
63175         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63176         * doc/functions/lseek.texi: Document BeOS definiency.
63177
63178 2007-08-18  Bruno Haible  <bruno@clisp.org>
63179
63180         * modules/fstrcmp-tests: New file.
63181         * tests/test-fstrcmp.c: New file.
63182
63183 2007-08-18  Bruno Haible  <bruno@clisp.org>
63184
63185         * modules/fstrcmp: New file, from GNU gettext with modifications.
63186         * lib/fstrcmp.h: New file, from GNU gettext.
63187         * lib/fstrcmp.c: New file, from GNU gettext.
63188         * MODULES.html.sh (String handling): Add fstrcmp.
63189
63190 2007-08-18  Bruno Haible  <bruno@clisp.org>
63191
63192         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63193         'bool'.
63194         (diag, compareseq): Remove const from the ctxt argument.
63195         (USE_HEURISTIC): Undefine at the end.
63196
63197 2007-08-18  Jim Meyering  <jim@meyering.net>
63198
63199         New file: lib/idcache.h
63200         * NEWS: Mention the addition.
63201         * modules/idcache (Files): Add lib/idcache.h
63202         * lib/idcache.c: Include "idcache.h".
63203         Don't include <sys/types.h>.
63204         Add a FIXME comment.
63205         Move file-scoped "static" declarations to the top.
63206         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63207
63208 2007-08-17  Bruno Haible  <bruno@clisp.org>
63209         and Paul Eggert  <eggert@cs.ucla.edu>
63210
63211         * MODULES.html.sh: Add diffseq.
63212         * modules/diffseq: New file.
63213         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63214         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63215
63216 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         Import changes from coreutils for bootstrap script.
63219
63220         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63221
63222         * build-aux/bootstrap (slurp): Work even in environments where
63223         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63224         current code does not slurp files whose names start with ".", and
63225         this looks like it might be a troublesome area.
63226
63227         2007-07-11  Jim Meyering  <jim@meyering.net>
63228
63229         If there's a GPL vN copyright comment, require that N == 3.
63230
63231         2007-07-08  Jim Meyering  <jim@meyering.net>
63232
63233         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63234         * build-aux/bootstrap (mam_template): Move definition out of loop.
63235
63236         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63237
63238         * build-aux/bootstrap (symlink_to_dir): Rename function from
63239         symlink_to_gnulib.  Add a directory parameter.  Update all
63240         callers.
63241         (cp_mark_as_generated): Also check for -- and link to -- files in
63242         gl/.
63243
63244         2007-07-08  Jim Meyering  <jim@meyering.net>
63245
63246         Adapt to deeper hierarchy in gnulib.
63247         * build-aux/bootstrap (symlink_to_dir): If the destination
63248         directory doesn't exist, create it. This is required at least for
63249         "lib/uniwidth/cjk.h".
63250
63251         2007-05-15  Jim Meyering  <jim@meyering.net>
63252
63253         * build-aux/bootstrap: Now that generated Makefile.am files
63254         are no longer under version control, they must be created at
63255         bootstrap time.
63256
63257 2007-08-14  Ben Pfaff  <blp@gnu.org>
63258
63259         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63260
63261 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63262
63263         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63264         given the changes below.
63265         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63266         even on hosts that have padding bits beyond the supported 64.
63267
63268 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63271         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63272         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63273         depends on it.
63274         (xstrtol_error): Remove.
63275         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63276         but with a different signature.
63277         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63278         * lib/xstrtol-error.c: Include exitfail.h.
63279         (xstrtol_fatal): New function, with a different signature from the
63280         old xstrtol_error, so that the caller need not worry about passing
63281         in an exit status, or about storage management of the option argument.
63282         (xstrtol_error): Now a static function.  Redo signature to
63283         implement xstrtol_fatal.  Output the correct number of hyphens in
63284         front of the option so that the caller need not worry about
63285         storage management.
63286         (N_): New macro.
63287         (_): Remove; not used now.
63288         * modules/xstrtol: Depend on getopt.
63289         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63290         of old STRTOL_FATAL_ERROR macro.
63291         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63292         of test program.
63293         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63294         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63295
63296 2007-08-08  Eric Blake  <ebb9@byu.net>
63297
63298         * lib/xstrtol-error.c: Add missing include.
63299
63300         Move xstrtol messages into gnulib domain, when --pobase is used.
63301         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63302         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63303         * modules/xstrtol (Files): Distribute new file.
63304         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63305         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63306         * tests/test-xstrtol.c: ...into new file.
63307         * tests/test-xstrtoul.c: Also test xstrtoul.
63308         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63309         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63310         * tests/test-xstrtol.sh: Drive the tests.
63311         * tests/test-xstrtoimax.sh: Likewise.
63312         * tests/test-xstrtoumax.sh: Likewise.
63313         * modules/xstrtol-tests: New module.
63314         * modules/xstrtoimax-tests: Likewise.
63315         * modules/xstrtoumax-tests: Likewise.
63316
63317 2007-08-08  Jim Meyering  <jim@meyering.net>
63318
63319         New function: mfile_name_concat.
63320         * lib/filenamecat.c (mfile_name_concat): New function, just like
63321         file_name_concat, but return NULL upon failure rather than exiting
63322         with a diagnostic.
63323         * lib/filenamecat.h: Declare it.
63324
63325 2007-08-07  Bruno Haible  <bruno@clisp.org>
63326
63327         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63328         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63329         warning from gcc.
63330         Reported by Eric Blake.
63331
63332 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63333
63334         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63335         * modules/crypto/arcfour (License): Likewise.
63336         * modules/crypto/des-tests (License): Likewise.
63337         * modules/crypto/gc-arctwo-tests (License): Likewise.
63338         * modules/crypto/gc-des-tests (License): Likewise.
63339         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63340         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63341         * modules/crypto/gc-md2-tests (License): Likewise.
63342         * modules/crypto/gc-md4-tests (License): Likewise.
63343         * modules/crypto/gc-md5-tests (License): Likewise.
63344         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63345         * modules/crypto/gc-rijndael-tests (License): Likewise.
63346         * modules/crypto/gc-sha1-tests (License): Likewise.
63347         * modules/crypto/gc-tests (License): Likewise.
63348         * modules/crypto/hmac-md5 (License): Likewise.
63349         * modules/crypto/hmac-sha1 (License): Likewise.
63350         * modules/crypto/md2-tests (License): Likewise.
63351         * modules/crypto/md4-tests (License): Likewise.
63352         * modules/crypto/md5 (License): Likewise.
63353         * modules/crypto/rijndael (License): Likewise.
63354         * modules/crypto/sha1 (License): Likewise.
63355         * modules/memxor (License): Likewise.
63356
63357 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63358         and Bruno Haible  <bruno@clisp.org>
63359
63360         * NEWS: Describe interface changes to human, xstrtol.
63361         * lib/human.h: Include <xstrtol.h>.
63362         (human_options): Return enum strtol_error, not int.  Remove
63363         bool arg; take int * instead.
63364         * lib/human.c: Don't include "gettext.h".
63365         (_): Remove; no longer used.
63366         Don't include <xstrtol.h>, since human.h does it.
63367         (human_options): Adjust to abovementioned interface changes.
63368         Do not report error to stderr; that's now the caller's
63369         responsibility.
63370         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63371         interface change.
63372         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63373         Str, Argument_type_string.  All uses changed.  Put " argument"
63374         in diagnostics to make them clearer.  Change wording of suffix
63375         message for clarity.
63376         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63377         Argument_type_string.
63378         (STRTOL_FATAL_WARN): Remove; no longer used.
63379         * modules/human (Depends-on): Remove gettext-h.
63380
63381 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63382
63383         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63384
63385 2007-07-31  Bruno Haible  <bruno@clisp.org>
63386
63387         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63388         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63389         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63390
63391 2007-07-31  Bruno Haible  <bruno@clisp.org>
63392
63393         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63394         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63395
63396 2007-07-30  Bruno Haible  <bruno@clisp.org>
63397
63398         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63399         * modules/c-ctype (License): Likewise.
63400         * modules/c-strcase (License): Likewise.
63401         * modules/check-version (License): Likewise.
63402         * modules/iconv (License): Likewise.
63403         * modules/iconv_open (License): Likewise.
63404         * modules/read-file (License): Likewise.
63405         * modules/striconv (License): Likewise.
63406         * modules/strverscmp (License): Likewise.
63407         * modules/vasprintf (License): Likewise.
63408         * modules/crypto/des (License): Likewise.
63409         * modules/crypto/gc (License): Likewise.
63410         * modules/crypto/gc-arcfour (License): Likewise.
63411         * modules/crypto/gc-arctwo (License): Likewise.
63412         * modules/crypto/gc-des (License): Likewise.
63413         * modules/crypto/gc-hmac-md5 (License): Likewise.
63414         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63415         * modules/crypto/gc-md2 (License): Likewise.
63416         * modules/crypto/gc-md4 (License): Likewise.
63417         * modules/crypto/gc-md5 (License): Likewise.
63418         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63419         * modules/crypto/gc-random (License): Likewise.
63420         * modules/crypto/gc-rijndael (License): Likewise.
63421         * modules/crypto/gc-sha1 (License): Likewise.
63422         * modules/crypto/md2 (License): Likewise.
63423         * modules/crypto/md4 (License): Likewise.
63424
63425 2007-07-30  Jim Meyering  <jim@meyering.net>
63426
63427         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63428         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63429         it has valid stat data.  This bug would cause du not to count the
63430         sizes of inaccessible directories.
63431         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63432         in <http://bugzilla.redhat.com/250077>.
63433
63434 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63435             Bruno Haible  <bruno@clisp.org>
63436
63437         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63438         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63439         #include_next, gives a diagnostic about it, but reports no error in
63440         the exit code.
63441         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63442
63443 2007-07-24  Ben Pfaff  <blp@gnu.org>
63444
63445         Improve name: "count-one-bits" is better than "popcount".
63446         * MODULES.html.sh: Update name.
63447         * lib/popcount.h: Renamed lib/count-one-bits.h.
63448         (popcount): Renamed count_one_bits.
63449         (popcountl): Renamed count_one_bits_l.
63450         (popcountll): Renamed count_one_bits_ll.
63451         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63452         * modules/popcount: Renamed module/count-one-bits.
63453         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63454         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63455
63456 2007-07-23  Ben Pfaff  <blp@gnu.org>
63457
63458         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63459         better code generation, and add U to large constants to avoid
63460         warnings, in non-GCC case.
63461         Suggested by Bruno Haible.
63462
63463 2007-07-23  Ben Pfaff  <blp@gnu.org>
63464
63465         * lib/popcount.h: Use verify_true instead of if...abort.
63466         * modules/popcount: Depend on verify module.
63467         Suggested by Jim Meyering.
63468
63469 2007-07-23  Bruno Haible  <bruno@clisp.org>
63470
63471         * gnulib-tool (func_import): Create a .cvsignore file also when the
63472         directory is not yet in CVS but the toplevel directory is. When
63473         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63474         Reported by Karl Berry.
63475
63476 2007-07-22  Ben Pfaff  <blp@gnu.org>
63477
63478         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63479         case.
63480         Suggested by Eric Blake.
63481
63482 2007-07-22  Ben Pfaff  <blp@gnu.org>
63483
63484         New module: popcount.
63485         * MODULES.html.sh: Add popcount.
63486         * modules/popcount: New file.
63487         * modules/popcount-tests: New file.
63488         * tests/test-popcount.c: New file.
63489         * lib/popcount.h: New file.
63490         * m4/popcount.m4: New file.
63491
63492 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63493
63494         * build-aux/announce-gen: Update to GPLv3.
63495
63496         * build-aux/config.guess: Update from config.
63497
63498 2007-07-21  Bruno Haible  <bruno@clisp.org>
63499
63500         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63501         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63502
63503 2007-07-20  Jim Meyering  <jim@meyering.net>
63504
63505         * check-module: Diagnose a self-dependency.
63506
63507 2007-07-19  Bruno Haible  <bruno@clisp.org>
63508
63509         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63510         empty.
63511         Reported by Eric Blake.
63512
63513 2007-07-18  Bruno Haible  <bruno@clisp.org>
63514
63515         * gnulib-tool: New options --po-base, --po-domain.
63516         (func_usage): Document them.
63517         (pobase, po_domain): New variables.
63518         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63519         DEFAULT_TEXT_DOMAIN.
63520         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63521         (func_import): Consider pobase and po_domain. Create a po/ directory.
63522         (func_create_testdir): Set pobase and po_domain to empty.
63523         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63524         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63525
63526 2007-07-18  Bruno Haible  <bruno@clisp.org>
63527
63528         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63529         EXTRA_DIST augmentation for files in build-aux/.
63530
63531 2007-07-16  Bruno Haible  <bruno@clisp.org>
63532
63533         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63534         * modules/getdelim (License): Likewise.
63535
63536 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63537
63538         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63539         * modules/d-type (License): Likewise.
63540         * modules/extensions (License): Likewise.
63541         * modules/fnmatch (License): Likewise.
63542         * modules/fseeko (License): Likewise.
63543         * modules/getaddrinfo (License): Likewise.
63544         * modules/getline (License): Likewise.
63545         * modules/getlogin_r (License): Likewise.
63546         * modules/getpass (License): Likewise.
63547         * modules/gettimeofday (License): Likewise.
63548         * modules/glob (License): Likewise.
63549         * modules/inet_ntop (License): Likewise.
63550         * modules/malloc (License): Likewise.
63551         * modules/malloca (License): Likewise.
63552         * modules/memmem (License): Likewise.
63553         * modules/mempcpy (License): Likewise.
63554         * modules/memset (License): Likewise.
63555         * modules/minmax (License): Likewise.
63556         * modules/mktime (License): Likewise.
63557         * modules/netinet_in (License): Likewise.
63558         * modules/pathmax (License): Likewise.
63559         * modules/poll (License): Likewise.
63560         * modules/regex (License): Likewise.
63561         * modules/snprintf (License): Likewise.
63562         * modules/stdbool (License): Likewise.
63563         * modules/stdint (License): Likewise.
63564         * modules/stdio (License): Likewise.
63565         * modules/strcase (License): Likewise.
63566         * modules/strcasestr (License): Likewise.
63567         * modules/strdup (License): Likewise.
63568         * modules/string (License): Likewise.
63569         * modules/strndup (License): Likewise.
63570         * modules/strnlen (License): Likewise.
63571         * modules/strpbrk (License): Likewise.
63572         * modules/strptime (License): Likewise.
63573         * modules/strsep (License): Likewise.
63574         * modules/sys_select (License): Likewise.
63575         * modules/sys_socket (License): Likewise.
63576         * modules/sys_stat (License): Likewise.
63577         * modules/sys_time (License): Likewise.
63578         * modules/time (License): Likewise.
63579         * modules/time_r (License): Likewise.
63580         * modules/timegm (License): Likewise.
63581         * modules/unistd (License): Likewise.
63582         * modules/vsnprintf (License): Likewise.
63583         * modules/wctype (License): Likewise.
63584
63585 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63586
63587         * modules/argz (License): LGPLv2+.
63588
63589 2007-07-15  Karl Berry  <karl@gnu.org>
63590
63591         * doc/gnulib.texi: revise node structure per new fdl.texi.
63592
63593 2007-07-14  Bruno Haible  <bruno@clisp.org>
63594
63595         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63596         the output file.
63597         * lib/uniname/uninames.h: Regenerated.
63598
63599 2007-07-14  Karl Berry  <karl@gnu.org>
63600
63601         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63602         omitting sectioning and index commands.
63603
63604 2007-07-13  Bruno Haible  <bruno@clisp.org>
63605
63606         New gnulib-tool option --more-symlinks.
63607         * gnulib-tool (func_usage): Document --more-symlinks.
63608         (do_copyrights): New variable.
63609         Recognize option --more-symlinks.
63610         (func_import): Don't add a copyright notice transform to
63611         sed_transform_lib_file if do_copyrights is empty.
63612
63613 2007-07-13  Bruno Haible  <bruno@clisp.org>
63614
63615         * lib/vasnprintf.c (decimal_point_char): Define also if
63616         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63617         && !NEED_PRINTF_DIRECTIVE_A.
63618         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63619         Gary V. Vaughan <gary@gnu.org>.
63620
63621 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63622
63623         * lib/inttypes_.h: Undo previous change, since it was fixed
63624         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63625
63626 2007-07-13  Bruno Haible  <bruno@clisp.org>
63627
63628         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63629         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63630
63631 2007-07-13  Jim Meyering  <jim@meyering.net>
63632
63633         df: Don't fail for Tru64's "file-on-file mount".
63634         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63635         so we fall through and use statfs instead.  Details here:
63636         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63637         Reported by Albert Chin.
63638
63639 2007-07-13  Bruno Haible  <bruno@clisp.org>
63640
63641         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63642         * modules/configmake (License): Likewise.
63643         * modules/gettext (License): Likewise.
63644         * modules/gettext-h (License): Likewise.
63645         * modules/include_next (License): Likewise.
63646         * modules/link-warning (License): Likewise.
63647         * modules/localcharset (License): Likewise.
63648         * modules/localename (License): Likewise.
63649         * modules/lock (License): Likewise.
63650         * modules/relocatable-lib-lgpl (License): Likewise.
63651         * modules/size_max (License): Likewise.
63652         * modules/vasnprintf (License): Likewise.
63653         * modules/wchar (License): Likewise.
63654         * modules/xsize (License): Likewise.
63655
63656 2007-07-13  Bruno Haible  <bruno@clisp.org>
63657
63658         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63659         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63660
63661 2007-07-12  Bruno Haible  <bruno@clisp.org>
63662
63663         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63664         in the modules files.
63665
63666 2007-07-11  Karl Berry  <karl@gnu.org>
63667
63668         * MODULES.html.sh (func_module): use
63669          sed -e '\|^'"${includefile}"'$|d'
63670          instead of /.../d, to avoid errors on $includefile's containing /.
63671
63672 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63673
63674         * gnulib-tool (func_import): Avoid duplication of --avoid
63675         statements
63676         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63677         names to `_' in variable names.
63678
63679 2007-07-10  Eric Blake  <ebb9@byu.net>
63680
63681         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63682         * NEWS: Document this change.
63683
63684 2007-07-08  Bruno Haible  <bruno@clisp.org>
63685
63686         Update to Unicode 5.0.
63687         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63688         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63689         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63690         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63691         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63692         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63693         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63694         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63695         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63696         U+10A3F, U+1D242..U+1D244.
63697         (nonspacing_table_ind): Update.
63698         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63699         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63700
63701 2007-07-08  Bruno Haible  <bruno@clisp.org>
63702
63703         Update to Unicode 5.0.
63704         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63705         code transform. Extend the name index field of unicode_name_to_code and
63706         unicode_code_to_name from 16 to 24 bits.
63707         * lib/uniname/uniname.c (unicode_character_name,
63708         unicode_name_character): Add the range 0x12xxx to the code transform.
63709         * lib/uniname/uninames.h: Regenerated.
63710         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63711
63712 2007-07-07  Bruno Haible  <bruno@clisp.org>
63713
63714         * modules/wcwidth-tests: New file.
63715         * tests/test-wcwidth.c: New file.
63716
63717         Work around MacOS X wcwidth() bug.
63718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63719         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63720         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63721         original wcwidth in non-UTF-8 locales.
63722         * modules/wcwidth (Depends-on): Add localcharset, streq,
63723         uniwidth/width.
63724         * doc/functions/wcwidth.texi: Update.
63725
63726 2007-07-07  Bruno Haible  <bruno@clisp.org>
63727
63728         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63729         (wcwidth): New declaration.
63730         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63731         macros.
63732         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63733         here. Prepare for creating <wchar.h> unconditionally.
63734         * modules/wchar (Depends-on): Add link-warning.
63735         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63736         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63737         * lib/wcwidth.h: Remove file.
63738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63739         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63740         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63741         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63742         (Include): Replace wcwidth.h with <wchar.h>.
63743         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63744         * lib/mbchar.h: Don't include wcwidth.h.
63745         * lib/mbswidth.c: Likewise.
63746         * NEWS: Mention the change.
63747
63748 2007-07-07  Bruno Haible  <bruno@clisp.org>
63749
63750         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63751         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63752         definition with an external declaration.
63753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63754         defined as a function. Remove AC_C_INLINE requirement.
63755         * modules/wcwidth (Files): Add lib/wcwidth.c.
63756         (Makefile.am): Remove redundant statement.
63757
63758 2007-07-07  Bruno Haible  <bruno@clisp.org>
63759
63760         * MODULES.html.sh (Unicode string functions): Add the new modules.
63761
63762         * tests/uniwidth/test-u32-strwidth.c: New file.
63763         * modules/uniwidth/u32-strwidth-tests: New file.
63764
63765         * lib/uniwidth/u32-strwidth.c: New file.
63766         * modules/uniwidth/u32-strwidth: New file.
63767
63768         * tests/uniwidth/test-u16-strwidth.c: New file.
63769         * modules/uniwidth/u16-strwidth-tests: New file.
63770
63771         * lib/uniwidth/u16-strwidth.c: New file.
63772         * modules/uniwidth/u16-strwidth: New file.
63773
63774         * tests/uniwidth/test-u8-strwidth.c: New file.
63775         * modules/uniwidth/u8-strwidth-tests: New file.
63776
63777         * lib/uniwidth/u8-strwidth.c: New file.
63778         * modules/uniwidth/u8-strwidth: New file.
63779
63780         * tests/uniwidth/test-u32-width.c: New file.
63781         * modules/uniwidth/u32-width-tests: New file.
63782
63783         * lib/uniwidth/u32-width.c: New file.
63784         * modules/uniwidth/u32-width: New file.
63785
63786         * tests/uniwidth/test-u16-width.c: New file.
63787         * modules/uniwidth/u16-width-tests: New file.
63788
63789         * lib/uniwidth/u16-width.c: New file.
63790         * modules/uniwidth/u16-width: New file.
63791
63792         * tests/uniwidth/test-u8-width.c: New file.
63793         * modules/uniwidth/u8-width-tests: New file.
63794
63795         * lib/uniwidth/u8-width.c: New file.
63796         * modules/uniwidth/u8-width: New file.
63797
63798         * tests/uniwidth/test-uc_width.c: New file.
63799         * modules/uniwidth/width-tests: New file.
63800
63801         * lib/uniwidth/width.c: New file, from GNU libiconv.
63802         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63803         * modules/uniwidth/width: New file.
63804
63805         * lib/uniwidth.h: New file, from GNU libiconv.
63806         * modules/uniwidth/base: New file.
63807
63808 2007-07-07  Bruno Haible  <bruno@clisp.org>
63809
63810         * lib/uniname.h: New file, from GNU gettext.
63811         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63812         * lib/uniname/uninames.h: New file, from GNU gettext.
63813         * lib/uniname/uniname.c: New file, from GNU gettext.
63814         * tests/uniname/test-uninames.sh: New file.
63815         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63816         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63817         * modules/uniname/base: New file.
63818         * modules/uniname/uniname: New file.
63819         * modules/uniname/uniname-tests: New file.
63820         * MODULES.html.sh (Unicode string functions): Add the new modules.
63821
63822 2007-07-06  Bruno Haible  <bruno@clisp.org>
63823
63824         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63825
63826 2007-07-06  Bruno Haible  <bruno@clisp.org>
63827
63828         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63829         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63830         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63831         include <sys/time.h>.
63832         Reported by Eric Blake.
63833
63834 2007-07-06  Eric Blake  <ebb9@byu.net>
63835
63836         Fix testing canonicalize on cygwin.
63837         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63838         Revert patch from 2007-06-19.
63839         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63840         canonicalize module is also in use.
63841         * tests/test-canonicalize.c: New file.
63842         * tests/test-canonicalize.sh: Likewise.
63843         * modules/canonicalize-tests: Likewise.
63844
63845 2007-07-06  Jim Meyering  <jim@meyering.net>
63846
63847         * lib/getugroups.c (getugroups): Detect getgrent failure.
63848         Adjust comment to reflect reality: this function may return -1.
63849
63850 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63851
63852         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63853         the new TP address.
63854         (usage): Fix typo
63855         (gnulib_mk): New variable.
63856
63857 2007-07-05  Jim Meyering  <jim@meyering.net>
63858
63859         Don't let endgrent clobber errno, no matter how improbable.
63860         * lib/getugroups.c (getugroups): Save and restore errno around
63861         endgrent call.
63862
63863         Close the group DB even when failing with 2^31 or more members.
63864         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63865
63866 2007-07-04  Jim Meyering  <jim@meyering.net>
63867
63868         * lib/getugroups.h: New file.
63869         * lib/getugroups.c: Include "getugroups.h".
63870         Remove uses of "register" keyword.
63871         Move local variable, "cp", down into scope where used.
63872         Give "username" parameter the "const" attribute.
63873         * modules/getugroups (Files): Add lib/getugroups.h
63874
63875 2007-07-04  Karl Berry  <karl@gnu.org>
63876
63877         * MODULES.html.sh (func_all_modules): Complete rename of
63878         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63879
63880 2007-07-02  Bruno Haible  <bruno@clisp.org>
63881
63882         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63883         mode, when inttypes.h comes from gnulib.
63884         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63885
63886 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63887
63888         * NEWS: Mention lgpl module name change.
63889
63890         * modules/lgpl-2.1: Renamed from lgpl.
63891
63892         * NEWS: Mention gpl module name change.
63893
63894         * modules/gpl-3.0: New file, based on gpl-2.0.
63895
63896         * modules/gpl-2.0: Renamed from gpl.
63897
63898         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63899         doc/gpl-2.0.texi.
63900
63901 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63904         #define __STDC_LIMIT_MACROS temporarily while including
63905         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63906         Problem reported by Joel E. Denny in
63907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63908
63909 2007-07-01  Bruno Haible  <bruno@clisp.org>
63910
63911         * lib/unistdio.h: New file.
63912         * lib/unistdio/u-asnprintf.h: New file.
63913         * lib/unistdio/u-asprintf.h: New file.
63914         * lib/unistdio/u-printf-args.c: New file.
63915         * lib/unistdio/u-printf-args.h: New file.
63916         * lib/unistdio/u-printf-parse.h: New file.
63917         * lib/unistdio/u-snprintf.h: New file.
63918         * lib/unistdio/u-sprintf.h: New file.
63919         * lib/unistdio/u-vasprintf.h: New file.
63920         * lib/unistdio/u-vsnprintf.h: New file.
63921         * lib/unistdio/u-vsprintf.h: New file.
63922         * lib/unistdio/ulc-asnprintf.c: New file.
63923         * lib/unistdio/ulc-asprintf.c: New file.
63924         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63925         * lib/unistdio/ulc-printf-parse.c: New file.
63926         * lib/unistdio/ulc-snprintf.c: New file.
63927         * lib/unistdio/ulc-sprintf.c: New file.
63928         * lib/unistdio/ulc-vasnprintf.c: New file.
63929         * lib/unistdio/ulc-vasprintf.c: New file.
63930         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63931         * lib/unistdio/ulc-vsnprintf.c: New file.
63932         * lib/unistdio/ulc-vsprintf.c: New file.
63933         * lib/unistdio/u8-asnprintf.c: New file.
63934         * lib/unistdio/u8-asprintf.c: New file.
63935         * lib/unistdio/u8-printf-parse.c: New file.
63936         * lib/unistdio/u8-snprintf.c: New file.
63937         * lib/unistdio/u8-sprintf.c: New file.
63938         * lib/unistdio/u8-vasnprintf.c: New file.
63939         * lib/unistdio/u8-vasprintf.c: New file.
63940         * lib/unistdio/u8-vsnprintf.c: New file.
63941         * lib/unistdio/u8-vsprintf.c: New file.
63942         * lib/unistdio/u8-u8-asnprintf.c: New file.
63943         * lib/unistdio/u8-u8-asprintf.c: New file.
63944         * lib/unistdio/u8-u8-snprintf.c: New file.
63945         * lib/unistdio/u8-u8-sprintf.c: New file.
63946         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63947         * lib/unistdio/u8-u8-vasprintf.c: New file.
63948         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63949         * lib/unistdio/u8-u8-vsprintf.c: New file.
63950         * lib/unistdio/u16-asnprintf.c: New file.
63951         * lib/unistdio/u16-asprintf.c: New file.
63952         * lib/unistdio/u16-printf-parse.c: New file.
63953         * lib/unistdio/u16-snprintf.c: New file.
63954         * lib/unistdio/u16-sprintf.c: New file.
63955         * lib/unistdio/u16-vasnprintf.c: New file.
63956         * lib/unistdio/u16-vasprintf.c: New file.
63957         * lib/unistdio/u16-vsnprintf.c: New file.
63958         * lib/unistdio/u16-vsprintf.c: New file.
63959         * lib/unistdio/u16-u16-asnprintf.c: New file.
63960         * lib/unistdio/u16-u16-asprintf.c: New file.
63961         * lib/unistdio/u16-u16-snprintf.c: New file.
63962         * lib/unistdio/u16-u16-sprintf.c: New file.
63963         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63964         * lib/unistdio/u16-u16-vasprintf.c: New file.
63965         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63966         * lib/unistdio/u16-u16-vsprintf.c: New file.
63967         * lib/unistdio/u32-asnprintf.c: New file.
63968         * lib/unistdio/u32-asprintf.c: New file.
63969         * lib/unistdio/u32-printf-parse.c: New file.
63970         * lib/unistdio/u32-snprintf.c: New file.
63971         * lib/unistdio/u32-sprintf.c: New file.
63972         * lib/unistdio/u32-vasnprintf.c: New file.
63973         * lib/unistdio/u32-vasprintf.c: New file.
63974         * lib/unistdio/u32-vsnprintf.c: New file.
63975         * lib/unistdio/u32-vsprintf.c: New file.
63976         * lib/unistdio/u32-u32-asnprintf.c: New file.
63977         * lib/unistdio/u32-u32-asprintf.c: New file.
63978         * lib/unistdio/u32-u32-snprintf.c: New file.
63979         * lib/unistdio/u32-u32-sprintf.c: New file.
63980         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63981         * lib/unistdio/u32-u32-vasprintf.c: New file.
63982         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63983         * lib/unistdio/u32-u32-vsprintf.c: New file.
63984         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63985         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63986         * tests/unistdio/test-ulc-printf1.h: New file.
63987         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63988         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63989         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63990         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63991         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63992         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63993         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63994         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63995         * tests/unistdio/test-u8-asnprintf1.c: New file.
63996         * tests/unistdio/test-u8-asnprintf1.h: New file.
63997         * tests/unistdio/test-u8-printf1.h: New file.
63998         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63999         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64000         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64001         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64002         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64003         * tests/unistdio/test-u8-vasprintf1.c: New file.
64004         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64005         * tests/unistdio/test-u8-vsprintf1.c: New file.
64006         * tests/unistdio/test-u16-asnprintf1.c: New file.
64007         * tests/unistdio/test-u16-asnprintf1.h: New file.
64008         * tests/unistdio/test-u16-printf1.h: New file.
64009         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64010         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64011         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64012         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64013         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64014         * tests/unistdio/test-u16-vasprintf1.c: New file.
64015         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64016         * tests/unistdio/test-u16-vsprintf1.c: New file.
64017         * tests/unistdio/test-u32-asnprintf1.c: New file.
64018         * tests/unistdio/test-u32-asnprintf1.h: New file.
64019         * tests/unistdio/test-u32-printf1.h: New file.
64020         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64021         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64022         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64023         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64024         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64025         * tests/unistdio/test-u32-vasprintf1.c: New file.
64026         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64027         * tests/unistdio/test-u32-vsprintf1.c: New file.
64028         * modules/unistdio/base: New file.
64029         * modules/unistdio/u-printf-args: New file.
64030         * modules/unistdio/ulc-asnprintf: New file.
64031         * modules/unistdio/ulc-asprintf: New file.
64032         * modules/unistdio/ulc-fprintf: New file.
64033         * modules/unistdio/ulc-printf-parse: New file.
64034         * modules/unistdio/ulc-snprintf: New file.
64035         * modules/unistdio/ulc-sprintf: New file.
64036         * modules/unistdio/ulc-vasnprintf: New file.
64037         * modules/unistdio/ulc-vasprintf: New file.
64038         * modules/unistdio/ulc-vfprintf: New file.
64039         * modules/unistdio/ulc-vsnprintf: New file.
64040         * modules/unistdio/ulc-vsprintf: New file.
64041         * modules/unistdio/u8-asnprintf: New file.
64042         * modules/unistdio/u8-asprintf: New file.
64043         * modules/unistdio/u8-printf-parse: New file.
64044         * modules/unistdio/u8-snprintf: New file.
64045         * modules/unistdio/u8-sprintf: New file.
64046         * modules/unistdio/u8-vasnprintf: New file.
64047         * modules/unistdio/u8-vasprintf: New file.
64048         * modules/unistdio/u8-vsnprintf: New file.
64049         * modules/unistdio/u8-vsprintf: New file.
64050         * modules/unistdio/u8-u8-asnprintf: New file.
64051         * modules/unistdio/u8-u8-asprintf: New file.
64052         * modules/unistdio/u8-u8-snprintf: New file.
64053         * modules/unistdio/u8-u8-sprintf: New file.
64054         * modules/unistdio/u8-u8-vasnprintf: New file.
64055         * modules/unistdio/u8-u8-vasprintf: New file.
64056         * modules/unistdio/u8-u8-vsnprintf: New file.
64057         * modules/unistdio/u8-u8-vsprintf: New file.
64058         * modules/unistdio/u16-asnprintf: New file.
64059         * modules/unistdio/u16-asprintf: New file.
64060         * modules/unistdio/u16-printf-parse: New file.
64061         * modules/unistdio/u16-snprintf: New file.
64062         * modules/unistdio/u16-sprintf: New file.
64063         * modules/unistdio/u16-vasnprintf: New file.
64064         * modules/unistdio/u16-vasprintf: New file.
64065         * modules/unistdio/u16-vsnprintf: New file.
64066         * modules/unistdio/u16-vsprintf: New file.
64067         * modules/unistdio/u16-u16-asnprintf: New file.
64068         * modules/unistdio/u16-u16-asprintf: New file.
64069         * modules/unistdio/u16-u16-snprintf: New file.
64070         * modules/unistdio/u16-u16-sprintf: New file.
64071         * modules/unistdio/u16-u16-vasnprintf: New file.
64072         * modules/unistdio/u16-u16-vasprintf: New file.
64073         * modules/unistdio/u16-u16-vsnprintf: New file.
64074         * modules/unistdio/u16-u16-vsprintf: New file.
64075         * modules/unistdio/u32-asnprintf: New file.
64076         * modules/unistdio/u32-asprintf: New file.
64077         * modules/unistdio/u32-printf-parse: New file.
64078         * modules/unistdio/u32-snprintf: New file.
64079         * modules/unistdio/u32-sprintf: New file.
64080         * modules/unistdio/u32-vasnprintf: New file.
64081         * modules/unistdio/u32-vasprintf: New file.
64082         * modules/unistdio/u32-vsnprintf: New file.
64083         * modules/unistdio/u32-vsprintf: New file.
64084         * modules/unistdio/u32-u32-asnprintf: New file.
64085         * modules/unistdio/u32-u32-asprintf: New file.
64086         * modules/unistdio/u32-u32-snprintf: New file.
64087         * modules/unistdio/u32-u32-sprintf: New file.
64088         * modules/unistdio/u32-u32-vasnprintf: New file.
64089         * modules/unistdio/u32-u32-vasprintf: New file.
64090         * modules/unistdio/u32-u32-vsnprintf: New file.
64091         * modules/unistdio/u32-u32-vsprintf: New file.
64092         * modules/unistdio/ulc-asnprintf-tests: New file.
64093         * modules/unistdio/ulc-vasnprintf-tests: New file.
64094         * modules/unistdio/ulc-vasprintf-tests: New file.
64095         * modules/unistdio/ulc-vsnprintf-tests: New file.
64096         * modules/unistdio/ulc-vsprintf-tests: New file.
64097         * modules/unistdio/u8-asnprintf-tests: New file.
64098         * modules/unistdio/u8-vasnprintf-tests: New file.
64099         * modules/unistdio/u8-vasprintf-tests: New file.
64100         * modules/unistdio/u8-vsnprintf-tests: New file.
64101         * modules/unistdio/u8-vsprintf-tests: New file.
64102         * modules/unistdio/u16-asnprintf-tests: New file.
64103         * modules/unistdio/u16-vasnprintf-tests: New file.
64104         * modules/unistdio/u16-vasprintf-tests: New file.
64105         * modules/unistdio/u16-vsnprintf-tests: New file.
64106         * modules/unistdio/u16-vsprintf-tests: New file.
64107         * modules/unistdio/u32-asnprintf-tests: New file.
64108         * modules/unistdio/u32-vasnprintf-tests: New file.
64109         * modules/unistdio/u32-vasprintf-tests: New file.
64110         * modules/unistdio/u32-vsnprintf-tests: New file.
64111         * modules/unistdio/u32-vsprintf-tests: New file.
64112         * MODULES.html.sh (Unicode string functions): Add the new modules.
64113
64114 2007-07-01  Bruno Haible  <bruno@clisp.org>
64115
64116         * lib/sprintf.c (sprintf): Limit the available length estimation,
64117         to avoid address wraparound.
64118         * lib/vsprintf.c (vsprintf): Likewise.
64119         * modules/sprintf-posix (Dependencies): Add stdint.
64120         * modules/vsprintf-posix (Dependencies): Likewise.
64121
64122 2007-07-01  Bruno Haible  <bruno@clisp.org>
64123
64124         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64125         Windows PATH as well. Conservative double-quoting. Comments.
64126
64127 2007-07-01  Bruno Haible  <bruno@clisp.org>
64128             Eric Blake  <ebb9@byu.net>
64129             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64130
64131         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64132         empty components in $PATH, denoting '.'.
64133
64134 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64135
64136         * gnulib-tool: Fix indentation.
64137         (func_create_megatestdir): Likewise.
64138         Report by Bruno Haible.
64139
64140 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64141
64142         Sync from Automake.
64143         * build-aux/gnupload: Fix shell portability issues with for loops.
64144         Report by Karl Berry.
64145
64146 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64147
64148         * build-aux/maint.mk (POURL): Use translationproject.org.
64149
64150 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64151             Bruno Haible  <bruno@clisp.org>
64152
64153         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64154         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64155         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64156         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64157         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64158
64159 2007-06-27  Bruno Haible  <bruno@clisp.org>
64160
64161         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64162         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64163
64164 2007-06-26  Karl Berry  <karl@gnu.org>
64165
64166         * MODULES.html.sh: remove xreadlink-with-size.
64167
64168 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64169
64170         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64171         method that I hope also handles the double-include problem noted
64172         by Bruno Haible in
64173         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64174
64175 2007-06-23  Bruno Haible  <bruno@clisp.org>
64176
64177         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64178         Don't let the 'mostlyclean' target fail if the last subdirectory could
64179         not be removed.
64180         Reported by Karl Berry.
64181
64182 2007-06-23  Bruno Haible  <bruno@clisp.org>
64183
64184         * gnulib-tool (echo): Add a speedier workaround for ksh.
64185         * tests/test-echo.sh: Likewise.
64186
64187 2007-06-23  Bruno Haible  <bruno@clisp.org>
64188
64189         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64190         * tests/test-echo.sh: Likewise.
64191
64192 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64193
64194         * gnulib-tool (IFS): Initialize early, so we don't set it to
64195         empty later.
64196         (self_abspathname): Rewrite algorithm to set it, reindent.
64197         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64198         (func_create_megatestdir): Merge some sed scripts.
64199
64200 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64201
64202         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64203         exposed by Sun Studio 11 cc on Solaris 8.
64204
64205 2007-06-22  Bruno Haible  <bruno@clisp.org>
64206
64207         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64208         backslashes.
64209         * tests/test-echo.sh: New file.
64210
64211 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64212
64213         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64214         simplify `sed_replace_build_aux' scripts, they are portable but
64215         echoing them with `echo' is not.
64216         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64217
64218 2007-06-21  Karl Berry  <karl@gnu.org>
64219
64220         * config/srclist.txt: guess we can't handle the licenses via
64221         srclist at the moment.
64222
64223 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64224
64225         * MODULES.html.sh: Add include_next.
64226         * modules/include_next: New file.
64227
64228 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64229
64230         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64231         INCLUDE_NEXT.
64232         (gl_CHECK_NEXT_HEADERS): New macro.
64233         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64234         the obsolescent gl_ABSOLUTE_HEADER.
64235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64236         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64237         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64238         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64239         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64240         * m4/math_h.m4 (gl_MATH_H): Likewise.
64241         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64242         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64243         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64244         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64245         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64246         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64247         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64249         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64251         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64252         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64253         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64254         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64255         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64256         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64257         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64258         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64259         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64260         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64261         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64262         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64263         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64264         * lib/float_.h: Likewise.
64265         * lib/inttypes_.h: Likewise.
64266         * lib/math_.h: Likewise.
64267         * lib/search_.h: Likewise.
64268         * lib/signal_.h: Likewise.
64269         * lib/stdint_.h: Likewise.
64270         * lib/stdio_.h: Likewise.
64271         * lib/stdlib_.h: Likewise.
64272         * lib/string_.h: Likewise.
64273         * lib/sys_stat_.h: Likewise.
64274         * lib/sys_time_.h: Likewise.
64275         * lib/time_.h: Likewise.
64276         * lib/unistd_.h: Likewise.
64277         * lib/wchar_.h: Likewise.
64278         * lib/wctype_.h: Likewise.
64279         * lib/dirent_.h: Likewise.
64280         * lib/iconv_.h: Likewise.
64281         * lib/locale_.h: Likewise.
64282         * lib/netinet_in_.h: Likewise.
64283         * lib/sys_select_.h: Likewise.
64284         * lib/sys_socket_.h: Likewise.
64285         * lib/sysexits_.h: Likewise.
64286         * modules/fcntl (Depends-on): Depend on include_next, not
64287         absolute_header.
64288         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64289         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64290         * modules/fchdir: Likewise.
64291         * modules/float: Likewise.
64292         * modules/iconv_open: Likewise.
64293         * modules/inttypes: Likewise.
64294         * modules/locale: Likewise.
64295         * modules/math: Likewise.
64296         * modules/netinet_in: Likewise.
64297         * modules/search: Likewise.
64298         * modules/signal: Likewise.
64299         * modules/stdint: Likewise.
64300         * modules/stdio: Likewise.
64301         * modules/stdlib: Likewise.
64302         * modules/string: Likewise.
64303         * modules/sys_select: Likewise.
64304         * modules/sys_socket: Likewise.
64305         * modules/sys_stat: Likewise.
64306         * modules/sys_time: Likewise.
64307         * modules/sysexits: Likewise.
64308         * modules/time: Likewise.
64309         * modules/unistd: Likewise.
64310         * modules/wchar: Likewise.
64311         * modules/wctype: Likewise.
64312         * modules/sys_stat: Change maintainer to "all".
64313         * modules/unistd: Likewise.
64314
64315 2007-06-20  Karl Berry  <karl@gnu.org>
64316
64317         * config/srclist.txt: track www changes in license files.
64318
64319 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64320
64321         * build-aux/bootstrap: Remove stray dot.
64322         Make sure build_aux settings are honored when linking
64323         gnulib_extra_files.
64324
64325 2007-06-19  Eric Blake  <ebb9@byu.net>
64326
64327         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64328         Allow compilation on cygwin.
64329
64330 2007-06-19  Jim Meyering  <jim@meyering.net>
64331
64332         xreadlink-with-size: Remove module.  No longer used.
64333         Ex-callers now use xreadlink or mreadlink-with-size.
64334         * modules/xreadlink-with-size: Remove module.
64335         * lib/xreadlink-with-size.c: Remove file.
64336         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64337         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64338         just before the function definition *is* accurate.
64339
64340         Eliminate one way canonicalize_filename_mode could exit.
64341         * lib/canonicalize.c (canonicalize_filename_mode):
64342         Use mreadlink_with_size, not xreadlink_with_size.
64343
64344 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64345
64346         Detect porting problems to FreeBSD/arm, which has time_t wider than
64347         long int.  Original problem reported for GNU diff by Xin Li in
64348         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64349         * modules/getdate (Depends-on): Add intprops, verify.
64350         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64351         is an integer type no wider than long int.
64352
64353 2007-06-18  Jim Meyering  <jim@meyering.net>
64354
64355         New module: mreadlink-with-size.
64356         * MODULES.html.sh: Add mreadlink-with-size.
64357         * modules/mreadlink-with-size: New module
64358         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64359         not xreadlink-with-size.
64360         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64361
64362 2007-06-16  Bruno Haible  <bruno@clisp.org>
64363
64364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64365         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64366         Reported by Gary V. Vaughan <gary@gnu.org>.
64367
64368 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64369
64370         Revamp lchown so that it lives in unistd.h where it belongs.
64371         * lib/lchown.h: Remove.
64372         * lib/dirchownmod.c: Don't include lib/lchown.h.
64373         * lib/fchownat.c: Likewise.
64374         * lib/openat.c: Likewise.
64375         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64376         does not follow symlinks.
64377         (EOPNOTSUPP): Define if not defined.
64378         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64379         is defined to 0.
64380         (lchown): New decl.
64381         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64382         Do not check for lchown decl.
64383         Set REPLACE_LCHOWN.
64384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64385         REPLACE_LCHOWN.
64386         * modules/chown: Make it clear it follows symlinks.
64387         * modules/lchown: Make it clear it doesn't follow symlinks.
64388         (Files): Remove lib/lchown.h
64389         (Depends-on): Add unistd.
64390         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64391         (Include): Include <unistd.h>, not "lchown.h".
64392         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64393         REPLACE_LCHOWN.
64394
64395 2007-06-15  Jim Meyering  <jim@meyering.net>
64396
64397         Change license (GPL to LGPL) of fsusage and dependents.
64398         * modules/fsusage (License): Change to LGPL.
64399         * modules/full-read (License): Likewise.
64400         * modules/full-write (License): Likewise.
64401         * modules/safe-read (License): Likewise.
64402         * modules/safe-write (License): Likewise.
64403
64404 2007-06-14  Ben Pfaff  <blp@gnu.org>
64405
64406         Missing part of allocsa -> malloca transition.
64407         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64408         gl_MALLOCA.
64409
64410 2007-06-12  Bruno Haible  <bruno@clisp.org>
64411
64412         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64413         to ia64, x86_64, i386.
64414         Reported by Eric Blake.
64415
64416 2007-06-12  Bruno Haible  <bruno@clisp.org>
64417
64418         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64419         cross-compiling to x86_64.
64420
64421 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64422
64423         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64424         glitch reported by Ralf Wildenhues in
64425         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64426
64427         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64428         Vin Shelton.
64429
64430 2007-06-11  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64433         replacement string.
64434         Reported by Eric Blake.
64435
64436 2007-06-10  Bruno Haible  <bruno@clisp.org>
64437
64438         Prepare vasnprintf code for use with Unicode strings.
64439         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64440         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64441         TYPE_U32_STRING.
64442         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64443         a_u32_string variants.
64444         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64445         * lib/printf-args.c: Don't include config.h and the specification
64446         header if PRINTF_FETCHARGS is already defined.
64447         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64448         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64449         TYPE_U16_STRING, TYPE_U32_STRING.
64450         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64451         u16_directive, u16_directives, u32_directive, u32_directives): New
64452         types.
64453         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64454         New declarations.
64455         * lib/printf-parse.c: Don't include config.h and the specification
64456         header if PRINTF_PARSE is already defined. Eliminate the set of
64457         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64458         them now. Include c-ctype.h.
64459         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64460         directive and CHAR_T_ONLY_ASCII.
64461         * lib/vasnprintf.c: Don't include config.h and the specification header
64462         if VASNPRINTF is already defined.
64463         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64464         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64465         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64466         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64467         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64468         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64469         code accordingly.
64470         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64471         pad_ourselves also in this case, with the 'c' and 's' directives, and
64472         with a different notion of "width".
64473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64474
64475 2007-06-10  Bruno Haible  <bruno@clisp.org>
64476
64477         * modules/unistr/u32-mbsnlen: New file.
64478         * lib/unistr/u32-mbsnlen.c: New file.
64479
64480         * modules/unistr/u16-mbsnlen: New file.
64481         * lib/unistr/u16-mbsnlen.c: New file.
64482
64483         * modules/unistr/u8-mbsnlen: New file.
64484         * lib/unistr/u8-mbsnlen.c: New file.
64485
64486         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64487         declarations.
64488
64489 2007-06-10  Bruno Haible  <bruno@clisp.org>
64490
64491         * lib/string_.h (mbsnlen): New declaration.
64492         * lib/mbsnlen.c: New file.
64493         * m4/mbsnlen.m4: New file.
64494         * modules/mbsnlen: New file.
64495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64496         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64497         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64498
64499 2007-06-10  Bruno Haible  <bruno@clisp.org>
64500
64501         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64502
64503 2007-06-10  Bruno Haible  <bruno@clisp.org>
64504
64505         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64506         * lib/mbuiter.h: Likewise.
64507
64508 2007-06-10  Bruno Haible  <bruno@clisp.org>
64509
64510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64511         declaration.
64512
64513 2007-06-10  Karl Berry  <karl@gnu.org>
64514
64515         * config/srclist.txt: remove gettext entries, Bruno prefers
64516         to update individually.
64517
64518 2007-06-10  Bruno Haible  <bruno@clisp.org>
64519
64520         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64521         'maxlen'. Ensure only length + width bytes are allocated, not
64522         length + 1 + width.
64523
64524 2007-06-09  Bruno Haible  <bruno@clisp.org>
64525
64526         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64527         (CHAR_T): Remove macro.
64528         (VASNPRINTF): Update.
64529
64530 2007-06-09  Bruno Haible  <bruno@clisp.org>
64531
64532         * MODULES.html.sh (Unicode string functions): Add the new modules.
64533
64534         * modules/uniconv/u32-conv-to-enc: New file.
64535         * lib/uniconv/u32-conv-to-enc.c: New file.
64536         * modules/uniconv/u32-conv-to-enc-tests: New file.
64537         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64538
64539         * modules/uniconv/u16-conv-to-enc: New file.
64540         * lib/uniconv/u16-conv-to-enc.c: New file.
64541         * lib/uniconv/u-conv-to-enc.h: New file.
64542         * modules/uniconv/u16-conv-to-enc-tests: New file.
64543         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64544
64545         * modules/uniconv/u8-conv-to-enc: New file.
64546         * lib/uniconv/u8-conv-to-enc.c: New file.
64547         * modules/uniconv/u8-conv-to-enc-tests: New file.
64548         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64549
64550         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64551         u32_conv_to_encoding): New declarations.
64552
64553 2007-06-09  Bruno Haible  <bruno@clisp.org>
64554
64555         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64556
64557 2007-06-09  Bruno Haible  <bruno@clisp.org>
64558
64559         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64560         * modules/malloca: Renamed from modules/allocsa, updated.
64561         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64562         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64563         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64564         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64565         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64566         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64567         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64568         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64569         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64570         * modules/c-strcasestr (Depends-on): Update.
64571         * lib/c-strcasestr.c: Update.
64572         * modules/c-strstr (Depends-on): Update.
64573         * lib/c-strstr.c: Update.
64574         * modules/canonicalize-lgpl (Depends-on): Update.
64575         * lib/canonicalize-lgpl.c: Update.
64576         * modules/clean-temp (Depends-on): Update.
64577         * lib/clean-temp.c: Update.
64578         * modules/csharpcomp (Depends-on): Update.
64579         * lib/csharpcomp.c: Update.
64580         * modules/csharpexec (Depends-on): Update.
64581         * lib/csharpexec.c: Update.
64582         * modules/javacomp (Depends-on): Update.
64583         * lib/javacomp.c: Update.
64584         * modules/javaexec (Depends-on): Update.
64585         * lib/javaexec.c: Update.
64586         * modules/mbscasestr (Depends-on): Update.
64587         * lib/mbscasestr.c: Update.
64588         * modules/mbsstr (Depends-on): Update.
64589         * lib/mbsstr.c: Update.
64590         * modules/setenv (Depends-on): Update.
64591         * lib/setenv.c: Update.
64592         * modules/strcasestr (Depends-on): Update.
64593         * lib/strcasestr.c: Update.
64594         * modules/striconveha (Depends-on): Update.
64595         * lib/striconveha.c: Update.
64596         * modules/relocatable-prog-wrapper (Files): Update.
64597         * lib/relocwrapper.c: Update.
64598         * build-aux/install-reloc: Update.
64599         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64600
64601 2007-06-08  Bruno Haible  <bruno@clisp.org>
64602
64603         Port to uClibc.
64604         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64605         * lib/fpurge.c (fpurge): Likewise.
64606         * lib/freading.c (freading): Likewise.
64607         * lib/fseeko.c (rpl_fseeko): Likewise.
64608         * lib/fseterr.c (fseterr): Likewise.
64609         * lib/fwriting.c (fwriting): Likewise.
64610         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64611
64612 2007-06-08  Bruno Haible  <bruno@clisp.org>
64613
64614         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64615         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64616         * modules/gettext (Files): Add m4/intlmacosx.m4.
64617
64618 2007-06-07  Bruno Haible  <bruno@clisp.org>
64619
64620         * modules/localename-tests: New file.
64621         * tests/test-localename.c: New file.
64622
64623         New module 'localename'.
64624         * lib/localename.h: New file.
64625         * lib/localename.c: New file, from GNU gettext.
64626         * m4/localename.m4: New file.
64627         * modules/localename: New file.
64628
64629 2007-06-07  Bruno Haible  <bruno@clisp.org>
64630
64631         Work around the lack of <wchar.h> on some builds of uClibc.
64632         * doc/headers/wchar.texi: Update.
64633         * lib/wchar_.h: Include <wchar.h> only if it exists.
64634         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64635         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64636         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64637         doesn't exist.
64638         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64639         * modules/mbfile (Depends-on): Add wchar.
64640         * modules/mbiter (Depends-on): Likewise.
64641         * modules/mbuiter (Depends-on): Likewise.
64642         Reported by Simon Josefsson.
64643
64644 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64645
64646         Work around problem reported by Steven M. Schweda in
64647         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64648         Tru64 5.1B with the Compaq compiler environment installed declares
64649         an 'isblank' function but does not define it in the C library.
64650         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64651         * lib/regex_internal.h (isblank): Likewise.
64652         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64653         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64654
64655 2007-06-05  Bruno Haible  <bruno@clisp.org>
64656
64657         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64658         ia64.
64659         * modules/printf-safe: New file.
64660         * modules/fprintf-posix (Depends-on): Add printf-safe.
64661         * modules/printf-posix (Depends-on): Likewise.
64662         * modules/snprintf-posix (Depends-on): Likewise.
64663         * modules/sprintf-posix (Depends-on): Likewise.
64664         * modules/vasnprintf-posix (Depends-on): Likewise.
64665         * modules/vasprintf-posix (Depends-on): Likewise.
64666         * modules/vfprintf-posix (Depends-on): Likewise.
64667         * modules/vprintf-posix (Depends-on): Likewise.
64668         * modules/vsnprintf-posix (Depends-on): Likewise.
64669         * modules/vsprintf-posix (Depends-on): Likewise.
64670         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64671         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64672         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64673         "no" on i386, x86_64, ia64.
64674         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64675         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64676         on i386, x86_64, ia64.
64677         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64678         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64679         on i386, x86_64, ia64.
64680         * tests/test-vasnprintf-posix.c: Include float.h.
64681         (LDBL80_WORDS): New macro.
64682         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64683         on i386, x86_64, ia64.
64684         * tests/test-vasprintf-posix.c: Include float.h.
64685         (LDBL80_WORDS): New macro.
64686         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64687         on i386, x86_64, ia64.
64688         * tests/test-snprintf-posix.c: Include float.h.
64689         * tests/test-sprintf-posix.c: Likewise.
64690         * tests/test-vsnprintf-posix.c: Likewise.
64691         * tests/test-vsprintf-posix.c: Likewise.
64692
64693 2007-06-05  Bruno Haible  <bruno@clisp.org>
64694
64695         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64696         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64697         non-IEEE numbers on i386, x86_64, ia64.
64698         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64699         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64700         * tests/test-isnanl.h: Include float.h.
64701         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64702
64703 2007-06-05  Bruno Haible  <bruno@clisp.org>
64704
64705         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64706         also the %a / %A. Handle the %a / %A code before this extra handling.
64707
64708 2007-06-05  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64711         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64712
64713 2007-06-05  Bruno Haible  <bruno@clisp.org>
64714
64715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64716         typo in variable name.
64717
64718 2007-06-05  Eric Blake  <ebb9@byu.net>
64719
64720         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64721         Reported by Simon Josefsson.
64722
64723 2007-06-04  Bruno Haible  <bruno@clisp.org>
64724
64725         Avoid test failures on some PowerPC platforms.
64726         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64727         Define differently for PowerPC.
64728         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64729         Reported by Gary V. Vaughan <gary@gnu.org>.
64730
64731 2007-06-02  Bruno Haible  <bruno@clisp.org>
64732
64733         Fix test-stdint failure on FreeBSD/ia64.
64734         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64735         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64736         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64737         * doc/headers/stdint.texi: Update.
64738
64739 2007-06-01  Bruno Haible  <bruno@clisp.org>
64740
64741         * tests/test-binary-io.c (main): Pass a third argument to open().
64742         Reported by Gary V. Vaughan <gary@gnu.org>.
64743
64744 2007-06-01  Bruno Haible  <bruno@clisp.org>
64745
64746         * doc/functions/frexpl.texi: Update for mingw.
64747
64748 2007-06-01  Bruno Haible  <bruno@clisp.org>
64749
64750         * tests/test-lseek.c (main): Disable test of errno for invalid third
64751         argument.
64752         * doc/functions/lseek.texi: Update.
64753         Reported by Gary V. Vaughan <gary@gnu.org>.
64754
64755 2007-05-28  Bruno Haible  <bruno@clisp.org>
64756
64757         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64758
64759 2007-05-31  Eric Blake  <ebb9@byu.net>
64760
64761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64762         cross compiling.
64763
64764 2007-05-30  Eric Blake  <ebb9@byu.net>
64765         and Bruno Haible  <bruno@clisp.org>
64766
64767         Work around mingw test failures exposed by m4-1.4.9b.
64768         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64769         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64770         moment.
64771
64772 2007-05-30  Bruno Haible  <bruno@clisp.org>
64773
64774         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64775         assuming that they are closed. Needed on HP-UX 11.
64776
64777 2007-05-29  Bruno Haible  <bruno@clisp.org>
64778
64779         Fix a problem with #include_next.
64780         * lib/dirent_.h: Split the double-inclusion guard.
64781         * lib/fcntl_.h: Likewise.
64782         * lib/float_.h: Likewise.
64783         * lib/iconv_.h: Likewise.
64784         * lib/inttypes_.h: Likewise.
64785         * lib/locale_.h: Likewise.
64786         * lib/math_.h: Likewise.
64787         * lib/netinet_in_.h: Likewise.
64788         * lib/search_.h: Likewise.
64789         * lib/signal_.h: Likewise.
64790         * lib/stdint_.h: Likewise.
64791         * lib/stdio_.h: Likewise.
64792         * lib/stdlib_.h: Likewise.
64793         * lib/string_.h: Likewise.
64794         * lib/sys_select_.h: Likewise.
64795         * lib/sys_socket_.h: Likewise.
64796         * lib/sys_stat_.h: Likewise.
64797         * lib/sys_time_.h: Likewise.
64798         * lib/sysexits_.h: Likewise.
64799         * lib/time_.h: Likewise.
64800         * lib/unistd_.h: Likewise.
64801         * lib/wchar_.h: Likewise.
64802         * lib/wctype_.h: Likewise.
64803
64804 2007-05-29  Bruno Haible  <bruno@clisp.org>
64805
64806         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64807         for the moment.
64808
64809 2007-05-29  Bruno Haible  <bruno@clisp.org>
64810
64811         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64812         invocation.
64813         Reported by Eric Blake.
64814
64815 2007-05-29  Bruno Haible  <bruno@clisp.org>
64816
64817         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64818         compiling case.
64819
64820 2007-05-29  Eric Blake  <ebb9@byu.net>
64821             Bruno Haible  <bruno@clisp.org>
64822
64823         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64824         cross compiles.
64825
64826 2007-05-28  Eric Blake  <ebb9@byu.net>
64827
64828         * modules/closein-tests (test_closein_LDADD): Support test on
64829         cygwin with libtool.
64830
64831 2007-05-28  Bruno Haible  <bruno@clisp.org>
64832
64833         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64834         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64835         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64836         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64837         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64838         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64839         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64840         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64841         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64842
64843 2007-05-28  Eric Blake  <ebb9@byu.net>
64844
64845         Unconditionally include <config.h> in unit tests.
64846         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64847         * tests/test-allocsa.c, tests/test-arcfour.c,
64848         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64849         tests/test-array_list.c, tests/test-array_oset.c,
64850         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64851         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64852         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64853         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64854         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64855         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64856         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64857         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64858         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64859         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64860         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64861         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64862         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64863         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64864         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64865         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64866         test-md5.c, test-memmem.c, test-printf-posix.c,
64867         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64868         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64869         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64870         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64871         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64872         test-vasnprintf-posix2.c, test-vasnprintf.c,
64873         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64874         test-vfprintf-posix.c, test-vprintf-posix.c,
64875         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64876         test-xvasprintf.c: Likewise.
64877
64878 2007-05-28  Bruno Haible  <bruno@clisp.org>
64879
64880         * gnulib-tool (func_import): Remember the --with-tests command-line
64881         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64882         Reported by Eric Blake.
64883
64884 2007-05-28  Bruno Haible  <bruno@clisp.org>
64885
64886         * modules/ftell-tests: New file.
64887         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64888         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64889
64890         * lib/ftell.c: New file.
64891         * modules/ftell: New file.
64892         * m4/ftell.m4: New file.
64893         * doc/functions/ftell.texi: Update.
64894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64895         REPLACE_FTELL.
64896         * lib/stdio_.h (rpl_ftell): New declaration.
64897         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64898         REPLACE_FTELL.
64899
64900 2007-05-28  Eric Blake  <ebb9@byu.net>
64901
64902         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64903
64904 2007-05-28  Bruno Haible  <bruno@clisp.org>
64905
64906         * modules/fseek-tests: New file.
64907         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64908         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64909
64910         * lib/fseek.c: New file.
64911         * modules/fseek: New file.
64912         * m4/fseek.m4: New file.
64913         * doc/functions/fseek.texi: Update.
64914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64915         REPLACE_FSEEK.
64916         * lib/stdio_.h (rpl_fseek): New declaration.
64917         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64918         REPLACE_FSEEK.
64919
64920 2007-05-28  Bruno Haible  <bruno@clisp.org>
64921
64922         * lib/stdio_.h (fflush): More comments.
64923
64924 2007-05-28  Bruno Haible  <bruno@clisp.org>
64925
64926         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64927         runtime test.
64928
64929 2007-05-28  Eric Blake  <ebb9@byu.net>
64930
64931         Improve lseek module.
64932         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64933         * lib/unistd_.h (lseek): Scale back link warning message.
64934         * tests/test-lseek.c: Beef up test.
64935         * tests/test-lseek.sh: Exercise more facets of lseek.
64936         Reported by Bruno Haible.
64937
64938 2007-05-28  Bruno Haible  <bruno@clisp.org>
64939
64940         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64941         to define.
64942
64943 2007-05-27  Bruno Haible  <bruno@clisp.org>
64944
64945         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64946
64947 2007-05-27  Bruno Haible  <bruno@clisp.org>
64948
64949         * modules/openmp: New file.
64950         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64951         Noah Misch.
64952
64953 2007-05-26  Bruno Haible  <bruno@clisp.org>
64954
64955         * modules/chdir-long (Depends-on): Add fchdir.
64956         * modules/chdir-safer (Depends-on): Likewise.
64957         * modules/fts (Depends-on): Likewise.
64958         * modules/fts-lgpl (Depends-on): Likewise.
64959         * modules/openat (Depends-on): Likewise.
64960         * modules/savewd (Depends-on): Likewise.
64961
64962 2007-05-24  Eric Blake  <ebb9@byu.net>
64963
64964         Fix lseek on mingw.
64965         * modules/lseek: New module.
64966         * m4/lseek.m4: New file.
64967         * lib/lseek.c: New file.
64968         * modules/lseek-tests: New file.
64969         * tests/test-lseek.c: New file.
64970         * tests/test-lseek.sh: New file.
64971         * MODULES.html.sh: Document lseek module.
64972         * modules/fflush (Depends-on): Add lseek, fseeko.
64973         * modules/fseeko (Depends-on): Likewise.
64974         * modules/ftello (Depends-on): Likewise.
64975         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64976         broken.
64977         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64978         broken.
64979         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64980         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64981         * lib/ftello.c (rpl_ftello): Likewise.
64982         * tests/test-fseeko.c (main): Test this.
64983         * tests/test-fseeko.sh: Likewise.
64984         * tests/test-ftello.c (main): Likewise.
64985         * tests/test-ftello.sh: Likewise.
64986         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64987         implies replacing fseek.
64988         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64989         HAVE_FTELLO.
64990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64991         * modules/unistd (Makefile.am): Likewise.
64992         * lib/unistd_.h (lseek): Declare a replacement.
64993         * doc/functions/lseek.texi (lseek): Document this fix.
64994         * doc/functions/fseek.texi (fseek): Likewise.
64995         * doc/functions/ftell.texi (ftell): Likewise.
64996
64997 2007-05-24  Bruno Haible  <bruno@clisp.org>
64998
64999         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65000         in the printed representation of a NaN.
65001         * tests/test-vasprintf-posix.c (test_function): Likewise.
65002         * tests/test-snprintf-posix.h (test_function): Likewise.
65003         * tests/test-sprintf-posix.h (test_function): Likewise.
65004         Reported by Eric Blake.
65005
65006 2007-05-23  Eric Blake  <ebb9@byu.net>
65007
65008         Fix fseeko/ftello on cygwin 1.5.24.
65009         * doc/functions/fseeko.texi (fseeko): Document the fix.
65010         * doc/functions/ftello.texi (ftello): Document the fix.
65011         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65012         * doc/functions/stdout.text (stdout): New file.
65013         * doc/functions/stderr.text (stderr): New file.
65014         * doc/gnulib.texi (Function Substitutes): Use new files.
65015         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65016         prior to 1.7.0.
65017         * tests/test-ftello.c (main): Likewise for ftello.
65018         * tests/test-fseeko.sh: New file.
65019         * tests/test-ftello.sh: New file.
65020         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65021         with seekable stdin.
65022         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65023         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65024         (gl_REPLACE_FSEEKO): New macro.
65025         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65026         * modules/fseeko (Files): Distribute fseeko.c.
65027         * modules/ftello (Files): Distribute ftello.c.
65028         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65029         mode.
65030         * lib/ftello.c (rpl_ftello): New file.
65031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65032         fseeko, ftello.
65033         (gl_STDIN_LARGE_OFFSET): New macro.
65034         * modules/stdio (Makefile.am): Perform the replacement.
65035         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65036
65037 2007-05-23  Bruno Haible  <bruno@clisp.org>
65038
65039         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65040         GNULIB_POSIXCHECK is defined.
65041
65042 2007-05-21  Bruno Haible  <bruno@clisp.org>
65043
65044         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65045         Check also the output for NaN arguments. When cross-compiling, guess
65046         no on IRIX.
65047         * lib/vasnprintf.c: Update comments.
65048         * tests/test-vasnprintf-posix.c (strisnan): New function.
65049         (test_function): Use it.
65050         * tests/test-vasprintf-posix.c (strisnan): New function.
65051         (test_function): Use it.
65052         * tests/test-snprintf-posix.h (strisnan): New function.
65053         (test_function): Use it.
65054         * tests/test-sprintf-posix.h (strisnan): New function.
65055         (test_function): Use it.
65056         Reported by Eric Blake.
65057
65058 2007-05-20  Bruno Haible  <bruno@clisp.org>
65059
65060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65061         numbers that fails on BeOS.
65062         * doc/functions/frexpl.texi: Update.
65063
65064 2007-05-20  Jim Meyering  <jim@meyering.net>
65065
65066         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65067         forced upon us by glibc-2.6.
65068
65069 2007-05-20  Bruno Haible  <bruno@clisp.org>
65070
65071         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65072         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65073         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65074         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65075         NEED_PRINTF_INFINITE.
65076         (is_infinitel): New function.
65077         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65079         gl_PREREQ_VASNPRINTF_INFINITE.
65080         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65081         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65082         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65083         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65084         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65085         gl_PREREQ_VASNPRINTF_INFINITE.
65086         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65087         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65088         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65090         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65092         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65093         * doc/functions/fprintf.texi: Update.
65094         * doc/functions/printf.texi: Update.
65095         * doc/functions/snprintf.texi: Update.
65096         * doc/functions/sprintf.texi: Update.
65097         * doc/functions/vfprintf.texi: Update.
65098         * doc/functions/vprintf.texi: Update.
65099         * doc/functions/vsnprintf.texi: Update.
65100         * doc/functions/vsprintf.texi: Update.
65101
65102 2007-05-20  Bruno Haible  <bruno@clisp.org>
65103
65104         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65105         was not found in libc.
65106         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65107
65108 2007-05-20  Bruno Haible  <bruno@clisp.org>
65109
65110         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65111         printed as "-nan" instead of "nan".
65112         * tests/test-vasprintf-posix.c (test_function): Likewise.
65113         * tests/test-snprintf-posix.h (test_function): Likewise.
65114         * tests/test-sprintf-posix.h (test_function): Likewise.
65115         Needed for HP-UX 11.
65116
65117 2007-05-20  Jim Meyering  <jim@meyering.net>
65118
65119         Fix buggy test for the fchownat-deref bug.
65120         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65121         symlink required for the run-test.  Without it, this test would
65122         always declare that fchownat doesn't work, and client code would
65123         unnecessarily use the replacement function with fixed libc.
65124         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65125         Reported by Greg Schafer.
65126
65127 2007-05-19  Bruno Haible  <bruno@clisp.org>
65128
65129         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65130         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65131         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65132         Needed for IRIX 6.5 and Solaris 2.5.1.
65133
65134 2007-05-19  Bruno Haible  <bruno@clisp.org>
65135
65136         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65137         (test_function): Skip tests involving -0.0 on platforms where
65138         -0.0 = 0.0.
65139         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65140         (test_function): Skip tests involving -0.0 on platforms where
65141         -0.0 = 0.0.
65142         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65143         (test_function): Skip tests involving -0.0 on platforms where
65144         -0.0 = 0.0.
65145         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65146         (test_function): Skip tests involving -0.0 on platforms where
65147         -0.0 = 0.0.
65148         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65149         tests.
65150         * tests/test-printf-posix.h (test_function): Likewise.
65151         * tests/test-printf-posix.output: Remove all -0.0 related results.
65152         Needed for IRIX 6.5.
65153
65154 2007-05-19  Bruno Haible  <bruno@clisp.org>
65155
65156         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65157         printed as "nan0x7fffffff" instead of "nan".
65158         * tests/test-vasprintf-posix.c (test_function): Likewise.
65159         * tests/test-snprintf-posix.h (test_function): Likewise.
65160         * tests/test-sprintf-posix.h (test_function): Likewise.
65161         * tests/test-fprintf-posix.h (NaN): Remove macro.
65162         (test_function): Remove all NaN related tests.
65163         * tests/test-printf-posix.h (NaN): Remove macro.
65164         (test_function): Remove all NaN related tests.
65165         * tests/test-printf-posix.output: Remove all NaN related results.
65166         Needed for IRIX 6.5.
65167
65168 2007-05-19  Bruno Haible  <bruno@clisp.org>
65169
65170         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65172
65173 2007-05-19  Bruno Haible  <bruno@clisp.org>
65174
65175         * lib/float_.h: New file.
65176         * m4/float_h.m4: New file.
65177         * modules/float: New file.
65178         * modules/isnanl (Dependencies): Add float.
65179         * modules/isnanl-nolibm (Dependencies): Likewise.
65180         * modules/mathl (Dependencies): Likewise.
65181         * modules/printf-frexpl (Dependencies): Likewise.
65182         * modules/signbit (Dependencies): Likewise.
65183         * modules/vasnprintf (Dependencies): Likewise.
65184         * doc/headers/float.texi: Update.
65185
65186 2007-05-19  Jim Meyering  <jim@meyering.net>
65187
65188         * lib/utimens.c (gl_futimens): Rename from futimens,
65189         now that glibc-2.6 declares futimens.
65190         * lib/utimens.h: Likewise.
65191
65192 2007-05-19  Bruno Haible  <bruno@clisp.org>
65193
65194         Avoid test failures on mingw.
65195         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65196         * tests/test-printf-posix.sh: Likewise.
65197         * tests/test-vfprintf-posix.sh: Likewise.
65198         * tests/test-vprintf-posix.sh: Likewise.
65199
65200 2007-05-19  Bruno Haible  <bruno@clisp.org>
65201
65202         Fix *printf result for NaN, Inf, -0.0 on mingw.
65203         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65204         * lib/vasnprintf.c: Include math.h and isnan.h.
65205         (is_infinite_or_zero): New function.
65206         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65207         values in the %f, %F, %e, %E, %g, %G directives.
65208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65210         gl_PRINTF_INFINITE and test its result. Invoke
65211         gl_PREREQ_VASNPRINTF_INFINITE.
65212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65219         * doc/functions/fprintf.texi: Update.
65220         * doc/functions/printf.texi: Update.
65221         * doc/functions/snprintf.texi: Update.
65222         * doc/functions/sprintf.texi: Update.
65223         * doc/functions/vfprintf.texi: Update.
65224         * doc/functions/vprintf.texi: Update.
65225         * doc/functions/vsnprintf.texi: Update.
65226         * doc/functions/vsprintf.texi: Update.
65227
65228 2007-05-19  Bruno Haible  <bruno@clisp.org>
65229
65230         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65231         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65232         Instead of multiplying with 10^k, set extra_zeroes to k.
65233         (scale10_round_long_double): Remove function.
65234
65235 2007-05-18  Bruno Haible  <bruno@clisp.org>
65236
65237         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65238         introduced on 2007-05-06.
65239
65240 2007-05-18  Bruno Haible  <bruno@clisp.org>
65241
65242         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65243         %g directives.
65244         * tests/test-vasprintf-posix.c (test_function): Likewise.
65245         * tests/test-snprintf-posix.h (test_function): Likewise.
65246         * tests/test-sprintf-posix.h (test_function): Likewise.
65247
65248 2007-05-18  Bruno Haible  <bruno@clisp.org>
65249
65250         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65251         (strmatch): New function.
65252         (test_function): Test the %f directive on numbers of various exponents.
65253         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65254         (strmatch): New function.
65255         (test_function): Test the %f directive on numbers of various exponents.
65256         * tests/test-snprintf-posix.h (strmatch): New function.
65257         (test_function): Test the %f directive on numbers of various exponents.
65258         * tests/test-sprintf-posix.h (strmatch): New function.
65259         (test_function): Test the %f directive on numbers of various exponents.
65260         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65261         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65262         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65263         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65264
65265 2007-05-18  Bruno Haible  <bruno@clisp.org>
65266
65267         Add support for 'long double' number output.
65268         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65269         * lib/vasnprintf.c: Include math.h and float+.h.
65270         (mp_limb_t): New type.
65271         (GMP_LIMB_BITS): New macro.
65272         (mp_twolimb_t): New type.
65273         (GMP_TWOLIMB_BITS): New macro.
65274         (mpn_t): New type.
65275         (multiply, divide, convert_to_decimal, decode_long_double,
65276         scale10_round_long_double, scale10_round_decimal_long_double,
65277         floorlog10l): New functions.
65278         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65279         for the %f, %F, %e, %E, %g, %G directives.
65280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65281         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65282         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65283         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65288         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65290         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65291         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65292         * modules/snprintf-posix (Depends-on): Likewise.
65293         * modules/sprintf-posix (Depends-on): Likewise.
65294         * modules/vasnprintf-posix (Depends-on): Likewise.
65295         * modules/vasprintf-posix (Depends-on): Likewise.
65296         * modules/vfprintf-posix (Depends-on): Likewise.
65297         * modules/vsnprintf-posix (Depends-on): Likewise.
65298         * modules/vsprintf-posix (Depends-on): Likewise.
65299         * modules/vasnprintf (Files): Add lib/float+.h.
65300         * doc/functions/fprintf.texi: Update.
65301         * doc/functions/printf.texi: Update.
65302         * doc/functions/snprintf.texi: Update.
65303         * doc/functions/sprintf.texi: Update.
65304         * doc/functions/vfprintf.texi: Update.
65305         * doc/functions/vprintf.texi: Update.
65306         * doc/functions/vsnprintf.texi: Update.
65307         * doc/functions/vsprintf.texi: Update.
65308
65309 2007-05-18  Bruno Haible  <bruno@clisp.org>
65310
65311         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65312
65313 2007-05-18  Bruno Haible  <bruno@clisp.org>
65314
65315         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65316         for printing 64-bit integers. Needed for mingw.
65317
65318 2007-05-18  Bruno Haible  <bruno@clisp.org>
65319
65320         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65321         gl_FUNC_FREXPL_WORKS.
65322         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65323
65324 2007-05-18  Bruno Haible  <bruno@clisp.org>
65325
65326         * modules/frexpl-nolibm-tests: New file.
65327
65328         * modules/frexpl-nolibm: New file.
65329         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65330
65331 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65332
65333         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65334         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65335         GCC 4.2, which otherwise issues a lot of warnings.
65336         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65337         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65338         Likewise.
65339         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65340         * modules/iconv_open (iconv.h): Likewise.
65341         * modules/locale (locale.h): Likewise.
65342         * modules/netinet_in (netinet/in.h): Likewise.
65343         * modules/sys_select (sys_select.h): Likewise.
65344         * modules/sys_socket (sys/socket.h): Likewise.
65345         * modules/sys_stat (sys/stat.h): Likewise.
65346         * modules/sysexits (sysexits.h): Likewise.
65347         * modules/unistd (unistd.h): Likewise.
65348
65349 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65350
65351         * modules/closein-tests (Makefile.am): Distribute
65352         `test-closein.sh'.
65353
65354 2007-05-17  Bruno Haible  <bruno@clisp.org>
65355
65356         * tests/test-printf-posix.output: Renamed from
65357         tests/test-fprintf-posix.out.
65358         * modules/fprintf-posix-tests: Update.
65359         * modules/printf-posix-tests: Update.
65360         * modules/vfprintf-posix-tests: Update.
65361         * modules/vprintf-posix-tests: Update.
65362         * tests/test-fprintf-posix.sh: Update.
65363         * tests/test-printf-posix.sh: Update.
65364         * tests/test-vfprintf-posix.sh: Update.
65365         * tests/test-vprintf-posix.sh: Update.
65366         Reported by Ralf Wildenhues.
65367
65368 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65369
65370         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65371         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65372         GCC 4.2, which otherwise issues a lot of warnings.
65373         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65374         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65375         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65376         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65377         it should no longer be needed.
65378         * lib/string_.h: Likewise.
65379         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65380         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65381         * modules/inttypes (inttypes.h): Likewise.
65382         * modules/math (math.h): Likewise.
65383         * modules/search (search.h): Likewise.
65384         * modules/signal (signal.h): Likewise.
65385         * modules/stdint (stdint.h): Likewise.
65386         * modules/stdio (stdio.h): Likewise.
65387         * modules/stdlib (stdlib.h): Likewise.
65388         * modules/string (string.h): Likewise.
65389         * modules/sys_time (sys/time.h): Likewise.
65390         * modules/time (time.h): Likewise.
65391         * modules/wchar (wchar.h): Likewise.
65392         * modules/wctype (wtype.h): Likewise.
65393
65394 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65395
65396         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65397
65398 2007-05-13  Bruno Haible  <bruno@clisp.org>
65399
65400         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65401         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65402         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65403         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65404         (gl_PREREQ_STRTOK_R): Don't require it here.
65405
65406 2007-05-13  Bruno Haible  <bruno@clisp.org>
65407
65408         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65409         when used in C++ mode.
65410
65411 2007-05-12  Bruno Haible  <bruno@clisp.org>
65412
65413         * lib/linebuffer.h: Tweak doc.
65414         * lib/linebuffer.c: Likewise.
65415
65416 2007-05-12  James Youngman  <jay@gnu.org>
65417
65418         * lib/linebuffer.c (readlinebuffer_delim): New function,
65419         like readlinebuffer, but use a caller-specified delimiter.
65420         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65421         as the delimiter.
65422         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65423
65424 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65425
65426         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65427         * modules/openat (Files): Remove openat-die.c.
65428         (Depends-on): Add openat-die.
65429         * modules/openat-die: New module.
65430
65431 2007-05-06  Bruno Haible  <bruno@clisp.org>
65432
65433         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65434         Update with info about Cygwin.
65435         * doc/functions/fprintf.texi: Update.
65436         * doc/functions/printf.texi: Update.
65437         * doc/functions/snprintf.texi: Update.
65438         * doc/functions/sprintf.texi: Update.
65439         * doc/functions/vfprintf.texi: Update.
65440         * doc/functions/vprintf.texi: Update.
65441         * doc/functions/vsnprintf.texi: Update.
65442         * doc/functions/vsprintf.texi: Update.
65443         Reported by Eric Blake.
65444
65445 2007-05-06  Bruno Haible  <bruno@clisp.org>
65446
65447         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65448         padding ourselves for the floating-point directives.
65449         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65452         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65453         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65454         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65455         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65457         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65460         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65461         * tests/test-snprintf-posix.h (test_function): Also check the width
65462         and some flags in the %f directive.
65463         * tests/test-sprintf-posix.h (test_function): Likewise.
65464         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65465         * tests/test-vasprintf-posix.c (test_function): Likewise.
65466         * doc/functions/fprintf.texi: Update.
65467         * doc/functions/printf.texi: Update.
65468         * doc/functions/snprintf.texi: Update.
65469         * doc/functions/sprintf.texi: Update.
65470         * doc/functions/vfprintf.texi: Update.
65471         * doc/functions/vprintf.texi: Update.
65472         * doc/functions/vsnprintf.texi: Update.
65473         * doc/functions/vsprintf.texi: Update.
65474
65475 2007-05-06  Bruno Haible  <bruno@clisp.org>
65476
65477         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65478         pass the ' flag character to sprintf or snprintf.
65479         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65482         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65483         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65488         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65489         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65490         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65491         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65492         flag.
65493         * tests/test-sprintf-posix.h (test_function): Likewise.
65494         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65495         * tests/test-vasprintf-posix.c (test_function): Likewise.
65496         * doc/functions/fprintf.texi: Update.
65497         * doc/functions/printf.texi: Update.
65498         * doc/functions/snprintf.texi: Update.
65499         * doc/functions/sprintf.texi: Update.
65500         * doc/functions/vfprintf.texi: Update.
65501         * doc/functions/vprintf.texi: Update.
65502         * doc/functions/vsnprintf.texi: Update.
65503         * doc/functions/vsprintf.texi: Update.
65504
65505 2007-05-01  Bruno Haible  <bruno@clisp.org>
65506
65507         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65508
65509 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65512         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65513
65514 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65515
65516         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65517         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65519
65520 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65521
65522         * lib/argp-help.c (struct hol_entry): New member `ord'.
65523         (HOL_ENTRY_PTRCMP): Use ord for comparison
65524         (hol_sort): Initialize ord.
65525
65526 2007-05-01  Bruno Haible  <bruno@clisp.org>
65527
65528         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65529         Reported by Eric Blake.
65530         * doc/gnulib.texi (Function Substitutes): Update.
65531
65532 2007-05-01  Bruno Haible  <bruno@clisp.org>
65533
65534         * doc/functions.texi: Remove file, now redundant through
65535         doc/functions/*.texi.
65536
65537 2007-05-01  Bruno Haible  <bruno@clisp.org>
65538
65539         * modules/argp (Depends-on): Add sleep.
65540
65541 2007-05-01  Bruno Haible  <bruno@clisp.org>
65542
65543         * modules/sleep-tests: New file.
65544         * tests/test-sleep.c: New file.
65545
65546         * modules/sleep: New file.
65547         * lib/sleep.c: New file.
65548         * m4/sleep.m4: New file.
65549         * lib/unistd_.h (sleep): New declaration.
65550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65551         HAVE_SLEEP.
65552         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65553         * doc/functions/sleep.texi: Document the sleep module.
65554
65555 2007-05-01  Bruno Haible  <bruno@clisp.org>
65556
65557         * lib/sigprocmask.h: Remove file.
65558         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65559         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65560         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65561         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65562         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65563         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65564         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65565         HAVE_SIGSET_T as a shell variable.
65566         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65567         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65568         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65569         (Depends-on): Add signal. Remove verify.
65570         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65571         (Include): Mention <signal.h> instead of sigprocmask.h.
65572         * NEWS: Mention the change.
65573         * lib/fatal-signal.c: Don't include sigprocmask.h.
65574
65575 2007-05-01  Bruno Haible  <bruno@clisp.org>
65576
65577         * modules/signal: New file.
65578         * lib/signal_.h: New file.
65579         * m4/signal_h.m4: New file.
65580
65581 2007-05-01  Bruno Haible  <bruno@clisp.org>
65582
65583         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65584         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65585         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65586         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65587
65588 2007-05-01  Bruno Haible  <bruno@clisp.org>
65589
65590         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65591         configure time.
65592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65593         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65594         * modules/sys_stat (Makefile.am): Substitute their values into
65595         sys/stat.h.
65596
65597 2007-05-01  Bruno Haible  <bruno@clisp.org>
65598
65599         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65600         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65601         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65602
65603 2007-05-01  Bruno Haible  <bruno@clisp.org>
65604
65605         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65606         'assert' module here.
65607
65608 2007-05-01  Bruno Haible  <bruno@clisp.org>
65609
65610         * doc/functions/*.texi: New files.
65611         * doc/functions/google-ranking.txt: New file.
65612         * doc/gnulib.texi (Function Substitutes): New chapter.
65613         (ctime, inet_ntoa): Remove sections.
65614         * doc/ctime.texi: Remove file.
65615         * doc/inet_ntoa.texi: Remove file.
65616         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65617         dependencies.
65618         (%.info): New rule, specifying a --reference-limit.
65619
65620 2007-05-01  Bruno Haible  <bruno@clisp.org>
65621
65622         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65623
65624 2007-05-01  Bruno Haible  <bruno@clisp.org>
65625
65626         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65627         the portability of 'mkdir' to mingw systems.
65628
65629 2007-05-01  Bruno Haible  <bruno@clisp.org>
65630
65631         * doc/headers/google-ranking.txt: New file.
65632
65633 2007-04-30  Eric Blake  <ebb9@byu.net>
65634
65635         Prefer fseeko to fseek.
65636         * modules/getpass (Depends-on): Add fseeko.
65637         * lib/getpass.c (getpass): Use fseeko, not fseek.
65638
65639 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65640
65641         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65642         assumes the sorting is stable, while most qsort implementations
65643         are not.  Use argument addresses to ensure they never compare as
65644         equal.
65645
65646         * tests/test-argp-2.sh (usage-indent test): Fix output
65647         (func_compare): Restore diff options
65648         * tests/test-argp.c: Restore #include "progname.h"
65649
65650 2007-04-29  Bruno Haible  <bruno@clisp.org>
65651
65652         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65653         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65654         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65656         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65657         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65658         (TESTS, check_PROGRAMS): Add test-snprintf.
65659         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65660         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65661         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65662         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65663         assertions that fail on HP-UX, OSF/1, or IRIX.
65664         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65665
65666 2007-04-29  Bruno Haible  <bruno@clisp.org>
65667
65668         * MODULES.html.sh (posix_functions): Remove 'contents'.
65669
65670 2007-04-29  Karl Berry  <karl@gnu.org>
65671
65672         * config/srclist.txt (gendocs_template_min): new entry.
65673
65674 2007-04-29  Bruno Haible  <bruno@clisp.org>
65675
65676         Work around fpurge bug on BSD systems.
65677         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65678         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65679         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65680         fpurge to rpl_fpurge if the system already has this function.
65681         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65682         the case where the system already has this function. Correct invariants
65683         on BSD systems.
65684         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65685         BSD systems.
65686
65687 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65688
65689         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65690         proposed by Sven Verdoolaege.
65691
65692         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65693         options.
65694         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65695         (usage and help tests): Update
65696
65697 2007-04-29  Bruno Haible  <bruno@clisp.org>
65698
65699         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65700         Print more information in case of failure. Disable a test on BeOS.
65701
65702 2007-04-29  Bruno Haible  <bruno@clisp.org>
65703
65704         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65705         This helps debugging on systems on which no gdb is available.
65706
65707 2007-04-29  Bruno Haible  <bruno@clisp.org>
65708
65709         * lib/freading.h: Improve comments.
65710         * lib/fwriting.h: Likewise.
65711         * tests/test-freading.c (main): Don't check freading immediately after
65712         repositioning. Needed for glibc.
65713
65714 2007-04-29  Bruno Haible  <bruno@clisp.org>
65715
65716         * lib/freading.c (freading): Trivial simplification.
65717
65718 2007-04-28  Bruno Haible  <bruno@clisp.org>
65719
65720         * tests/test-fwriting.c (main): Also test the interaction between
65721         fflush and fwriting.
65722         * modules/fwriting-tests (Depends-on): Add fflush.
65723
65724         * tests/test-freading.c (main): Also test the interaction between
65725         fflush and freading.
65726         * modules/freading-tests (Depends-on): Add fflush.
65727
65728 2007-04-28  Bruno Haible  <bruno@clisp.org>
65729
65730         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65731         fseeko and ftello.
65732         Suggested by Eric Blake.
65733
65734 2007-04-28  Jim Meyering  <jim@meyering.net>
65735
65736         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65737         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65738         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65739
65740 2007-04-27  Eric Blake  <ebb9@byu.net>
65741
65742         * doc/headers/assert.texi (assert.h): Document assert module use.
65743
65744 2007-04-27  Bruno Haible  <bruno@clisp.org>
65745
65746         * doc/headers/*.texi: New files.
65747         * doc/gnulib.texi (Header File Substitutes): New chapter.
65748         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65749         dependencies.
65750         (standards.info ,standards.html, standards.dvi): Update dependencies.
65751         (mostlyclean, clean): New targets.
65752
65753 2007-04-27  Bruno Haible  <bruno@clisp.org>
65754
65755         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65756         * modules/sysexits (Files, Makefile.am): Update.
65757
65758         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65759         * modules/sys_socket (Files, Makefile.am): Update.
65760
65761         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65762         * modules/sys_stat (Files, Makefile.am): Update.
65763
65764 2007-04-27  Eric Blake  <ebb9@byu.net>
65765
65766         * lib/freading.h: Improve comments.
65767         * lib/fwriting.h: Likewise.
65768         * lib/fflush.c: Likewise.
65769
65770         Fix closein for mingw.
65771         * modules/closein-tests: Add tests for closein.
65772         * tests/test-closein.c: New file.
65773         * tests/test-closein.sh: Likewise.
65774         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65775         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65776
65777 2007-04-27  Bruno Haible  <bruno@clisp.org>
65778
65779         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65780         version is < 6.
65781         * lib/math_.h [__DECC]: Likewise.
65782         * lib/stdio_.h [__DECC]: Likewise.
65783         * lib/stdlib_.h [__DECC]: Likewise.
65784         * lib/string_.h [__DECC]: Likewise.
65785         * lib/time_.h [__DECC]: Likewise.
65786         * lib/wchar_.h [__DECC]: Likewise.
65787         * lib/wctype_.h [__DECC]: Likewise.
65788
65789 2007-04-27  Bruno Haible  <bruno@clisp.org>
65790
65791         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65792
65793 2007-04-27  Bruno Haible  <bruno@clisp.org>
65794
65795         * lib/fflush.c: Add comments.
65796         * modules/fpurge-tests (Depends-on): Add fflush.
65797         * modules/freadable-tests (Depends-on): Likewise.
65798         * modules/fwritable-tests (Depends-on): Likewise.
65799
65800 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65801
65802         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65803         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65804         Report by Bruno Haible <bruno@clisp.org>.
65805
65806 2007-04-26  Eric Blake  <ebb9@byu.net>
65807
65808         Fix fflush on mingw.
65809         * modules/fflush (Depends-on): Add freading.
65810         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65811         but unread data.
65812
65813 2007-04-26  Eric Blake  <ebb9@byu.net>
65814         and Bruno Haible  <bruno@clisp.org>
65815
65816         Implement freading and fwriting.
65817         * lib/freading.c: New file.
65818         * lib/freading.h: Likewise.
65819         * m4/freading.m4: Likewise.
65820         * modules/freading: Likewise.
65821         * modules/freading-tests: Likewise.
65822         * tests/test-freading.c: Likewise.
65823         * lib/fwriting.c: New file.
65824         * lib/fwriting.h: Likewise.
65825         * m4/fwriting.m4: Likewise.
65826         * modules/fwriting: Likewise.
65827         * modules/fwriting-tests: Likewise.
65828         * tests/test-fwriting.c: Likewise.
65829         * MODULES.html.sh (File stream based Input/Output): Mention them.
65830
65831 2007-04-26  Bruno Haible  <bruno@clisp.org>
65832
65833         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65834         'long' when we assume it.
65835         Suggested by Eric Blake.
65836
65837 2007-04-26  Bruno Haible  <bruno@clisp.org>
65838
65839         Ensure fseeko, ftello are declared on glibc systems.
65840         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65841         * modules/fseeko (configure.ac-early): Likewise.
65842         * modules/ftello (configure.ac-early): Likewise.
65843         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65844         AC_FUNC_FSEEKO for this.
65845         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65846         (gl_CHECK_FSEEKO): Remove macro.
65847
65848 2007-04-26  Bruno Haible  <bruno@clisp.org>
65849
65850         * tests/test-fflush.c (main): Also check the ftell result after
65851         fflush and fseek/fseeko.
65852         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65853         file descriptor position cache in the stream.
65854         * lib/fseeko.c (rpl_fseeko): Likewise.
65855
65856 2007-04-26  Bruno Haible  <bruno@clisp.org>
65857
65858         * modules/fflush-tests (Depends-on): Add fseeko.
65859
65860 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65861             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65862
65863         * lib/argz_.h: ensure error_t definition is obtained in same
65864         mechanism system argz.h would have.
65865         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65866         argz facilities are known bad.  Err on the side of caution if
65867         cross-compiling.
65868
65869 2007-04-25  Eric Blake  <ebb9@byu.net>
65870
65871         * lib/fpurge.c (includes): Use stdlib.h for free.
65872         * tests/test-fflush.c (main): Also test fflush-fseeko.
65873
65874 2007-04-25  Bruno Haible  <bruno@clisp.org>
65875
65876         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65877         * lib/fseeko.c: New file.
65878         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65879         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65880         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65881         gl_FUNC_FSEEKO.
65882         (gl_FUNC_FSEEKO): Invoke it.
65883         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65884         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65885         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65886
65887 2007-04-25  Bruno Haible  <bruno@clisp.org>
65888
65889         * modules/fflush (Depends-on): Add ftello.
65890
65891 2007-04-25  Bruno Haible  <bruno@clisp.org>
65892
65893         * modules/ftello-tests: New file.
65894         * tests/test-ftello.c: New file.
65895
65896         * modules/ftello: New file.
65897         * m4/ftello.m4: New file.
65898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65899         HAVE_FTELLO.
65900         * lib/stdio_.h (ftello): New declaration.
65901         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65902         HAVE_FTELLO.
65903
65904 2007-04-25  Bruno Haible  <bruno@clisp.org>
65905
65906         * modules/fseeko-tests: New file.
65907         * tests/test-fseeko.c: New file.
65908
65909         * modules/fseeko: New file.
65910         * m4/fseeko.m4: New file.
65911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65912         HAVE_FSEEKO.
65913         * lib/stdio_.h (fseeko): New declaration.
65914         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65915         HAVE_FSEEKO.
65916
65917 2007-04-25  Bruno Haible  <bruno@clisp.org>
65918
65919         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65920
65921 2007-04-25  Bruno Haible  <bruno@clisp.org>
65922
65923         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65924         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65925         * tests/test-unistd.c: Likewise.
65926         * tests/test-fcntl.c: Likewise.
65927
65928 2007-04-23  Eric Blake  <ebb9@byu.net>
65929
65930         * lib/fflush.c: Fix missing include.
65931         Reported by Bruno Haible.
65932
65933 2007-04-23  Bruno Haible  <bruno@clisp.org>
65934
65935         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65936         Reported by Eric Blake.
65937
65938 2007-04-23  Bruno Haible  <bruno@clisp.org>
65939
65940         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65941
65942 2007-04-23  Bruno Haible  <bruno@clisp.org>
65943
65944         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65945
65946 2007-04-23  Bruno Haible  <bruno@clisp.org>
65947
65948         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65949         Needed on HP-UX 11.
65950
65951 2007-04-16  Eric Blake  <ebb9@byu.net>
65952
65953         Make fflush rely on fpurge.
65954         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65955         open coding all variants.
65956         * modules/fflush (Depends-on): Add fpurge and unistd.
65957         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65958         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65959
65960         Fix --with-tests compilation on cygwin.
65961         * modules/argmatch-tests (Makefile.am): List gnulib library first
65962         in LDADD.
65963         * modules/argp-tests (Makefile.am): Likewise.
65964         * modules/array-list-tests (Makefile.am): Likewise.
65965         * modules/array-oset-tests (Makefile.am): Likewise.
65966         * modules/avltree-list-tests (Makefile.am): Likewise.
65967         * modules/avltree-oset-tests (Makefile.am): Likewise.
65968         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65969         * modules/carray-list-tests (Makefile.am): Likewise.
65970         * modules/dirname-tests (Makefile.am): Likewise.
65971         * modules/frexp-tests (Makefile.am): Likewise.
65972         * modules/isnanl-tests (Makefile.am): Likewise.
65973         * modules/linked-list-tests (Makefile.am): Likewise.
65974         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65975         * modules/lock-tests (Makefile.am): Likewise.
65976         * modules/rbtree-list-tests (Makefile.am): Likewise.
65977         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65978         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65979         * modules/tls-tests (Makefile.am): Likewise.
65980         * modules/tsearch-tests (Makefile.am): Likewise.
65981         * modules/xvasprintf-tests (Makefile.am): Likewise.
65982
65983         Fix fpurge for cygwin.
65984         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65985         value.
65986         * modules/fpurge-tests (Depends-on): Clean up trash.
65987
65988 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65989
65990         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65991
65992         * m4/autobuild.m4: Re-indent.
65993
65994 2007-04-13  Bruno Haible  <bruno@clisp.org>
65995
65996         * modules/fpurge-tests: New file.
65997         * tests/test-fpurge.c: New file.
65998
65999         * modules/fpurge: New file.
66000         * lib/fpurge.h: New file.
66001         * lib/fpurge.c: New file.
66002         * m4/fpurge.m4: New file.
66003
66004 2007-04-13  Bruno Haible  <bruno@clisp.org>
66005
66006         * modules/fbufmode-tests: New file.
66007         * tests/test-fbufmode.c: New file.
66008
66009         * modules/fbufmode: New file.
66010         * lib/fbufmode.h: New file.
66011         * lib/fbufmode.c: New file.
66012         * m4/fbufmode.m4: New file.
66013
66014 2007-04-13  Bruno Haible  <bruno@clisp.org>
66015
66016         * modules/fwritable-tests: New file.
66017         * tests/test-fwritable.c: New file.
66018
66019         * modules/fwritable: New file.
66020         * lib/fwritable.h: New file.
66021         * lib/fwritable.c: New file.
66022         * m4/fwritable.m4: New file.
66023
66024 2007-04-13  Bruno Haible  <bruno@clisp.org>
66025
66026         * modules/freadable-tests: New file.
66027         * tests/test-freadable.c: New file.
66028
66029         * modules/freadable: New file.
66030         * lib/freadable.h: New file.
66031         * lib/freadable.c: New file.
66032         * m4/freadable.m4: New file.
66033
66034 2007-04-13  Bruno Haible  <bruno@clisp.org>
66035
66036         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66037         MOSTLYCLEANFILES.
66038
66039 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66042         gzip bootstrap.conf to avoid dragging in i18n machinery.
66043         (gnulib_tool_option): Use it.
66044
66045 2007-04-13  Bruno Haible  <bruno@clisp.org>
66046
66047         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66048         %F directives.
66049         * tests/test-vasprintf-posix.c (test_function): Likewise.
66050         * tests/test-snprintf-posix.h (test_function): Likewise.
66051         * tests/test-sprintf-posix.h (test_function): Likewise.
66052         * tests/test-fprintf-posix.h (test_function): Likewise.
66053         * tests/test-printf-posix.h (test_function): Likewise.
66054         * tests/test-fprintf-posix.out: Likewise.
66055
66056 2007-04-13  Bruno Haible  <bruno@clisp.org>
66057
66058         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66059         * modules/tls-tests (configure.ac): Likewise.
66060         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66061
66062 2007-04-13  Bruno Haible  <bruno@clisp.org>
66063
66064         * lib/tls.c (glthread_tls_get): Fix return type.
66065         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66066
66067 2007-04-12  Eric Blake  <ebb9@byu.net>
66068
66069         * modules/gettime (Depends-on): Remove gettime.
66070         Reported by Dmitry V. Levin.
66071
66072 2007-04-12  Bruno Haible  <bruno@clisp.org>
66073
66074         * modules/fflush (Include): Mention <stdio.h>.
66075         * modules/strtoimax (Include): Mention <inttypes.h>.
66076         * modules/strtoumax (Include): Likewise.
66077
66078 2007-04-12  Eric Blake  <ebb9@byu.net>
66079
66080         * .cvsignore: New file.
66081         * .gitignore: Likewise.
66082
66083 2007-04-12  Bruno Haible  <bruno@clisp.org>
66084
66085         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66086         not before, since $(LDADD) often contains libgnu.a.
66087         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66088         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66089         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66090         Needed on Cygwin.
66091
66092 2007-04-12  Eric Blake  <ebb9@byu.net>
66093
66094         Work around glibc's failure to flush stdin on fclose.
66095         * lib/closein.c (close_stdin): Flush stdin before closing.
66096
66097         Work around glibc's failure to reset seekable stdin on exit.
66098         * modules/closein: New module.
66099         * lib/closein.c: New file.
66100         * lib/closein.h: Likewise.
66101         * m4/closein.m4: Likewise.
66102         * MODULES.html.sh (File stream based Input/Output): Document it.
66103
66104 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66105
66106         * gnulib-tool: Rename generated 'autobuild' script to
66107         'do-autobuild' in --create-megatestdir output.
66108
66109         * doc/gnulib.texi (Build robot for gnulib): Fix.
66110
66111 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66112
66113         * modules/sysexits (Depends-on): Add absolute-header.
66114
66115 2007-04-12  Eric Blake  <ebb9@byu.net>
66116
66117         No need to preserve errno on success.
66118         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66119         Reported by Bruno Haible.
66120
66121 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66122
66123         * MODULES.html.sh (Support for maintaining and releasing
66124         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66125
66126 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66127
66128         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66129
66130 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66131
66132         * modules/autobuild: New module.
66133
66134         * m4/autobuild.m4: New file.
66135
66136 2007-04-11  Bruno Haible  <bruno@clisp.org>
66137
66138         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66139         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66140         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66142         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66143         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66144         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66145         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66146         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66147         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66148         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66149         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66150         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66151         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66152         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66153         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66154         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66155         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66156         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66157         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66163         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66166         Reported by Eric Blake.
66167
66168 2007-04-11  Bruno Haible  <bruno@clisp.org>
66169
66170         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66171
66172 2007-04-10  Bruno Haible  <bruno@clisp.org>
66173
66174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66175         for NaN and Infinity. Needed on FreeBSD 6.1.
66176         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66177         regarding results for "%010a" of Infinity and NaN.
66178         * tests/test-vasprintf-posix.c (test_function): Likewise.
66179         * tests/test-snprintf-posix.h (test_function): Likewise.
66180         * tests/test-sprintf-posix.h (test_function): Likewise.
66181         * tests/test-fprintf-posix.h (test_function): Likewise.
66182         * tests/test-printf-posix.h (test_function): Likewise.
66183         * tests/test-fprintf-posix.out: Likewise.
66184
66185 2007-04-10  Bruno Haible  <bruno@clisp.org>
66186
66187         * modules/locale-tests: New file.
66188         * tests/test-locale.c: New file.
66189
66190         * modules/locale: New file.
66191         * lib/locale_.h: New file.
66192         * m4/locale_h.m4: New file.
66193
66194 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66195             Bruno Haible  <bruno@clisp.org>
66196
66197         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66198         be determined, test for availability of the copysignf, copysign,
66199         copysignl functions.
66200         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66201         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66202         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66203
66204 2007-04-09  Eric Blake  <ebb9@byu.net>
66205
66206         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66207         * modules/stdio (Makefile.am): Support fflush.
66208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66209         * modules/fflush: New file.
66210         * lib/fflush.c: Likewise.
66211         * m4/fflush.m4: Likewise.
66212         * modules/fflush-tests: New test.
66213         * tests/test-fflush.c: Likewise.
66214         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66215
66216 2007-04-06  Bruno Haible  <bruno@clisp.org>
66217
66218         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66219         (VASNPRINTF): Use signbit for faster determination whether to print a
66220         minus sign.
66221         * modules/vasnprintf (Files): Remove lib/float+.h.
66222         * modules/fprintf-posix (Depends-on): Add signbit.
66223         * modules/snprintf-posix (Depends-on): Likewise.
66224         * modules/sprintf-posix (Depends-on): Likewise.
66225         * modules/vasnprintf-posix (Depends-on): Likewise.
66226         * modules/vasprintf-posix (Depends-on): Likewise.
66227         * modules/vfprintf-posix (Depends-on): Likewise.
66228         * modules/vsnprintf-posix (Depends-on): Likewise.
66229         * modules/vsprintf-posix (Depends-on): Likewise.
66230
66231 2007-04-06  Bruno Haible  <bruno@clisp.org>
66232
66233         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66234         * tests/test-frexpl.c (main): Likewise.
66235         * tests/test-ldexpl.c (main): Likewise.
66236         * modules/frexp-tests (Depends-on): Add signbit.
66237         * modules/frexpl-tests (Depdends-on): Likewise.
66238         * modules/ldexpl-tests (Depdends-on): Likewise.
66239
66240 2007-04-06  Bruno Haible  <bruno@clisp.org>
66241
66242         * modules/signbit-tests: New file.
66243         * tests/test-signbit.c: New file.
66244
66245         * modules/signbit: New file.
66246         * lib/signbitf.c: New file.
66247         * lib/signbitd.c: New file.
66248         * lib/signbitl.c: New file.
66249         * m4/signbit.m4: New file.
66250         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66251         (signbit): New macro.
66252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66253         REPLACE_SIGNBIT.
66254         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66255         REPLACE_FREXPL into math.h.
66256
66257 2007-04-06  Bruno Haible  <bruno@clisp.org>
66258
66259         * modules/isnanf-nolibm-tests: New file.
66260         * tests/test-isnanf.c: New file.
66261
66262         * modules/isnanf-nolibm: New file.
66263         * lib/isnanf.h: New file.
66264         * lib/isnanf.c: New file.
66265         * lib/isnan.c: Consider the USE_FLOAT macro.
66266         * m4/isnanf.m4: New file.
66267
66268 2007-04-06  Bruno Haible  <bruno@clisp.org>
66269
66270         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66271         (Link): New section.
66272
66273         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66274
66275 2007-04-06  Bruno Haible  <bruno@clisp.org>
66276
66277         Assume the 'long double' type.
66278         * m4/longdouble.m4: Remove file.
66279         * config/srclist.txt: Don't mention longdouble.m4.
66280         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66281         * lib/float+.h: Likewise.
66282         * lib/frexp.c: Likewise.
66283         * lib/printf-args.h: Likewise.
66284         * lib/printf-args.c: Likewise.
66285         * lib/printf-frexp.c: Likewise.
66286         * lib/printf-parse.c: Likewise.
66287         * lib/vasnprintf.c: Likewise.
66288         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66289         * m4/intl.m4: Likewise.
66290         * m4/isnanl.m4: Likewise.
66291         * m4/printf.m4: Likewise.
66292         * m4/printf-frexpl.m4: Likewise.
66293         * m4/vasnprintf.m4: Likewise.
66294         * modules/allocsa (Files): Remove m4/longdouble.m4.
66295         * modules/gettext (Files): Likewise.
66296         * modules/relocatable-prog-wrapper (Files): Likewise.
66297         * modules/vasnprintf (Files): Likewise.
66298         * modules/isnanl (Files): Likewise.
66299         (Include): Simplify.
66300         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66301         (Include): Simplify.
66302         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66303         (Include): Simplify.
66304         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66305         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66306         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66307         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66308         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66309         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66310         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66311         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66312         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66313         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66314         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66315         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66316         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66317         * tests/test-isnanl.c: Likewise.
66318         * tests/test-snprintf-posix.h: Likewise.
66319         * tests/test-sprintf-posix.h: Likewise.
66320         * tests/test-vasnprintf-posix.c: Likewise.
66321         * tests/test-vasnprintf-posix2.c: Likewise.
66322         * tests/test-vasprintf-posix.c: Likewise.
66323
66324 2007-04-06  Bruno Haible  <bruno@clisp.org>
66325
66326         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66327         * lib/math_.h [__DECC]: Include the overridden include file through
66328         #include_next, outside the double-inclusion guard.
66329         * lib/stdio_.h [__DECC]: Likewise.
66330         * lib/stdlib_.h [__DECC]: Likewise.
66331         * lib/string_.h [__DECC]: Likewise.
66332         * lib/time_.h [__DECC]: Likewise.
66333         * lib/wchar_.h [__DECC]: Likewise.
66334         * lib/wctype_.h [__DECC]: Likewise.
66335         * lib/inttypes_.h [__DECC]: Likewise.
66336         Reported by Albert Chin <china@thewrittenword.com> in
66337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66338
66339 2007-04-04  Eric Blake  <ebb9@byu.net>
66340
66341         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66342         1.5.x.
66343
66344 2007-04-04  Bruno Haible  <bruno@clisp.org>
66345
66346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66347         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66348
66349 2007-04-04  Bruno Haible  <bruno@clisp.org>
66350
66351         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66352         results for "%010a" of Infinity and NaN.
66353         * tests/test-vasprintf-posix.c (test_function): Likewise.
66354         * tests/test-snprintf-posix.h (test_function): Likewise.
66355         * tests/test-sprintf-posix.h (test_function): Likewise.
66356         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66357         * tests/test-printf-posix.h (test_function): Likewise.
66358         * tests/test-fprintf-posix.out: Update.
66359         Needed for FreeBSD 6.1.
66360
66361 2007-04-04  Bruno Haible  <bruno@clisp.org>
66362
66363         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66364         directly used by the gnulib modules nor by gnulib-tool.
66365
66366 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66367
66368         * DEPENDENCIES: Give overall description of version dependency
66369         desirability.  Use more-typical names for apps.
66370         Add shell, coreutils, diffutils, grep, tar, gzip.
66371
66372 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66373
66374         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66375
66376 2007-04-04  Karl Berry  <karl@gnu.org>
66377
66378         * MODULES.html.sh (func_module): missing '.
66379
66380 2007-04-03  Bruno Haible  <bruno@clisp.org>
66381
66382         * modules/argmatch-tests (Makefile.am): New variable
66383         test_argmatch_LDADD.
66384         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66385         * modules/array-list-tests (Makefile.am): New variable
66386         test_array_list_LDADD.
66387         * modules/array-oset-tests (Makefile.am): New variable
66388         test_array_oset_LDADD.
66389         * modules/avltree-list-tests (Makefile.am): New variable
66390         test_avltree_list_LDADD.
66391         * modules/avltree-oset-tests (Makefile.am): New variable
66392         test_avltree_oset_LDADD.
66393         * modules/avltreehash-list-tests (Makefile.am): New variable
66394         test_avltreehash_list_LDADD.
66395         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66396         test_canonicalize_lgpl_LDADD.
66397         * modules/carray-list-tests (Makefile.am): New variable
66398         test_carray_list_LDADD.
66399         * modules/dirname-tests (Makefile.am): New variable
66400         test_dirname_LDADD.
66401         * modules/linked-list-tests (Makefile.am): New variable
66402         test_linked_list_LDADD.
66403         * modules/linkedhash-list-tests (Makefile.am): New variable
66404         test_linkedhash_list_LDADD.
66405         * modules/rbtree-list-tests (Makefile.am): New variable
66406         test_rbtree_list_LDADD.
66407         * modules/rbtree-oset-tests (Makefile.am): New variable
66408         test_rbtree_oset_LDADD.
66409         * modules/rbtreehash-list-tests (Makefile.am): New variable
66410         test_rbtreehash_list_LDADD.
66411         * modules/xvasprintf-tests (Makefile.am): New variable
66412         test_xvasprintf_LDADD.
66413         Reported by Eric Blake.
66414
66415 2007-04-03  Eric Blake  <ebb9@byu.net>
66416
66417         * DEPENDENCIES: Weaken m4 requirements.
66418
66419 2007-04-03  Bruno Haible  <bruno@clisp.org>
66420
66421         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66422         * modules/isnanl-tests (configure.ac): Likewise.
66423
66424 2007-04-03  Ben Pfaff  <blp@gnu.org>
66425
66426         * modules/iconv_open: Add $(srcdir)/ to source directory
66427         references in Makefile fragments that call gperf, to fix VPATH
66428         builds.
66429
66430 2007-04-03  Bruno Haible  <bruno@clisp.org>
66431
66432         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66433         * lib/ldexpl.c: Undo last change.
66434
66435 2007-04-03  Bruno Haible  <bruno@clisp.org>
66436
66437         * modules/printf-frexpl (Depends-on): Undo last change.
66438         (Files): Add m4/ldexpl.m4.
66439
66440 2007-04-03  Bruno Haible  <bruno@clisp.org>
66441
66442         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66443         * modules/isnanl (Link): New section.
66444
66445         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66446         * modules/frexp (Link): New section.
66447
66448         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66449         * modules/frexpl (Link): New section.
66450
66451         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66452         * modules/ldexpl (Link): New section.
66453
66454 2007-04-03  Bruno Haible  <bruno@clisp.org>
66455
66456         * modules/TEMPLATE-EXTENDED: New file.
66457         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66458
66459 2007-04-03  Bruno Haible  <bruno@clisp.org>
66460
66461         * DEPENDENCIES: New file.
66462         Suggested by Simon Josefsson.
66463
66464 2007-04-03  Bruno Haible  <bruno@clisp.org>
66465
66466         * doc/gnulib.texi: Escape @.
66467
66468 2007-04-03  James Youngman  <jay@gnu.org>
66469         and Paul Eggert  <eggert@cs.ucla.edu>
66470
66471         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66472         birthtime on all systems that have birthtime, not just those which
66473         use st_birthtimensec rather than st_birthtim.  Putting zero in
66474         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66475         that the birth time is not available for files on an NFS mount.
66476
66477 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66478
66479         * modules/memxor: Move back from crypto/, suggested by Bruno.
66480         * modules/crypto/hmac-sha1: Fix memxor dependency.
66481
66482         * modules/crypto/gc: Moved from ../.
66483
66484 2007-04-02  Eric Blake  <ebb9@byu.net>
66485
66486         * lib/ldexpl.c (includes): Avoid libm.
66487
66488         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66489
66490 2007-04-02  Bruno Haible  <bruno@clisp.org>
66491
66492         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66493         on IRIX.
66494
66495 2007-04-02  Bruno Haible  <bruno@clisp.org>
66496
66497         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66498         x86 or x86_64 platforms running MacOS X.
66499         Reported by Ryan Schmidt <@ryandesign.com>.
66500
66501 2007-04-02  Bruno Haible  <bruno@clisp.org>
66502
66503         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66504         i386.
66505
66506 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66507
66508         * modules/crypto/arcfour: Moved from ../.
66509         * modules/crypto/arcfour-tests: Moved from ../.
66510         * modules/crypto/arctwo: Moved from ../.
66511         * modules/crypto/arctwo-tests: Moved from ../.
66512         * modules/crypto/des: Moved from ../.
66513         * modules/crypto/des-tests: Moved from ../.
66514         * modules/crypto/gc-arcfour: Moved from ../.
66515         * modules/crypto/gc-arcfour-tests: Moved from ../.
66516         * modules/crypto/gc-arctwo: Moved from ../.
66517         * modules/crypto/gc-arctwo-tests: Moved from ../.
66518         * modules/crypto/gc-des: Moved from ../.
66519         * modules/crypto/gc-des-tests: Moved from ../.
66520         * modules/crypto/gc-hmac-md5: Moved from ../.
66521         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66522         * modules/crypto/gc-hmac-sha1: Moved from ../.
66523         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66524         * modules/crypto/gc-md2: Moved from ../.
66525         * modules/crypto/gc-md2-tests: Moved from ../.
66526         * modules/crypto/gc-md4: Moved from ../.
66527         * modules/crypto/gc-md4-tests: Moved from ../.
66528         * modules/crypto/gc-md5: Moved from ../.
66529         * modules/crypto/gc-md5-tests: Moved from ../.
66530         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66531         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66532         * modules/crypto/gc-random: Moved from ../.
66533         * modules/crypto/gc-rijndael: Moved from ../.
66534         * modules/crypto/gc-rijndael-tests: Moved from ../.
66535         * modules/crypto/gc-sha1: Moved from ../.
66536         * modules/crypto/gc-sha1-tests: Moved from ../.
66537         * modules/crypto/gc-tests: Moved from ../.
66538         * modules/crypto/hmac-md5: Moved from ../.
66539         * modules/crypto/hmac-md5-tests: Moved from ../.
66540         * modules/crypto/hmac-sha1: Moved from ../.
66541         * modules/crypto/hmac-sha1-tests: Moved from ../.
66542         * modules/crypto/md2: Moved from ../.
66543         * modules/crypto/md2-tests: Moved from ../.
66544         * modules/crypto/md4: Moved from ../.
66545         * modules/crypto/md4-tests: Moved from ../.
66546         * modules/crypto/md5: Moved from ../.
66547         * modules/crypto/md5-tests: Moved from ../.
66548         * modules/crypto/memxor: Moved from ../.
66549         * modules/crypto/rijndael: Moved from ../.
66550         * modules/crypto/rijndael-tests: Moved from ../.
66551         * modules/crypto/sha1: Moved from ../.
66552
66553 2007-03-30  James Youngman  <jay@gnu.org>
66554
66555         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66556         rename() to change the ctime of a file (because ctime is unaffected
66557         by rename on jfs2 on AIX 5.1).
66558         (main): Start by doing cleanup, in case a previous run failed leaving
66559         test files behind.
66560
66561 2007-03-31  Bruno Haible  <bruno@clisp.org>
66562
66563         Support old proprietary implementations of iconv.
66564         * modules/iconv_open: New file.
66565         * lib/iconv_.h: New file.
66566         * m4/iconv_h.m4: New file.
66567         * lib/iconv_open.c: New file.
66568         * lib/iconv_open-aix.gperf: New file.
66569         * lib/iconv_open-hpux.gperf: New file.
66570         * lib/iconv_open-irix.gperf: New file.
66571         * lib/iconv_open-osf.gperf: New file.
66572         * m4/iconv_open.m4: New file.
66573         * modules/linebreak (Depends-on): Add iconv_open.
66574         * modules/striconv (Depends-on): Likewise.
66575         * modules/striconveh (Depends-on): Likewise.
66576         * modules/unicodeio (Depends-on): Likewise.
66577         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66578         (iconv_t)(-1).
66579         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66580         conversion if cd is (iconv_t)(-1).
66581         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66582         is not possible.
66583
66584 2007-03-31  Bruno Haible  <bruno@clisp.org>
66585
66586         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66587         work on Solaris either. Protect also second use of "autodetect_jp".
66588
66589 2007-03-31  Bruno Haible  <bruno@clisp.org>
66590
66591         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66592         the function is not present.
66593
66594 2007-03-31  Bruno Haible  <bruno@clisp.org>
66595
66596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66597         the function is not present.
66598
66599 2007-03-31  Bruno Haible  <bruno@clisp.org>
66600
66601         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66602         a bug in HP-UX iconv_open().
66603
66604 2007-03-31  Bruno Haible  <bruno@clisp.org>
66605
66606         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66607         (Mathematics <math.h>): New section, add fpieee.
66608         (Input/output <stdio.h>): Add fseterr.
66609         (Mathematics <math.h>): New section, add printf-frexp.
66610         (Container data structures): Add sublist.
66611         (Core language properties): Add fpucw, inline.
66612         (Functions for greatest-width integer types <inttypes.h>): Add
66613         imaxabs, imaxdiv, inttypes.
66614         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66615         isnanl-nolibm, ldexp.
66616         (Mathematics <math.h>): New section, add printf-frexpl.
66617         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66618         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66619         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66620         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66621         (Unicode string functions): Add unistr/u*-mbtoucr.
66622         (Java): Add javacomp-script, javaexec-script.
66623         (C#): Add csharpcomp-script, csharpexec-script.
66624         (Support for building libraries and executables): Add havelib,
66625         relocatable-*.
66626         (Support for maintaining and releasing projects): Renamed from
66627         'Support for maintaining and release projects'. Add announce-gen.
66628
66629 2007-03-31  Bruno Haible  <bruno@clisp.org>
66630
66631         * README: Talk primarily about git.
66632         (git and CVS): Renamed from CVS.
66633         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66634         gnulib is available through git.
66635         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66636
66637 2007-03-30  Bruno Haible  <bruno@clisp.org>
66638
66639         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66640         * lib/poll_.h: Likewise.
66641         * lib/stat_.h: Likewise.
66642         * lib/sys_time_.h: Likewise.
66643         * lib/sysexit_.h: Likewise.
66644         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66645         * lib/stdbool_.h: Likewise.
66646         * lib/byteswap_.h: Add double-inclusion guard.
66647
66648 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66649
66650         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66651
66652 2007-03-30  Karl Berry  <karl@gnu.org>
66653
66654         * config/srclist-update: double space after USA in the license
66655         substitution, since that's how it's usually (?) written.
66656
66657 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66658
66659         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66660         reported by Bruno Haible.
66661
66662 2007-03-29  Bruno Haible  <bruno@clisp.org>
66663
66664         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66665         a bug in AIX iconv().
66666
66667 2007-03-29  Bruno Haible  <bruno@clisp.org>
66668
66669         * modules/ldexpl-tests: New file.
66670         * tests/test-ldexpl.c: New file.
66671
66672 2007-03-29  Bruno Haible  <bruno@clisp.org>
66673
66674         * lib/ldexpl.c: Include fpucw.h.
66675         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66676         multiplication.
66677         * modules/ldexpl (Depends-on): Add fpucw.
66678
66679 2007-03-29  Bruno Haible  <bruno@clisp.org>
66680
66681         * modules/ldexpl: New file.
66682         * m4/ldexpl.m4: New file.
66683         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66684         set.
66685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66686         REPLACE_LDEXPL.
66687         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66688         REPLACE_LDEXPL.
66689         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66690         gl_FUNC_LDEXPL_WORKS.
66691         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66692         * modules/mathl (Files): Remove lib/ldexpl.c.
66693         (Depends-on): Add ldexpl.
66694
66695 2007-03-29  Bruno Haible  <bruno@clisp.org>
66696
66697         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66698
66699 2007-03-29  Bruno Haible  <bruno@clisp.org>
66700
66701         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66702         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66703         and possibly also HP-UX.
66704         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66705         work on AIX, IRIX, HP-UX, OSF/1.
66706         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66707         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66708         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66709         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66710         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66711         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66712
66713 2007-03-29  Bruno Haible  <bruno@clisp.org>
66714
66715         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66716
66717 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66720         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66721
66722 2007-03-29  Eric Blake  <ebb9@byu.net>
66723
66724         * lib/acl-internal.h: Remove redundant include.
66725         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66726         Cygwin when a file is locked.
66727
66728 2007-03-29  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66731         file.
66732         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66733
66734 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66735
66736         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66737         try to remove a parent directory if the child couldn't be removed
66738         (except for the first rmdir, which could fail because the child
66739         doesn't exist).  Problem reported by Jeff Blaine in
66740         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66741
66742 2007-03-28  Bruno Haible  <bruno@clisp.org>
66743
66744         * lib/striconveh.c (utf8conv_carefully): New function.
66745         (mem_cd_iconveh_internal): Invoke it.
66746
66747 2007-03-28  Bruno Haible  <bruno@clisp.org>
66748
66749         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66750         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66751         input.
66752         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66753         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66754         unistr/u8-uctomb.
66755
66756 2007-03-28  Bruno Haible  <bruno@clisp.org>
66757
66758         * modules/unistr/u8-mbtoucr: New file.
66759         * lib/unistr/u8-mbtoucr.c: New file.
66760         * modules/unistr/u16-mbtoucr: New file.
66761         * lib/unistr/u16-mbtoucr.c: New file.
66762         * modules/unistr/u16-mbtoucr: New file.
66763         * lib/unistr/u16-mbtoucr.c: New file.
66764         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66765
66766 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66767             Bruno Haible  <bruno@clisp.org>
66768
66769         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66770         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66771         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66772
66773         * m4/stdio_h.m4: Add stubs for vasprintf too.
66774
66775         * modules/stdio: Support vasprintf in sed command.
66776
66777         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66778         vasprintf.h.  Add stdio module indicator.
66779
66780         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66781         vasprintf.h.
66782
66783         * lib/vasprintf.h: File removed.
66784
66785         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66786         * lib/vasprintf.c: Ditto.
66787         * lib/xvasprintf.c: Ditto.
66788         * tests/test-vasprintf-posix.c: Ditto.
66789         * tests/test-vasprintf.c: Ditto.
66790
66791 2007-03-27  Bruno Haible  <bruno@clisp.org>
66792
66793         Make vasnprintf multithread-safe.
66794         * lib/vasnprintf.c (decimal_point_char): New function.
66795         (VASNPRINTF): Use it.
66796         Suggested by Simon Josefsson.
66797
66798 2007-03-27  Eric Blake  <ebb9@byu.net>
66799
66800         Support sub-second birthtime on cygwin.
66801         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66802         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66803         (get_stat_birthtime): Also work with st_birthtim.
66804
66805 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66808         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66809         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66810         (get_stat_birthtime_ns): Simplify compile-time tests.
66811         (get_stat_birthtime): Change the API to look like
66812         get_stat_mtime etc., except return a negative tv_nsec on error.
66813         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66814         Don't check for "spare" fields.
66815         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66816         or for struct stat.st_birthtime, as these tests aren't used.
66817         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66818
66819 2007-03-27  Bruno Haible  <bruno@clisp.org>
66820
66821         * lib/stat-time.h: Include <sys/stat.h>.
66822
66823 2007-03-27  James Youngman  <jay@gnu.org>
66824
66825         * lib/stat-time.h (get_stat_birthtime): New function for
66826           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66827         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66828           and its variants.
66829         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66830         * modules/stat-time-test: New file.
66831         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66832
66833 2007-03-26  Bruno Haible  <bruno@clisp.org>
66834
66835         Better support of signalling NaNs.
66836         * lib/atanl.c: Include isnanl.h.
66837         (atanl): Perform test for NaN at the beginning of the function and
66838         through a call to isnanl.
66839         * lib/cosl.c: Include isnanl.h.
66840         (cosl): Perform test for NaN at the beginning of the function and
66841         through a call to isnanl.
66842         * lib/ldexpl.c: Include isnanl.h.
66843         (ldexpl): Perform test for NaN through a call to isnanl.
66844         * lib/logl.c: Include isnanl.h.
66845         (logl): Perform test for NaN at the beginning of the function and
66846         through a call to isnanl.
66847         * lib/sinl.c: Include isnanl.h.
66848         (sinl): Perform test for NaN at the beginning of the function and
66849         through a call to isnanl.
66850         * lib/sqrtl.c: Include isnanl.h.
66851         (sqrtl): Perform test for NaN at the beginning of the function and
66852         through a call to isnanl.
66853         * lib/tanl.c: Include isnanl.h.
66854         (tanl): Perform test for NaN at the beginning of the function and
66855         through a call to isnanl.
66856         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66857         * modules/mathl (Depends-on): Add isnanl.
66858
66859 2007-03-26  Eric Blake  <ebb9@byu.net>
66860
66861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66862         regression in logic sense of previous patch.
66863
66864 2007-03-26  Bruno Haible  <bruno@clisp.org>
66865
66866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66867         unportable shell command "if ! ...".
66868         Reported by Ralf Wildenhues.
66869
66870 2007-03-25  Bruno Haible  <bruno@clisp.org>
66871
66872         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66873         <sysexits.h> file, and only add EX_CONFIG.
66874         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66875         absolute file name and whether it is sufficient. Substitute also
66876         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66877         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66878         ABSOLUTE_SYSEXITS_H into sysexits.h.
66879
66880 2007-03-25  Bruno Haible  <bruno@clisp.org>
66881
66882         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66883         hints is NULL.
66884
66885 2007-03-25  Bruno Haible  <bruno@clisp.org>
66886
66887         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66888         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66889
66890 2007-03-25  Bruno Haible  <bruno@clisp.org>
66891
66892         * lib/vasnprintf.c: Include langinfo.h.
66893         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66894         multithread-safe.
66895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66896         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66897         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66898         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66904         Reported by Simon Josefsson.
66905
66906 2007-03-25  Bruno Haible  <bruno@clisp.org>
66907
66908         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66909         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66910         * modules/vasnprintf (Depends-on): Add stdint.
66911
66912 2007-03-25  Bruno Haible  <bruno@clisp.org>
66913
66914         * modules/fpieee: New file.
66915         * m4/fpieee.m4: New file.
66916         * modules/isnan-nolibm (Depends-on): Add fpieee.
66917         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66918         * modules/isnanl (Depends-on): Add fpieee.
66919
66920 2007-03-25  Bruno Haible  <bruno@clisp.org>
66921
66922         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66923
66924 2007-03-25  Bruno Haible  <bruno@clisp.org>
66925
66926         Avoid test failures on IRIX 6.5.
66927         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66928         (main): Use it.
66929         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66930         macros.
66931         (main): Use them.
66932
66933 2007-03-25  Bruno Haible  <bruno@clisp.org>
66934
66935         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66936         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66937         exists but doesn't work.
66938         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66939         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66941         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66942         math.h.
66943
66944 2007-03-25  Bruno Haible  <bruno@clisp.org>
66945
66946         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66947         returns inf. Needed on IRIX 6.5.
66948
66949 2007-03-25  Bruno Haible  <bruno@clisp.org>
66950
66951         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66952         (main): Use isnanl instead of x != x idiom.
66953         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66954
66955         * tests/test-frexp.c: Include isnan.h.
66956         (main): Use isnan instead of x != x idiom.
66957         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66958
66959 2007-03-25  Bruno Haible  <bruno@clisp.org>
66960
66961         * tests/test-frexp.c (NaN): New function/macro.
66962         (main): Use it instead of 0.0 / 0.0.
66963         * tests/test-isnan.c (NaN): New function/macro.
66964         (main): Use it instead of 0.0 / 0.0.
66965         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66966         (test_function): Use it instead of 0.0 / 0.0.
66967         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66968         (test_function): Use it instead of 0.0 / 0.0.
66969         * tests/test-snprintf-posix.h (NaN): New function/macro.
66970         (test_function): Use it instead of 0.0 / 0.0.
66971         * tests/test-sprintf-posix.h (NaN): New function/macro.
66972         (test_function): Use it instead of 0.0 / 0.0.
66973         * tests/test-fprintf-posix.h (NaN): New function/macro.
66974         (test_function): Use it instead of 0.0 / 0.0.
66975         * tests/test-printf-posix.h (NaN): New function/macro.
66976         (test_function): Use it instead of 0.0 / 0.0.
66977
66978         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66979
66980 2007-03-25  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66983
66984 2007-03-25  Bruno Haible  <bruno@clisp.org>
66985
66986         * lib/regexec.c (merge_state_with_log): Make static.
66987
66988 2007-03-25  Bruno Haible  <bruno@clisp.org>
66989
66990         * lib/trigl.c (kernel_rem_pio2): Make static.
66991
66992 2007-03-25  Bruno Haible  <bruno@clisp.org>
66993
66994         * lib/sincosl.c (sincosl_table): Make static.
66995
66996 2007-03-25  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66999         if the compiler does not support C99.
67000
67001 2007-03-25  Bruno Haible  <bruno@clisp.org>
67002
67003         * modules/time (Makefile.am): Ensure all rule action lines start with a
67004         tab.
67005
67006 2007-03-24  Bruno Haible  <bruno@clisp.org>
67007
67008         * modules/tsearch-tests: New file.
67009         * tests/test-tsearch.sh: New file.
67010         * tests/test-tsearch.c: New file, mostly copied from glibc.
67011
67012         * modules/search-tests: New file.
67013         * tests/test-search.c: New file.
67014
67015         * modules/search: New file.
67016         * lib/search_.h: New file, incorporating lib/tsearch.h.
67017         * m4/search_h.m4: New file.
67018         * lib/tsearch.h: Remove file.
67019         * lib/tsearch.c: Include search.h instead of tsearch.h.
67020         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67021         HAVE_TSEARCH.
67022         * modules/tsearch (Files): Remove lib/tsearch.h.
67023         (Depends-on): Add search.
67024         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67025         (Include): Change tsearch.h into search.h.
67026
67027 2007-03-24  Bruno Haible  <bruno@clisp.org>
67028
67029         * modules/fpucw: New file.
67030         * lib/fpucw.h: New file.
67031         * lib/frexp.c: Include fpucw.h.
67032         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67033         (FUNC): Use them.
67034         * lib/printf-frexp.c: Include fpucw.h.
67035         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67036         (FUNC): Use them.
67037         * lib/vasnprintf.c: Include fpucw.h.
67038         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67039         'long double' calculations.
67040         * tests/test-frexpl.c: Include fpucw.h.
67041         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67042         * tests/test-printf-frexpl.c: Include fpucw.h.
67043         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67044         * modules/frexpl (Depends-on): Add fpucw.
67045         * modules/printf-frexpl (Depends-on): Likewise.
67046         * modules/fprintf-posix (Depends-on): Likewise.
67047         * modules/snprintf-posix (Depends-on): Likewise.
67048         * modules/sprintf-posix (Depends-on): Likewise.
67049         * modules/vasnprintf-posix (Depends-on): Likewise.
67050         * modules/vasprintf-posix (Depends-on): Likewise.
67051         * modules/vfprintf-posix (Depends-on): Likewise.
67052         * modules/vsnprintf-posix (Depends-on): Likewise.
67053         * modules/vsprintf-posix (Depends-on): Likewise.
67054         * modules/frexpl-tests (Depends-on): Likewise.
67055         * modules/printf-frexpl-tests (Depends-on): Likewise.
67056
67057 2007-03-24  Bruno Haible  <bruno@clisp.org>
67058
67059         * lib/float+.h: New file.
67060         * lib/isnan.c: Include float+.h.
67061         (SIZE): New macro.
67062         (FUNC): Compare only SIZE bytes of the value.
67063         * lib/vasnprintf.c: Include float+.h.
67064         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67065         SIZEOF_LDBL or SIZEOF_DBL bytes.
67066         * modules/isnan-nolibm (Files): Add lib/float+.h.
67067         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67068         * modules/isnanl (Files): Add lib/float+.h.
67069         * modules/vasnprintf (Files): Add lib/float+.h.
67070
67071 2007-03-24  Bruno Haible  <bruno@clisp.org>
67072
67073         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67074         include isnanl-nolibm.h.
67075
67076 2007-03-24  Bruno Haible  <bruno@clisp.org>
67077
67078         * tests/test-read-file.c (main): Don't produce spurious output for
67079         expected situations. Make the test fail if it encountered unexpected
67080         results.
67081
67082 2007-03-24  Bruno Haible  <bruno@clisp.org>
67083
67084         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67085         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67086
67087 2007-03-24  Bruno Haible  <bruno@clisp.org>
67088
67089         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67090
67091 2007-03-24  Bruno Haible  <bruno@clisp.org>
67092
67093         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67094         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67095
67096         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67097         * modules/utf8-ucs4: Turn into a symbolic link to module
67098         unistr/u8-mbtouc.
67099
67100         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67101         utf8-ucs4-unsafe.
67102         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67103         unistr/u8-mbtouc-unsafe.
67104
67105         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67106         * modules/utf16-ucs4: Turn into a symbolic link to module
67107         unistr/u16-mbtouc.
67108
67109         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67110         utf16-ucs4-unsafe.
67111         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67112         unistr/u16-mbtouc-unsafe.
67113
67114         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67115         * modules/ucs4-utf8: Turn into a symbolic link to module
67116         unistr/u8-ubtomb.
67117
67118         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67119         * modules/ucs4-utf16: Turn into a symbolic link to module
67120         unistr/u16-ubtomb.
67121
67122 2007-03-24  Bruno Haible  <bruno@clisp.org>
67123
67124         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67125         Enable the function only if HAVE_INLINE.
67126         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67127         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67128         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67129         Enable the function only if HAVE_INLINE.
67130         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67131         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67132         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67133         Enable the function only if HAVE_INLINE.
67134         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67135         Enable the function only if HAVE_INLINE.
67136         * modules/utf8-ucs4: Update.
67137         * modules/utf8-ucs4-unsafe: Update.
67138         * modules/utf16-ucs4: Update.
67139         * modules/utf16-ucs4-unsafe: Update.
67140         * modules/ucs4-utf8: Update.
67141         * modules/ucs4-utf16: Update.
67142
67143 2007-03-24  Bruno Haible  <bruno@clisp.org>
67144
67145         * lib/utf8-ucs4.h: Remove file.
67146         * lib/utf8-ucs4-unsafe.h: Remove file.
67147         * lib/utf16-ucs4.h: Remove file.
67148         * lib/utf16-ucs4-unsafe.h: Remove file.
67149         * lib/ucs4-utf8.h: Remove file.
67150         * lib/ucs4-utf16.h: Remove file.
67151         * lib/unistr.h: Include their previous contents.
67152         * m4/utf-ucs4.m4: Remove file.
67153         * m4/ucs4-utf.m4: Remove file.
67154         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67155         (Depends-on): Add unistr/base.
67156         (configure.ac): Remove gl_UTF_UCS4.
67157         (Makefile.am): Update.
67158         (Include): Change to unistr.h.
67159         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67160         (Depends-on): Add unistr/base.
67161         (configure.ac): Remove gl_UTF_UCS4.
67162         (Makefile.am): Update.
67163         (Include): Change to unistr.h.
67164         * modules/utf16-ucs4 (Files): Remove lib/utf16-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/utf16-ucs4-unsafe (Files): Remove lib/utf16-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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67175         (Depends-on): Add unistr/base.
67176         (configure.ac): Remove gl_UCS4_UTF.
67177         (Makefile.am): Update.
67178         (Include): Change to unistr.h.
67179         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67180         (Depends-on): Add unistr/base.
67181         (configure.ac): Remove gl_UCS4_UTF.
67182         (Makefile.am): Update.
67183         (Include): Change to unistr.h.
67184         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67185         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67186         utf8-ucs4-unsafe.h.
67187         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67188         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67189         utf16-ucs4-unsafe.h.
67190         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67191         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67192         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67193         * lib/unistr/u8-strchr.c: Likewise.
67194         * lib/unistr/u8-strrchr.c: Likewise.
67195         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67196         * lib/unistr/u16-strchr.c: Likewise.
67197         * lib/unistr/u16-strrchr.c: Likewise.
67198         * lib/striconveh.c: Update.
67199         * lib/linebreak.c: Update.
67200
67201 2007-03-24  Bruno Haible  <bruno@clisp.org>
67202
67203         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67204         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67205
67206 2007-03-22  Bruno Haible  <bruno@clisp.org>
67207
67208         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67209
67210 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         * MODULES.html.sh (File system functions): New module write-any-file.
67213         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67214         * m4/write-any-file.m4: New files.
67215
67216 2007-03-23  Eric Blake  <ebb9@byu.net>
67217
67218         * gnulib-tool: Rearrange space-tab sequences, since some editors
67219         like to eat them.
67220
67221 2007-03-23  Eric Blake  <ebb9@byu.net>
67222
67223         * lib/version-etc.c (version_etc_va): Update license wording to
67224         be more concise.  Recommended by Richard Stallman.
67225
67226 2007-03-22  Bruno Haible  <bruno@clisp.org>
67227
67228         * lib/poll.c (MSG_PEEK): New fallback definition.
67229
67230 2007-03-22  Bruno Haible  <bruno@clisp.org>
67231
67232         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67233         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67234         (main): Update.
67235         Fixes a compilation error on BeOS.
67236
67237 2007-03-22  Bruno Haible  <bruno@clisp.org>
67238
67239         * modules/frexpl-tests: New file.
67240         * tests/test-frexpl.c: New file.
67241
67242         * modules/frexpl: New file.
67243         * m4/frexpl.m4: New file.
67244         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67245         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67247         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67248         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67249         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67250
67251 2007-03-22  Bruno Haible  <bruno@clisp.org>
67252
67253         * lib/frexpl.c: Share code with lib/frexp.c.
67254         * modules/mathl (Files): Add lib/frexp.c.
67255         (Depends-on): Add isnanl-nolibm.
67256
67257 2007-03-22  Bruno Haible  <bruno@clisp.org>
67258
67259         * modules/printf-frexp (Files): Add m4/frexp.m4.
67260         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67261         only if the found frexp function actually works.
67262
67263 2007-03-22  Bruno Haible  <bruno@clisp.org>
67264
67265         * lib/frexp.c: Remove older implementation that uses divisions.
67266
67267 2007-03-21  Bruno Haible  <bruno@clisp.org>
67268
67269         * modules/frexp-tests: New file.
67270         * tests/test-frexp.c: New file.
67271
67272         * modules/frexp: New file.
67273         * lib/frexp.c: New file.
67274         * m4/frexp.m4: New file.
67275         * lib/math_.h (frexp): New declaration.
67276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67277         REPLACE_FREXP.
67278         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67279
67280 2007-03-21  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/isnanl-tests: New file.
67283         * tests/test-isnanl.c: New file.
67284
67285         * modules/isnanl: New file.
67286         * lib/isnanl.h: New file.
67287         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67288         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67289         gl_FUNC_ISNANL_WORKS.
67290         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67291         New macros.
67292
67293 2007-03-21  Bruno Haible  <bruno@clisp.org>
67294
67295         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67296         lib/isnanl.h.
67297         (Include): Update.
67298         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67299         * lib/vasnprintf.c: Update.
67300         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67301         tests/test-isnanl.h, remove tests/test-isnanl.c.
67302         (Makefile.am): Update.
67303         * tests/test-isnanl-nolibm.c: New file.
67304         * tests/test-isnanl.h: New file.
67305         * tests/test-isnanl.c: Remove file.
67306
67307 2007-03-21  Jim Meyering  <jim@meyering.net>
67308
67309         When trying to open ".", treat ESTALE like EACCES.
67310         * lib/savewd.c (savewd_save): Resort to forking not just upon
67311         failure with EACCES, but also when errno is ESTALE.
67312
67313 2007-03-20  Bruno Haible  <bruno@clisp.org>
67314
67315         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67316         Needed on AIX 5.1. Reported by Matthew Woehlke.
67317
67318 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         Suggestions by Bruno Haible:
67321         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67322         our own.
67323         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67324         * modules/acl (Depends-on): Add gettext.
67325
67326 2007-03-19  Bruno Haible  <bruno@clisp.org>
67327
67328         * modules/iconvme: Remove file.
67329         * lib/iconvme.h: Remove file.
67330         * lib/iconvme.c: Remove file.
67331         * m4/iconvme.m4: Remove file.
67332
67333 2007-03-19  Bruno Haible  <bruno@clisp.org>
67334
67335         * doc/relocatable-maint.texi: Break long shell script line.
67336         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67337
67338 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67339
67340         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67341         handle file_has_acl.
67342         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67343         * lib/acl.c: Move header inclusions and related macro defns into
67344         lib/acl-internal.h.
67345         (S_ISLNK): Remove defn, since that's now done for us.
67346         (file_has_acl): Move to lib/file-has-acl.c.
67347         Call acl_trivial if available.  This is the crucial part of the fix.
67348         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67349         shared within the library.  Rewrite a bit, partly to make it compatible
67350         with the GNU coding style.
67351         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67352         Remove unnecessary double-quotes.
67353         Don't test for acl_to_text; the build will catch that.
67354         Replace acl_entries if it doesn't exist and it is needed.
67355         Check for -lsec and acl_trivial (as used on Solaris 10).
67356         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67357         lib/file-has-acl.c.
67358         (Depends-on): Add sys_stat, for S_ISLNK.
67359
67360 2007-03-19  Ben Pfaff  <blp@gnu.org>
67361
67362         * doc/gnulib.texi: Fix typos.
67363         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67364
67365 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67368         If size is zero here, buf must be zero.
67369
67370 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67371
67372         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67373         <bruno@clisp.org>.
67374
67375 2007-03-18  Bruno Haible  <bruno@clisp.org>
67376
67377         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67378         Suggested by Eric Blake.
67379
67380 2007-03-18  Ben Pfaff  <blp@gnu.org>
67381
67382         * doc/relocatable.texi: Recommend using as prefix a directory
67383         that does not exist and will never be created.  Based on
67384         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67385         and others.
67386
67387 2007-03-17  Bruno Haible  <bruno@clisp.org>
67388
67389         * lib/fchownat.c: Include lchown.h.
67390
67391 2007-03-17  Bruno Haible  <bruno@clisp.org>
67392
67393         Fix endless loop when the given allocated size was > INT_MAX.
67394         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67395         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67396         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67397         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67398         * lib/sprintf.c (sprintf): Likewise.
67399
67400 2007-03-17  Bruno Haible  <bruno@clisp.org>
67401
67402         * tests/test-argp-2.sh (func_compare): Output a context diff.
67403
67404 2007-03-17  Bruno Haible  <bruno@clisp.org>
67405
67406         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67407         locale's decimal-point character.
67408
67409 2007-03-17  Bruno Haible  <bruno@clisp.org>
67410
67411         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67412         before comparing it. Needed because on some platforms (e.g. x86) a
67413         'long double' occupies less bytes than sizeof (long double).
67414
67415 2007-03-17  Bruno Haible  <bruno@clisp.org>
67416
67417         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67418         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67419         * tests/test-getaddrinfo.c (simple): Likewise.
67420         * tests/test-read-file.c (main): Likewise.
67421
67422 2007-03-17  Bruno Haible  <bruno@clisp.org>
67423
67424         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67425
67426 2007-03-17  Bruno Haible  <bruno@clisp.org>
67427
67428         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67429         unused variable.
67430
67431 2007-03-17  Bruno Haible  <bruno@clisp.org>
67432
67433         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67434         * tests/test-c-strncasecmp.c: Likewise.
67435
67436 2007-03-17  Bruno Haible  <bruno@clisp.org>
67437
67438         * modules/stdlib (Depends-on): Add unistd.
67439         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67440         Needed for MacOS X 10.3.
67441
67442 2007-03-17  Bruno Haible  <bruno@clisp.org>
67443
67444         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67445
67446 2007-03-17  Bruno Haible  <bruno@clisp.org>
67447
67448         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67449
67450 2007-03-17  Bruno Haible  <bruno@clisp.org>
67451
67452         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67453         to reflect files copied from gnulib (with or without modifications).
67454         Suggested by Jim Meyering.
67455
67456 2007-03-17  Eric Blake  <ebb9@byu.net>
67457
67458         * NEWS: Document stdlib change from 2007-02-18.
67459
67460 2007-03-17  Jim Meyering  <jim@meyering.net>
67461
67462         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67463         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67464         someone uses a name containing shell meta-characters.
67465         Reported by Alfred M. Szmidt.
67466
67467         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67468
67469 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67470
67471         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67472         and copy gettext configuration files only if configure.ac contains
67473         a use of AM_GNU_GETTEXT_VERSION.
67474
67475 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67476
67477         * build-aux/bootstrap (gnulib_name): New variable.
67478         (gnulib_tool_options): Use it.
67479
67480 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67481
67482         * tests/test-des.c: Use new namespace.
67483
67484 2007-03-15  Bruno Haible  <bruno@clisp.org>
67485
67486         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67487         Reported by James Youngman <jay@gnu.org>.
67488
67489 2007-03-15  Bruno Haible  <bruno@clisp.org>
67490
67491         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67492         declared prototype. Needed with cc on OSF/1 5.1.
67493
67494 2007-03-15  Bruno Haible  <bruno@clisp.org>
67495
67496         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67497         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67498         (struct gl_list_implementation): Add dispose_fn argument to the
67499         'create_empty', 'create' methods.
67500         (struct gl_list_impl_base): Add field 'dispose_fn'.
67501         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67502         argument.
67503         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67504         dispose_fn argument.
67505         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67506         dispose_fn on the dropped values.
67507         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67508         dispose_fn argument.
67509         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67510         dropped values.
67511         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67512         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67513         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67514         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67515         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67516         argument.
67517         (gl_tree_list_free): Call dispose_fn on the dropped values.
67518         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67519         the dropped values.
67520         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67521         Add dispose_fn argument.
67522         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67523         Call dispose_fn on the dropped values.
67524         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67525         Add dispose_fn argument.
67526         (gl_sublist_create): Initialize the 'dispose_fn' field.
67527         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67528         * tests/test-array_list.c (main): Update.
67529         * tests/test-carray_list.c (main): Update.
67530         * tests/test-avltree_list.c (main): Update.
67531         * tests/test-rbtree_list.c (main): Update.
67532         * tests/test-avltreehash_list.c (main): Update.
67533         * tests/test-rbtreehash_list.c (main): Update.
67534         * tests/test-linked_list.c (main): Update.
67535         * tests/test-linkedhash_list.c (main): Update.
67536         * tests/test-array_oset.c (main): Update.
67537
67538 2007-03-15  Bruno Haible  <bruno@clisp.org>
67539
67540         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67541         (gl_oset_create_empty): Add dispose_fn argument.
67542         (struct gl_oset_implementation): Add dispose_fn argument to
67543         'create_empty' method.
67544         (struct gl_oset_impl_base): Add dispose_fn field.
67545         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67546         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67547         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67548         values.
67549         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67550         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67551         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67552         dropped value.
67553         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67554         dropped value.
67555         * tests/test-array_oset.c (main): Update.
67556         * tests/test-avltree_oset.c (main): Update.
67557         * tests/test-rbtree_oset.c (main): Update.
67558         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67559
67560 2007-03-13  Bruno Haible  <bruno@clisp.org>
67561
67562         * tests/test-stdbool.c (i): Update after last patch.
67563
67564 2007-03-12  Bruno Haible  <bruno@clisp.org>
67565
67566         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67567         the iswprint macro. Needed on Solaris 2.5.1.
67568
67569 2007-03-12  Bruno Haible  <bruno@clisp.org>
67570
67571         * tests/test-printf-frexp.c (main): Declare x as volatile.
67572
67573 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67574
67575         * doc/gnulib.texi (Build robot for gnulib): New section.
67576
67577 2007-03-12  Jim Meyering  <jim@meyering.net>
67578
67579         * build-aux/bootstrap: New file.
67580         * build-aux/bootstrap.conf: New file, from coreutils.
67581
67582 2007-03-11  Bruno Haible  <bruno@clisp.org>
67583
67584         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67585
67586 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67587
67588         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67589         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67590         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67591
67592 2007-03-11  Bruno Haible  <bruno@clisp.org>
67593
67594         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67595         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67596
67597 2007-03-11  Bruno Haible  <bruno@clisp.org>
67598
67599         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67600         formula. Needed for SunPRO C 5.0.
67601
67602 2007-03-11  Bruno Haible  <bruno@clisp.org>
67603
67604         * modules/long-options (Depends-on): Add getopt.
67605
67606 2007-03-11  Bruno Haible  <bruno@clisp.org>
67607
67608         * modules/modechange (Depends-on): Add stdbool.
67609
67610 2007-03-11  Bruno Haible  <bruno@clisp.org>
67611
67612         * modules/i-ring (Depends-on): Add stdbool.
67613
67614 2007-03-11  Bruno Haible  <bruno@clisp.org>
67615
67616         * modules/gc-des (Depends-on): Add stdbool.
67617
67618 2007-03-11  Bruno Haible  <bruno@clisp.org>
67619
67620         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67621
67622 2007-03-11  Bruno Haible  <bruno@clisp.org>
67623
67624         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67625
67626 2007-03-11  Bruno Haible  <bruno@clisp.org>
67627
67628         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67629
67630 2007-03-11  Bruno Haible  <bruno@clisp.org>
67631
67632         * lib/vasnprintf.c (sprintf): Undefine.
67633
67634 2007-03-11  Bruno Haible  <bruno@clisp.org>
67635
67636         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67637         initializers in SunPRO C and Compaq C compilers.
67638
67639 2007-03-11  Bruno Haible  <bruno@clisp.org>
67640
67641         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67642         decrementing code ANSI C compliant.
67643
67644 2007-03-11  Bruno Haible  <bruno@clisp.org>
67645
67646         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67647         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67648
67649 2007-03-11  Bruno Haible  <bruno@clisp.org>
67650
67651         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67652         <stdbool.h> substitute doesn't pass.
67653
67654 2007-03-11  Bruno Haible  <bruno@clisp.org>
67655
67656         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67657
67658 2007-03-11  Bruno Haible  <bruno@clisp.org>
67659
67660         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67661         script, for submission to autobuild.josefsson.org.
67662
67663 2007-03-10  Bruno Haible  <bruno@clisp.org>
67664
67665         * modules/canonicalize-lgpl-tests: New file.
67666         * tests/test-canonicalize-lgpl.sh: New file.
67667         * tests/test-canonicalize-lgpl.c: New file.
67668
67669         * modules/c-strcase-tests: New file.
67670         * tests/test-c-strcase.sh: New file.
67671         * tests/test-c-strcasecmp.c: New file.
67672         * tests/test-c-strncasecmp.c: New file.
67673
67674         * modules/atexit-tests: New file.
67675         * tests/test-atexit.sh: New file.
67676         * tests/test-atexit.c: New file.
67677
67678 2007-03-10  Bruno Haible  <bruno@clisp.org>
67679
67680         * tests/test-binary-io.sh: Use temporary filenames that are not so
67681         likely to clash with those of other tests (in a parallel make).
67682         * tests/test-binary-io.c: Likewise.
67683
67684 2007-03-10  Bruno Haible  <bruno@clisp.org>
67685
67686         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67687         fallback; use #error instead.
67688         Suggested by Simon Josefsson.
67689
67690 2007-03-10  Bruno Haible  <bruno@clisp.org>
67691
67692         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67693         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67694         first and the last.
67695
67696 2007-03-10  Bruno Haible  <bruno@clisp.org>
67697
67698         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67699
67700 2007-03-10  Bruno Haible  <bruno@clisp.org>
67701
67702         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67703         "make distcheck".
67704         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67705         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67706         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67707
67708 2007-03-10  Bruno Haible  <bruno@clisp.org>
67709
67710         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67711         variable.
67712         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67713         variable.
67714
67715 2007-03-09  Eric Blake  <ebb9@byu.net>
67716         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67717
67718         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67719         types are not being provided by gnulib.
67720         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67721         types are supported.
67722
67723 2007-03-10  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/stdio_.h (__attribute__): New macro.
67726         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67727         vsprintf): Specify __attribute__ __format__ for GCC.
67728         Suggested by Eric Blake.
67729
67730 2007-03-09  Bruno Haible  <bruno@clisp.org>
67731
67732         * modules/printf-posix-tests: New file.
67733         * tests/test-printf-posix.sh: New file.
67734         * tests/test-printf-posix.c: New file.
67735
67736         * modules/printf-posix: New file.
67737         * lib/printf.c: New file.
67738         * m4/printf-posix-rpl.m4: New file.
67739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67740         REPLACE_PRINTF.
67741         * lib/stdio_.h (printf): New declaration.
67742         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67743         ____strfmon____): New macros.
67744         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67745         REPLACE_PRINTF.
67746
67747 2007-03-09  Bruno Haible  <bruno@clisp.org>
67748
67749         * tests/test-vasnprintf-posix2.sh: New file.
67750         * tests/test-vasnprintf-posix2.c: New file.
67751         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67752         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67753         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67754
67755         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67756         a locale dependent decimal point, rather than always '.'.
67757
67758 2007-03-09  Eric Blake  <ebb9@byu.net>
67759
67760         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67761         spite of platforms like Tandem/NSK that define it to -1.
67762
67763 2007-03-08  Bruno Haible  <bruno@clisp.org>
67764
67765         * modules/vprintf-posix-tests: New file.
67766         * tests/test-vprintf-posix.sh: New file.
67767         * tests/test-vprintf-posix.c: New file.
67768         * tests/test-printf-posix.h: New file.
67769
67770         * modules/vprintf-posix: New file.
67771         * lib/vprintf.c: New file.
67772         * m4/vprintf-posix.m4: New file.
67773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67774         REPLACE_VPRINTF.
67775         * lib/stdio_.h (vprintf): New declaration.
67776         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67777         REPLACE_VPRINTF.
67778
67779 2007-03-08  Bruno Haible  <bruno@clisp.org>
67780
67781         * modules/fprintf-posix-tests: New file.
67782         * tests/test-fprintf-posix.sh: New file.
67783         * tests/test-fprintf-posix.c: New file.
67784
67785         * modules/fprintf-posix: New file.
67786         * lib/fprintf.c: New file.
67787         * m4/fprintf-posix.m4: New file.
67788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67789         REPLACE_FPRINTF.
67790         * lib/stdio_.h (fprintf): New declaration.
67791         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67792         REPLACE_FPRINTF.
67793
67794 2007-03-08  Bruno Haible  <bruno@clisp.org>
67795
67796         * modules/vfprintf-posix-tests: New file.
67797         * tests/test-vfprintf-posix.sh: New file.
67798         * tests/test-vfprintf-posix.c: New file.
67799         * tests/test-fprintf-posix.h: New file.
67800         * tests/test-fprintf-posix.out: New file.
67801
67802         * modules/vfprintf-posix: New file.
67803         * lib/vfprintf.c: New file.
67804         * m4/vfprintf-posix.m4: New file.
67805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67806         REPLACE_VFPRINTF.
67807         * lib/stdio_.h (vfprintf): New declaration.
67808         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67809         REPLACE_VFPRINTF.
67810
67811 2007-03-08  Bruno Haible  <bruno@clisp.org>
67812
67813         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67814
67815 2007-03-08  Bruno Haible  <bruno@clisp.org>
67816
67817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67818         instead of 'expr' invocations.
67819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67823         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67824         Suggested by Paul Eggert.
67825
67826 2007-03-08  Bruno Haible  <bruno@clisp.org>
67827
67828         * modules/fseterr-tests: New file.
67829         * tests/test-fseterr.c: New file.
67830
67831         * modules/fseterr: New file.
67832         * lib/fseterr.h: New file.
67833         * lib/fseterr.c: New file.
67834
67835 2007-03-08  Bruno Haible  <bruno@clisp.org>
67836
67837         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67838         * lib/getopt_.h: Likewise.
67839         * lib/mbswidth.h: Likewise.
67840         * lib/setenv.h: Likewise.
67841         * lib/vasnprintf.h: Likewise.
67842         * lib/vasprintf.h: Likewise.
67843         * lib/verror.h: Likewise.
67844         * lib/xsetenv.h: Likewise.
67845         * lib/xvasprintf.h: Likewise.
67846
67847 2007-03-08  Jim Meyering  <jim@meyering.net>
67848
67849         * users.txt: Add parted.
67850
67851         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67852
67853 2007-03-07  Bruno Haible  <bruno@clisp.org>
67854
67855         * m4/printf.m4: Make the shell script snippets copy&pastable.
67856
67857 2007-03-02  Bruno Haible  <bruno@clisp.org>
67858
67859         * lib/netinet_in_.h: New file.
67860         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67861         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67862         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67863         (Depends-on): Add absolute-header.
67864         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67865         into netinet/in.h.
67866
67867 2007-03-03  Bruno Haible  <bruno@clisp.org>
67868
67869         * lib/sys_select_.h: New file.
67870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67871         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67872         * modules/sys_select (Files): Add lib/sys_select_.h.
67873         (Depends-on): Add absolute-header.
67874         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67875         into sys/select.h.
67876
67877 2007-03-02  Bruno Haible  <bruno@clisp.org>
67878
67879         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67880         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67881         values.
67882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67883         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67884         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67885         * modules/sys_socket (Depends-on): Add absolute-header.
67886         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67887         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67888         (Include): Remove requirement of inclusion of <sys/types.h>.
67889
67890 2007-03-02  Bruno Haible  <bruno@clisp.org>
67891
67892         * lib/byteswap_.h (bswap_32): Fix formula.
67893
67894 2007-03-06  Bruno Haible  <bruno@clisp.org>
67895
67896         * modules/sprintf-posix-tests: New file.
67897         * tests/test-sprintf-posix.c: New file.
67898
67899         * modules/sprintf-posix: New file.
67900         * lib/sprintf.c: New file.
67901         * m4/sprintf-posix.m4: New file.
67902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67903         REPLACE_SPRINTF.
67904         * lib/stdio_.h (sprintf): New declaration.
67905         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67906         REPLACE_SPRINTF.
67907
67908 2007-03-06  Bruno Haible  <bruno@clisp.org>
67909
67910         * modules/vsprintf-posix-tests: New file.
67911         * tests/test-vsprintf-posix.c: New file.
67912         * tests/test-sprintf-posix.h: New file.
67913
67914         * modules/vsprintf-posix: New file.
67915         * lib/vsprintf.c: New file.
67916         * m4/vsprintf-posix.m4: New file.
67917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67918         REPLACE_VSPRINTF.
67919         * lib/stdio_.h (vsprintf): New declaration.
67920         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67921         REPLACE_VSPRINTF.
67922
67923 2007-03-06  Bruno Haible  <bruno@clisp.org>
67924
67925         * modules/vsnprintf (Depend-on): Remove minmax.
67926
67927 2007-03-06  Bruno Haible  <bruno@clisp.org>
67928
67929         * modules/snprintf-posix-tests: New file.
67930         * tests/test-snprintf-posix.c: New file.
67931
67932         * modules/snprintf-posix: New file.
67933         * m4/snprintf-posix.m4: New file.
67934         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67935         gl_FUNC_SNPRINTF.
67936         (gl_FUNC_SNPRINTF): Invoke it.
67937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67938         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67939         is set.
67940         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67941
67942 2007-03-06  Bruno Haible  <bruno@clisp.org>
67943
67944         * modules/vsnprintf-posix-tests: New file.
67945         * tests/test-vsnprintf-posix.c: New file.
67946         * tests/test-snprintf-posix.h: New file.
67947
67948         * modules/vsnprintf-posix: New file.
67949         * m4/vsnprintf-posix.m4: New file.
67950         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67951         gl_FUNC_VSNPRINTF.
67952         (gl_FUNC_VSNPRINTF): Invoke it.
67953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67954         * lib/stdio_.h (vsnprintf): Define as a replacement if
67955         REPLACE_VSNPRINTF is set.
67956         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67957
67958 2007-03-06  Bruno Haible  <bruno@clisp.org>
67959
67960         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67961         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67962
67963 2007-03-06  Bruno Haible  <bruno@clisp.org>
67964
67965         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67966         (asinl): Declare also if HAVE_DECL_ASINL is set.
67967         (atanl): Declare also if HAVE_DECL_ATANL is set.
67968         (ceill): Declare also if HAVE_DECL_CEILL is set.
67969         (cosl): Declare also if HAVE_DECL_COSL is set.
67970         (expl): Declare also if HAVE_DECL_EXPL is set.
67971         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67972         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67973         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67974         (logl): Declare also if HAVE_DECL_LOGL is set.
67975         (sinl): Declare also if HAVE_DECL_SINL is set.
67976         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67977         (tanl): Declare also if HAVE_DECL_TANL is set.
67978         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67981         declaration of frexpl, ldexpl.
67982         * modules/printf-frexpl (Depends-on): Add math.
67983         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67984
67985 2007-03-05  Bruno Haible  <bruno@clisp.org>
67986
67987         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67988         frexpl and ldexpl are declared.
67989         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67990
67991 2007-03-05  Bruno Haible  <bruno@clisp.org>
67992
67993         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67994         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67995
67996 2007-03-05  Bruno Haible  <bruno@clisp.org>
67997
67998         * lib/stdio_.h: Include <stddef.h>.
67999
68000 2007-03-05  Bruno Haible  <bruno@clisp.org>
68001
68002         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68003
68004 2007-03-05  Bruno Haible  <bruno@clisp.org>
68005
68006         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68007         NetBSD 4, from Ralf Wildenhues.
68008
68009 2007-03-04  Bruno Haible  <bruno@clisp.org>
68010
68011         * lib/vasprintf.h: Update #if logic for the case when the functions
68012         exist but are overridden.
68013
68014 2007-03-04  Bruno Haible  <bruno@clisp.org>
68015
68016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68017         implementations: glibc-2.4 and MacOS X 10.3.
68018         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68019         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68020         * tests/test-vasprintf-posix.c (test_function): Likewise.
68021
68022 2007-03-04  Bruno Haible  <bruno@clisp.org>
68023
68024         * modules/vasprintf-posix-tests: New file.
68025         * tests/test-vasprintf-posix.c: New file.
68026
68027         * modules/vasprintf-posix: New file.
68028         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68029         defined.
68030         * m4/vasprintf-posix.m4: New file.
68031         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68032         gl_FUNC_VASPRINTF.
68033         (gl_FUNC_VASPRINTF): Invoke it.
68034         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68035         here.
68036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68037
68038 2007-03-04  Bruno Haible  <bruno@clisp.org>
68039
68040         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68041         REPLACE_GETTIMEOFDAY.
68042         * modules/sys_time (Makefile.am): Likewise.
68043         * m4/sys_time_h.m4: Likewise.
68044         * m4/gettimeofday.m4: Likewise.
68045
68046 2007-03-04  Bruno Haible  <bruno@clisp.org>
68047
68048         * modules/vasnprintf-posix-tests: New file.
68049         * tests/test-vasnprintf-posix.c: New file.
68050
68051         * modules/vasnprintf-posix: New file.
68052         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68053         printf-frexpl.h.
68054         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68055         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68056         REPLACE_VASNPRINTF is defined.
68057         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68058         gl_FUNC_VASNPRINTF.
68059         (gl_FUNC_VASNPRINTF): Invoke it.
68060         * m4/vasnprintf-posix.m4: New file.
68061         * m4/printf.m4: New file.
68062
68063 2007-03-04  Bruno Haible  <bruno@clisp.org>
68064
68065         Compile progreloc.c only if --enable-relocatable is specified.
68066         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68067         if --enable-relocatable was specified.
68068         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68069         lib_SOURCES.
68070
68071 2007-03-04  Jim Meyering  <jim@meyering.net>
68072
68073         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68074         Use it consistently, rather than enumerating errno constants.
68075
68076 2007-03-04  Bruno Haible  <bruno@clisp.org>
68077
68078         * modules/xvasprintf-tests: New file.
68079         * tests/test-xvasprintf.c: New file.
68080
68081         * modules/vasprintf-tests: New file.
68082         * tests/test-vasprintf.c: New file.
68083
68084         * modules/vasnprintf-tests: New file.
68085         * tests/test-vasnprintf.c: New file.
68086
68087         * modules/vsnprintf-tests: New file.
68088         * tests/test-vsnprintf.c: New file.
68089
68090         * modules/snprintf-tests: New file.
68091         * tests/test-snprintf.c: New file.
68092
68093 2007-03-04  Bruno Haible  <bruno@clisp.org>
68094
68095         Compile relocatable.c only if --enable-relocatable is specified.
68096         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68097         gl_RELOCATABLE_LIBRARY.
68098         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68099         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68100         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68101         gl_RELOCATABLE_LIBRARY.
68102         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68103         (Makefile.am): Remove lib_SOURCES.
68104         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68105         gl_RELOCATABLE_LIBRARY.
68106         (Makefile.am): Remove lib_SOURCES.
68107         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68108         always.
68109         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68110         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68111
68112 2007-03-04  Bruno Haible  <bruno@clisp.org>
68113
68114         * modules/argmatch-tests: New file.
68115         * tests/test-argmatch.c: New file.
68116
68117         * tests/test-allocsa.c (main): Halve the number of loop runs.
68118
68119         * modules/alloca-opt-tests: New file.
68120         * tests/test-alloca-opt.c: New file.
68121
68122 2007-03-04  Jim Meyering  <jim@meyering.net>
68123
68124         Work around difference between Linux ACLs and Solaris 10 ZFS.
68125         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68126         for EINVAL.
68127
68128 2007-03-03  Bruno Haible  <bruno@clisp.org>
68129
68130         * modules/relocatable-prog (Depends-on): Add back progreloc's
68131         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68132
68133 2007-03-03  Bruno Haible  <bruno@clisp.org>
68134
68135         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68136         * modules/relocatable-lib: New file.
68137
68138 2007-03-03  Bruno Haible  <bruno@clisp.org>
68139
68140         * modules/relocatable-prog: Renamed from modules/relocatable.
68141         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68142
68143 2007-03-03  Bruno Haible  <bruno@clisp.org>
68144
68145         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68146         m4/relocatable-lib.m4.
68147         (Depends-on): Remove 'relocatable'.
68148         (configure.ac): Add gl_RELOCATABLE_NOP.
68149
68150 2007-03-03  Bruno Haible  <bruno@clisp.org>
68151
68152         * modules/relocatable-prog-wrapper: New file.
68153         * modules/relocatable (Depends-on): Add it. Remove all other
68154         dependencies except progname.
68155         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68156
68157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68158         (gl_FUNC_STRERROR): Nop.
68159         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68160
68161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68162         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68163
68164         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68165         (gl_FUNC_READLINK): Update.
68166
68167         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68168
68169 2007-03-03  Bruno Haible  <bruno@clisp.org>
68170
68171         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68172         * modules/xreadlink (Depends-on): Add unistd.
68173         * modules/xreadlink-with-size (Depends-on): Likewise.
68174
68175 2007-03-03  Bruno Haible  <bruno@clisp.org>
68176
68177         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68178         extracted from gt_FUNC_SETENV.
68179         (gt_FUNC_SETENV): Remove macro.
68180         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68181         remove gt_FUNC_SETENV.
68182
68183 2007-03-03  Bruno Haible  <bruno@clisp.org>
68184
68185         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68186         ENABLE_RELOCATABLE here.
68187         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68188
68189 2007-03-03  Bruno Haible  <bruno@clisp.org>
68190
68191         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68192         * tests/test-rbtreehash_list.c: Include progname.h.
68193         (main): Call set_program_name.
68194
68195         * modules/rbtree-oset-tests (Depends-on): Add progname.
68196         * tests/test-rbtree_oset.c: Include progname.h.
68197         (main): Call set_program_name.
68198
68199         * modules/rbtree-list-tests (Depends-on): Add progname.
68200         * tests/test-rbtree_list.c: Include progname.h.
68201         (main): Call set_program_name.
68202
68203         * modules/linked-list-tests (Depends-on): Add progname.
68204         * tests/test-linked_list.c: Include progname.h.
68205         (main): Call set_program_name.
68206
68207 2007-03-03  Bruno Haible  <bruno@clisp.org>
68208
68209         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68210         All uses of __restrict changed to _Restrict_.
68211         * lib/glob_.h (__restrict): Remove macro.
68212
68213 2007-03-02  Bruno Haible  <bruno@clisp.org>
68214
68215         * modules/gettext (configure.ac): Require gettext infrastructure
68216         from version 0.16.1.
68217
68218 2007-03-02  Bruno Haible  <bruno@clisp.org>
68219
68220         * modules/linkedhash-list-tests (Depends-on): Add progname.
68221         * tests/test-linkedhash_list.c: Include progname.h.
68222         (main): Call set_program_name.
68223
68224         * modules/carray-list-tests (Depends-on): Add progname.
68225         * tests/test-carray_list.c: Include progname.h.
68226         (main): Call set_program_name.
68227
68228         * modules/avltreehash-list-tests (Depends-on): Add progname.
68229         * tests/test-avltreehash_list.c: Include progname.h.
68230         (main): Call set_program_name.
68231
68232         * modules/avltree-oset-tests (Depends-on): Add progname.
68233         * tests/test-avltree_oset.c: Include progname.h.
68234         (main): Call set_program_name.
68235
68236         * modules/avltree-list-tests (Depends-on): Add progname.
68237         * tests/test-avltree_list.c: Include progname.h.
68238         (main): Call set_program_name.
68239
68240         * modules/array-oset-tests (Depends-on): Add progname.
68241         * tests/test-array_oset.c: Include progname.h.
68242         (main): Call set_program_name.
68243
68244         * modules/array-list-tests (Depends-on): Add progname.
68245         * tests/test-array_list.c: Include progname.h.
68246         (main): Call set_program_name.
68247
68248         * modules/argp-tests (Depends-on): Add progname.
68249         * tests/test-argp.c: Include argp.h first. Include progname.h.
68250         (main): Call set_program_name.
68251
68252 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         * doc/gnulib-tool.texi (Initial import): Reword description of
68255         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68256         limited effect even if defined after the first system include.
68257
68258 2007-03-01  Bruno Haible  <bruno@clisp.org>
68259
68260         * build-aux/config.libpath: Update to libtool-1.5.22.
68261         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68262
68263 2007-03-01  Bruno Haible  <bruno@clisp.org>
68264
68265         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68266         foo_CFLAGS.
68267         Reported by Ralf Wildenhues.
68268
68269 2007-03-01  Bruno Haible  <bruno@clisp.org>
68270
68271         * build-aux/install-reloc: Remove object files left over by some
68272         compilers.
68273         Reported by Ralf Wildenhues.
68274
68275 2007-03-01  Bruno Haible  <bruno@clisp.org>
68276
68277         * build-aux/install-reloc: Break long lines.
68278
68279 2007-03-01  Bruno Haible  <bruno@clisp.org>
68280
68281         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68282         Reported by Ralf Wildenhues.
68283
68284 2007-03-01  Bruno Haible  <bruno@clisp.org>
68285
68286         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68287         include ordering constraints.
68288
68289 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68290
68291         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68293         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68294         as another example.
68295         * lib/time_.h: Fix misspelling.
68296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68297         Require gl_HEADER_TIME_H_DEFAULTS.
68298         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68299         * m4/time_r.m4 (gl_TIME_R): Likewise.
68300         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68301
68302 2007-03-01  Bruno Haible  <bruno@clisp.org>
68303
68304         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68305         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68306
68307 2007-03-01  Jim Meyering  <jim@meyering.net>
68308
68309         * modules/xreadlink (Maintainer): Add my name.
68310         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68311
68312 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68313             Bruno Haible  <bruno@clisp.org>
68314
68315         * build-aux/install-reloc: Compile also c-ctype.c.
68316         * build-aux/relocatable.sh.in: New file.
68317         * doc/relocatable.texi: New file.
68318         * doc/relocatable-maint.texi: New file.
68319         * doc/gnulib.texi: Include relocatable-maint.texi.
68320         * lib/progreloc.c: Include unistd.h unconditionally.
68321         * lib/relocwrapper.c: Include unistd.h unconditionally.
68322         Include c-ctype.h.
68323         (add_dotbin): Use c_tolower.
68324         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68325         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68326         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68327         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68328         to m4/relocatable-lib.m4.
68329         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68330         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68331         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68332         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68333         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68334         * modules/relocatable: New file.
68335         * modules/relocatable-lib: New file.
68336         * modules/relocatable-script: New file.
68337
68338 2007-02-28  Bruno Haible  <bruno@clisp.org>
68339
68340         Import --enable-relocatable infrastructure.
68341         * build-aux/config.libpath: New file, from GNU gettext.
68342         * build-aux/install-reloc: New file, from GNU gettext.
68343         * build-aux/reloc-ldflags: New file, from GNU gettext.
68344         * lib/relocatable.h: New file, from GNU gettext.
68345         * lib/relocatable.c: New file, from GNU gettext.
68346         * lib/relocwrapper.c: New file, from GNU gettext.
68347         * m4/relocatable.m4: New file, from GNU gettext.
68348
68349 2007-02-28  Bruno Haible  <bruno@clisp.org>
68350
68351         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68352
68353         * modules/xreadlink: New file, from GNU gettext with modifications.
68354         * lib/xreadlink.c: New file, from GNU gettext.
68355         * lib/xreadlink.h: Add comments.
68356         (xreadlink): New declaration.
68357
68358         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68359         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68360         lib/xreadlink-with-size.c.
68361         (configure.ac): Remove gl_XREADLINK invocation.
68362         (Makefile.am): Augment lib_SOURCES.
68363         * m4/xreadlink.m4: Remove file.
68364         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68365         (xreadlink_with_size): Renamed from xreadink.
68366         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68367         * modules/canonicalize (Depends-on): Replace xreadlink with
68368         xreadlink-with-size.
68369         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68370
68371 2007-02-25  Jim Meyering  <jim@meyering.net>
68372
68373         * build-aux/announce-gen: When complaining about excess arguments,
68374         list them.
68375
68376 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68377
68378         * README: Document signed integer overflow situation more
68379         accurately.
68380
68381 2007-02-25  Bruno Haible  <bruno@clisp.org>
68382
68383         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68384         'a' or 'A' conversion.
68385
68386 2007-02-25  Bruno Haible  <bruno@clisp.org>
68387
68388         * modules/filename: Renamed from modules/pathname.
68389         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68390         lib/concatpath.c with lib/concat-filename.c.
68391         (Makefile.am): Update.
68392         (Include): Replace pathname.h with filename.h.
68393         * lib/filename.h: Renamed from lib/pathname.h.
68394         (concatenated_filename): Renamed from concatenated_pathname.
68395         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68396         (concatenated_filename): Renamed from concatenated_pathname.
68397         * lib/findprog.c: Include filename.h instead of pathname.h.
68398         (find_in_path): Update.
68399         * lib/javacomp.c: Include filename.h instead of pathname.h.
68400         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68401         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68402         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68403         is_oldgcj_14_13_usable, is_javac_usable): Update.
68404         * lib/javaexec.c: Include filename.h instead of pathname.h.
68405         (execute_java_class): Update.
68406         * modules/findprog: Update.
68407         * modules/javacomp: Update.
68408         * modules/javaexec: Update.
68409         * MODULES.html.sh (File system functions): Add 'filename', remove
68410         'pathname'.
68411
68412 2007-02-25  Bruno Haible  <bruno@clisp.org>
68413
68414         * modules/printf-frexpl-tests: New file.
68415         * tests/test-printf-frexpl.c: New file.
68416
68417         * modules/printf-frexpl: New file.
68418         * lib/printf-frexpl.h: New file.
68419         * lib/printf-frexpl.c: New file.
68420         * m4/printf-frexpl.m4: New file.
68421
68422 2007-02-25  Bruno Haible  <bruno@clisp.org>
68423
68424         * modules/printf-frexp-tests: New file.
68425         * tests/test-printf-frexp.c: New file.
68426
68427         * modules/printf-frexp: New file.
68428         * lib/printf-frexp.h: New file.
68429         * lib/printf-frexp.c: New file.
68430         * m4/printf-frexp.m4: New file.
68431
68432 2007-02-25  Bruno Haible  <bruno@clisp.org>
68433
68434         Assume automake >= 1.10 for the tests.
68435         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68436         * modules/arctwo-tests: Likewise.
68437         * modules/argp-tests: Likewise.
68438         * modules/avltree-list-tests: Likewise.
68439         * modules/avltree-oset-tests: Likewise.
68440         * modules/avltreehash-list-tests: Likewise.
68441         * modules/carray-list-tests: Likewise.
68442         * modules/crc-tests: Likewise.
68443         * modules/des-tests: Likewise.
68444         * modules/gc-arcfour-tests: Likewise.
68445         * modules/gc-arctwo-tests: Likewise.
68446         * modules/gc-des-tests: Likewise.
68447         * modules/gc-hmac-md5-tests: Likewise.
68448         * modules/gc-hmac-sha1-tests: Likewise.
68449         * modules/gc-md2-tests: Likewise.
68450         * modules/gc-md4-tests: Likewise.
68451         * modules/gc-md5-tests: Likewise.
68452         * modules/gc-pbkdf2-sha1-tests: Likewise.
68453         * modules/gc-rijndael-tests: Likewise.
68454         * modules/gc-sha1-tests: Likewise.
68455         * modules/gc-tests: Likewise.
68456         * modules/getaddrinfo-tests: Likewise.
68457         * modules/hmac-md5-tests: Likewise.
68458         * modules/hmac-sha1-tests: Likewise.
68459         * modules/linked-list-tests: Likewise.
68460         * modules/linkedhash-list-tests: Likewise.
68461         * modules/lock-tests: Likewise.
68462         * modules/md2-tests: Likewise.
68463         * modules/md4-tests: Likewise.
68464         * modules/md5-tests: Likewise.
68465         * modules/rbtree-list-tests: Likewise.
68466         * modules/rbtree-oset-tests: Likewise.
68467         * modules/rbtreehash-list-tests: Likewise.
68468         * modules/read-file-tests: Likewise.
68469         * modules/rijndael-tests: Likewise.
68470         * modules/stdint-tests: Likewise.
68471         * modules/tls-tests: Likewise.
68472
68473 2007-02-24  Bruno Haible  <bruno@clisp.org>
68474
68475         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68476         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68477         function; instead check whether isnan with a double argument links.
68478         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68479         function; instead check whether isnan with a 'long double' argument
68480         links.
68481         Reported by Eric Blake <ebb9@byu.net>.
68482
68483 2007-02-24  Bruno Haible  <bruno@clisp.org>
68484
68485         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68486         defined.
68487         * lib/isnanl.c: Remove all code. Just include isnan.c.
68488         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68489
68490 2007-02-25  Jim Meyering  <jim@meyering.net>
68491
68492         Avoid conflicting types for 'unsetenv' on FreeBSD.
68493         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68494         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68495         in stdlib.h.
68496
68497 2007-02-24  Bruno Haible  <bruno@clisp.org>
68498
68499         * modules/isnanl-nolibm-tests: New file.
68500         * tests/test-isnanl.c: New file.
68501
68502         * modules/isnanl-nolibm: New file.
68503         * lib/isnanl.h: New file.
68504         * lib/isnanl.c: New file.
68505         * m4/isnanl.m4: New file.
68506
68507 2007-02-24  Bruno Haible  <bruno@clisp.org>
68508
68509         * modules/isnan-nolibm-tests: New file.
68510         * tests/test-isnan.c: New file.
68511
68512         * modules/isnan-nolibm: New file.
68513         * lib/isnan.h: New file.
68514         * lib/isnan.c: New file.
68515         * m4/isnan.m4: New file.
68516
68517 2007-02-24  Bruno Haible  <bruno@clisp.org>
68518
68519         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68520         assume that an exponent fits in 20 bits.
68521
68522 2007-02-24  Jim Meyering  <jim@meyering.net>
68523
68524         * m4/regex.m4: Update the description of the configure-time option,
68525         --without-included-regex, to state accurately what the defaults are,
68526         and perhaps to give people an idea why using this option is risky.
68527
68528 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68529
68530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68531         loops on small arguments.  This attempts to avoid the problem
68532         Bruno Haible reported for AIX 4.3.2 in
68533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68534
68535 2007-02-23  Bruno Haible  <bruno@clisp.org>
68536
68537         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68538         Needed for help2man.
68539
68540 2007-02-23  Karl Berry  <karl@gnu.org>
68541
68542         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68543         exists, foo.h should be cvs-ignored, not committed.
68544
68545 2007-02-23  Eric Blake  <ebb9@byu.net>
68546
68547         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68548         * lib/stat-time.h (includes): Likewise.
68549         * lib/utimecmp.c (includes): Likewise.
68550         * lib/utimens.h (includes): Likewise.
68551         * lib/getdate.y (includes): Also include "timespec.h" for use
68552         internal to the module.
68553         * modules/utimens (Depends-on): Revert yesterday's patch.
68554         * modules/nanosleep (Depends-on): Add missing dependency.
68555
68556 2007-02-22  Bruno Haible  <bruno@clisp.org>
68557
68558         * lib/glob.c: Don't include getlogin_r.h.
68559
68560 2007-02-22  Jim Meyering  <jim@meyering.net>
68561
68562         * modules/utimens (Depends-on): Add timespec, required for
68563         utimens.h's inclusion of timespec.h.
68564
68565 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68566
68567         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68568         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68569         Schwab in
68570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68571         I'll try to think of a better way to fix the Solaris problem.
68572
68573         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68574         like glibc; on Solaris 10, it fails with errno == EINVAL.
68575         POSIX says the behavior is unspecified if the first argument is NULL,
68576         so play it safe and never pass NULL to the system getcwd.
68577
68578 2007-02-21  Jim Meyering  <jim@meyering.net>
68579
68580         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68581         of gettimeofday.  It would conflict with the one now always
68582         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68583         an IRIX 6.5 build failure.
68584
68585 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68586
68587         Minor fixups to port to Solaris 10 with Sun C 5.8.
68588         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68589         * modules/getcwd (Depends-on): Add dirfd.
68590         * lib/putenv.c (putenv): #undef it.
68591         (rpl_putenv): New decl.
68592         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68593
68594 2007-02-20  Bruno Haible  <bruno@clisp.org>
68595
68596         * modules/stdio-tests: New file.
68597         * tests/test-stdio.c: New file.
68598
68599         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68600         (Depends-on): Add stdio.
68601         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68602         (Include): Use <stdio.h> instead of vsnprintf.h.
68603         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68604         HAVE_DECL_VSNPRINTF.
68605         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68606
68607         * modules/snprintf (Files): Remove lib/snprintf.h.
68608         (Depends-on): Add stdio.
68609         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68610         (Include): Use <stdio.h> instead of snprintf.h.
68611         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68612         HAVE_DECL_SNPRINTF.
68613         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68614         * lib/getaddrinfo.c: Likewise.
68615
68616         * modules/stdio: New file.
68617         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68618         * lib/snprintf.h: Remove file.
68619         * lib/vsnprintf.h: Remove file.
68620         * lib/.cppi-disable: Remove snprintf.h.
68621         * m4/stdio_h.m4: New file.
68622         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68623
68624 2007-02-20  Jim Meyering  <jim@meyering.net>
68625
68626         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68627         used by e.g., mingw.  From Bruno Haible.
68628
68629 2007-02-19  Bruno Haible  <bruno@clisp.org>
68630
68631         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68632         warnings.
68633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68634
68635 2007-02-19  Bruno Haible  <bruno@clisp.org>
68636
68637         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68638         from mingw users.
68639
68640 2007-02-19  Bruno Haible  <bruno@clisp.org>
68641
68642         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68643         warnings.
68644         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68645
68646 2007-02-19  Jim Meyering  <jim@meyering.net>
68647
68648         Don't use FD after a successful "fdopendir (fd)".
68649         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68650         Reset it by calling dirfd on the just-obtained DIR*.
68651
68652         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68653         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68654
68655 2007-02-18  Bruno Haible  <bruno@clisp.org>
68656
68657         * lib/readlink.c: Include <unistd.h>.
68658         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68659         HAVE_READLINK.
68660         * modules/readlink (Depends-on): Add unistd.
68661         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68662         (Include): Add <unistd.h>.
68663
68664         * lib/getlogin_r.h: Remove file.
68665         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68666         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68667         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68668         HAVE_DECL_GETLOGIN_R.
68669         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68671         (Include): Use <unistd.h> instead of getlogin_r.h.
68672
68673         * lib/getcwd.h: Remove file.
68674         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68675         * lib/xgetcwd.c: Likewise.
68676         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68677         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68678         * modules/getcwd (Files): Remove lib/getcwd.h.
68679         (Depends-on): Add unistd.
68680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68681         (Include): Use <unistd.h> instad of getcwd.h.
68682
68683         * lib/ftruncate.c: Include <unistd.h> first.
68684         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68685         Set HAVE_FTRUNCATE.
68686         * modules/ftruncate (Depends-on): Add unistd.
68687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68688
68689         * lib/fchdir.c: Include <unistd.h> first.
68690         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68692         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68693         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68694         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68695
68696         * lib/dup2.c: Include <unistd.h> first.
68697         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68698         HAVE_DUP2.
68699         * modules/dup2 (Depends-on): Add unistd.
68700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68701
68702         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68703         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68704         REPLACE_CHOWN. Don't define chown as a macro here.
68705         * modules/chown (Depends-on): Add unistd.
68706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68707
68708         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68709         Add definition for GL_LINK_WARNING.
68710         (chown, dup2): New declarations.
68711         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68712         link warning.
68713         (ftruncate): New declaration.
68714         (getcwd): New declaration, taken from old getcwd.h.
68715         (getlogin_r): New declaration, taken from old getlogin_r.h.
68716         (readlink): New declaration.
68717         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68718         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68719         (gl_PREREQ_UNISTD): Remove macro.
68720         (gl_UNISTD_MODULE_INDICATOR): New macro.
68721         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68722         many new variables. Don't set UNISTD_H.
68723         * modules/unistd (Description): Change.
68724         (Depends-on): Add link-warning.
68725         (configure.ac): Update.
68726         (Makefile.am): Create unistd.h always. Substitute many new variables
68727         into it.
68728
68729 2007-02-18  Bruno Haible  <bruno@clisp.org>
68730
68731         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68732         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68733         HAVE_GETSUBOPT.
68734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68735         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68736         * lib/getsubopt.h: Remove file.
68737         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68738         (Depends-on): Add stdlib.
68739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68740         (Includes): Use <stdlib.h> instead of getsubopt.h.
68741         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68742         Set HAVE_GETSUBOPT.
68743         * lib/getsubopt.c: Don't include getsubopt.h.
68744
68745 2007-02-18  Bruno Haible  <bruno@clisp.org>
68746
68747         * modules/fchdir (Depends-on): Add dup2.
68748
68749 2007-02-18  Bruno Haible  <bruno@clisp.org>
68750
68751         * lib/stdlib_.h: Handle glibc's special invocation convention
68752         specially.
68753
68754 2007-02-18  Bruno Haible  <bruno@clisp.org>
68755
68756         * modules/stdlib-tests: New file.
68757         * tests/test-stdlib.c: New file.
68758
68759         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68760         (Depends-on): Add stdlib.
68761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68762         (Includes): Use <stdlib.h> instead of mkstemp.h.
68763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68764         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68765         * lib/mkstemp.c: Don't include mkstemp.h.
68766         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68767         * lib/stdlib--.h: Don't include mkstemp.h.
68768
68769         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68770         (Depends-on): Add stdlib.
68771         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68772         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68773         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68774         HAVE_MKDTEMP.
68775         * lib/mkdtemp.c: Don't include mkdtemp.h.
68776         * lib/clean-temp.c: Don't include mkdtemp.h.
68777
68778         * modules/exit (Files): Remove lib/exit.h.
68779         (Depends-on): Add stdlib.
68780         (Makefile.am): Remove lib_SOURCES.
68781         (Include): Use <stdlib.h> instead of exit.h.
68782         * lib/argmatch.c: Don't include exit.h.
68783         * lib/execute.c: Likewise.
68784         * lib/pagealign_alloc.c: Likewise.
68785         * lib/pipe.c: Likewise.
68786         * lib/wait-process.c: Likewise.
68787         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68788         * lib/exitfail.c: Likewise.
68789         * lib/savewd.c: Likewise.
68790         * lib/xsetenv.c: Likewise.
68791
68792         * modules/stdlib: New file.
68793         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68794         and extra comments about mkstemp().
68795         * lib/exit.h: Remove file.
68796         * lib/mkdtemp.h: Remove file.
68797         * lib/mkstemp.h: Remove file.
68798         * m4/stdlib_h.m4: New file.
68799         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68800
68801 2007-02-18  Bruno Haible  <bruno@clisp.org>
68802
68803         * modules/math-tests: New file.
68804         * tests/test-math.c: New file.
68805
68806         * modules/math: New file.
68807         * modules/mathl (Files): Remove lib/mathl.h.
68808         (Depends-on): Add math.
68809         (Makefile.am): Don't mention mathl.h.
68810         (Include): Use <math.h> instead of mathl.h.
68811         * lib/math_.h: New file.
68812         * lib/mathl.h: Remove file.
68813         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68814         mathl.h.
68815         * lib/asinl.c: Likewise.
68816         * lib/atanl.c: Likewise.
68817         * lib/ceill.c: Likewise.
68818         * lib/cosl.c: Likewise.
68819         * lib/expl.c: Likewise.
68820         * lib/floorl.c: Likewise.
68821         * lib/frexpl.c: Likewise.
68822         * lib/ldexpl.c: Likewise.
68823         * lib/logl.c: Likewise.
68824         * lib/sincosl.c: Likewise.
68825         * lib/sinl.c: Likewise.
68826         * lib/sqrtl.c: Likewise.
68827         * lib/tanl.c: Likewise.
68828         * lib/trigl.c: Likewise.
68829         * m4/math_h.m4: New file.
68830         * MODULES.html.sh (Mathematics): Add math.
68831
68832 2007-02-17  Bruno Haible  <bruno@clisp.org>
68833
68834         * modules/wctype-tests: New file.
68835         * tests/test-wctype.c: New file.
68836
68837         * modules/wchar-tests: New file.
68838         * tests/test-wchar.c: New file.
68839
68840         * modules/unistd-tests: New file.
68841         * tests/test-unistd.c: New file.
68842
68843         * modules/time-tests: New file.
68844         * tests/test-time.c: New file.
68845
68846         * modules/sysexits-tests: New file.
68847         * tests/test-sysexits.c: New file.
68848
68849         * modules/sys_time-tests: New file.
68850         * tests/test-sys_time.c: New file.
68851
68852         * modules/sys_stat-tests: New file.
68853         * tests/test-sys_stat.c: New file.
68854
68855         * modules/sys_socket-tests: New file.
68856         * tests/test-sys_socket.c: New file.
68857
68858         * modules/sys_select-tests: New file.
68859         * tests/test-sys_select.c: New file.
68860
68861         * modules/string-tests: New file.
68862         * tests/test-string.c: New file.
68863
68864         * modules/stdbool-tests: New file.
68865         * tests/test-stdbool.c: New file.
68866
68867         * modules/netinet_in-tests: New file.
68868         * tests/test-netinet_in.c: New file.
68869
68870         * modules/inttypes-tests: New file.
68871         * tests/test-inttypes.c: New file.
68872
68873         * modules/fcntl-tests: New file.
68874         * tests/test-fcntl.c: New file.
68875
68876         * modules/byteswap-tests: New file.
68877         * tests/test-byteswap.c: New file.
68878
68879         * modules/arpa_inet-tests: New file.
68880         * tests/test-arpa_inet.c: New file.
68881
68882 2007-02-17  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68885         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68886         if the corresponding module is not enabled. Emit link warnings if
68887         the function is used nevertheless.
68888         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68889         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68890         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68891         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68892         * modules/inttypes (Depends-on): Add link-warning.
68893         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68894         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68895         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68896         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68897         * modules/imaxdiv (configure.ac): Likewise.
68898         * modules/strtoimax (configure.ac): Likewise.
68899         * modules/strtoumax (configure.ac): Likewise.
68900
68901 2007-02-17  Bruno Haible  <bruno@clisp.org>
68902
68903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68904         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68905         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68906         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68907
68908 2007-02-17  Bruno Haible  <bruno@clisp.org>
68909
68910         * modules/link-warning: New file.
68911         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68912         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68913         * modules/string (Depends-on): Add link-warning.
68914         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68915         string.h.
68916         * MODULES.html.sh (Support for building libraries and executables): Add
68917         link-warning.
68918
68919 2007-02-17  Bruno Haible  <bruno@clisp.org>
68920
68921         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68922         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68923         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68924         long lines.
68925
68926 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68927             Bruno Haible  <bruno@clisp.org>
68928
68929         * modules/tmpfile: New file.
68930         * lib/tmpfile.c: New file.
68931         * m4/tmpfile.m4: New file.
68932         * MODULES.html.sh (func_all_modules): New section "Input/output".
68933
68934 2007-02-15  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68937         (supports_delete_on_close): New function.
68938         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68939
68940 2007-02-14  Bruno Haible  <bruno@clisp.org>
68941
68942         * modules/mbspcasecmp-tests: New file.
68943         * tests/test-mbspcasecmp.sh: New file.
68944         * tests/test-mbspcasecmp.c: New file.
68945
68946         New module mbspcasecmp.
68947         * modules/mbspcasecmp: New file.
68948         * lib/mbspcasecmp.c: New file.
68949         * lib/string_.h (strncasecmp): Change warning message.
68950         (mbspcasecmp): New declaration.
68951         * m4/mbspcasecmp.m4: New file.
68952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68953         GNULIB_MBSPCASECMP.
68954         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68955         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68956
68957 2007-02-14  Bruno Haible  <bruno@clisp.org>
68958
68959         * modules/mbsncasecmp-tests: New file.
68960         * tests/test-mbsncasecmp.sh: New file.
68961         * tests/test-mbsncasecmp.c: New file.
68962
68963         New module mbsncasecmp.
68964         * modules/mbsncasecmp: New file.
68965         * lib/mbsncasecmp.c: New file.
68966         * lib/string_.h (mbsncasecmp): New declaration.
68967         * m4/mbsncasecmp.m4: New file.
68968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68969         GNULIB_MBSNCASECMP.
68970         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68971         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68972
68973 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68974
68975         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68976         Verify that it doesn't overlap with our flags.
68977         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68978         do not have the desired effect in multibyte locales; instead, use
68979         mbscasecmp.
68980         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68981         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68982         we don't require GNU fnmatch ourselves (if our users require it, they
68983         should do so explicitly).
68984
68985         Fix regex code so it doesn't rely on strcasecmp.
68986         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68987         Otherwise, include gnulib's langinfo.h.
68988         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68989         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68990         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68991         * modules/regex (FILES): Remove m4/codeset.m4.
68992         (Depends-on): Add localcharset.  Remove strcase.
68993
68994 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68995
68996         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68997         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68998
68999 2007-02-13  Bruno Haible  <bruno@clisp.org>
69000
69001         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69003
69004 2007-02-12  Bruno Haible  <bruno@clisp.org>
69005
69006         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69007         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69008         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69009         time warning rather than a link error.
69010
69011 2007-02-12  Bruno Haible  <bruno@clisp.org>
69012
69013         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69016
69017 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69020         args, not 2.
69021
69022 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         New module 'time', so that apps can include <time.h> as per
69025         POSIX and GNU instead of separate include files like time_r.h
69026         and timegm.h.  This implementation tries out a simpler approach
69027         for replacing decls in standard include files (as compared to
69028         the string module), somewhat as an experiment.
69029
69030         * config/srclist.txt: Comment out mktime.c for now.
69031         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69032         since it doesn't apply any more.  Use generic wording instead.
69033         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69034         'time'.
69035         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69036         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69037         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69038         Don't include <sys/types.h>; no longer needed since we assume C89.
69039         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69040         * lib/strftime.c: Likewise.
69041         * lib/time_r.c: Likewise.
69042         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69043         * lib/nanosleep.c: Include <time.h> first, to check interface.
69044         * lib/strptime.c: Likewise.
69045         * lib/time_r.c: Likewise.
69046         * lib/timegm.c: Likewise.
69047         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69048         needed.
69049         * lib/timegm.c: Don't include timegm.h; no longer needed.
69050         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69051         time.h now handles any problems in that area.
69052         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69053         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69054         that time.h defines struct timespec.
69055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69056         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69057         handles that.
69058         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69059         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69060         needed.  Set REPLACE_LOCALTIME.
69061         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69062         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69063         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69064         nanosleep; time_h.m4 now does that.  Don't require
69065         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69066         module handles this now.
69067         * modules/getdate (Depends-on): Remove timespec.  Add time.
69068         * modules/nanosleep (Depends-on): Likewise.
69069         * modules/stat-time (Depends-on): Likewise.
69070         * modules/nanosleep (Include): Include time.h, not timespec.h.
69071         * modules/strptime (Files): Remove lib/strptime.h.
69072         (Depends-on): Add extensions, time.
69073         (Include): Include time.h, not strptime.h.
69074         * modules/time_r (Files): Remove lib/time_r.h.
69075         (Depends-on): Add time.
69076         (Include): Include time.h, not time_r.h.
69077         * modules/timegm: Likewise.
69078         * modules/timespec (Description): Now does timespec-related decls
69079         of our own, instead of struct timespec itself.
69080         (Depends-on): Add time; remove extensions.
69081         (Maintainer): Add self.
69082         * modules/utimecmp (Depends-on): Add time; remove timespec.
69083         * modules/utimens (Depends-on): Likewise.
69084         * modules/xnanosleep (Depends-on): Likewise.
69085
69086 2007-02-11  Bruno Haible  <bruno@clisp.org>
69087
69088         * lib/c-strstr.c: Include allocsa.h.
69089         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69090         * lib/c-strcasestr.c: Include allocsa.h.
69091         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69092         * lib/strcasestr.c: Include allocsa.h.
69093         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69094         * lib/mbsstr.c: Include allocsa.h.
69095         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69096         allocsa/freesa instead of malloc/free.
69097         * lib/mbscasestr.c: Include allocsa.h.
69098         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69099         allocsa/freesa instead of malloc/free.
69100         * modules/c-strstr (Depends-on): Add allocsa.
69101         * modules/c-strcasestr (Depends-on): Likewise.
69102         * modules/strcasestr (Depends-on): Likewise.
69103         * modules/mbsstr (Depends-on): Likewise.
69104         * modules/mbscasestr (Depends-on): Likewise.
69105
69106 2007-02-11  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69109
69110         * modules/mbsspn-tests: New file.
69111         * tests/test-mbsspn.sh: New file.
69112         * tests/test-mbsspn.c: New file.
69113
69114 2007-02-11  Bruno Haible  <bruno@clisp.org>
69115
69116         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69117
69118         * modules/mbspbrk-tests: New file.
69119         * tests/test-mbspbrk.sh: New file.
69120         * tests/test-mbspbrk.c: New file.
69121
69122 2007-02-11  Bruno Haible  <bruno@clisp.org>
69123
69124         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69125         unneeded cast.
69126
69127         * modules/mbscspn-tests: New file.
69128         * tests/test-mbscspn.sh: New file.
69129         * tests/test-mbscspn.c: New file.
69130
69131 2007-02-11  Bruno Haible  <bruno@clisp.org>
69132
69133         * modules/mbscasecmp-tests: New file.
69134         * tests/test-mbscasecmp.sh: New file.
69135         * tests/test-mbscasecmp.c: New file.
69136
69137 2007-02-11  Bruno Haible  <bruno@clisp.org>
69138
69139         Ensure O(n) worst-case complexity of mbscasestr.
69140         * lib/mbscasestr.c: Include stdbool.h.
69141         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69142         functions.
69143         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69144         the bookkeeping indicates that it's worth it.
69145         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69146
69147         * modules/mbscasestr-tests: New file.
69148         * tests/test-mbscasestr1.c: New file.
69149         * tests/test-mbscasestr2.sh: New file.
69150         * tests/test-mbscasestr2.c: New file.
69151         * tests/test-mbscasestr3.sh: New file.
69152         * tests/test-mbscasestr3.c: New file.
69153         * tests/test-mbscasestr4.sh: New file.
69154         * tests/test-mbscasestr4.c: New file.
69155         * m4/locale-tr.m4: New file.
69156
69157 2007-02-11  Bruno Haible  <bruno@clisp.org>
69158
69159         Ensure O(n) worst-case complexity of mbsstr.
69160         * lib/mbsstr.c: Include stdbool.h.
69161         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69162         functions.
69163         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69164         bookkeeping indicates that it's worth it.
69165         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69166
69167         * modules/mbsstr-tests: New file.
69168         * tests/test-mbsstr1.c: New file.
69169         * tests/test-mbsstr2.sh: New file.
69170         * tests/test-mbsstr2.c: New file.
69171         * tests/test-mbsstr3.sh: New file.
69172         * tests/test-mbsstr3.c: New file.
69173         * m4/locale-fr.m4: New file.
69174
69175 2007-02-11  Bruno Haible  <bruno@clisp.org>
69176
69177         * lib/mbsrchr.c (mbsrchr): Fix bug.
69178
69179         * modules/mbsrchr-tests: New file.
69180         * tests/test-mbsrchr.sh: New file.
69181         * tests/test-mbsrchr.c: New file.
69182
69183 2007-02-11  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/mbschr.c (mbschr): Fix bug.
69186
69187         * modules/mbschr-tests: New file.
69188         * tests/test-mbschr.sh: New file.
69189         * tests/test-mbschr.c: New file.
69190         * m4/locale-zh.m4: New file.
69191
69192 2007-02-11  Bruno Haible  <bruno@clisp.org>
69193
69194         Support for copying multibyte string iterators.
69195         * lib/mbiter.h: Include <string.h>.
69196         (mbiter_multi_copy): New function.
69197         (mbi_copy): New macro.
69198         * lib/mbuiter.h: Include <string.h>.
69199         (mbuiter_multi_copy): New function.
69200         (mbui_copy): New macro.
69201
69202 2007-02-11  Bruno Haible  <bruno@clisp.org>
69203
69204         New module mbslen.
69205         * modules/mbslen: New file.
69206         * lib/mbslen.c: New file.
69207         * lib/string_.h (mbslen): New declaration.
69208         * m4/mbslen.m4: New file.
69209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69210         GNULIB_MBSLEN.
69211         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69212         * MODULES.html.sh (Internationalization functions): Add mbslen.
69213
69214 2007-02-11  Bruno Haible  <bruno@clisp.org>
69215
69216         Ensure O(n) worst-case complexity of strcasestr substitute.
69217         * lib/strcasestr.c: Include stdbool.h.
69218         (knuth_morris_pratt): New function.
69219         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69220         bookkeeping indicates that it's worth it.
69221         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69222
69223         * modules/strcasestr-tests: New file.
69224         * tests/test-strcasestr.c: New file.
69225
69226 2007-02-11  Bruno Haible  <bruno@clisp.org>
69227
69228         Ensure O(n) worst-case complexity of c_strcasestr.
69229         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69230         (knuth_morris_pratt): New function.
69231         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69232         the bookkeeping indicates that it's worth it.
69233         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69234
69235         * modules/c-strcasestr-tests: New file.
69236         * tests/test-c-strcasestr.c: New file.
69237
69238 2007-02-11  Bruno Haible  <bruno@clisp.org>
69239
69240         Ensure O(n) worst-case complexity of c_strstr.
69241         * lib/c-strstr.c: Include stdbool.h, string.h.
69242         (knuth_morris_pratt): New function.
69243         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69244         bookkeeping indicates that it's worth it.
69245         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69246
69247         * lib/c-strstr.c: Complete rewrite for maintainability.
69248
69249         * modules/c-strstr-tests: New file.
69250         * tests/test-c-strstr.c: New file.
69251
69252 2007-02-11  Bruno Haible  <bruno@clisp.org>
69253
69254         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69255         5.2.1 and earlier, whereby \055 was treated just like the range
69256         delimiter '-'.
69257         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69258
69259 2007-02-08  Bruno Haible  <bruno@clisp.org>
69260
69261         * modules/regex (Depends-on): Add stdbool.
69262         Reported by Dalibor Topic <robilad@kaffe.org>.
69263
69264 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69265
69266         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69267         Prefer returning from main to exiting from it.
69268         Remove unnecessary parens after sizeof.
69269
69270 2007-02-05  Bruno Haible  <bruno@clisp.org>
69271
69272         New module mbssep.
69273         * modules/mbssep: New file.
69274         * lib/mbssep.c: New file.
69275         * lib/string_.h (strsep): Add a conditional link warning.
69276         (mbssep): New declaration.
69277         * m4/mbssep.m4: New file.
69278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69279         GNULIB_MBSSEP.
69280         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69281         * MODULES.html.sh (Internationalization functions): Add mbssep.
69282
69283 2007-02-05  Bruno Haible  <bruno@clisp.org>
69284
69285         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69286         Optimize search in case of 1 delimiter.
69287
69288 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69289
69290         * lib/acl.h: Include sys/types.h before sys/acl.h.
69291
69292 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69293
69294         Merge upstream fix for glibc bugzilla #3957:
69295
69296         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69297
69298         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69299         bit for RE_HAT_LISTS_NOT_NEWLINE.
69300         (build_charclass_op): Remove bogus comment.
69301
69302 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69303
69304         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69305
69306 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69307
69308         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69309         * lib/memmem.c [!defined _LIBC]: Include config.h.
69310
69311 2007-02-04  Bruno Haible  <bruno@clisp.org>
69312
69313         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69314         warning message.
69315
69316 2007-02-04  Bruno Haible  <bruno@clisp.org>
69317
69318         New module mbstok_r.
69319         * modules/mbstok_r: New file.
69320         * lib/mbstok_r.c: New file.
69321         * lib/string_.h (strtok_r): Change argument names to match the
69322         comments. Add a conditional link warning.
69323         (mbstok_r): New declaration.
69324         * m4/mbstok_r.m4: New file.
69325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69326         GNULIB_MBSTOK_R.
69327         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69328         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69329
69330 2007-02-04  Bruno Haible  <bruno@clisp.org>
69331
69332         New module mbsspn.
69333         * modules/mbsspn: New file.
69334         * lib/mbsspn.c: New file.
69335         * lib/string_.h (strspn): Add a conditional link warning.
69336         (mbsspn): New declaration.
69337         * m4/mbsspn.m4: New file.
69338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69339         GNULIB_MBSSPN.
69340         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69341         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69342
69343 2007-02-04  Bruno Haible  <bruno@clisp.org>
69344
69345         New module mbspbrk.
69346         * modules/mbspbrk: New file.
69347         * lib/mbspbrk.c: New file.
69348         * lib/string_.h (strpbrk): Add a conditional link warning.
69349         (mbspbrk): New declaration.
69350         * m4/mbspbrk.m4: New file.
69351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69352         GNULIB_MBSPBRK.
69353         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69354         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69355
69356 2007-02-04  Bruno Haible  <bruno@clisp.org>
69357
69358         New module mbscspn.
69359         * modules/mbscspn: New file.
69360         * lib/mbscspn.c: New file.
69361         * lib/string_.h (strcspn): Add a conditional link warning.
69362         (mbscspn): New declaration.
69363         * m4/mbscspn.m4: New file.
69364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69365         GNULIB_MBSCSPN.
69366         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69367         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69368
69369 2007-02-04  Bruno Haible  <bruno@clisp.org>
69370
69371         New module mbscasestr, reduced goal of strcasestr.
69372         * modules/mbscasestr: New file.
69373         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69374         (mbscasestr): Renamed from strcasestr.
69375         * lib/strcasestr.c: Don't include mbuiter.h.
69376         (strcasestr): Remove support for multibyte locales.
69377         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69378         Change the conditional link warning.
69379         (mbscasestr): New declaration.
69380         * m4/mbscasestr.m4: New file.
69381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69382         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69383         REPLACE_STRCASESTR.
69384         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69386         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69387         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69388         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69389         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69390         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69391         (Depends-on): Remove mbuiter.
69392         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69393
69394 2007-02-04  Bruno Haible  <bruno@clisp.org>
69395
69396         Simplify handling of strncasecmp.
69397         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69398         the conditional link warning.
69399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69400         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69401         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69402         * modules/strcase (configure.ac): Don't invoke
69403         gl_STRING_MODULE_INDICATOR.
69404         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69405
69406 2007-02-04  Bruno Haible  <bruno@clisp.org>
69407
69408         New module mbscasecmp, reduced goal of strcasecmp.
69409         * modules/mbscasecmp: New file.
69410         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69411         (mbscasecmp): Renamed from strcasecmp.
69412         * lib/strcasecmp.c: Don't include mbuiter.h.
69413         (strcasecmp): Remove support for multibyte locales.
69414         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69415         Change the conditional link warning.
69416         (mbscasecmp): New declaration.
69417         * m4/mbscasecmp.m4: New file.
69418         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69419         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69420         REPLACE_STRCASECMP.
69421         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69423         GNULIB_MBSCASECMP.
69424         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69425         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69426         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69427         (Depends-on): Remove mbuiter.
69428         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69429
69430 2007-02-04  Bruno Haible  <bruno@clisp.org>
69431
69432         New module mbsstr. Remove module strstr.
69433         * modules/mbsstr: New file.
69434         * modules/strstr: Remove file.
69435         * lib/mbsstr.c: Renamed from lib/strstr.c.
69436         (mbsstr): Renamed from strstr.
69437         * lib/string_.h (strstr): Remove declaration. Change the conditional
69438         link warning.
69439         (mbsstr): New declaration.
69440         * m4/mbsstr.m4: New file.
69441         * m4/strstr.m4: Remove file.
69442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69443         REPLACE_STRSTR.
69444         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69445         Don't initialize GNULIB_STRSTR.
69446         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69447         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69448         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69449         (Support for systems lacking ANSI C 89): Remove strstr.
69450
69451 2007-02-04  Bruno Haible  <bruno@clisp.org>
69452
69453         New module mbsrchr.
69454         * modules/mbsrchr: New file.
69455         * lib/mbsrchr.c: New file.
69456         * lib/string_.h (strrchr): Add a conditional link warning.
69457         (mbsrchr): New declaration.
69458         * m4/mbsrchr.m4: New file.
69459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69460         GNULIB_MBSRCHR.
69461         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69462         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69463
69464 2007-02-04  Bruno Haible  <bruno@clisp.org>
69465
69466         New module mbschr.
69467         * modules/mbschr: New file.
69468         * lib/mbschr.c: New file.
69469         * lib/string_.h (strchr): Add a conditional link warning.
69470         (mbschr): New declaration.
69471         * m4/mbschr.m4: New file.
69472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69473         GNULIB_MBSCHR.
69474         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69475         * MODULES.html.sh (Internationalization functions): Add mbschr.
69476
69477 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69480
69481         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69482
69483 2007-02-04  Bruno Haible  <bruno@clisp.org>
69484
69485         New module description section 'configure.ac-early'.
69486         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69487         (func_get_autoconf_early_snippet): New function.
69488         (func_import, func_create_testdir): Use it. Remove special cases for
69489         modules 'extensions' and 'lock'.
69490         * modules/extensions (configure.ac-early): Require
69491         gl_USE_SYSTEM_EXTENSIONS.
69492         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69493
69494 2007-02-04  Bruno Haible  <bruno@clisp.org>
69495
69496         Make use of gcj-4.3's -fsource and -ftarget option.
69497         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69498         and if so try the options -fsource and -ftarget.
69499         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69500         source_version, ftarget_option, target_version arguments.
69501         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69502         (is_envjavac_oldgcj_14_14_usable): Renamed from
69503         is_envjavac_gcj_14_14_usable.
69504         (is_envjavac_oldgcj_14_13_usable): Renamed from
69505         is_envjavac_gcj_14_13_usable.
69506         (is_gcj_present): Update.
69507         (is_gcj_43, is_gcj43_usable): New functions.
69508         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69509         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69510         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69511         try the options -fsource and -ftarget.
69512
69513 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69516         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69517         larger value.
69518
69519 2007-02-03  Jim Meyering  <jim@meyering.net>
69520
69521         Give tools a better chance to allocate space for very large buffers.
69522         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69523
69524         Make pwd and readlink work also when run with an unreadable parent dir
69525         on systems with openat support.
69526         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69527         provided getcwd function, even when we have openat support.
69528         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69529
69530 2007-02-02  Bruno Haible  <bruno@clisp.org>
69531
69532         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69533         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69534         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69535         portability problems if one of these functions is only used on specific
69536         platforms.
69537         Reported by Paul Eggert.
69538
69539 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69542         is causing more trouble than it's curing.
69543         * lib/regex_internal.h (__mempcpy): Remove.
69544         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69545         (and make the code a tad smaller to boot).
69546         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69547
69548 2007-02-02  Jim Meyering  <jim@meyering.net>
69549
69550         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69551         section, not in the Makefile.am: one.
69552
69553 2007-02-02  Eric Blake  <ebb9@byu.net>
69554
69555         * lib/strchrnul.c: Always include config.h first.
69556
69557         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69558         gnulib strstr is not necessary here.
69559
69560 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69561
69562         * m4/socklen.m4: Fix typo.
69563
69564 2007-02-02  Eric Blake  <ebb9@byu.net>
69565
69566         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69567         * modules/netinet_in (Makefile.am): Likewise.
69568
69569 2007-02-01  Bruno Haible  <bruno@clisp.org>
69570
69571         * lib/string_.h (GL_LINK_WARNING): New macro.
69572         (strcasecmp, strstr, strcasestr): If provided by the system,
69573         conditionally define as a macro that leads to a warning instead of to
69574         an error.
69575         (strncasecmp): Conditionally define as a macro that leads to a warning.
69576
69577 2007-02-01  Karl Berry  <karl@gnu.org>
69578
69579         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69580
69581 2007-02-01  Bruno Haible  <bruno@clisp.org>
69582
69583         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69584         renamings.
69585
69586 2007-02-01  Eric Blake  <ebb9@byu.net>
69587
69588         * modules/regex (Depends-on): Revert dependence on mempcpy.
69589         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69590         module's definition of mempcpy.
69591         Reported by Paul Eggert.
69592
69593 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69594
69595         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69596         the symbol XYZ before redefining it.  This fixes a problem with
69597         programs that don't use XYZ, when compiled on systems that define
69598         XYZ to something else.
69599
69600 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69603         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69604         writeable to group or other and (2) is intended to have a special
69605         mode bit that is set or cleared.  In such a case, the directory
69606         should be neither group- nor other-writeable until the special
69607         mode bits are right.
69608
69609 2007-01-31  Eric Blake  <ebb9@byu.net>
69610
69611         * modules/mountlist (Depends-on): Add strstr.
69612
69613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69614         bug.
69615         * modules/string (Makefile.am): Remove redundant replacement.
69616         * modules/regex (Depends-on): Add mempcpy.
69617
69618 2007-01-31  Bruno Haible  <bruno@clisp.org>
69619
69620         New module description field 'Link'.
69621         * gnulib-tool (func_usage): Document --extract-link-directive.
69622         (sed_extract_prog): Recognize 'Link' directive.
69623         (func_get_link_directive): New function.
69624         (func_import): Show summary of link directives.
69625         Handle --extract-link-directive option.
69626         * modules/acl (Link): New section.
69627         * modules/clock-time (Link): New section.
69628         * modules/euidaccess (Link): New section.
69629         * modules/gettext (Link): New section.
69630         * modules/iconv (Link): New section.
69631         * modules/lock (Link): New section.
69632         * modules/nanosleep (Link): New section.
69633         * modules/readline (Link): New section.
69634
69635 2007-01-27  Bruno Haible  <bruno@clisp.org>
69636
69637         Enforce the use of gnulib modules for unportable <string.h> functions.
69638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69639         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69640         (gl_HEADER_STRING_H_BODY): Require it.
69641         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69642         the symbol XYZ to one that gives a link error.
69643         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69644         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69645         * modules/mempcpy (configure.ac): Likewise.
69646         * modules/memrchr (configure.ac): Likewise.
69647         * modules/stpcpy (configure.ac): Likewise.
69648         * modules/stpncpy (configure.ac): Likewise.
69649         * modules/strcase (configure.ac): Likewise.
69650         * modules/strcasestr (configure.ac): Likewise.
69651         * modules/strchrnul (configure.ac): Likewise.
69652         * modules/strdup (configure.ac): Likewise.
69653         * modules/strndup (configure.ac): Likewise.
69654         * modules/strnlen (configure.ac): Likewise.
69655         * modules/strpbrk (configure.ac): Likewise.
69656         * modules/strsep (configure.ac): Likewise.
69657         * modules/strstr (configure.ac): Likewise.
69658         * modules/strtok_r (configure.ac): Likewise.
69659
69660 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69661
69662         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69663
69664 2007-01-30  Jim Meyering  <jim@meyering.net>
69665
69666         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69667
69668 2007-01-29  Bruno Haible  <bruno@clisp.org>
69669
69670         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69671         * lib/execute.c: Likewise.
69672         * lib/pipe.c: Likewise.
69673         * lib/printf-args.h: Likewise.
69674         * lib/printf-args.c: Likewise.
69675         * lib/printf-parse.c: Likewise.
69676         * lib/vasnprintf.c: Likewise.
69677
69678 2007-01-29  Eric Blake  <ebb9@byu.net>
69679
69680         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69681         declaration.
69682
69683 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69684
69685         * lib/strptime.h (strptime): Use 'restrict' for args where
69686         POSIX requires this.
69687         * lib/strptime.c (strptime): Likewise.
69688         Change license notice from LGPL to GPL, since gnulib-tool will
69689         change this as needed.
69690         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69691         defined.
69692         Include "strptime.h" first, to check interface.
69693         Do not #undef _LIBC and _NL_CURRENT.
69694         Do not include <stdlib.h>; no longer needed.
69695         Include "time_r.h" and declare ptime_locale_status
69696         only if _LIBC is not defined.
69697         (__P): Remove unused macro.
69698         (match_string): Bring back glibc version, but use it only if _LIBC
69699         is defined.
69700         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69701         Remove unnecessary assertion and abort() call.
69702         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69703         * m4/strptime.m4: Fix serial number comment.
69704         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69705         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69706         (Depends-on): Add time_r.
69707
69708 2007-01-29  Bruno Haible  <bruno@clisp.org>
69709
69710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69711         strptime.
69712         * modules/strptime (Depends-on): Add stdbool.
69713         * lib/strptime.h: Include <time.h> always. Add comments.
69714
69715 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69716
69717         * modules/strptime: New file.
69718         * lib/strptime.h: New file.
69719         * lib/strptime.c: New file.
69720         * m4/strptime.m4: New file.
69721
69722 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69723
69724         * MODULES.html.sh: New module mpsort.
69725         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69726
69727         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69728         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69730         All uses changed.
69731         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69732         All uses changed.
69733         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69734         to _Restrict_.
69735         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69736         the parameter matches the prototype.
69737
69738 2007-01-28  Jim Meyering  <jim@meyering.net>
69739
69740         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69741         sys/time.h here, reverting that part of the previous patch:
69742         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69743
69744 2007-01-28  Bruno Haible  <bruno@clisp.org>
69745
69746         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69747         value of $(SYS_TIME_H).
69748         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69749         remove it conditionally, too. [added by Jim Meyering]
69750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69752         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69753         GETTIMEOFDAY_REPLACEMENT to 1.
69754
69755 2007-01-28  Bruno Haible  <bruno@clisp.org>
69756
69757         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69758         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69760         Set UNISTD_H instead of UNISTD_H2.
69761         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69762
69763 2007-01-28  Bruno Haible  <bruno@clisp.org>
69764
69765         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69766         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69767
69768 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69769
69770         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69771         (func_create_testdir): Ensure C locale for `grep' and `tr'
69772         character ranges.
69773         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69774         ACLOCAL_AMFLAGS parsing state machine.
69775
69776 2007-01-27  Bruno Haible  <bruno@clisp.org>
69777
69778         * modules/unistr/base: Update.
69779
69780 2007-01-27  Bruno Haible  <bruno@clisp.org>
69781
69782         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69783         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69784         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69785         modules/unistr/u32-mbtouc.
69786         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69787         * lib/unistr.h: Update.
69788         * lib/linebreak.c: Update.
69789         * modules/unistr/u32-mbtouc: Renamed from
69790         modules/unistr/u32-mbtouc-safe.
69791         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69792         * lib/unistr.h: Update.
69793         * lib/unistr/u32-to-u8.c: Update.
69794         * lib/unistr/u32-to-u16.c: Update.
69795
69796 2007-01-27  Bruno Haible  <bruno@clisp.org>
69797
69798         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69799         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69800         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69801         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69802         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69803         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69804         modules/unistr/u16-mbtouc.
69805         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69806         * lib/unistr.h: Update.
69807         * lib/linebreak.c: Update.
69808         * modules/linebreak: Update.
69809         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69810         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69811         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69812         * modules/unistr/u16-mbtouc: Renamed from
69813         modules/unistr/u16-mbtouc-safe.
69814         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69815         * lib/unistr.h: Update.
69816         * lib/unistr/u16-to-u8.c: Update.
69817         * modules/unistr/u16-to-u8: Update.
69818         * lib/unistr/u16-to-u32.c: Update.
69819         * modules/unistr/u16-to-u32: Update.
69820
69821 2007-01-27  Bruno Haible  <bruno@clisp.org>
69822
69823         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69824         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69825         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69826         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69827         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69828         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69829         modules/unistr/u8-mbtouc.
69830         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69831         * lib/unistr.h: Update.
69832         * lib/striconveh.c: Update.
69833         * modules/striconveh: Update.
69834         * lib/linebreak.c: Update.
69835         * modules/linebreak: Update.
69836         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69837         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69838         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69839         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69840         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69841         * lib/unistr.h: Update.
69842         * lib/striconveh.c: Update.
69843         * modules/striconveh: Update.
69844         * lib/unistr/u8-to-u16.c: Update.
69845         * modules/unistr/u8-to-u16: Update.
69846         * lib/unistr/u8-to-u32.c: Update.
69847         * modules/unistr/u8-to-u32: Update.
69848
69849 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69850
69851         Sync from Libtool.
69852         * lib/argz.c: Do not include strings.h nor memory.h, include
69853         string.h unconditionally.  Patch by Simon Josefsson.
69854
69855 2007-01-27  Bruno Haible  <bruno@clisp.org>
69856
69857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69858         from gl_HEADER_STRING_H_BODY.
69859         (gl_HEADER_STRING_H_BODY): Require it.
69860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69861         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69862         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69863         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69865         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69867         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69868         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69869         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69870         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69871         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69872         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69873         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69874         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69875
69876 2007-01-27  Bruno Haible  <bruno@clisp.org>
69877
69878         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69879         check_PROGRAMS into noinst_PROGRAMS.
69880         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69881         check_PROGRAMS in this case.
69882         (func_import): Set for_test to false.
69883         (func_create_testdir): Set for_test to true.
69884
69885 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69886             Bruno Haible  <bruno@clisp.org>
69887
69888         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69889         (Depends-on): Add string.
69890         (Includes): Use <string.h> instead of strcasestr.h.
69891         * modules/string (Makefile.am): Also substitute the value of
69892         REPLACE_STRCASESTR.
69893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69894         assume strcasestr is declared in <string.h> not <strings.h>. Also
69895         set REPLACE_STRCASESTR.
69896         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69897         REPLACE_STRCASESTR.
69898         * lib/strcasestr.h: Remove file.
69899         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69900         * lib/string_.h (strcasestr): New declaration.
69901
69902 2007-01-27  Bruno Haible  <bruno@clisp.org>
69903
69904         * lib/string_.h: Use 'extern'.
69905
69906 2007-01-27  Jim Meyering  <jim@meyering.net>
69907
69908         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69909         of set-but-not-used local, "q".
69910
69911         * lib/mempcpy.c: Include <config.h> before <string.h>.
69912         This fixes a compilation error on HP-UX, due to the system's
69913         "restrict"-using mempcpy prototype.
69914
69915 2007-01-26  Bruno Haible  <bruno@clisp.org>
69916
69917         Small optimization.
69918         * lib/javacomp.c: Include c-strstr.h.
69919          (is_envjavac_gcj): Use c_strstr instead of strstr.
69920         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69921
69922 2007-01-26  Bruno Haible  <bruno@clisp.org>
69923
69924         * MODULES.html.sh (Unicode string functions): Add the new modules.
69925
69926         * modules/uniconv/u32-strconv-to-locale: New file.
69927         * lib/uniconv/u32-strconv-to-locale.c: New file.
69928
69929         * modules/uniconv/u16-strconv-to-locale: New file.
69930         * lib/uniconv/u16-strconv-to-locale.c: New file.
69931
69932         * modules/uniconv/u8-strconv-to-locale: New file.
69933         * lib/uniconv/u8-strconv-to-locale.c: New file.
69934
69935         * modules/uniconv/u32-strconv-from-locale: New file.
69936         * lib/uniconv/u32-strconv-from-locale.c: New file.
69937
69938         * modules/uniconv/u16-strconv-from-locale: New file.
69939         * lib/uniconv/u16-strconv-from-locale.c: New file.
69940
69941         * modules/uniconv/u8-strconv-from-locale: New file.
69942         * lib/uniconv/u8-strconv-from-locale.c: New file.
69943
69944         * modules/uniconv/u32-strconv-to-enc: New file.
69945         * lib/uniconv/u32-strconv-to-enc.c: New file.
69946         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69947         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69948
69949         * modules/uniconv/u16-strconv-to-enc: New file.
69950         * lib/uniconv/u16-strconv-to-enc.c: New file.
69951         * lib/uniconv/u-strconv-to-enc.h: New file.
69952         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69953         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69954
69955         * modules/uniconv/u8-strconv-to-enc: New file.
69956         * lib/uniconv/u8-strconv-to-enc.c: New file.
69957         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69958         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69959
69960         * modules/uniconv/u32-strconv-from-enc: New file.
69961         * lib/uniconv/u32-strconv-from-enc.c: New file.
69962         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69963         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69964
69965         * modules/uniconv/u16-strconv-from-enc: New file.
69966         * lib/uniconv/u16-strconv-from-enc.c: New file.
69967         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69968         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69969
69970         * modules/uniconv/u8-strconv-from-enc: New file.
69971         * lib/uniconv/u8-strconv-from-enc.c: New file.
69972         * lib/uniconv/u-strconv-from-enc.h: New file.
69973         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69974         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69975
69976         * modules/uniconv/u32-conv-from-enc: New file.
69977         * lib/uniconv/u32-conv-from-enc.c: New file.
69978         * modules/uniconv/u32-conv-from-enc-tests: New file.
69979         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69980
69981         * modules/uniconv/u16-conv-from-enc: New file.
69982         * lib/uniconv/u16-conv-from-enc.c: New file.
69983         * lib/uniconv/u-conv-from-enc.h: New file.
69984         * modules/uniconv/u16-conv-from-enc-tests: New file.
69985         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69986
69987         * modules/uniconv/u8-conv-from-enc: New file.
69988         * lib/uniconv/u8-conv-from-enc.c: New file.
69989         * modules/uniconv/u8-conv-from-enc-tests: New file.
69990         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69991
69992         * modules/uniconv/base: New file.
69993         * lib/uniconv.h: New file.
69994
69995 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * doc/gnulib-tool.texi (Initial import): Update to match current
69998         behavior with strdup module.
69999         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70000         * lib/memmem.h: Remove; all uses removed.  This is now done
70001         by <string.h>.
70002         * lib/mempcpy.h: Likewise.
70003         * lib/memrchr.h: Likewise.
70004         * lib/stpcpy.h: Likewise.
70005         * lib/stpncpy.h: Likewise.
70006         * lib/strcase.h: Likewise.
70007         * lib/strchrnul.h: Likewise.
70008         * lib/strdup.h: Likewise.
70009         * lib/strndup.h: Likewise.
70010         * lib/strnlen.h: Likewise.
70011         * lib/strpbrk.h: Likewise.
70012         * lib/strsep.h: Likewise.
70013         * lib/strstr.h: Likewise.
70014         * lib/strtok_r.h: Likewise.
70015         * lib/string_.h: New file.
70016         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70017         Rely on <string.h> instead.
70018         * lib/canon-host.c: Likewise.
70019         * lib/chdir-long.c: Likewise.
70020         * lib/concatpath.c: Likewise.
70021         * lib/exclude.c: Likewise.
70022         * lib/fchdir.c: Likewise.
70023         * lib/getaddrinfo.c: Likewise.
70024         * lib/getcwd.c: Likewise.
70025         * lib/getsubopt.c: Likewise.
70026         * lib/glob.c: Likewise.
70027         * lib/hard-locale.c: Likewise.
70028         * lib/iconvme.c: Likewise.
70029         * lib/javacomp.c: Likewise.
70030         * lib/mempcpy.c: Likewise.
70031         * lib/memrchr.c: Likewise.
70032         * lib/regex_internal.h: Likewise.
70033         * lib/stpncpy.c: Likewise.
70034         * lib/strcasecmp.c: Likewise.
70035         * lib/strchrnul.c: Likewise.
70036         * lib/strdup.c: Likewise.
70037         * lib/striconv.c: Likewise.
70038         * lib/striconveh.c: Likewise.
70039         * lib/striconveha.c: Likewise.
70040         * lib/strncasecmp.c: Likewise.
70041         * lib/strndup.c: Likewise.
70042         * lib/strnlen.c: Likewise.
70043         * lib/strsep.c: Likewise.
70044         * lib/strstr.c: Likewise.
70045         * lib/strtok_r.c: Likewise.
70046         * lib/userspec.c: Likewise.
70047         * lib/w32spawn.h: Likewise.
70048         * lib/xstrndup.c: Likewise.
70049         * lib/mountlist.c (strstr): Remove decl.
70050         * m4/string_h.m4: New file.
70051         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70052         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70053         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70054         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70055         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70056         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70057         Set REPLACE_STRCASECMP if necessary.
70058         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70059         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70060         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70061         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70062         HAVE_DECL_STRDUP if necessary.
70063         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70064         since gl_FUNC_STRNDUP does that now.
70065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70066         Check for decl here...
70067         (gl_PREREQ_STRNLEN): ... not here.
70068         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70069         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70070         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70071         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70072         necessary.
70073         * modules/string: New file.
70074         * modules/memmem (Files): Remove special-purpose include file.
70075         (Depends-on): Add string.
70076         (Include): Include <string.h>, not the removed file.
70077         * modules/mempcpy: Likewise.
70078         * modules/memrchr: Likewise.
70079         * modules/stpcpy: Likewise.
70080         * modules/stpncpy: Likewise.
70081         * modules/strcase: Likewise.
70082         * modules/strchrnul: Likewise.
70083         * modules/strdup: Likewise.
70084         * modules/strndup: Likewise.
70085         * modules/strnlen: Likewise.
70086         * modules/strpbrk: Likewise.
70087         * modules/strsep: Likewise.
70088         * modules/strstr: Likewise.
70089         * modules/strtok_r: Likewise.
70090         * tests/test-dirname.c: Don't include "strdup.h", since
70091         <string.h> now suffices.
70092         * tests/test-memmem.c: Don't include "memmem.h", since
70093         <string.h> now suffices.
70094
70095 2007-01-25  Bruno Haible  <bruno@clisp.org>
70096
70097         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70098         *resultp is 0.
70099
70100         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70101         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70102         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70103         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70104
70105         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70106         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70107         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70108         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70109         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70110         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70111
70112 2007-01-24  Bruno Haible  <bruno@clisp.org>
70113
70114         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70116         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70117         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70118         gl_FUNC_FTS_CORE.
70119         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70120         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70121         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70122         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70123         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70124         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70125         gl_FUNC_FCHOWNAT.
70126         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70127         gl_FUNC_STRFTIME.
70128         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70129         Reported by Ralf Wildenhues.
70130
70131 2007-01-24  Bruno Haible  <bruno@clisp.org>
70132
70133         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70134         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70135         gl_GETADDRINFO.
70136         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70137         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70138         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70139
70140 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70141
70142         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70143         Don't use 'exit'; just return from 'main'.
70144         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70145
70146         * lib/fnmatch_.h: Readjust white space and comments to match
70147         glibc, to avoid spurious diffs.
70148
70149 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70150
70151         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70152         2004-12-01 change by Jakub Jelinek, since this code won't compile
70153         if !LIBC.  Problem reported by Bob Proulx.
70154
70155 2007-01-23  Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/striconveh.c: Include c-strcaseeq.h.
70158         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70159         * modules/striconveh (Depends-on): Add c-strcaseeq.
70160
70161 2007-01-23  Bruno Haible  <bruno@clisp.org>
70162
70163         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70164
70165         * modules/c-strcaseeq: New file.
70166         * lib/c-strcaseeq.h: New file.
70167
70168         * modules/streq: New file.
70169         * lib/streq.h: New file.
70170
70171 2007-01-23  Bruno Haible  <bruno@clisp.org>
70172
70173         * modules/striconveha-tests: New file.
70174         * tests/test-striconveha.c: New file.
70175
70176         * lib/striconveha.h: Include <stdbool.h>.
70177         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70178         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70179         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70180         (mem_iconveha): New function.
70181         (str_iconveha_notranslit): Renamed from str_iconveha.
70182         (str_iconveha): New function.
70183         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70184         c-strcase.
70185
70186 2007-01-23  Bruno Haible  <bruno@clisp.org>
70187
70188         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70189         encodings without forgiving before trying any encoding with handler.
70190         (str_iconveha): Try all encodings without forgiving before trying any
70191         encoding with handler.
70192
70193 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70194
70195         Import the following changes from libc.
70196
70197         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70198
70199         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70200
70201         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70202
70203         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70204         normal_bracket label.
70205
70206         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70207
70208         [BZ #361]
70209         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70210         to normal_bracket after fetching the next character.
70211
70212 2007-01-22  Bruno Haible  <bruno@clisp.org>
70213
70214         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70215         argument.
70216         * lib/striconveh.c (iconv_carefully_1): New function.
70217         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70218         argument.
70219         (str_cd_iconveh): Update.
70220         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70221         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70222         * tests/test-striconveh.c (MAGIC): New macro.
70223         (new_offsets): New function.
70224         (main): Test call with and without offsets.
70225
70226 2007-01-22  Bruno Haible  <bruno@clisp.org>
70227
70228         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70229         * modules/sys_select (Makefile.am): Likewise.
70230         * modules/sys_socket (Makefile.am): Likewise.
70231         * modules/sys_time (Makefile.am): Likewise.
70232
70233 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         * modules/gettimeofday (License): Change from GPL to LGPL, since
70236         gettimeofday is a library function.
70237
70238 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70239
70240         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70241
70242 2007-01-21  Bruno Haible  <bruno@clisp.org>
70243
70244         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70245
70246 2007-01-21  Bruno Haible  <bruno@clisp.org>
70247
70248         * modules/striconveha: New file.
70249         * lib/striconveha.h: New file.
70250         * lib/striconveha.c: New file.
70251         * MODULES.html.sh (Internationalization functions): Add striconveha.
70252         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70253         string.
70254         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70255
70256 2007-01-21  Bruno Haible  <bruno@clisp.org>
70257
70258         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70259         * lib/striconveh.c (str_iconveh): Likewise.
70260
70261 2007-01-21  Bruno Haible  <bruno@clisp.org>
70262
70263         * lib/striconveh.h (mem_iconveh): New declaration.
70264         * lib/striconveh.c (mem_iconveh): New function.
70265         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70266
70267 2007-01-21  Bruno Haible  <bruno@clisp.org>
70268
70269         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70270
70271         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70272         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70273         original result buffer.
70274         (str_cd_iconveh): Update.
70275         * tests/test-striconveh.c (main): Update.
70276
70277         * lib/striconv.h (mem_cd_iconv): Change specification.
70278         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70279         result buffer.
70280         (str_cd_iconv): Update.
70281         * tests/test-striconv.c (main): Update.
70282
70283 2007-01-21  Bruno Haible  <bruno@clisp.org>
70284
70285         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70286
70287 2007-01-20  Jim Meyering  <jim@meyering.net>
70288
70289         * lib/userspec.c (parse_with_separator): If a user or group string
70290         starts with "+", skip the corresponding name-to-ID look-up, since
70291         such a look-up must fail: user and group names may not include "+".
70292
70293 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70294
70295         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70296         since we now assume the sys_time module.
70297         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70298         check for sys/time.h; no longer needed.
70299         * modules/poll (Depends-on): Depend on sys_time.
70300
70301 2007-01-18  Bruno Haible  <bruno@clisp.org>
70302
70303         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70304         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70305
70306         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70307         gettimeofday.
70308
70309         * tests/test-gettimeofday.c: Include <time.h>.
70310         (dummy): Remove variable.
70311
70312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70313         gl_HEADER_SYS_TIME_H.
70314         (gl_HEADER_SYS_TIME_H): New macro.
70315
70316         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70317         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70319         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70320         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70322         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70323         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70324         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70325         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70326         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70327
70328         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70329         last change; it caused a compilation error when cross-compiling to
70330         Cygwin.
70331
70332 2007-01-18  Jim Meyering  <jim@meyering.net>
70333
70334         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70335         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70336         than the race-prone "test -d sys || mkdir sys".
70337         (configure.ac): Use AC_PROG_MKDIR_P.
70338         * modules/sys_select: Likewise.
70339         * modules/sys_socket: Likewise.
70340         * modules/sys_time: Likewise.
70341
70342 2007-01-18  Eric Blake  <ebb9@byu.net>
70343
70344         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70345         replace gettimeofday.
70346         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70347         name, to avoid infinite recursion.
70348
70349 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70352         module sys_time.
70353         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70354         assume timespec.h defines struct timeval.
70355         * lib/settime.c: Likewise.
70356         * lib/utimens.c: Likewise.
70357         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70358         since we now assume the gettimeofday module.
70359         * lib/tempname.c (__gen_tempname): Likewise.
70360         * lib/gettimeofday.h: Remove.
70361         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70362         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70363         Include <time.h>, for 'time()'.
70364         (localtime_buffer_addr): Also use this workaround if
70365         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70366         to simplify the uses.  All uses changed.
70367         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70368         that #undef is inside {}, and 'const' follows type name consistently.
70369         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70370         (gettimeofday): Do not use the maximum possible value for
70371         tv->tv_usec, since that might break usages other than ls.c.
70372         Instead, we'll leave ls.c alone.  This undoes today's patch
70373         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70374         we've never observed the problem but might as well keep the
70375         canary.
70376         * lib/nanosleep.c: Include timespec.h first, for interface check.
70377         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70378         now assume the sys_time module.
70379         * lib/tempname.c: Likewise.
70380         * lib/timespec.h: Likewise.
70381         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70382         needed.
70383         * lib/strftime.c: Likewise.
70384         * lib/timespec.h: Likewise.
70385         * lib/posixtm.c: Include posixtm.h first, for interface check.
70386         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70387         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70388         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70389         * lib/sys_time_.h: New file.
70390         * lib/timespec.h (struct timespec): Use long int, not long.
70391         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70392         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70393         Remove obsolescent call to AC_HEADER_TIME.
70394         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70396         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70397         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70398         Likewise.
70399         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70400         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70402         into the sys_time module.  Check for gettimeofday just once.
70403         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70404         for gettimeofday signature to just check the signature.  Merely
70405         compile it, since linking doesn't test signature.  Improve test for
70406         whether gettimeofday.o is actually needed.
70407         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70408         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70409         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70410         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70411         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70412         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70413         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70414         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70415         than worrying about sys/time.h.
70416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70417         Don't bother worrying about TIME_WITH_SYS_TIME.
70418         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70419         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70420         * m4/sys_time_h.m4: New file.
70421         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70422         Don't include sys/time.h.  Return from main rather than exiting.
70423         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70424         all uses changed.
70425         * modules/gethrxtime (Depends-on): Add sys_time.
70426         * modules/gettime (Depends-on): Likewise.
70427         * modules/gettimeofday (Depends-on): Likewise.
70428         * modules/nanosleep (Depends-on): Likewise.
70429         * modules/settime (Depends-on): Likewise.
70430         * modules/tempname (Depends-on): Likewise.
70431         * modules/utimens (Depends-on): Likewise.
70432         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70433         (Include): Change back to <sys/time.h>.
70434         (Maintainer): Add self.
70435         * modules/sys_time: New file.
70436         * modules/tempname (Depends-on): Add gettimeofday.
70437         * tests/test-gettimeofday.c: Include <sys/time.h>
70438         rather than gettimeofday.h.
70439
70440 2007-01-17  Bruno Haible  <bruno@clisp.org>
70441
70442         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70443         the license default to GPL.
70444         (func_create_testdir): Don't complain if a module is LGPL and its
70445         tests module depends on GPLed modules.
70446
70447 2007-01-17  Bruno Haible  <bruno@clisp.org>
70448
70449         * lib/gettimeofday.c (gettimeofday): Add code for the case
70450         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70451         maximum possible value for tv->tv_usec, rather than the minimum one.
70452
70453 2005-10-08  Martin Lambers  <marlam@marlam.de>
70454 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70455 2007-01-16  Bruno Haible  <bruno@clisp.org>
70456
70457         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70458         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70459         gl_FUNC_GETTIMEOFDAY.
70460         (Include): Add gettimeofday.h.
70461         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70462         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70463         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70464         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70465         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70466         * lib/gettimeofday.h: New file.
70467         * lib/gettimeofday.c: Include <sys/timeb.h>.
70468         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70469         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70470         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70471         fall back on time().
70472
70473         * tests/test-gettimeofday.c: New file.
70474         * modules/gettimeofday-tests: New file.
70475
70476 2007-01-16  Eric Blake  <ebb9@byu.net>
70477
70478         * modules/fnmatch (Depends-on): Depend on wchar.
70479         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70480         * m4/fnmatch.m4: Likewise.
70481         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70482         * m4/mbchar.m4: Likewise.
70483         * modules/mbswidth (Depends-on): Depend on wchar.
70484         * lib/mbswidth.c: Assume <wchar.h>.
70485         * m4/mbswidth.m4: Likewise.
70486         * modules/quotearg (Depends-on): Depend on wchar.
70487         * lib/quotearg.c: Assume <wchar.h>.
70488         * m4/quotearg.m4: Likewise.
70489         * modules/regex (Depends-on): Depend on wchar.
70490         * lib/regex_internal.h: Assume <wchar.h>.
70491         * m4/regex.m4: Likewise.
70492         * modules/stdint (Depends-on): Depend on wchar.
70493         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70494         * m4/stdint.m4: Likewise.
70495         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70496         * modules/strftime (Depends-on): Depend on wchar.
70497         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70498         * modules/strtol (Depends-on): Depend on wchar.
70499         * lib/strtol.c: Assume <wchar.h>.
70500         * modules/wcwidth (Depends-on): Depend on wchar.
70501         * lib/wcwidth.h: Assume <wchar.h>.
70502         * m4/wcwidth.m4: Likewise.
70503
70504 2007-01-16  Bruno Haible  <bruno@clisp.org>
70505
70506         * modules/csharpexec-script: New, created from...
70507         * modules/csharpexec: ... this.
70508
70509 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70510
70511         * modules/javaexec-script: New, created from...
70512         * modules/javaexec: ... this.
70513
70514 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70515
70516         * modules/poll (Dependencies): Add sys_select.
70517
70518 2007-01-15  Jim Meyering  <jim@meyering.net>
70519
70520         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70521         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70522         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70523         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70524
70525 2007-01-15  Bruno Haible  <bruno@clisp.org>
70526
70527         * modules/striconveh: New file.
70528         * lib/striconveh.h: New file.
70529         * lib/striconveh.c: New file.
70530         * MODULES.html.sh (Internationalization functions): Add striconveh.
70531
70532         * modules/striconveh-tests: New file.
70533         * tests/test-striconveh.c: New file.
70534
70535 2007-01-15  Bruno Haible  <bruno@clisp.org>
70536
70537         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70538         not from GNU libiconv or GNU libc.
70539
70540 2007-01-15  Bruno Haible  <bruno@clisp.org>
70541
70542         * doc/gnulib-intro.texi (Copyright): Explain the different license
70543         terms for module descriptions, autoconf macros, tests, documentation.
70544
70545 2007-01-14  Bruno Haible  <bruno@clisp.org>
70546
70547         * modules/striconv-tests: New file.
70548         * tests/test-striconv.c: New file.
70549
70550 2007-01-14  Bruno Haible  <bruno@clisp.org>
70551
70552         * modules/iconv-tests: New file.
70553         * tests/test-iconv.c: New file.
70554
70555 2007-01-14  Bruno Haible  <bruno@clisp.org>
70556
70557         * gnulib-tool (func_get_license): For test modules, use the license of
70558         the main module.
70559
70560 2007-01-14  Bruno Haible  <bruno@clisp.org>
70561
70562         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70563         if iconv is found to exist.
70564
70565 2007-01-14  Bruno Haible  <bruno@clisp.org>
70566
70567         * modules/c-ctype-tests: New file.
70568         * tests/test-c-ctype.c: New file.
70569
70570 2007-01-14  Bruno Haible  <bruno@clisp.org>
70571
70572         * modules/binary-io-tests: New file.
70573         * tests/test-binary-io.sh: New file.
70574         * tests/test-binary-io.c: New file.
70575
70576 2007-01-14  Bruno Haible  <bruno@clisp.org>
70577
70578         * modules/array-oset-tests: New file.
70579         * tests/test-array_oset.c: New file.
70580
70581 2007-01-14  Bruno Haible  <bruno@clisp.org>
70582
70583         * modules/array-list-tests: New file.
70584         * tests/test-array_list.c: New file.
70585
70586 2007-01-14  Bruno Haible  <bruno@clisp.org>
70587
70588         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70589         and make.
70590         Reported by Simon Josefsson in
70591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70592
70593 2007-01-14  Bruno Haible  <bruno@clisp.org>
70594
70595         * modules/allocsa-tests: New file.
70596         * tests/test-allocsa.c: New file.
70597
70598 2007-01-14  Bruno Haible  <bruno@clisp.org>
70599
70600         * modules/fchdir (Depends-on): Add absolute-header.
70601         * modules/unistd (Depends-on): Likewise.
70602
70603 2006-12-30  Bruno Haible  <bruno@clisp.org>
70604
70605         * modules/fchdir: New file.
70606         * modules/unistd (Files): Add lib/unistd_.h.
70607         (Makefile.am): Generate unistd.h from unistd_.h.
70608         * lib/fchdir.c: New file.
70609         * lib/dirent_.h: New file.
70610         * lib/unistd_.h: New file.
70611         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70612         * m4/fchdir.m4: New file.
70613         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70614         (gl_HEADER_UNISTD): Invoke it.
70615         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70616         function.
70617         * lib/backupfile.c (opendir, closedir): Undefine.
70618         * lib/chown.c (open, close): Undefine.
70619         * lib/clean-temp.c (open, close): Undefine.
70620         * lib/copy-file.c (open, close): Undefine.
70621         * lib/execute.c (open, close): Undefine.
70622         * lib/fsusage.c (open, close): Undefine.
70623         * lib/gc-gnulib.c (open, close): Undefine.
70624         * lib/getcwd.c (opendir, closedir): Undefine.
70625         * lib/glob.c (opendir, closedir): Undefine.
70626         * lib/javacomp.c (open, close): Undefine.
70627         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70628         * lib/openat-proc.c (open, close): Undefine.
70629         * lib/pagealign_alloc.c (open, close): Undefine.
70630         * lib/pipe.c (open, close): Undefine.
70631         * lib/progreloc.c (open, close): Undefine.
70632         * lib/savedir.c (opendir, closedir): Undefine.
70633         * lib/utime.c (open, close): Undefine.
70634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70635
70636 2007-01-10  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70639
70640 2007-01-12  Eric Blake  <ebb9@byu.net>
70641
70642         Provide a robust <wchar.h>.  Further simplifications are now
70643         possible in other modules, but not included here.
70644         * modules/wchar: New module.
70645         * m4/wchar.m4: New file.
70646         * lib/wchar_.h: Likewise.
70647         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70648         of the new module.
70649         * MODULES.html.sh (Extended multibyte and wide character utilities):
70650         New section.
70651
70652 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70655         to a reasonable default for memory allocation.
70656         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70657         file system that reports garbage st_size values for symlinks.
70658         Problem reported by Liyang Hu.
70659
70660 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70661
70662         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70663         Emacs .#* auto-save files).
70664
70665 2007-01-11  Bruno Haible  <bruno@clisp.org>
70666
70667         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70668         directory.
70669
70670 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70671
70672         Use @...@ consistently in lib/wctype_.h.
70673         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70674         on it being set to 1 or 0.
70675         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70676         go back to AC_SUBSTing it.
70677         * modules/wctype (Makefile.am): Undo previous change.
70678
70679 2007-01-10  Eric Blake  <ebb9@byu.net>
70680
70681         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70682         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70683         * modules/wctype (Makefile.am): Likewise.
70684         Reported by Chris McGuire.
70685
70686 2007-01-10  Jim Meyering  <jim@meyering.net>
70687
70688         fts.c: a small readability/maintainability improvement
70689         * lib/fts.c (fts_read): Make this code slightly more readable and
70690         maintainable by hoisting the "sp->fts_cur = p" assignments to
70691         immediately follow the statements that set P.  Derived from
70692         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70693
70694 2007-01-10  Eric Blake  <ebb9@byu.net>
70695
70696         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70697         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70699         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70700         Reported by Chris McGuire.
70701
70702 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70703
70704         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70705         in sed script.
70706
70707 2007-01-09  Bruno Haible  <bruno@clisp.org>
70708
70709         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70710         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70711         variables.
70712         (func_module): Use them.
70713
70714 2007-01-09  Bruno Haible  <bruno@clisp.org>
70715
70716         * modules/unistr/base: New file.
70717         * lib/unistr.h: New file.
70718
70719         * modules/unistr/u8-to-u16: New file.
70720         * lib/unistr/u8-to-u16.c: New file.
70721
70722         * modules/unistr/u8-to-u32: New file.
70723         * lib/unistr/u8-to-u32.c: New file.
70724
70725         * modules/unistr/u16-to-u8: New file.
70726         * lib/unistr/u16-to-u8.c: New file.
70727
70728         * modules/unistr/u16-to-u32: New file.
70729         * lib/unistr/u16-to-u32.c: New file.
70730
70731         * modules/unistr/u32-to-u8: New file.
70732         * lib/unistr/u32-to-u8.c: New file.
70733
70734         * modules/unistr/u32-to-u16: New file.
70735         * lib/unistr/u32-to-u16.c: New file.
70736
70737         * modules/unistr/u8-check: New file.
70738         * modules/unistr/u16-check: New file.
70739         * modules/unistr/u32-check: New file.
70740         * lib/unistr/u8-check.c: New file.
70741         * lib/unistr/u16-check.c: New file.
70742         * lib/unistr/u32-check.c: New file.
70743
70744         * modules/unistr/u8-chr: New file.
70745         * modules/unistr/u16-chr: New file.
70746         * modules/unistr/u32-chr: New file.
70747         * lib/unistr/u8-chr.c: New file.
70748         * lib/unistr/u16-chr.c: New file.
70749         * lib/unistr/u32-chr.c: New file.
70750
70751         * modules/unistr/u8-cmp: New file.
70752         * modules/unistr/u16-cmp: New file.
70753         * modules/unistr/u32-cmp: New file.
70754         * lib/unistr/u8-cmp.c: New file.
70755         * lib/unistr/u16-cmp.c: New file.
70756         * lib/unistr/u32-cmp.c: New file.
70757
70758         * modules/unistr/u8-cpy: New file.
70759         * modules/unistr/u16-cpy: New file.
70760         * modules/unistr/u32-cpy: New file.
70761         * lib/unistr/u8-cpy.c: New file.
70762         * lib/unistr/u16-cpy.c: New file.
70763         * lib/unistr/u32-cpy.c: New file.
70764         * lib/unistr/u-cpy.h: New file.
70765
70766         * modules/unistr/u8-cpy-alloc: New file.
70767         * modules/unistr/u16-cpy-alloc: New file.
70768         * modules/unistr/u32-cpy-alloc: New file.
70769         * lib/unistr/u8-cpy-alloc.c: New file.
70770         * lib/unistr/u16-cpy-alloc.c: New file.
70771         * lib/unistr/u32-cpy-alloc.c: New file.
70772         * lib/unistr/u-cpy-alloc.h: New file.
70773
70774         * modules/unistr/u8-endswith: New file.
70775         * modules/unistr/u16-endswith: New file.
70776         * modules/unistr/u32-endswith: New file.
70777         * lib/unistr/u8-endswith.c: New file.
70778         * lib/unistr/u16-endswith.c: New file.
70779         * lib/unistr/u32-endswith.c: New file.
70780         * lib/unistr/u-endswith.h: New file.
70781
70782         * modules/unistr/u8-mblen: New file.
70783         * modules/unistr/u16-mblen: New file.
70784         * modules/unistr/u32-mblen: New file.
70785         * lib/unistr/u8-mblen.c: New file.
70786         * lib/unistr/u16-mblen.c: New file.
70787         * lib/unistr/u32-mblen.c: New file.
70788
70789         * modules/unistr/u8-mbtouc: New file.
70790         * modules/unistr/u16-mbtouc: New file.
70791         * modules/unistr/u32-mbtouc: New file.
70792         * lib/unistr/u8-mbtouc.c: New file.
70793         * lib/unistr/u16-mbtouc.c: New file.
70794         * lib/unistr/u32-mbtouc.c: New file.
70795
70796         * modules/unistr/u8-mbtouc-safe: New file.
70797         * modules/unistr/u16-mbtouc-safe: New file.
70798         * modules/unistr/u32-mbtouc-safe: New file.
70799         * lib/unistr/u8-mbtouc-safe.c: New file.
70800         * lib/unistr/u16-mbtouc-safe.c: New file.
70801         * lib/unistr/u32-mbtouc-safe.c: New file.
70802
70803         * modules/unistr/u8-move: New file.
70804         * modules/unistr/u16-move: New file.
70805         * modules/unistr/u32-move: New file.
70806         * lib/unistr/u8-move.c: New file.
70807         * lib/unistr/u16-move.c: New file.
70808         * lib/unistr/u32-move.c: New file.
70809         * lib/unistr/u-move.h: New file.
70810
70811         * modules/unistr/u8-next: New file.
70812         * modules/unistr/u16-next: New file.
70813         * modules/unistr/u32-next: New file.
70814         * lib/unistr/u8-next.c: New file.
70815         * lib/unistr/u16-next.c: New file.
70816         * lib/unistr/u32-next.c: New file.
70817
70818         * modules/unistr/u8-prev: New file.
70819         * modules/unistr/u16-prev: New file.
70820         * modules/unistr/u32-prev: New file.
70821         * lib/unistr/u8-prev.c: New file.
70822         * lib/unistr/u16-prev.c: New file.
70823         * lib/unistr/u32-prev.c: New file.
70824
70825         * modules/unistr/u8-set: New file.
70826         * modules/unistr/u16-set: New file.
70827         * modules/unistr/u32-set: New file.
70828         * lib/unistr/u8-set.c: New file.
70829         * lib/unistr/u16-set.c: New file.
70830         * lib/unistr/u32-set.c: New file.
70831         * lib/unistr/u-set.h: New file.
70832
70833         * modules/unistr/u8-startswith: New file.
70834         * modules/unistr/u16-startswith: New file.
70835         * modules/unistr/u32-startswith: New file.
70836         * lib/unistr/u8-startswith.c: New file.
70837         * lib/unistr/u16-startswith.c: New file.
70838         * lib/unistr/u32-startswith.c: New file.
70839         * lib/unistr/u-startswith.h: New file.
70840
70841         * modules/unistr/u8-stpcpy: New file.
70842         * modules/unistr/u16-stpcpy: New file.
70843         * modules/unistr/u32-stpcpy: New file.
70844         * lib/unistr/u8-stpcpy.c: New file.
70845         * lib/unistr/u16-stpcpy.c: New file.
70846         * lib/unistr/u32-stpcpy.c: New file.
70847         * lib/unistr/u-stpcpy.h: New file.
70848
70849         * modules/unistr/u8-stpncpy: New file.
70850         * modules/unistr/u16-stpncpy: New file.
70851         * modules/unistr/u32-stpncpy: New file.
70852         * lib/unistr/u8-stpncpy.c: New file.
70853         * lib/unistr/u16-stpncpy.c: New file.
70854         * lib/unistr/u32-stpncpy.c: New file.
70855         * lib/unistr/u-stpncpy.h: New file.
70856
70857         * modules/unistr/u8-strcat: New file.
70858         * modules/unistr/u16-strcat: New file.
70859         * modules/unistr/u32-strcat: New file.
70860         * lib/unistr/u8-strcat.c: New file.
70861         * lib/unistr/u16-strcat.c: New file.
70862         * lib/unistr/u32-strcat.c: New file.
70863         * lib/unistr/u-strcat.h: New file.
70864
70865         * modules/unistr/u8-strchr: New file.
70866         * modules/unistr/u16-strchr: New file.
70867         * modules/unistr/u32-strchr: New file.
70868         * lib/unistr/u8-strchr.c: New file.
70869         * lib/unistr/u16-strchr.c: New file.
70870         * lib/unistr/u32-strchr.c: New file.
70871
70872         * modules/unistr/u8-strcmp: New file.
70873         * modules/unistr/u16-strcmp: New file.
70874         * modules/unistr/u32-strcmp: New file.
70875         * lib/unistr/u8-strcmp.c: New file.
70876         * lib/unistr/u16-strcmp.c: New file.
70877         * lib/unistr/u32-strcmp.c: New file.
70878
70879         * modules/unistr/u8-strcpy: New file.
70880         * modules/unistr/u16-strcpy: New file.
70881         * modules/unistr/u32-strcpy: New file.
70882         * lib/unistr/u8-strcpy.c: New file.
70883         * lib/unistr/u16-strcpy.c: New file.
70884         * lib/unistr/u32-strcpy.c: New file.
70885         * lib/unistr/u-strcpy.h: New file.
70886
70887         * modules/unistr/u8-strcspn: New file.
70888         * modules/unistr/u16-strcspn: New file.
70889         * modules/unistr/u32-strcspn: New file.
70890         * lib/unistr/u8-strcspn.c: New file.
70891         * lib/unistr/u16-strcspn.c: New file.
70892         * lib/unistr/u32-strcspn.c: New file.
70893         * lib/unistr/u-strcspn.h: New file.
70894
70895         * modules/unistr/u8-strdup: New file.
70896         * modules/unistr/u16-strdup: New file.
70897         * modules/unistr/u32-strdup: New file.
70898         * lib/unistr/u8-strdup.c: New file.
70899         * lib/unistr/u16-strdup.c: New file.
70900         * lib/unistr/u32-strdup.c: New file.
70901         * lib/unistr/u-strdup.h: New file.
70902
70903         * modules/unistr/u8-strlen: New file.
70904         * modules/unistr/u16-strlen: New file.
70905         * modules/unistr/u32-strlen: New file.
70906         * lib/unistr/u8-strlen.c: New file.
70907         * lib/unistr/u16-strlen.c: New file.
70908         * lib/unistr/u32-strlen.c: New file.
70909         * lib/unistr/u-strlen.h: New file.
70910
70911         * modules/unistr/u8-strmblen: New file.
70912         * modules/unistr/u16-strmblen: New file.
70913         * modules/unistr/u32-strmblen: New file.
70914         * lib/unistr/u8-strmblen.c: New file.
70915         * lib/unistr/u16-strmblen.c: New file.
70916         * lib/unistr/u32-strmblen.c: New file.
70917
70918         * modules/unistr/u8-strmbtouc: New file.
70919         * modules/unistr/u16-strmbtouc: New file.
70920         * modules/unistr/u32-strmbtouc: New file.
70921         * lib/unistr/u8-strmbtouc.c: New file.
70922         * lib/unistr/u16-strmbtouc.c: New file.
70923         * lib/unistr/u32-strmbtouc.c: New file.
70924
70925         * modules/unistr/u8-strncat: New file.
70926         * modules/unistr/u16-strncat: New file.
70927         * modules/unistr/u32-strncat: New file.
70928         * lib/unistr/u8-strncat.c: New file.
70929         * lib/unistr/u16-strncat.c: New file.
70930         * lib/unistr/u32-strncat.c: New file.
70931         * lib/unistr/u-strncat.h: New file.
70932
70933         * modules/unistr/u8-strncmp: New file.
70934         * modules/unistr/u16-strncmp: New file.
70935         * modules/unistr/u32-strncmp: New file.
70936         * lib/unistr/u8-strncmp.c: New file.
70937         * lib/unistr/u16-strncmp.c: New file.
70938         * lib/unistr/u32-strncmp.c: New file.
70939
70940         * modules/unistr/u8-strncpy: New file.
70941         * modules/unistr/u16-strncpy: New file.
70942         * modules/unistr/u32-strncpy: New file.
70943         * lib/unistr/u8-strncpy.c: New file.
70944         * lib/unistr/u16-strncpy.c: New file.
70945         * lib/unistr/u32-strncpy.c: New file.
70946         * lib/unistr/u-strncpy.h: New file.
70947
70948         * modules/unistr/u8-strnlen: New file.
70949         * modules/unistr/u16-strnlen: New file.
70950         * modules/unistr/u32-strnlen: New file.
70951         * lib/unistr/u8-strnlen.c: New file.
70952         * lib/unistr/u16-strnlen.c: New file.
70953         * lib/unistr/u32-strnlen.c: New file.
70954         * lib/unistr/u-strnlen.h: New file.
70955
70956         * modules/unistr/u8-strpbrk: New file.
70957         * modules/unistr/u16-strpbrk: New file.
70958         * modules/unistr/u32-strpbrk: New file.
70959         * lib/unistr/u8-strpbrk.c: New file.
70960         * lib/unistr/u16-strpbrk.c: New file.
70961         * lib/unistr/u32-strpbrk.c: New file.
70962         * lib/unistr/u-strpbrk.h: New file.
70963
70964         * modules/unistr/u8-strrchr: New file.
70965         * modules/unistr/u16-strrchr: New file.
70966         * modules/unistr/u32-strrchr: New file.
70967         * lib/unistr/u8-strrchr.c: New file.
70968         * lib/unistr/u16-strrchr.c: New file.
70969         * lib/unistr/u32-strrchr.c: New file.
70970
70971         * modules/unistr/u8-strspn: New file.
70972         * modules/unistr/u16-strspn: New file.
70973         * modules/unistr/u32-strspn: New file.
70974         * lib/unistr/u8-strspn.c: New file.
70975         * lib/unistr/u16-strspn.c: New file.
70976         * lib/unistr/u32-strspn.c: New file.
70977         * lib/unistr/u-strspn.h: New file.
70978
70979         * modules/unistr/u8-strstr: New file.
70980         * modules/unistr/u16-strstr: New file.
70981         * modules/unistr/u32-strstr: New file.
70982         * lib/unistr/u8-strstr.c: New file.
70983         * lib/unistr/u16-strstr.c: New file.
70984         * lib/unistr/u32-strstr.c: New file.
70985         * lib/unistr/u-strstr.h: New file.
70986
70987         * modules/unistr/u8-strtok: New file.
70988         * modules/unistr/u16-strtok: New file.
70989         * modules/unistr/u32-strtok: New file.
70990         * lib/unistr/u8-strtok.c: New file.
70991         * lib/unistr/u16-strtok.c: New file.
70992         * lib/unistr/u32-strtok.c: New file.
70993         * lib/unistr/u-strtok.h: New file.
70994
70995         * modules/unistr/u8-uctomb: New file.
70996         * modules/unistr/u16-uctomb: New file.
70997         * modules/unistr/u32-uctomb: New file.
70998         * lib/unistr/u8-uctomb.c: New file.
70999         * lib/unistr/u16-uctomb.c: New file.
71000         * lib/unistr/u32-uctomb.c: New file.
71001
71002         * MODULES.html.sh (Unicode string functions): Add the new modules.
71003
71004 2007-01-08  Bruno Haible  <bruno@clisp.org>
71005
71006         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71007         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71008         subdirectories.
71009
71010 2007-01-08  Karl Berry  <karl@gnu.org>
71011
71012         * doc/error.texi: mention that main() fns must set program_name
71013         when progname is used.
71014
71015 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71016
71017         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71018         WCTYPE_H is empty, for the benefit of builds from non-distclean
71019         directories.  Problem reported by Eric Blake in
71020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71021
71022 2007-01-08  Bruno Haible  <bruno@clisp.org>
71023
71024         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71025         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71026         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71027         PROVIDE_CANONICALIZE_FILENAME_MODE.
71028         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71029
71030 2007-01-08  Bruno Haible  <bruno@clisp.org>
71031
71032         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71033         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71034         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71035         * lib/fts.c: Likewise.
71036         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71037
71038 2006-12-25  Bruno Haible  <bruno@clisp.org>
71039
71040         * modules/utf8-ucs4-safe: New file.
71041         * lib/utf8-ucs4-safe.h: New file.
71042         * lib/unistr/utf8-ucs4-safe.c: New file.
71043
71044         * modules/utf16-ucs4-safe: New file.
71045         * lib/utf16-ucs4-safe.h: New file.
71046         * lib/unistr/utf16-ucs4-safe.c: New file.
71047
71048         * MODULES.html.sh (Unicode string functions): Add the new modules.
71049
71050 2007-01-08  Bruno Haible  <bruno@clisp.org>
71051
71052         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71053         (Depends-on): Add unitypes.
71054         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71055         (u8_mbtouc_aux): Move out to separate file.
71056         (u8_mbtouc): Use ucs4_t, uint8_t types.
71057         * lib/unistr/utf8-ucs4.c: New file.
71058
71059         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71060         (Depends-on): Add unitypes.
71061         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71062         (u16_mbtouc_aux): Move out to separate file.
71063         (u16_mbtouc): Use ucs4_t, uint16_t types.
71064         * lib/unistr/utf16-ucs4.c: New file.
71065
71066         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71067         (Depends-on): Add unitypes.
71068         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71069         (u8_uctomb_aux): Move out to separate file.
71070         (u8_uctomb): Use ucs4_t, uint8_t types.
71071         * lib/unistr/ucs4-utf8.c: New file.
71072
71073         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71074         (Depends-on): Add unitypes.
71075         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71076         (u16_uctomb_aux): Move out to separate file.
71077         (u16_uctomb): Use ucs4_t, uint16_t types.
71078         * lib/unistr/ucs4-utf16.c: New file.
71079
71080 2006-12-25  Bruno Haible  <bruno@clisp.org>
71081
71082         * modules/unitypes: New file.
71083         * lib/unitypes.h: New file.
71084         * MODULES.html.sh (func_all_modules): New section "Unicode string
71085         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71086         this section. Add unitypes.
71087
71088 2007-01-08  Bruno Haible  <bruno@clisp.org>
71089
71090         Avoid variable names that conflict with those from libtool.
71091         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71092         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71093         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71094         library_names_spec to acl_library_names_spec, hardcode_* to
71095         acl_hardcode_*.
71096         Reported by Ralf Wildenhues.
71097
71098 2007-01-08  Bruno Haible  <bruno@clisp.org>
71099
71100         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71101         definition.
71102         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71103         definition.
71104         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71105         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71106         definition.
71107         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71108         definition.
71109         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71110         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71111         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71112         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71113         definition.
71114         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71115         definition.
71116         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71117         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71118         GC_USE_<algorithm>.
71119         * lib/gc-libgcrypt.c: Likewise.
71120         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71121         * modules/gc-arctwo (configure.ac): Likewise.
71122         * modules/gc-des (configure.ac): Likewise.
71123         * modules/gc-hmac-md5 (configure.ac): Likewise.
71124         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71125         * modules/gc-md2 (configure.ac): Likewise.
71126         * modules/gc-md4 (configure.ac): Likewise.
71127         * modules/gc-md5 (configure.ac): Likewise.
71128         * modules/gc-random (configure.ac): Likewise.
71129         * modules/gc-rijndael (configure.ac): Likewise.
71130         * modules/gc-sha1 (configure.ac): Likewise.
71131
71132 2007-01-08  Bruno Haible  <bruno@clisp.org>
71133
71134         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71135         macro definition.
71136         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71137         definition.
71138         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71139         definition.
71140         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71141         * modules/fcntl-safer (configure.ac): Likewise.
71142         * modules/fopen-safer (configure.ac): Likewise.
71143         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71144         GNULIB_FWRITEERROR macro definition.
71145
71146 2007-01-08  Bruno Haible  <bruno@clisp.org>
71147
71148         * m4/gnulib-common.m4: New file.
71149         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71150         (func_get_filelist): Add m4/gnulib-common.m4.
71151
71152 2007-01-08  Bruno Haible  <bruno@clisp.org>
71153
71154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71155         command.
71156
71157 2007-01-08  Jim Meyering  <jim@meyering.net>
71158
71159         Use a more robust test for a "can't happen" condition.
71160         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71161         narrowed the st_size value.  Presuming the "can't happen" condition
71162         is true, that narrowing could conceivably convert an invalid st_size
71163         value into a valid one.  Instead, use a change based on Matthew
71164         Woehlke's original patch.
71165
71166         Slight readability improvement: use an assert-like macro
71167         in place of literal "abort ()" uses.
71168         * lib/fts.c (fts_assert): Define.
71169         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71170         Use this macro instead of a bare 'abort'.
71171
71172 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71173
71174         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71175         simply work around them.
71176         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71177         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71178         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71179         declaring.
71180         Don't bother to define as macros, since the standard doesn't require it.
71181         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71182         longer worry about IRIX 5.3.
71183         (HAVE_WCTYPE_CTMP_BUG): Remove.
71184
71185 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71188         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71189         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71190         Problems reported by Georg Schwarz for IRIX 5.3.
71191
71192         * gnulib-tool (autoconf_minversion): Take the maximum version number
71193         found, not the minimum.  Problem reported by James Youngman.
71194
71195 2007-01-03  Karl Berry  <karl@gnu.org>
71196
71197         * doc/error.texi: new file, explaining interaction with progname.
71198         * doc/gnulib.texi: include it.  Update copyright.
71199
71200 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71201
71202         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71203         AC_CANONICAL_HOST, to improve autobuild outputs.
71204
71205 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71206             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71207
71208         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71209         sockets, server sockets, and other file descriptors.  Count errors
71210         to compute the return value.  Reorder the code a bit to be easier
71211         to follow.  Don't set event bits that were not requested (except
71212         POLLERR and POLLHUP).
71213
71214 2007-01-01  Bruno Haible  <bruno@clisp.org>
71215
71216         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71217
71218 2007-01-03  Jim Meyering  <jim@meyering.net>
71219
71220         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71221
71222 2007-01-02  Bruno Haible  <bruno@clisp.org>
71223
71224         * modules/settime (Include): Require timespec.h.
71225         * modules/nanosleep (Include): Likewise.
71226
71227 2007-01-01  Bruno Haible  <bruno@clisp.org>
71228
71229         * gnulib-tool (func_emit_copyright_notice): Bump year.
71230         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71231
71232 2007-01-01  Bruno Haible  <bruno@clisp.org>
71233
71234         Improve support for OpenBSD.
71235         * build-aux/config.rpath (libname_spec): Export.
71236         (library_names_spec): New variable. Export.
71237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71238         library_names_spec from the config.rpath output. Locate shared library
71239         through the name pattern in library_names_spec.
71240
71241 2007-01-01  Eric Blake  <ebb9@byu.net>
71242
71243         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71244
71245 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71248         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71249         assume the C locale, and avoid an "eval" that could cause trouble.
71250         Problem with SORT reported by Bob Proulx.
71251
71252         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71253         Define.  Trivial patch from Henning Nielsen Lund, originally
71254         sent to bug-grep@gnu.org today.
71255
71256 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71257
71258         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71259         struct stat.  Problem reported by Henning Nielsen Lund.
71260         * lib/acl.c: Include acl.h first, to check interface.  Don't
71261         bother to include sys/types.h and sys/stat.h again.
71262
71263 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71264
71265         Import the following change from libc; problem reported by
71266         Sven Verdoolaege.
71267
71268         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71269
71270         [BZ #1373]
71271         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71272
71273 2006-12-28  Jim Meyering  <jim@meyering.net>
71274
71275         * build-aux/announce-gen: Do not assume that the package
71276         builds any of tar.gz, tar.bz2, and .xdelta files.
71277         Suggestion from Simon Josefsson.
71278
71279 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71280
71281         * modules/announce-gen: New file.
71282
71283 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71286         handles its gotchas now.
71287         * lib/mbswidth.c: Likewise.
71288         * lib/wcwidth.h: Likewise.
71289         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71290         and iswcntrl; the wctype module does this stuff now.
71291         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71293         * modules/mbchar (Depends-on): Add wctype.
71294         * modules/mbswidth (Depends-on): Likewise.
71295         * modules/wcwidth (Depends-on): Likewise.
71296
71297 2006-12-27  Eric Blake  <ebb9@byu.net>
71298
71299         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71300         module uses more than what <wctype.h> is required to provide.
71301
71302 2006-12-26  Eric Blake  <ebb9@byu.net>
71303
71304         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71305
71306 2006-12-26  Eric Blake  <ebb9@byu.net>
71307
71308         * modules/absolute-header: New module.
71309         * modules/fcntl (Depends-on): Depend on it.
71310         * modules/inttypes (Depends-on): Likewise.
71311         * modules/stdint (Depends-on): Likewise.
71312         * modules/sys_stat (Depends-on): Likewise.
71313         * modules/wctype (Depends-on): Likewise.
71314         * MODULES.html.sh (Support for building libraries and
71315         executables): Document it.
71316
71317 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         * gnulib-tool (SED): Remove, undoing previous change.
71320         The problem was that it broke coreutils on Solaris, because
71321         "sed --posix" leaked into a makefile.
71322         (sed): New alias, if 'alias' and GNU sed.
71323
71324 2006-12-24  Jim Meyering  <jim@meyering.net>
71325
71326         Work around an fchownat bug in glibc-2.4:
71327         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71328         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71329         in spite of the -P option.
71330         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71331         New macros.
71332         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71333         * modules/openat (Files): Add lib/fchownat.c.
71334         * lib/openat.c (fchownat): Don't define here.  Move to...
71335         * lib/fchownat.c: ...this new file.
71336
71337 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         Fix bug reported by Bruno Haible in
71340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71341         where quotearg.c didn't compile on Mac OS X 10.2 because it
71342         lacks <wchar.h> and wint_t.
71343         * lib/wctype_.h (__wctype_wint_t): New type.
71344         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71345         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71346         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71347         Arg is now of type __wctype_wint_t, not wint_t.
71348         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71349         substitute HAVE_WINT_T.
71350         * modules/wctype (Files): Add m4/wint_t.m4.
71351         (wctype.h): Substitute HAVE_WINT_T.
71352
71353 2006-12-23  Bruno Haible  <bruno@clisp.org>
71354
71355         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71356
71357 2006-12-23  Bruno Haible  <bruno@clisp.org>
71358
71359         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71360         S_ISLNK.
71361         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71362         mingw.
71363
71364 2006-12-22  Bruno Haible  <bruno@clisp.org>
71365
71366         * lib/copy-file.c: Include acl.h.
71367         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71368         Close the file descriptors only after being done with copy_acl.
71369         * modules/copy-file (Depends-on): Add acl.
71370
71371 2006-12-22  Bruno Haible  <bruno@clisp.org>
71372
71373         * gnulib-tool (SED): New variable.
71374         Use $SED instead of sed everywhere.
71375
71376 2006-12-22  Bruno Haible  <bruno@clisp.org>
71377
71378         * modules/no-c++: New file.
71379         * m4/no-c++.m4: New file.
71380         * MODULES.html.sh (Support for building libraries and executables):
71381         Add no-c++.
71382
71383 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71384
71385         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71386         Include <limits.h>, and use its INT_MAX to rewrite the
71387         j loop so that it does not overflow 'int'.  Problem reported by
71388         Ralf Wildenhues in
71389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71390         Play it safe by shifting left by 1 rather than multiplying by 2,
71391         as GCC is less likely to optimize this away when the value
71392         is signed (when it assumes overflow leads to undefined behavior).
71393         Also, don't assume time_t uses two's complement.
71394
71395 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71396
71397         * MODULES.html.sh: New module wctype.
71398         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71399         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71400         <wctype.h>, since the new wctype module should fix this.
71401         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71402         the wctype module should arrange for it.
71403         * lib/regex_internal.h: Likewise.
71404         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71405         since the wctype module should handle this now.
71406         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71407         * modules/fnmatch (Depends-on): Add wctype.
71408         * modules/quotearg (Depends-on): Likewise.
71409         * modules/regex (Depends-on): Likewise.
71410
71411 2006-12-19  Bruno Haible  <bruno@clisp.org>
71412
71413         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71414         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71415
71416 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71417
71418         * modules/savewd (Depends-on): Fix dependency on fcntl.
71419
71420 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71421
71422         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71423         conforms to C99, rather than relying on the user's environment
71424         setting of STDINT_H.
71425
71426 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71427         and Eric Blake  <ebb9@byu.net>
71428
71429         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71430         This is more consistent with the other defines here.
71431         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71432         Port to z/OS.  Problem reported by Paul Gilmartin.
71433         Change local vars to use gl_ prefix rather than ac_.
71434         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71435         with other defines.
71436         * modules/double-slash-root: New module.
71437         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71438         (Depends-on): Add double-slash-root.
71439         * MODULES.html.sh (File system functions): Mention new module.
71440
71441 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71444         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71445         This is for the benefit of gzip, which doesn't do i18n.
71446
71447 2006-12-12  Jim Meyering  <jim@meyering.net>
71448
71449         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71450         Reported by Andreas Schwab <schwab@suse.de>.
71451
71452 2006-12-12  Bruno Haible  <bruno@clisp.org>
71453
71454         Merge these changes.
71455         2006-09-05  Bruno Haible  <bruno@clisp.org>
71456         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71457         iconv_alloc succeeded.
71458         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71459         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71460         test for " && dest " at the end - dest is always != NULL there. Call
71461         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71462         with 2xNULL arguments, also to flush the state storage. Handle the
71463         IRIX iconv behaviour. Realloc the final result, to throw away unused
71464         memory.
71465
71466 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71469         and fchmodat unconditionally, since glibc 2.4 has them.
71470         Problem reported by Arkadiusz Miskiewicz.
71471
71472 2006-12-10  Bruno Haible  <bruno@clisp.org>
71473
71474         * gnulib-tool (func_import): Show the include files only for those
71475         modules that are copied and specified.
71476         Reported by Karl Berry.
71477
71478 2006-12-08  Jim Meyering  <jim@meyering.net>
71479
71480         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71481         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71482
71483         * build-aux/announce-gen: Add two new options, both optional:
71484         --bootstrap-tools=TOOL_LIST
71485               a comma-separated list of tools, e.g.,
71486               autoconf,automake,bison,gnulib
71487         --gnulib-snapshot-date=DATE
71488               if gnulib is in the bootstrap tool list,
71489               then report this as the snapshot date.
71490               If not specified, use the current date/time.
71491               If you specify a date here, be sure it's UTC.
71492
71493 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71494
71495         * tests/test-argp-2.sh: Fix test to match actual output.
71496         (func_compare): Fix sed script to be portable.
71497
71498 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71501         workaround for this case.  It is not autoconfigured now; offhand
71502         it's hard to see how to autoconfigure it.
71503
71504 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71505
71506         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71507         a directory that is about to be chowned.  Such a directory's
71508         initial file permissions should permit the owner only and this
71509         should not be changed until after the chown, since the group and
71510         other bits would be incorrect if they granted permission before
71511         the chown.
71512
71513         Fix porting problem for iswctype reported by Georg Schwarz in:
71514         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71515         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71516         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71517         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71518         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71519
71520 2006-12-03  Jim Meyering  <jim@meyering.net>
71521
71522         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71523         p->fts_statp may not yet be defined.
71524         (fts_read): Instead, set it in the caller, once p->fts_statp is
71525         sure to be defined, and corresponds to a top-level directory.
71526         This bug made du -x fail.  Here's the coreutils test case:
71527         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71528         Reported by Mike Frysinger.
71529
71530 2006-12-01  Jim Meyering  <jim@meyering.net>
71531
71532         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71533         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71534         Reported by Simon Josefsson.
71535
71536 2006-11-30  Jim Meyering  <jim@meyering.net>
71537
71538         * m4/warning.m4: Use the all-permissive copyright notice
71539         recommended by RMS (rather than LGPL).
71540         * m4/vararrays.m4: Likewise.
71541         * m4/flexmember.m4: Likewise.
71542
71543 2006-11-29  Bruno Haible  <bruno@clisp.org>
71544
71545         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71546         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71547         using +=.
71548         Reported by Simon Josefsson <simon@josefsson.org>.
71549
71550 2006-11-28  James Youngman <jay@gnu.org>
71551
71552         * README: Advise users that they might find the bug-gnulib@gnu.org
71553         and autotools-announce@gnu.org mailing lists useful.
71554
71555 2006-11-28  Bruno Haible  <bruno@clisp.org>
71556
71557         * m4/ptrdiff_max.m4: Remove file.
71558
71559 2006-11-21  Bruno Haible  <bruno@clisp.org>
71560
71561         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71562         _AC_COMPUTE_INT.
71563         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71564         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71565         _AC_COMPUTE_INT.
71566         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71567         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71568         _AC_COMPUTE_INT.
71569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71570
71571 2006-11-28  Jim Meyering  <jim@meyering.net>
71572
71573         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71574         warning from "gcc -Wshadow" about shadowing the builtin.
71575
71576 2006-11-27  Bruno Haible  <bruno@clisp.org>
71577
71578         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71579         _AC_COMPUTE_INT.
71580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71581
71582 2006-11-27  Bruno Haible  <bruno@clisp.org>
71583             Paul Eggert  <eggert@cs.ucla.edu>
71584
71585         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71586
71587 2006-11-26  Bruno Haible  <bruno@clisp.org>
71588
71589         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71590         noinst_LTLIBRARIES.
71591
71592 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71593             Bruno Haible  <bruno@clisp.org>
71594
71595         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71596         if compiling with "gcc -ansi".
71597
71598 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         Fix some incompatibilities with gcc -ansi -pedantic.
71601         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71602         if compiling pedantically with GCC, unless it's C99 or later.
71603         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71604         it mishandles gcc -ansi -pedantic as well.
71605         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71606         if gcc -pedantic.
71607         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71608         initializers for struct if -pedantic, unless it's C99 or later.
71609
71610 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71611
71612         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71613         Don't close an fd more than once. Identical atimes indicate
71614         success, not failure.
71615
71616 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71617
71618         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71619
71620 2006-11-23  Jim Meyering  <jim@meyering.net>
71621
71622         * build-aux/announce-gen: New file.  From coreutils.
71623
71624 2006-11-22  Jim Meyering  <jim@meyering.net>
71625
71626         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71627         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71628         (fts_read): Use a temporary to narrow the overused st_size member
71629         before using it in a switch statement.  Reported by Matthew Woehlke.
71630
71631         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71632         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71633
71634 2006-11-20  Bruno Haible  <bruno@clisp.org>
71635
71636         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71637         changequote instead of pairs of brackets.
71638         Reported by Andreas Schwab <schwab@suse.de>.
71639
71640 2006-11-21  Jim Meyering  <jim@meyering.net>
71641
71642         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71643         so as to remain compatible with older compilers.
71644         Patch from Michael Deutschmann.
71645
71646 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71647
71648         * MODULES.html.sh (File system functions): Add openat.
71649
71650         * lib/openat.h (rpl_fstatat): New macro, if
71651         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71652         (fstatat): Define to rpl_fstatat under the same conditions,
71653         unless COMPILING_FSTATAT.
71654         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71655         seems to have the bug.
71656         * lib/fstatat.c: New file.
71657         * modules/openat (Files): Add it.
71658
71659 2006-11-20  Bruno Haible  <bruno@clisp.org>
71660
71661         * Makefile: New file.
71662
71663 2006-11-20  Jim Meyering  <jim@meyering.net>
71664
71665         The beginnings of syntax-related checks for gnulib.
71666         * lib/Makefile: New file.
71667         * lib/t-idcache: New script.  Ensure that the two halves of
71668         idcache.c stay in sync.
71669
71670         * lib/idcache.c: Adjust comments in user- and group- portions to
71671         be more accurate, and to be consistent with one another.
71672
71673 2006-11-20  Jim Meyering  <jim@meyering.net>
71674
71675         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71676         continue using the flexible array member (thus, this module performs
71677         half as many malloc calls), with the addition that...
71678         (getgroup, getuser): Consistently record a non-match via an empty
71679         "name" string, and map an empty string match to a NULL return value.
71680         * modules/idcache (Depends-on): Re-add flexmember.
71681
71682         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71683         (getuidbyname, getgroup, getgidbyname): Likewise.
71684
71685         Use cleaner syntax: NULL rather than 0.
71686         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71687
71688 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71691         It mishandled the case where the group was missing.
71692         Problem reported by Greg Schafer.
71693         * modules/idcache: Likewise.
71694
71695 2006-11-18  Jim Meyering  <jim@meyering.net>
71696
71697         * check-module (%exempt_header): Add exception for some
71698         conditionally-included headers.
71699
71700         * modules/i-ring (Depends-on): Add verify.
71701         (License): Change to LGPL.
71702
71703 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71706         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71707         and inttostr.h.  Use snprintf rather than uinttostr, so that
71708         LGPLed code doesn't depend on GPLed.
71709
71710 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71711
71712         * modules/inline (License): Change from GPL to LGPL.
71713
71714 2006-11-17  Jim Meyering  <jim@meyering.net>
71715
71716         * modules/d-type (License): Switch to LGPL.
71717
71718 2006-11-15  Bruno Haible  <bruno@clisp.org>
71719
71720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71721
71722 2006-11-15  Eric Blake  <ebb9@byu.net>
71723
71724         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71725         the module dependency.
71726
71727 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71728             Bruno Haible  <bruno@clisp.org>
71729
71730         * gnulib-tool (func_create_testdir): Add license consistency check.
71731
71732 2006-11-15  Eric Blake  <ebb9@byu.net>
71733
71734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71735         random "(cached)" in configure output.
71736
71737 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71738
71739         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71740         test for conforming inttypes.h is both announced and cached.
71741
71742         * MODULES.html.sh (seen_modules, seen_files): New variables.
71743         (func_module): Rewrite to use a few less gnulib-tool and sed
71744         invocations.  Avoid a couple of quadratic algorithms for ...
71745         (missed_modules, missed_files): ... these, with ...
71746         (func_append, func_tmpdir): ... these new functions, from
71747         gnulib-tool.  Analogously, install traps for cleanup.
71748
71749         * tests/test-gc.c (main): Remove unused variables.
71750         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71751
71752 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * modules/inttostr (License): Change to LGPL.
71755
71756 2006-11-14  Eric Blake  <ebb9@byu.net>
71757
71758         * modules/tempname (License): Change to LGPL.
71759
71760 2006-11-14  Eric Blake  <ebb9@byu.net>
71761
71762         * doc/functions.texi (Function Portability): *printf functions on
71763         Cygwin now understand all POSIX size specifiers.
71764
71765 2006-11-14  Bruno Haible  <bruno@clisp.org>
71766
71767         * modules/c-ctype (License): Change to LGPL.
71768
71769 2006-11-12  Bruno Haible  <bruno@clisp.org>
71770
71771         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71772         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71773         for GNOME libraries, for which the include files are installed in
71774         subdirectories of $prefix/include.
71775
71776 2006-11-12  Bruno Haible  <bruno@clisp.org>
71777
71778         * m4/lib-link.m4: Require at least autoconf-2.54.
71779         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71780         name to underscores for the --with option.
71781
71782 2006-11-13  Bruno Haible  <bruno@clisp.org>
71783
71784         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71785         the tests directory.
71786         Reported by Ralf Wildenhues.
71787
71788 2006-11-13  Bruno Haible  <bruno@clisp.org>
71789
71790         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71791         (func_emit_initmacro_end): Undo the override here.
71792         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71793         Works around the famous automake error in coreutils.
71794
71795 2006-11-13  Eric Blake  <ebb9@byu.net>
71796
71797         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71798         element, not its node.
71799
71800 2006-11-12  Bruno Haible  <bruno@clisp.org>
71801
71802         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71803         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71804
71805 2006-11-12  Bruno Haible  <bruno@clisp.org>
71806
71807         * gnulib-tool: New option --local-symlink.
71808         (func_usage): Document it.
71809         (lsymbolic): New variable.
71810         (func_import, func_create_testdir): If --symlink was not specified,
71811         test whether --local-symlink was specified and the file comes from
71812         the local_gnulib_dir.
71813
71814 2006-11-12  Bruno Haible  <bruno@clisp.org>
71815
71816         * gnulib-tool (func_ln): New function.
71817         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71818
71819 2006-11-12  Bruno Haible  <bruno@clisp.org>
71820
71821         Finish support for source files in subdirectories.
71822         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71823         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71824         AUTOMAKE_OPTIONS.
71825         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71826
71827 2006-11-12  Bruno Haible  <bruno@clisp.org>
71828
71829         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71830         EXTRA_lib_SOURCES augmentation.
71831         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71832
71833 2006-11-12  Jim Meyering  <jim@meyering.net>
71834
71835         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71836         file descriptors.  This also averts a failure on systems with
71837         native openat support when a traversed directory lacks "x" access.
71838         * lib/fts_.h: Include "i-ring.h"
71839         (struct FTS) [fts_fd_ring]: New member.
71840         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71841         (FCHDIR): Add parentheses.
71842         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71843         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71844         When descending, rather than simply closing the previous
71845         fts_cwd_fd value, push that file descriptor onto the ring.
71846         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71847         (fts_open): Initialize the new fd_ring member.
71848         (fts_close): Clear the ring.
71849         (fts_safe_changedir): When possible, use our new fd_ring to skip
71850         the diropen and fstat and dev/ino comparison that would normally
71851         accompany a virtual `chdir ("..")'.
71852
71853         * modules/fts (Depends-on): Add i-ring.
71854         * modules/i-ring: New module.
71855         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71856         * m4/i-ring.m4: New file.
71857
71858 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71859
71860         * gnulib-tool (func_create_testdir): Fix replacement of
71861         `build-aux' in configure.ac.  Run autotools in gltests
71862         subdirectory.
71863         (func_create_testdir, func_create_megatestdir, test): There is
71864         no need for '--force' in most autotool invocations in a new
71865         tree.  Actually fail the whole test if any of the tools, or the
71866         configure or make stages fail.
71867
71868         Sync from Automake.
71869         * build-aux/gnupload: Revert last change.  Add pointer to upload
71870         instructions of the GNU Maintenance Instructions.
71871         Suggestion by Karl Berry.
71872
71873 2006-11-10  Jim Meyering  <jim@meyering.net>
71874
71875         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71876
71877 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71880         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71881         (bind_textdomain_codeset) [! ENABLE_NLS]:
71882         Evaluate all the arguments.  That way, callers get compatible behavior
71883         if the arguments have side effects.  Also, it avoids some GCC
71884         diagnostics in some cases; Joel E. Denny reported problems when Bison
71885         was configured with --enable-gcc-warnigs.
71886
71887 2006-11-10  Jim Meyering  <jim@meyering.net>
71888
71889         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71890         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71891         account.
71892
71893 2006-11-10  Jim Meyering  <jim@meyering.net>
71894
71895         * modules/inline: New file/module.
71896         * modules/xalloc (Files): Remove m4/inline.m4.
71897         (Depends-on): Add inline, instead.
71898         * modules/oset: Likewise.
71899         * modules/list: Likewise.
71900
71901 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71902
71903         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71904         Problem reported by Matthew Woehlke.
71905
71906 2006-11-09  Bruno Haible  <bruno@clisp.org>
71907
71908         * lib/tempname.c (gen_tempname): Remove variant that invokes
71909         __gen_tempname.
71910         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71911         __gen_tempname.
71912
71913 2006-11-08  Bruno Haible  <bruno@clisp.org>
71914
71915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71916         to 'yes' instead of 'cross-compiling'.
71917
71918 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71919
71920         * lib/quotearg.h (quotearg_free): New decl.
71921         * lib/quotearg.c (quotearg_free): New function.
71922         (slot0, nslots, slotvec0, slotvec):
71923         Now file-scope so that quotearg_free can get at them.
71924
71925 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71926
71927         Sync from Automake.
71928         * build-aux/gnupload: Add missing 'gnu' to example URL.
71929         Report by Karl Berry.
71930
71931 2006-11-08  Bruno Haible  <bruno@clisp.org>
71932
71933         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71934         Suggested by Paul Eggert.
71935
71936 2006-11-08  Jim Meyering  <jim@meyering.net>
71937
71938         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71939         It's already included if !_LIBC.
71940         (fts_safe_changedir): Add a comment.
71941
71942 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71943
71944         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71945         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71946         Matthew Woehlke.
71947
71948         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71949         definitions up, to avoid colliding with change below.
71950         (static_inline) [HAVE_INLINE]: New macro.
71951         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71952         Provide extern decls when !HAVE_INLINE.  Do not define unless
71953         static_inline is defined, either by us or by xmalloc.c.  Use
71954         static_inline rather than static inline.
71955         (XCALLOC): Optimize sizeof(T) = 1 case.
71956         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71957
71958 2006-11-07  Bruno Haible  <bruno@clisp.org>
71959
71960         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71961         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71962         AC_C_INLINE.
71963         * modules/xalloc (Files): Add m4/inline.m4.
71964
71965 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71966
71967         * README: Fix typo.
71968         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71969         (Miscellanous Notes): ...from this.
71970
71971 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71974         Mention that offsetof should be used instead of sizeof.
71975         From Bruno Haible.
71976
71977 2006-11-07  Bruno Haible  <bruno@clisp.org>
71978
71979         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71980
71981 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71982
71983         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71984         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71985         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71986         (gl_tree_add_before, gl_tree_add_after):
71987         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71988         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71989         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71990         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71991         (gl_linked_add_after, gl_linked_add_at): Likewise.
71992         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71993         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71994         (gl_tree_add_before, gl_tree_add_after): Likewise.
71995         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71996         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71997         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71998
71999 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72000
72001         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72002
72003 2006-11-06  Bruno Haible  <bruno@clisp.org>
72004
72005         * m4/inline.m4: New file.
72006         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72007         * modules/list (Files): Add m4/inline.m4.
72008         * modules/oset (Files): Likewise.
72009
72010 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * lib/idcache.c: Include <stddef.h>, for offsetof.
72013         (struct userid.name): Change from char * to a flexible array member.
72014         All uses changed.
72015         * modules/idcache (Depends-on): Add flexmember.
72016
72017         * MODULES.html.sh (Core language properties): New module flexmember.
72018         * modules/flexmember, m4/flexmember.m4: New files.
72019
72020         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72021         inline functions that are identical with the old xnmalloc_inline,
72022         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72023         that we can avoid some unnecessary integer multiplications and
72024         divisions in the common case where the element size is known at
72025         compile time.
72026         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72027         needed.
72028         (xnboundedmalloc): Remove.
72029         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72030         arguments, for consistency with rest of this header.
72031         (xcharalloc): Rewrite using XNMALLOC.
72032         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72033         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72034         versions have been moved to lib/xalloc.h and renamed to be the
72035         non-*_inline versions.
72036         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72037         and xnrealloc functions, since those functions are now inline and
72038         now call us.
72039         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72040         renaming described above.
72041         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72042         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72043         captures the dependency in AC_C_INLINE.
72044
72045         New module canonicalize-lgpl, proposed by Charles Wilson in
72046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72047         with a few small changes afterwards.
72048         * MODULES.html.sh (File system functions): New module
72049         canonicalize-lgpl.
72050         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72051         and canonicalize_file_name.
72052         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72053         * modules/canonicalize-lgpl: New files.
72054
72055 2006-11-05  Bruno Haible  <bruno@clisp.org>
72056
72057         * gnulib-tool (func_import, func_create_testdir): Create directories
72058         also for files in subdirectories of lib/.
72059
72060 2006-11-05  Bruno Haible  <bruno@clisp.org>
72061
72062         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72063         ANSI C compliant.
72064
72065 2006-11-03  Bruno Haible  <bruno@clisp.org>
72066
72067         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72068         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72069         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72070         (xnboundedmalloc): New inline function.
72071         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72072         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72073         xmalloc.
72074         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72075         xmalloc.
72076         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72077         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72078         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72079         xmalloc.
72080         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72081         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72082         xmalloc.
72083         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72084         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72085         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72086         xmalloc.
72087         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72088         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72089         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72090         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72091         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72092         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72093         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72094
72095 2006-11-03  Bruno Haible  <bruno@clisp.org>
72096
72097         * lib/c-ctype.h [C++]: Define functions without name mangling.
72098         * lib/fwriteerror.h [C++]: Likewise.
72099         * lib/gcd.h [C++]: Likewise.
72100         * lib/linebreak.h [C++]: Likewise.
72101
72102 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72103
72104         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72105         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72106         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72108         Check for functions and headers just once.
72109         Check for declaration of canonicalize_file_name.
72110         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72111
72112 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72113
72114         * gnulib-tool (func_import): Fix typo in actioncmd.
72115
72116 2006-11-02  Bruno Haible  <bruno@clisp.org>
72117
72118         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72119         newline sequence in the Makefile.am snippet as a space, like "make"
72120         does.
72121         Reported by Roger Persson <perrog@gmail.com>.
72122
72123 2006-11-01  Bruno Haible  <bruno@clisp.org>
72124
72125         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72126         already declared in <string.h>.
72127         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72128
72129 2006-11-01  Bruno Haible  <bruno@clisp.org>
72130
72131         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72132         * lib/strcase.h: Include <string.h>.
72133         (strcasecmp): Define to rpl_strcasecmp here.
72134
72135 2006-11-01  Bruno Haible  <bruno@clisp.org>
72136
72137         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72138
72139 2006-11-01  Eric Blake  <ebb9@byu.net>
72140
72141         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72142
72143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72144
72145 2006-10-29  Bruno Haible  <bruno@clisp.org>
72146
72147         Make it compile in C++ mode.
72148         * lib/full-write.c (full_rw): Add a cast.
72149
72150 2006-11-01  Bruno Haible  <bruno@clisp.org>
72151
72152         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72153         be POSIX compliant.
72154         Reported by Roger Persson <perrog@gmail.com>.
72155
72156 2006-11-01  Eric Blake  <ebb9@byu.net>
72157
72158         * lib/getopt_.h: Fix comments.
72159
72160 2006-10-31  Eric Blake  <ebb9@byu.net>
72161
72162         * modules/tmpdir (Depends-on): Add sys_stat.
72163         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72164         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72165         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72166         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72167         tempname.
72168
72169 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72170
72171         Avoid some C++ diagnostics reported by Bruno Haible.
72172         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72173         xmalloc.
72174         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72175         (struct slotvec): Move to top level.
72176         (quotearg_n_options): Rewrite to avoid xmalloc.
72177         * lib/xalloc.h (xcharalloc): New function.
72178         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72179         [defined __cplusplus]: Add function template that provides result
72180         type propagation.  This part of the change is from Bruno Haible.
72181
72182 2006-10-29  Bruno Haible  <bruno@clisp.org>
72183
72184         Make it compile in C++ mode.
72185         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72186         * lib/strnlen1.c (strnlen1): Cast memchr result.
72187         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72188         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72189         (create_temp_dir): Rename local variable 'template'.
72190         (compile_csharp_using_sscli): Add cast.
72191         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72192         * lib/findprog.c (find_in_path): Likewise.
72193         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72194         * lib/wait-process.c (register_slave_subprocess): Likewise.
72195
72196 2006-10-22  Bruno Haible  <bruno@clisp.org>
72197
72198         * modules/tsearch: New file.
72199         * lib/tsearch.h: New file.
72200         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72201         * m4/tsearch.m4: New file.
72202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72203
72204 2006-10-29  Eric Blake  <ebb9@byu.net>
72205
72206         * lib/arcfour.c: Assume config.h.
72207         * lib/arctwo.c: Likewise.
72208         * lib/base64.c: Likewise.
72209         * lib/check-version.c: Likewise.
72210         * lib/crc.c: Likewise.
72211         * lib/des.c: Likewise.
72212         * lib/gc-gnulib.c: Likewise.
72213         * lib/gc-libgcrypt.c: Likewise.
72214         * lib/gc-pbkdf2-sha1.c: Likewise.
72215         * lib/getaddrinfo.c: Likewise.
72216         * lib/getdelim.c: Likewise.
72217         * lib/getline.c: Likewise.
72218         * lib/hmac-md5.c: Likewise.
72219         * lib/hmac-sha1.c: Likewise.
72220         * lib/iconvme.c: Likewise.
72221         * lib/md2.c: Likewise.
72222         * lib/md4.c: Likewise.
72223         * lib/memxor.c: Likewise.
72224         * lib/read-file.c: Likewise.
72225         * lib/readline.c: Likewise.
72226         * lib/rijndael-alg-fst.c: Likewise.
72227         * lib/rijndael-api-fst.c: Likewise.
72228         * lib/xgetdomainname.c: Likewise.
72229
72230 2006-10-28  Eric Blake  <ebb9@byu.net>
72231
72232         * lib/xstrndup.c: Assume config.h.
72233
72234 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72237         stat-macros.h is now for our own macros, whereas stat_h is for
72238         macros in the <sys/stat.h> name space.
72239         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72240         (STAT_MACROS_H): Remove.
72241         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72242         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72243         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72244         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72245         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72246         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72247         Move these macros to ...
72248         * lib/stat_.h: here.  Don't include stat-macros.h.
72249         * lib/canonicalize.c: Don't include stat-macros.h.
72250         * lib/chown.c: Likewise.
72251         * lib/euidaccess.c: Likewise.
72252         * lib/file-type.c: Likewise.
72253         * lib/filemode.c: Likewise.
72254         * lib/glob.c: Likewise.
72255         * lib/isapipe.c: Likewise.
72256         * lib/lchown.c: Likewise.
72257         * lib/lstat.c: Likewise.
72258         * lib/mkdir-p.c: Likewise.
72259         * lib/rmdir.c: Likewise.
72260         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72262         unless mkdir isn't declared, to speed up 'configure'.
72263         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72264         would define all the S_* symbols.
72265         * modules/canonicalize (Depends-on):
72266         Depend on sys_stat, not stat-macros.
72267         * modules/chown: Likewise.
72268         * modules/euidaccess: Likewise.
72269         * modules/filemode: Likewise.
72270         * modules/file-type: Likewise.
72271         * modules/glob: Likewise.
72272         * modules/isapipe: Likewise.
72273         * modules/lchown: Likewise.
72274         * modules/lstat: Likewise.
72275         * modules/mkancesdirs: Likewise.
72276         * modules/rmdir: Likewise.
72277         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72278         * modules/modechange: Likewise.
72279         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72280         (configure.ac): Remove gl_STAT_MACROS.
72281         * modules/sys_stat (Depends-on): Remove stat-macros.
72282
72283 2006-10-27  Bruno Haible  <bruno@clisp.org>
72284
72285         * m4/signed.m4: Remove file.
72286         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72287         invocation.
72288         * modules/vasnprintf (Files): Remove m4/signed.m4.
72289
72290 2006-10-27  Bruno Haible  <bruno@clisp.org>
72291
72292         Update to GNU gettext 0.16.
72293         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72294         m4/inttypes-h.m4, m4/signed.m4.
72295         * m4/gettext.m4: Update to GNU gettext 0.16.
72296         * m4/intl.m4: New file, from GNU gettext.
72297         * m4/intldir.m4: New file, from GNU gettext.
72298         * config/srclist.txt: Update
72299
72300 2006-10-27  Eric Blake  <ebb9@byu.net>
72301
72302         * MODULES.html.sh: Document tempname.
72303         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72304         dependencies.
72305         (Files): Move lib/tempname.c...
72306         * modules/tempname: ...to this new module.
72307         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72308         (gl_PREREQ_TEMPNAME): Move...
72309         * m4/tempname.m4: ...to this new file.
72310         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72311         * modules/sys_stat (Depends-on): Add stat-macros.
72312         * lib/stat_.h (includes): Pick up stat macros.
72313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72314         if stat macros are broken.
72315         * lib/tempname.c (includes): No need to include "stat-macros.h".
72316         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72317         (direxists, __path_search) [!_LIBC]: Don't compile these in
72318         gnulib; the tmpdir module covers that.
72319         * lib/tempname.h: New file.
72320
72321 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72322
72323         * COPYING: Explain how gnulib-tool converts licence headers.
72324         Almost all wording by Eric Blake.
72325
72326 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         * lib/mbchar.h (is_basic_table): Make read-only.
72329         * lib/mbchar.c (is_basic_table): Likewise.
72330         Reported by John Darrington.
72331
72332 2006-10-25  Bruno Haible  <bruno@clisp.org>
72333
72334         * lib/progname.h (set_program_name): Undefine before defining.
72335
72336 2006-10-25  Bruno Haible  <bruno@clisp.org>
72337
72338         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72339         false for non-gcc C++ compilers.
72340         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72341
72342 2006-10-24  Bruno Haible  <bruno@clisp.org>
72343
72344         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72345         iconv implementations like Irix iconv.
72346
72347 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * modules/vararrays: New file.
72350         * m4/vararrays.m4: New file, taken from diffutils.
72351         * MODULES.html.sh: New module vararrays.
72352
72353 2006-10-24  Karl Berry  <karl@gnu.org>
72354
72355         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72356         Don't call GNU Unix.
72357
72358 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72359
72360         * users.txt: Add Libtool.
72361
72362         Sync from Libtool:
72363
72364         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72365
72366         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72367         to gnulib's policy of including config.h unconditionally.
72368
72369 2006-10-24  Bruno Haible  <bruno@clisp.org>
72370
72371         * modules/wcwidth (Files): Add m4/wint_t.m4.
72372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72373         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72374
72375 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72378         to pacify GCC with some -W flags enabled.  Problem reported by
72379         Bruno Haible.
72380
72381 2006-10-24  Jim Meyering  <jim@meyering.net>
72382
72383         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72384         Reported by Karl Berry.
72385
72386 2006-10-23  Bruno Haible  <bruno@clisp.org>
72387
72388         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72389
72390 2006-10-24  Bruno Haible  <bruno@clisp.org>
72391
72392         * lib/gl_list.h: Use C comment style, not C++ comment style.
72393
72394 2006-10-23  Eric Blake  <ebb9@byu.net>
72395
72396         * lib/getaddrinfo.c (includes): Add missing include.
72397
72398 2006-10-23  Bruno Haible  <bruno@clisp.org>
72399             Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         Ability to rename obstack_free.
72402         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72403         obstack_free.
72404         (obstack_free): Invoke the __obstack_free macro.
72405         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72406
72407 2006-10-23  Bruno Haible  <bruno@clisp.org>
72408             Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72411         __argc, __argv from the declaration. (They are defined as macros on
72412         mingw.)
72413
72414 2006-10-22  Bruno Haible  <bruno@clisp.org>
72415
72416         * doc/gnulib-intro.texi: New file.
72417         * doc/gnulib.texi: Include it.
72418
72419 2006-10-21  Bruno Haible  <bruno@clisp.org>
72420
72421         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72422         "Introduction", "Miscellanous Notes", "Particular Modules".
72423
72424 2006-10-21  Bruno Haible  <bruno@clisp.org>
72425
72426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72427         Change mostlyclean-local rule to avoid sh syntax error from bash
72428         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72429
72430 2006-10-23  Jim Meyering  <jim@meyering.net>
72431
72432         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72433         in place of snprintf.
72434
72435         * modules/inttostr (Files): Add lib/uinttostr.c.
72436         * lib/uinttostr.c (inttostr): New file/function.
72437         * lib/inttostr.h (uinttostr): Declare.
72438         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72439         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72440         Add uinttostr.
72441         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72442
72443 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         * lib/canonicalize.c (ELOOP): Define if not already defined.
72446         Problem reported by Bruno Haible in
72447         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72448
72449 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72452         Problem reported by Perry Smith and Ville Laurikari.
72453
72454         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72455         uses.
72456
72457 2006-10-19  Bruno Haible  <bruno@clisp.org>
72458
72459         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72460         for mingw.
72461
72462 2006-10-19  Bruno Haible  <bruno@clisp.org>
72463
72464         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72465         Needed for mingw.
72466
72467 2006-10-19  Bruno Haible  <bruno@clisp.org>
72468
72469         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72470
72471 2006-10-19  Bruno Haible  <bruno@clisp.org>
72472
72473         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72474         it.
72475
72476 2006-10-19  Bruno Haible  <bruno@clisp.org>
72477
72478         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72479         invocation.
72480
72481 2006-10-19  Bruno Haible  <bruno@clisp.org>
72482
72483         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72484         mountlist by default.
72485
72486 2006-10-16  Bruno Haible  <bruno@clisp.org>
72487
72488         * lib/c-strstr.c: Include c-strstr.h.
72489
72490 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72491
72492         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72493         in a slash.
72494
72495 2006-10-18  Bruno Haible  <bruno@clisp.org>
72496
72497         * lib/lock.h [C++]: Wrap definitions in extern "C".
72498
72499 2006-10-18  Bruno Haible  <bruno@clisp.org>
72500
72501         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72502         gl_LIBOBJS list.
72503
72504 2006-10-18  Bruno Haible  <bruno@clisp.org>
72505
72506         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72507
72508 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72509
72510         * lib/xstrtol.h: Include gettext.h.
72511         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72512         Problem reported by Eric Blake.
72513         * modules/xstrtol (Depends-on): Add gettext-h.
72514
72515 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72516
72517         * lib/strftime.c (advance): New macro.
72518         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72519         incomplete type, so you can't add 0 to it.  Problem and patch
72520         reported by Eelco Dolstra for dietlibc.
72521
72522 2006-10-18  Jim Meyering  <jim@meyering.net>
72523
72524         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72525         type for a local, and rename it: s/up/user_proc/.
72526
72527 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72528
72529         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72530         READ_UTMP_USER_PROCESS.
72531         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72532
72533 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72534
72535         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72536         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72537
72538 2006-10-17  Eric Blake  <ebb9@byu.net>
72539
72540         * lib/sigprocmask.c (sigprocmask): Fix typo.
72541
72542         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72543
72544         * modules/clean-temp (Makefile.am): Don't add to make output...
72545         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72546         config.h.
72547
72548 2006-10-17  Bruno Haible  <bruno@clisp.org>
72549
72550         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72551         differently if DEFAULT_TEXT_DOMAIN is set.
72552
72553 2006-10-16  Bruno Haible  <bruno@clisp.org>
72554
72555         * lib/clean-temp.c: Include fwriteerror.h.
72556
72557 2006-10-16  Bruno Haible  <bruno@clisp.org>
72558
72559         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72560
72561 2006-10-16  Bruno Haible  <bruno@clisp.org>
72562
72563         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72564         * lib/sigprocmask.h: Include <sys/types.h>.
72565         (sigset_t): Use the system's definition if present.
72566
72567 2006-10-17  Eric Blake  <ebb9@byu.net>
72568
72569         * lib/xvasprintf.c (includes): Assume config.h.
72570         * lib/xasprintf.c (includes): Likewise.
72571
72572 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72573
72574         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72575         at least as wide as intmax_t.
72576
72577 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72578
72579         (Imported from Automake.)
72580         * build-aux/gnupload: Update to version 1.1 of directive file.
72581
72582 2006-10-16  Eric Blake  <ebb9@byu.net>
72583
72584         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72585         match Automake 1.10a.
72586
72587 2006-10-14  Bruno Haible  <bruno@clisp.org>
72588
72589         * modules/sigprocmask: New file.
72590         * lib/sigprocmask.h: New file.
72591         * lib/sigprocmask.c: New file.
72592         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72593         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72594         request sigprocmask.o.
72595         (gl_PREREQ_SIGPROCMASK): New macro.
72596         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72597         (Depends-on): Add sigprocmask.
72598         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72599         gt_SIGNALBLOCKING. Test for 'raise' only once.
72600         * lib/fatal-signal.c: Include sigprocmask.h.
72601         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72602         unblock_fatal_signals): Define always.
72603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72604         sigprocmask.
72605
72606 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         Sync from Automake.
72609         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72610         which incorrectly sets the mode of an existing destination
72611         directory.  In some cases the unpatched install-sh could do the
72612         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72613         system.  We hope this is rare in practice, but it's clearly worth
72614         fixing.  Problem reported by Alex Unleashed in
72615         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72616         Also, don't bother to check for -m bugs unless we're using -m;
72617         suggested by Stepan Kasal.
72618
72619 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72620
72621         Sync from Automake.
72622         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72623         `-c' flag, so they appear at the same position as in %FASTDEP%
72624         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72625         which ignores unknown options only after the first non-option.
72626         Bug report against M4 by Nelson H. F. Beebe.
72627
72628 2006-10-13  Jim Meyering  <jim@meyering.net>
72629
72630         Fix a bug in yesterday's change.
72631         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72632         p->fts_statp->st_dev would be used uninitialized.
72633         Ensures that we always call fts_stat on the very first entry.
72634         Miklos Szeredi reported that find -xdev stopped working.
72635
72636 2006-10-12  Bruno Haible  <bruno@clisp.org>
72637
72638         * gnulib-tool (func_get_automake_snippet): Append an automatically
72639         computed EXTRA_DIST augmentation.
72640         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72641         * modules/alloca-opt (Makefile.am): Likewise.
72642         * modules/allocsa (Makefile.am): Likewise.
72643         * modules/arcfour (Makefile.am): Likewise.
72644         * modules/arctwo (Makefile.am): Likewise.
72645         * modules/argmatch (Makefile.am): Likewise.
72646         * modules/argz (Makefile.am): Likewise.
72647         * modules/atexit (Makefile.am): Likewise.
72648         * modules/backupfile (Makefile.am): Likewise.
72649         * modules/byteswap (Makefile.am): Likewise.
72650         * modules/c-strtod (Makefile.am): Likewise.
72651         * modules/c-strtold (Makefile.am): Likewise.
72652         * modules/calloc (Makefile.am): Likewise.
72653         * modules/canon-host (Makefile.am): Likewise.
72654         * modules/canonicalize (Makefile.am): Likewise.
72655         * modules/chdir-long (Makefile.am): Likewise.
72656         * modules/chdir-safer (Makefile.am): Likewise.
72657         * modules/check-version (Makefile.am): Likewise.
72658         * modules/chown (Makefile.am): Likewise.
72659         * modules/cloexec (Makefile.am): Likewise.
72660         * modules/close-stream (Makefile.am): Likewise.
72661         * modules/closeout (Makefile.am): Likewise.
72662         * modules/crc (Makefile.am): Likewise.
72663         * modules/csharpexec (Makefile.am): Likewise.
72664         * modules/cycle-check (Makefile.am): Likewise.
72665         * modules/des (Makefile.am): Likewise.
72666         * modules/dev-ino (Makefile.am): Likewise.
72667         * modules/dirfd (Makefile.am): Likewise.
72668         * modules/dirname (Makefile.am): Likewise.
72669         * modules/dup2 (Makefile.am): Likewise.
72670         * modules/eealloc (Makefile.am): Likewise.
72671         * modules/error (Makefile.am): Likewise.
72672         * modules/euidaccess (Makefile.am): Likewise.
72673         * modules/exclude (Makefile.am): Likewise.
72674         * modules/exitfail (Makefile.am): Likewise.
72675         * modules/fcntl-safer (Makefile.am): Likewise.
72676         * modules/fcntl (Makefile.am): Likewise.
72677         * modules/file-type (Makefile.am): Likewise.
72678         * modules/fileblocks (Makefile.am): Likewise.
72679         * modules/filemode (Makefile.am): Likewise.
72680         * modules/filenamecat (Makefile.am): Likewise.
72681         * modules/fnmatch (Makefile.am): Likewise.
72682         * modules/fopen-safer (Makefile.am): Likewise.
72683         * modules/fpending (Makefile.am): Likewise.
72684         * modules/fprintftime (Makefile.am): Likewise.
72685         * modules/free (Makefile.am): Likewise.
72686         * modules/fsusage (Makefile.am): Likewise.
72687         * modules/ftruncate (Makefile.am): Likewise.
72688         * modules/fts (Makefile.am): Likewise.
72689         * modules/gc-arcfour (Makefile.am): Likewise.
72690         * modules/gc-des (Makefile.am): Likewise.
72691         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72692         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72693         * modules/gc-md4 (Makefile.am): Likewise.
72694         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72695         * modules/gc-sha1 (Makefile.am): Likewise.
72696         * modules/gc (Makefile.am): Likewise.
72697         * modules/getaddrinfo (Makefile.am): Likewise.
72698         * modules/getcwd (Makefile.am): Likewise.
72699         * modules/getdelim (Makefile.am): Likewise.
72700         * modules/getdomainname (Makefile.am): Likewise.
72701         * modules/getgroups (Makefile.am): Likewise.
72702         * modules/gethostname (Makefile.am): Likewise.
72703         * modules/gethrxtime (Makefile.am): Likewise.
72704         * modules/getline (Makefile.am): Likewise.
72705         * modules/getloadavg (Makefile.am): Likewise.
72706         * modules/getlogin_r (Makefile.am): Likewise.
72707         * modules/getndelim2 (Makefile.am): Likewise.
72708         * modules/getopt (Makefile.am): Likewise.
72709         * modules/getpagesize (Makefile.am): Likewise.
72710         * modules/getpass-gnu (Makefile.am): Likewise.
72711         * modules/getpass (Makefile.am): Likewise.
72712         * modules/getsubopt (Makefile.am): Likewise.
72713         * modules/gettime (Makefile.am): Likewise.
72714         * modules/gettimeofday (Makefile.am): Likewise.
72715         * modules/getugroups (Makefile.am): Likewise.
72716         * modules/getusershell (Makefile.am): Likewise.
72717         * modules/glob (Makefile.am): Likewise.
72718         * modules/group-member (Makefile.am): Likewise.
72719         * modules/hard-locale (Makefile.am): Likewise.
72720         * modules/hash (Makefile.am): Likewise.
72721         * modules/hmac-md5 (Makefile.am): Likewise.
72722         * modules/hmac-sha1 (Makefile.am): Likewise.
72723         * modules/human (Makefile.am): Likewise.
72724         * modules/idcache (Makefile.am): Likewise.
72725         * modules/imaxabs (Makefile.am): Likewise.
72726         * modules/imaxdiv (Makefile.am): Likewise.
72727         * modules/inet_ntop (Makefile.am): Likewise.
72728         * modules/inet_pton (Makefile.am): Likewise.
72729         * modules/intprops (Makefile.am): Likewise.
72730         * modules/inttostr (Makefile.am): Likewise.
72731         * modules/inttypes (Makefile.am): Likewise.
72732         * modules/isapipe (Makefile.am): Likewise.
72733         * modules/javaversion (Makefile.am): Likewise.
72734         * modules/lchmod (Makefile.am): Likewise.
72735         * modules/lchown (Makefile.am): Likewise.
72736         * modules/localcharset (Makefile.am): Likewise.
72737         * modules/long-options (Makefile.am): Likewise.
72738         * modules/lstat (Makefile.am): Likewise.
72739         * modules/malloc (Makefile.am): Likewise.
72740         * modules/mathl (Makefile.am): Likewise.
72741         * modules/mbchar (Makefile.am): Likewise.
72742         * modules/md2 (Makefile.am): Likewise.
72743         * modules/md4 (Makefile.am): Likewise.
72744         * modules/md5 (Makefile.am): Likewise.
72745         * modules/memcasecmp (Makefile.am): Likewise.
72746         * modules/memchr (Makefile.am): Likewise.
72747         * modules/memcmp (Makefile.am): Likewise.
72748         * modules/memcoll (Makefile.am): Likewise.
72749         * modules/memcpy (Makefile.am): Likewise.
72750         * modules/memmem (Makefile.am): Likewise.
72751         * modules/memmove (Makefile.am): Likewise.
72752         * modules/mempcpy (Makefile.am): Likewise.
72753         * modules/memrchr (Makefile.am): Likewise.
72754         * modules/memset (Makefile.am): Likewise.
72755         * modules/memxor (Makefile.am): Likewise.
72756         * modules/mkancesdirs (Makefile.am): Likewise.
72757         * modules/mkdir-p (Makefile.am): Likewise.
72758         * modules/mkdir (Makefile.am): Likewise.
72759         * modules/mkdtemp (Makefile.am): Likewise.
72760         * modules/mkstemp (Makefile.am): Likewise.
72761         * modules/mktime (Makefile.am): Likewise.
72762         * modules/modechange (Makefile.am): Likewise.
72763         * modules/mountlist (Makefile.am): Likewise.
72764         * modules/nanosleep (Makefile.am): Likewise.
72765         * modules/obstack (Makefile.am): Likewise.
72766         * modules/openat (Makefile.am): Likewise.
72767         * modules/pagealign_alloc (Makefile.am): Likewise.
72768         * modules/pathmax (Makefile.am): Likewise.
72769         * modules/physmem (Makefile.am): Likewise.
72770         * modules/poll (Makefile.am): Likewise.
72771         * modules/posixtm (Makefile.am): Likewise.
72772         * modules/posixver (Makefile.am): Likewise.
72773         * modules/putenv (Makefile.am): Likewise.
72774         * modules/quote (Makefile.am): Likewise.
72775         * modules/quotearg (Makefile.am): Likewise.
72776         * modules/raise (Makefile.am): Likewise.
72777         * modules/read-file (Makefile.am): Likewise.
72778         * modules/readline (Makefile.am): Likewise.
72779         * modules/readlink (Makefile.am): Likewise.
72780         * modules/readtokens (Makefile.am): Likewise.
72781         * modules/readutmp (Makefile.am): Likewise.
72782         * modules/realloc (Makefile.am): Likewise.
72783         * modules/regex (Makefile.am): Likewise.
72784         * modules/rename-dest-slash (Makefile.am): Likewise.
72785         * modules/rename (Makefile.am): Likewise.
72786         * modules/rijndael (Makefile.am): Likewise.
72787         * modules/rmdir (Makefile.am): Likewise.
72788         * modules/rpmatch (Makefile.am): Likewise.
72789         * modules/safe-read (Makefile.am): Likewise.
72790         * modules/safe-write (Makefile.am): Likewise.
72791         * modules/same-inode (Makefile.am): Likewise.
72792         * modules/same (Makefile.am): Likewise.
72793         * modules/save-cwd (Makefile.am): Likewise.
72794         * modules/savedir (Makefile.am): Likewise.
72795         * modules/setenv (Makefile.am): Likewise.
72796         * modules/settime (Makefile.am): Likewise.
72797         * modules/sha1 (Makefile.am): Likewise.
72798         * modules/sig2str (Makefile.am): Likewise.
72799         * modules/snprintf (Makefile.am): Likewise.
72800         * modules/stat-macros (Makefile.am): Likewise.
72801         * modules/stat-time (Makefile.am): Likewise.
72802         * modules/stdbool (Makefile.am): Likewise.
72803         * modules/stdint (Makefile.am): Likewise.
72804         * modules/stdlib-safer (Makefile.am): Likewise.
72805         * modules/stpcpy (Makefile.am): Likewise.
72806         * modules/stpncpy (Makefile.am): Likewise.
72807         * modules/strcase (Makefile.am): Likewise.
72808         * modules/strcasestr (Makefile.am): Likewise.
72809         * modules/strchrnul (Makefile.am): Likewise.
72810         * modules/strcspn (Makefile.am): Likewise.
72811         * modules/strdup (Makefile.am): Likewise.
72812         * modules/strerror (Makefile.am): Likewise.
72813         * modules/strftime (Makefile.am): Likewise.
72814         * modules/strndup (Makefile.am): Likewise.
72815         * modules/strnlen (Makefile.am): Likewise.
72816         * modules/strpbrk (Makefile.am): Likewise.
72817         * modules/strsep (Makefile.am): Likewise.
72818         * modules/strstr (Makefile.am): Likewise.
72819         * modules/strtod (Makefile.am): Likewise.
72820         * modules/strtoimax (Makefile.am): Likewise.
72821         * modules/strtok_r (Makefile.am): Likewise.
72822         * modules/strtol (Makefile.am): Likewise.
72823         * modules/strtoll (Makefile.am): Likewise.
72824         * modules/strtoul (Makefile.am): Likewise.
72825         * modules/strtoull (Makefile.am): Likewise.
72826         * modules/strtoumax (Makefile.am): Likewise.
72827         * modules/strverscmp (Makefile.am): Likewise.
72828         * modules/sys_socket (Makefile.am): Likewise.
72829         * modules/sys_stat (Makefile.am): Likewise.
72830         * modules/sysexits (Makefile.am): Likewise.
72831         * modules/time_r (Makefile.am): Likewise.
72832         * modules/timegm (Makefile.am): Likewise.
72833         * modules/timespec (Makefile.am): Likewise.
72834         * modules/tmpfile-safer (Makefile.am): Likewise.
72835         * modules/trim (Makefile.am): Likewise.
72836         * modules/unistd-safer (Makefile.am): Likewise.
72837         * modules/unlinkdir (Makefile.am): Likewise.
72838         * modules/unlocked-io (Makefile.am): Likewise.
72839         * modules/userspec (Makefile.am): Likewise.
72840         * modules/utime (Makefile.am): Likewise.
72841         * modules/utimecmp (Makefile.am): Likewise.
72842         * modules/utimens (Makefile.am): Likewise.
72843         * modules/vasnprintf (Makefile.am): Likewise.
72844         * modules/vasprintf (Makefile.am): Likewise.
72845         * modules/vsnprintf (Makefile.am): Likewise.
72846         * modules/xalloc (Makefile.am): Likewise.
72847         * modules/xgetcwd (Makefile.am): Likewise.
72848         * modules/xnanosleep (Makefile.am): Likewise.
72849         * modules/xreadlink (Makefile.am): Likewise.
72850         * modules/xstrtod (Makefile.am): Likewise.
72851         * modules/xstrtol (Makefile.am): Likewise.
72852         * modules/xstrtold (Makefile.am): Likewise.
72853         * modules/yesno (Makefile.am): Likewise.
72854         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72855
72856 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72857
72858         * modules/error (Makefile.am): Distribute files through
72859         EXTRA_DIST, not lib_SOURCES.
72860
72861 2006-10-12  Eric Blake  <ebb9@byu.net>
72862
72863         * modules/error (Makefile.am): Distribute files in /lib.
72864         * modules/obstack (Makefile.am): Likewise.
72865
72866 2006-10-12  Bruno Haible  <bruno@clisp.org>
72867
72868         * modules/acl (Makefile.am): Distribute all files in lib/ through
72869         EXTRA_DIST.
72870         * modules/arcfour (Makefile.am): Likewise.
72871         * modules/arctwo (Makefile.am): Likewise.
72872         * modules/argmatch (Makefile.am): Likewise.
72873         * modules/argz (Makefile.am): Likewise.
72874         * modules/atexit (Makefile.am): Likewise.
72875         * modules/backupfile (Makefile.am): Likewise.
72876         * modules/c-strtod (Makefile.am): Likewise.
72877         * modules/c-strtold (Makefile.am): Likewise.
72878         * modules/calloc (Makefile.am): Likewise.
72879         * modules/canon-host (Makefile.am): Likewise.
72880         * modules/canonicalize (Makefile.am): Likewise.
72881         * modules/chdir-long (Makefile.am): Likewise.
72882         * modules/chdir-safer (Makefile.am): Likewise.
72883         * modules/check-version (Makefile.am): Likewise.
72884         * modules/chown (Makefile.am): Likewise.
72885         * modules/cloexec (Makefile.am): Likewise.
72886         * modules/close-stream (Makefile.am): Likewise.
72887         * modules/closeout (Makefile.am): Likewise.
72888         * modules/crc (Makefile.am): Likewise.
72889         * modules/cycle-check (Makefile.am): Likewise.
72890         * modules/des (Makefile.am): Likewise.
72891         * modules/dirfd (Makefile.am): Likewise.
72892         * modules/dirname (Makefile.am): Likewise.
72893         * modules/dup2 (Makefile.am): Likewise.
72894         * modules/euidaccess (Makefile.am): Likewise.
72895         * modules/exclude (Makefile.am): Likewise.
72896         * modules/exitfail (Makefile.am): Likewise.
72897         * modules/fcntl-safer (Makefile.am): Likewise.
72898         * modules/file-type (Makefile.am): Likewise.
72899         * modules/fileblocks (Makefile.am): Likewise.
72900         * modules/filemode (Makefile.am): Likewise.
72901         * modules/filenamecat (Makefile.am): Likewise.
72902         * modules/fnmatch (Makefile.am): Likewise.
72903         * modules/fopen-safer (Makefile.am): Likewise.
72904         * modules/fpending (Makefile.am): Likewise.
72905         * modules/fprintftime (Makefile.am): Likewise.
72906         * modules/free (Makefile.am): Likewise.
72907         * modules/fsusage (Makefile.am): Likewise.
72908         * modules/ftruncate (Makefile.am): Likewise.
72909         * modules/fts (Makefile.am): Likewise.
72910         * modules/gc (Makefile.am): Likewise.
72911         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72912         * modules/getaddrinfo (Makefile.am): Likewise.
72913         * modules/getcwd (Makefile.am): Likewise.
72914         * modules/getdelim (Makefile.am): Likewise.
72915         * modules/getdomainname (Makefile.am): Likewise.
72916         * modules/getgroups (Makefile.am): Likewise.
72917         * modules/gethostname (Makefile.am): Likewise.
72918         * modules/gethrxtime (Makefile.am): Likewise.
72919         * modules/getline (Makefile.am): Likewise.
72920         * modules/getloadavg (Makefile.am): Likewise.
72921         * modules/getlogin_r (Makefile.am): Likewise.
72922         * modules/getopt (Makefile.am): Likewise.
72923         * modules/getpass (Makefile.am): Likewise.
72924         * modules/getpass-gnu (Makefile.am): Likewise.
72925         * modules/getsubopt (Makefile.am): Likewise.
72926         * modules/gettime (Makefile.am): Likewise.
72927         * modules/gettimeofday (Makefile.am): Likewise.
72928         * modules/getugroups (Makefile.am): Likewise.
72929         * modules/getusershell (Makefile.am): Likewise.
72930         * modules/glob (Makefile.am): Likewise.
72931         * modules/group-member (Makefile.am): Likewise.
72932         * modules/hard-locale (Makefile.am): Likewise.
72933         * modules/hash (Makefile.am): Likewise.
72934         * modules/hmac-md5 (Makefile.am): Likewise.
72935         * modules/hmac-sha1 (Makefile.am): Likewise.
72936         * modules/human (Makefile.am): Likewise.
72937         * modules/idcache (Makefile.am): Likewise.
72938         * modules/imaxabs (Makefile.am): Likewise.
72939         * modules/imaxdiv (Makefile.am): Likewise.
72940         * modules/inet_ntop (Makefile.am): Likewise.
72941         * modules/inet_pton (Makefile.am): Likewise.
72942         * modules/inttostr (Makefile.am): Likewise.
72943         * modules/isapipe (Makefile.am): Likewise.
72944         * modules/lchown (Makefile.am): Likewise.
72945         * modules/long-options (Makefile.am): Likewise.
72946         * modules/lstat (Makefile.am): Likewise.
72947         * modules/malloc (Makefile.am): Likewise.
72948         * modules/mathl (Makefile.am): Likewise.
72949         * modules/mbchar (Makefile.am): Likewise.
72950         * modules/md2 (Makefile.am): Likewise.
72951         * modules/md4 (Makefile.am): Likewise.
72952         * modules/md5 (Makefile.am): Likewise.
72953         * modules/memcasecmp (Makefile.am): Likewise.
72954         * modules/memchr (Makefile.am): Likewise.
72955         * modules/memcmp (Makefile.am): Likewise.
72956         * modules/memcoll (Makefile.am): Likewise.
72957         * modules/memcpy (Makefile.am): Likewise.
72958         * modules/memmem (Makefile.am): Likewise.
72959         * modules/memmove (Makefile.am): Likewise.
72960         * modules/mempcpy (Makefile.am): Likewise.
72961         * modules/memrchr (Makefile.am): Likewise.
72962         * modules/memset (Makefile.am): Likewise.
72963         * modules/memxor (Makefile.am): Likewise.
72964         * modules/mkancesdirs (Makefile.am): Likewise.
72965         * modules/mkdir (Makefile.am): Likewise.
72966         * modules/mkdir-p (Makefile.am): Likewise.
72967         * modules/mkdtemp (Makefile.am): Likewise.
72968         * modules/mkstemp (Makefile.am): Likewise.
72969         * modules/mktime (Makefile.am): Likewise.
72970         * modules/modechange (Makefile.am): Likewise.
72971         * modules/mountlist (Makefile.am): Likewise.
72972         * modules/nanosleep (Makefile.am): Likewise.
72973         * modules/openat (Makefile.am): Likewise.
72974         * modules/pagealign_alloc (Makefile.am): Likewise.
72975         * modules/physmem (Makefile.am): Likewise.
72976         * modules/poll (Makefile.am): Likewise.
72977         * modules/posixtm (Makefile.am): Likewise.
72978         * modules/posixver (Makefile.am): Likewise.
72979         * modules/putenv (Makefile.am): Likewise.
72980         * modules/quote (Makefile.am): Likewise.
72981         * modules/quotearg (Makefile.am): Likewise.
72982         * modules/raise (Makefile.am): Likewise.
72983         * modules/read-file (Makefile.am): Likewise.
72984         * modules/readline (Makefile.am): Likewise.
72985         * modules/readlink (Makefile.am): Likewise.
72986         * modules/readtokens (Makefile.am): Likewise.
72987         * modules/readutmp (Makefile.am): Likewise.
72988         * modules/realloc (Makefile.am): Likewise.
72989         * modules/regex (Makefile.am): Likewise.
72990         * modules/rename (Makefile.am): Likewise.
72991         * modules/rename-dest-slash (Makefile.am): Likewise.
72992         * modules/rijndael (Makefile.am): Likewise.
72993         * modules/rmdir (Makefile.am): Likewise.
72994         * modules/rpmatch (Makefile.am): Likewise.
72995         * modules/safe-read (Makefile.am): Likewise.
72996         * modules/safe-write (Makefile.am): Likewise.
72997         * modules/same (Makefile.am): Likewise.
72998         * modules/save-cwd (Makefile.am): Likewise.
72999         * modules/savedir (Makefile.am): Likewise.
73000         * modules/setenv (Makefile.am): Likewise.
73001         * modules/settime (Makefile.am): Likewise.
73002         * modules/sha1 (Makefile.am): Likewise.
73003         * modules/sig2str (Makefile.am): Likewise.
73004         * modules/snprintf (Makefile.am): Likewise.
73005         * modules/stdlib-safer (Makefile.am): Likewise.
73006         * modules/stpcpy (Makefile.am): Likewise.
73007         * modules/stpncpy (Makefile.am): Likewise.
73008         * modules/strcase (Makefile.am): Likewise.
73009         * modules/strcasestr (Makefile.am): Likewise.
73010         * modules/strchrnul (Makefile.am): Likewise.
73011         * modules/strcspn (Makefile.am): Likewise.
73012         * modules/strdup (Makefile.am): Likewise.
73013         * modules/strerror (Makefile.am): Likewise.
73014         * modules/strftime (Makefile.am): Likewise.
73015         * modules/strndup (Makefile.am): Likewise.
73016         * modules/strnlen (Makefile.am): Likewise.
73017         * modules/strpbrk (Makefile.am): Likewise.
73018         * modules/strsep (Makefile.am): Likewise.
73019         * modules/strstr (Makefile.am): Likewise.
73020         * modules/strtod (Makefile.am): Likewise.
73021         * modules/strtoimax (Makefile.am): Likewise.
73022         * modules/strtok_r (Makefile.am): Likewise.
73023         * modules/strtol (Makefile.am): Likewise.
73024         * modules/strtoll (Makefile.am): Likewise.
73025         * modules/strtoul (Makefile.am): Likewise.
73026         * modules/strtoull (Makefile.am): Likewise.
73027         * modules/strtoumax (Makefile.am): Likewise.
73028         * modules/strverscmp (Makefile.am): Likewise.
73029         * modules/time_r (Makefile.am): Likewise.
73030         * modules/timegm (Makefile.am): Likewise.
73031         * modules/tmpfile-safer (Makefile.am): Likewise.
73032         * modules/unistd-safer (Makefile.am): Likewise.
73033         * modules/unlinkdir (Makefile.am): Likewise.
73034         * modules/userspec (Makefile.am): Likewise.
73035         * modules/utime (Makefile.am): Likewise.
73036         * modules/utimecmp (Makefile.am): Likewise.
73037         * modules/utimens (Makefile.am): Likewise.
73038         * modules/vasnprintf (Makefile.am): Likewise.
73039         * modules/vasprintf (Makefile.am): Likewise.
73040         * modules/vsnprintf (Makefile.am): Likewise.
73041         * modules/xalloc (Makefile.am): Likewise.
73042         * modules/xgetcwd (Makefile.am): Likewise.
73043         * modules/xnanosleep (Makefile.am): Likewise.
73044         * modules/xreadlink (Makefile.am): Likewise.
73045         * modules/xstrtod (Makefile.am): Likewise.
73046         * modules/xstrtol (Makefile.am): Likewise.
73047         * modules/xstrtold (Makefile.am): Likewise.
73048         * modules/yesno (Makefile.am): Likewise.
73049
73050 2006-10-12  Jim Meyering  <jim@meyering.net>
73051
73052         * m4/getloadavg.m4: Revert the change below.
73053
73054         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73055         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73056         fail with a symlink, which is what coreutils' ./bootstrap now
73057         creates by default.
73058
73059 2006-10-12  Bruno Haible  <bruno@clisp.org>
73060
73061         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73062         mingw.
73063         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73064         MSVC and mingw explicitly.
73065
73066 2006-10-11  Simon Josefsson  <jas@extundo.com>
73067             Bruno Haible  <bruno@clisp.org>
73068
73069         Add support for multiple gnulib-tool invocations in the scope of a
73070         single configure.ac file.
73071         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73072         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73073         with the same contents as the _LIBADD variable.
73074         (func_emit_initmacro_start, func_emit_initmacro_end,
73075         func_emit_initmacro_done): New functions.
73076         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73077         gl_LIBOBJS and gl_LTLIBOBJS.
73078
73079 2006-10-11  Bruno Haible  <bruno@clisp.org>
73080
73081         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73082         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73083         autoreconf. Instead, invoke autopoint explicitly but move back the
73084         *.m4 files from gnulib.
73085
73086 2006-10-11  Bruno Haible  <bruno@clisp.org>
73087
73088         * gnulib-tool (func_usage): Make module names after --create-testdir
73089         optional.
73090         (func_create_testdir): If no module was specified, use nearly all
73091         modules.
73092
73093 2006-10-12  Jim Meyering  <jim@meyering.net>
73094
73095         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73096         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73097         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73098         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73099         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73100         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73101         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73102         (fts_set_stat_required): New function.
73103         (fts_open): Defer the calls to fts_stat, if possible or requested.
73104         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73105         into fts_stat itself.
73106         (fts_read): Perform any required (deferred) fts_stat call.
73107         (fts_build): Likewise, for the directory we're about to open and read.
73108         In the readdir loop, carefully decide whether each entry will require
73109         an eventual call to fts_stat, using dirent.d_type info if available.
73110         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73111         a command line argument into this function.  Update all callers.
73112         Map a return value of FTS_DOT to FTS_D for a command line argument.
73113         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73114         Thanks to Miklos Szeredi for his tenacity and for the initial
73115         bug report about "find" failing on a FUSE-based file system.
73116
73117         * lib/fts.c (fts_open): Use consistent indentation.
73118
73119 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73122         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73123         reported by Jim Meyering.  All uses of cache variables renamed
73124         to match Autoconf's.
73125         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73126         the other one.
73127
73128         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73129         Fix misspelling in diagnostic.
73130
73131 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73132
73133         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73134         defined.  Problem reported by Matthew Woehlke.
73135
73136         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73137         Add support for Tandem NonStop R series.
73138         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73139         Use new macro.
73140
73141         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73142         (has_trailing_slash): Omit size arg; all callers changed.
73143         Omit 'inline', since it doesn't help performance and we'd
73144         need to configure it.
73145         Don't count //, ///, etc. as having a trailing slash.
73146         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73147         (rpl_rename_dest_slash): On failure, use rename's errno rather
73148         than (in some cases) an incorrect or junk errno.
73149         Simplify code by removing need to compute length; this does
73150         cause it to make two passes instead of one over the file name,
73151         but it's worth it.
73152
73153         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73154         change, since Autoconf's version may no longer be appropriate now
73155         that we are using CVS Autoconf's version.  Add support for Tandem.
73156
73157 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73158             Bruno Haible  <bruno@clisp.org>
73159
73160         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73161         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73162         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73163         gl_AC_TYPE_LONG_LONG.
73164
73165         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73166         instead of HAVE_LONG_LONG.
73167         * lib/printf-args.c (printf_fetchargs): Likewise.
73168         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73169         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73170         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73171         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73172         gl_AC_TYPE_LONG_LONG.
73173
73174 2006-10-11  Bruno Haible  <bruno@clisp.org>
73175
73176         * m4/longlong.m4: Add comments.
73177         * m4/ulonglong.m4: Likewise.
73178
73179 2006-10-10  Bruno Haible  <bruno@clisp.org>
73180
73181         Make it possible to #define stpcpy, strdup to aliases.
73182         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73183         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73184
73185 2006-10-10  Bruno Haible  <bruno@clisp.org>
73186
73187         Make it possible to #define gcd to an alias.
73188         * lib/gcd.c: Include config.h.
73189
73190 2006-10-10  Bruno Haible  <bruno@clisp.org>
73191
73192         Make it possible to #define c_isascii to an alias.
73193         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73194         defined. Undefine the macros before defining them, to avoid gcc
73195         warnings.
73196         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73197         define NO_C_CTYPE_MACROS early.
73198
73199 2006-10-10  Bruno Haible  <bruno@clisp.org>
73200
73201         Make it possible to #define set_program_name to an alias.
73202         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73203         ENABLE_RELOCATABLE early.
73204
73205 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73206
73207         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73208         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73209         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73210         More generally, don't assume that 64-bit signed int is available
73211         if unsigned int is, and vice versa.
73212         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73213         unsigned symbols, not on their signed counterparts.
73214         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73215         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73216         (UINT64_C, UINTMAX_C):
73217         Likewise.
73218         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73219         unsigned counterparts.
73220         (Have_long_long, Unsigned): New macros.
73221         (Int): Renamed from INT.
73222         (strtoimax): Use the new macros.
73223         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73224         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73225         * modules/inttypes (inttypes.h): Substitute
73226         HAVE_UNSIGNED_LONG_LONG_INT.
73227         * modules/stdint (stdint.h): Likewise.
73228         (Files): Add m4/ulonglong.m4.
73229
73230 2006-10-10  Bruno Haible  <bruno@clisp.org>
73231
73232         Fix a gcc -Wshadow warning.
73233         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73234         to 'bucket'.
73235         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73236         gl_linked_indexof_from_to): Likewise.
73237         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73238         Likewise.
73239         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73240         Likewise.
73241         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73242         Reported by Eric Blake.
73243
73244 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73247         for NetBSD.  Problem reported by Bruno Haible.
73248
73249 2006-10-09  Jim Meyering  <jim@meyering.net>
73250
73251         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73252         Patch from Bruno Haible.
73253
73254 2006-10-09  Jim Meyering  <jim@meyering.net>
73255
73256         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73257         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73258         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73259
73260 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         Don't include <config.h> twice; this doesn't work in some cases,
73263         e.g., when config.h has "#define intmax_t long long int" and
73264         we include <config.h>, <inttypes.h>, <config.h> in that order.
73265         Problem reported by Matthew Woehlke in:
73266         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73267         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73268         * lib/fts-cycle.c: Don't include config.h.
73269         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73270         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73271         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73272         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73273         inttypes.h.
73274         * lib/xstrtoumax.c: Likewise.
73275         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73276         __strtol and the like, so that this module is more like its siblings.
73277         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73278         Remove; no longer needed now that we assume gnulib inttypes.h.
73279
73280 2006-10-08  Bruno Haible  <bruno@clisp.org>
73281
73282         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73283         option.
73284
73285 2006-10-07  Jim Meyering  <jim@meyering.net>
73286
73287         * modules/inttypes (inttypes.h): Revert what seems to have been
73288         an inadvertent part of today's change: use "|", not "/" in the
73289         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73290
73291 2006-10-07  Bruno Haible  <bruno@clisp.org>
73292
73293         * modules/sublist: New file.
73294
73295 2006-10-07  Bruno Haible  <bruno@clisp.org>
73296
73297         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73298         * modules/argz (argz.h): Likewise.
73299         * modules/arpa_inet (arpa/inet.h): Likewise.
73300         * modules/byteswap (byteswap.h): Likewise.
73301         * modules/configmake (configmake.h): Likewise.
73302         * modules/fcntl (fcntl.h): Likewise.
73303         * modules/fnmatch (fnmatch.h): Likewise.
73304         * modules/getopt (getopt.h): Likewise.
73305         * modules/glob (glob.h): Likewise.
73306         * modules/inttypes (inttypes.h): Likewise.
73307         * modules/netinet_in (netinet/in.h): Likewise.
73308         * modules/poll (poll.h): Likewise.
73309         * modules/stdbool (stdbool.h): Likewise.
73310         * modules/stdint (stdint.h): Likewise.
73311         * modules/sys_select (sys/select.h): Likewise.
73312         * modules/sys_socket (sys/socket.h): Likewise.
73313         * modules/sys_stat (sys/stat.h): Likewise.
73314         * modules/sysexits (sysexits.h): Likewise.
73315         * modules/unistd (unistd.h): Likewise.
73316         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73317         Add a "DO NOT EDIT" comment to the generated file.
73318         (func_import): Likewise for gnulib-comp.m4.
73319
73320 2006-10-07  Bruno Haible  <bruno@clisp.org>
73321
73322         * lib/gl_sublist.h: New file.
73323         * lib/gl_sublist.c: New file.
73324
73325 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73328         name (relative to the original working directory) and the file
73329         name component (relative to the temporary working directory).  All
73330         callers changed.
73331         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73332         * lib/mkdir-p.c (make_dir_parents): Likewise.
73333         * lib/mkdir-p.h (make_dir_parents): Likewise.
73334
73335 2006-10-06  Eric Blake  <ebb9@byu.net>
73336
73337         Define several macros for use by the clean-temp module.
73338         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73340         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73341
73342         * lib/clean-temp.h (close_stream_temp): New declaration.
73343         * lib/clean-temp.c (includes): Pull in headers according to what
73344         other modules are in use.
73345         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73346
73347 2006-10-06  Bruno Haible  <bruno@clisp.org>
73348
73349         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73350         instead of fopen, fwriteerror.
73351
73352 2006-10-06  Bruno Haible  <bruno@clisp.org>
73353
73354         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73355         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73356         int.
73357         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73358         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73359         Return an error indicator.
73360         Suggested by Eric Blake.
73361
73362 2006-10-06  Bruno Haible  <bruno@clisp.org>
73363
73364         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73365         Reported by Eric Blake.
73366
73367 2006-10-06  Bruno Haible  <bruno@clisp.org>
73368
73369         * modules/closeout (Description): Mention stderr too.
73370
73371 2006-10-06  Bruno Haible  <bruno@clisp.org>
73372         and Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         * lib/closeout.c (close_stdout): Also close stderr.
73375         * lib/closeout.h: Update comment.
73376
73377 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73378
73379         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73380         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73381         * lib/dirchownmod.c: Include lchown.h.
73382         * lib/lchown.c: Don't include files that lchown.h now includes.
73383         Don't declare chown, since lchown.h now does that.
73384         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73385         (lchown): Define to rpl_chown if lchown is declared but
73386         does not exist.  Declare using a prototype if lchown is not
73387         declared.  Add a copyright notice.
73388         * lib/mkstemp.h: Include <unistd.h>.
73389         * lib/openat.c: Include lchown.h.
73390
73391         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73392         we now test for that separately.
73393         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73394         rather than O_NOFOLLOW, when testing whether it's possible to
73395         avoid a race condition reliably.
73396         * lib/savewd.c (savewd_chdir): Likewise.
73397
73398         Remove macros that are no longer needed now that stdint.h is
73399         reliable.
73400         * lib/fsusage.c (UINTMAX_MAX): Remove.
73401         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73402         * lib/utimecmp.c (SIZE_MAX): Remove.
73403
73404         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73405
73406         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73407         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73408         O_NOATIME works.
73409
73410 2006-10-05  Bruno Haible  <bruno@clisp.org>
73411
73412         * lib/gl_list.h (gl_sortedlist_search_from_to,
73413         gl_sortedlist_indexof_from_to): New declarations.
73414         (gl_list_implementation): New fields sortedlist_search_from_to,
73415         sortedlist_indexof_from_to.
73416         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73417         inline functions.
73418         * lib/gl_list.c (gl_sortedlist_search_from_to,
73419         gl_sortedlist_indexof_from_to): New functions.
73420         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73421         function.
73422         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73423         (gl_array_sortedlist_search_from_to): New function.
73424         (gl_array_list_implementation): Update.
73425         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73426         function.
73427         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73428         (gl_carray_sortedlist_search_from_to): New function.
73429         (gl_carray_list_implementation): Update.
73430         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73431         gl_linked_sortedlist_indexof_from_to): New functions.
73432         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73433         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73434         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73435         gl_tree_sortedlist_indexof_from_to): New functions.
73436         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73437         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73438         Update.
73439         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73440         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73441         Update.
73442
73443 2006-10-05  Bruno Haible  <bruno@clisp.org>
73444
73445         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73446         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73447         (struct gl_list_implementation): Add fields search_from_to,
73448         indexof_from_to. Remove fields search, indexof.
73449         (gl_list_search): Use the search_from_to method.
73450         (gl_list_search_from, gl_list_search_from_to): New functions.
73451         (gl_list_indexof): Use the indexof_from_to method.
73452         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73453         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73454         (gl_list_search_from, gl_list_search_from_to): New functions.
73455         (gl_list_indexof): Use the indexof_from_to method.
73456         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73457         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73458         gl_array_indexof. Add start_index, end_index arguments.
73459         (gl_array_search_from_to): Renamed from gl_array_search. Add
73460         start_index, end_index arguments.
73461         (gl_array_remove, gl_array_list_implementation): Update.
73462         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73463         gl_carray_indexof. Add start_index, end_index arguments.
73464         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73465         start_index, end_index arguments.
73466         (gl_carray_remove, gl_carray_list_implementation): Update.
73467         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73468         gl_linked_search. Add start_index, end_index arguments.
73469         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73470         start_index, end_index arguments.
73471         (gl_linked_remove): Update.
73472         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73473         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73474         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73475         field to 'size_t'.
73476         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73477         gl_tree_search. Add start_index, end_index arguments.
73478         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73479         start_index, end_index arguments.
73480         (gl_tree_remove): Update.
73481         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73482         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73483         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73484         function.
73485         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73486         gl_tree_search. Add start_index, end_index arguments.
73487         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73488         start_index, end_index arguments.
73489         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73490         Update.
73491         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73492
73493 2006-10-05  Bruno Haible  <bruno@clisp.org>
73494
73495         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73496
73497         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73498         fwriteerror_temp): New declarations.
73499         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73500         (descriptors): New variable.
73501         (cleanup): First, close the descriptors.
73502         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73503         fclose_temp, fwriteerror_temp): New functions.
73504
73505 2006-10-04  Jim Meyering  <jim@meyering.net>
73506
73507         * lib/fts.c (fts_open): Tiny comment change.
73508
73509 2006-10-04  Bruno Haible  <bruno@clisp.org>
73510
73511         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73512         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73513         gl_LOCK_BODY.
73514         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73515         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73516         gl_LOCK_EARLY_BODY.
73517         (gl_LOCK): Require gl_LOCK_BODY.
73518
73519 2006-10-04  Bruno Haible  <bruno@clisp.org>
73520
73521         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73522         (gl_oset_search_atleast): New declaration.
73523         (struct gl_oset_implementation): Add field 'search_atleast'.
73524         (gl_oset_search_atleast): New inline function.
73525         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73526         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73527         (gl_array_oset_implementation): Update.
73528         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73529         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73530         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73531
73532 2006-10-04  Bruno Haible  <bruno@clisp.org>
73533
73534         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73535
73536 2006-10-03  Bruno Haible  <bruno@clisp.org>
73537
73538         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73539         from gl_avltreehash_list_implementation.
73540
73541 2006-10-03  Bruno Haible  <bruno@clisp.org>
73542
73543         * lib/gl_oset.c (gl_oset_add): Fix return type.
73544
73545 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73546
73547         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73548
73549 2006-10-02  Eric Blake  <ebb9@byu.net>
73550
73551         * modules/strnlen (Depends-on): Add extensions.
73552
73553 2006-10-02  Eric Blake  <ebb9@byu.net>
73554
73555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73556         definition in 2.60+.
73557
73558 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73559
73560         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73561         checks.
73562
73563 2006-10-02  Bruno Haible  <bruno@clisp.org>
73564
73565         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73566         to the AUTOMAKE_OPTIONS.
73567         Reported by Jim Meyering.
73568
73569 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73570
73571         Work around bug in Solaris 10 /proc file system:
73572         /proc/self/fd/NNN/.. isn't the parent directory of
73573         the directory whose file descriptor is NNN.  This needs to
73574         be worked around at run time, not compile time, since a
73575         program might be built on Solaris 8, where things work, and
73576         run on Solaris 10.
73577         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73578         to use the following interface instead:
73579         (OPENAT_BUFFER_SIZE): New macro.
73580         (openat_proc_name): New function.
73581         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73582         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73583         Likewise.
73584         * lib/openat-proc.c: New file.
73585         * modules/openat (Files): Add lib/openat-proc.c.
73586         (Depends-on): Add same-inode, stdbool.
73587         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73588
73589 2006-09-29  Bruno Haible  <bruno@clisp.org>
73590
73591         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73592         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73593         argument. Set stdout_closed before testing for ferror, not after.
73594         (fwriteerror, fwriteerror_no_ebadf): New functions.
73595
73596 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73597
73598         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73599
73600 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73601
73602         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73603         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73604
73605 2006-09-28  Jim Meyering  <jim@meyering.net>
73606
73607         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73608         Include <unistd.h>.
73609
73610 2006-09-28  Bruno Haible  <bruno@clisp.org>
73611
73612         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73613         * modules/linkedhash-list (Depends-on): Likewise.
73614         * modules/rbtreehash-list (Depends-on): Likewise.
73615
73616 2006-09-28  Bruno Haible  <bruno@clisp.org>
73617
73618         * lib/strndup.h: Simplify the redefinition of strndup.
73619         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73620         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73621
73622 2006-09-28  Bruno Haible  <bruno@clisp.org>
73623
73624         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73625         * lib/gl_linkedhash_list.c: Likewise.
73626         * lib/gl_rbtreehash_list.c: Likewise.
73627
73628 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73629
73630         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73631         getaddrinfo.
73632
73633         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73634         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73635         it causes <stdio_ext.h> to cause a compile-time error.
73636         Problem reported by Nelson H. F. Beebe.
73637         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73638         of HAVE_DECL___PENDING.
73639
73640         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73641         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73642         declaration.
73643
73644 2006-09-27  Jim Meyering  <jim@meyering.net>
73645
73646         This file could end up with a definition for a function
73647         named __strndup, rather than rpl_strndup on a system with
73648         incomplete weak_alias support.
73649         * lib/strndup.c (strndup): Rename from __strndup.
73650         Remove #defines that used to map __strndup to strndup.
73651         Don't use K&R prototypes.
73652         Remove LIBC-related code, since this file is not sync'd with glibc.
73653         * lib/strndup.h: Revamp, accordingly.
73654         * m4/strndup.m4: Modernize.
73655
73656 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         * modules/savewd (Depends-on): Add 'raise'.
73659         * lib/savewd.c: Include <signal.h>, for 'raise'.
73660
73661 2006-09-26  Jim Meyering  <jim@meyering.net>
73662
73663         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73664         when we detect Darwin 8.7.0's acl_get_file bug.
73665         Rearrange to perform the new (below) run-test while $LIBS
73666         contains any acl-related library.  Set USE_ACL at the end.
73667         (gl_ACL_GET_FILE): New function.
73668
73669 2006-09-26  Eric Blake  <ebb9@byu.net>
73670
73671         * lib/verror.c: Include <config.h> unconditionally.
73672
73673 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         * modules/clock-time (Maintainer): Add self.
73676         * modules/getlogin_r (Depends-on): Add extensions.
73677
73678 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73679
73680         * modules/clock-time: New module.
73681         * modules/nanosleep (Depends-on): Add clock-time.
73682         * modules/gethrxtime (Depends-on): Likewise.
73683         * modules/gettime (Depends-on): Likewise.
73684         * modules/settime (Depends-on): Likewise.
73685
73686         * modules/fts-lgpl: Depend on openat.
73687         * modules/mkancesdirs: Depend on savewd.
73688         * modules/mkdir-p: Likewise.
73689
73690 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73691
73692         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73693
73694         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73695         `gl_have_arbitrary_file_name_length_limit' to
73696         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73697         actually works between configure runs.
73698
73699 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73700             Bruno Haible  <bruno@clisp.org>
73701
73702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73703
73704 2006-09-25  Jim Meyering  <jim@meyering.net>
73705
73706         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73707         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73708
73709 2006-09-25  Eric Blake  <ebb9@byu.net>
73710
73711         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73712         exec's in 2006-09-18 patch when shuffling fds.
73713
73714 2006-09-25  Bruno Haible  <bruno@clisp.org>
73715
73716         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73717         Reported by Jim Meyering.
73718
73719 2006-09-24  Jim Meyering  <jim@meyering.net>
73720
73721         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73722         compare a pointer against a literal "0".  That caused failures with
73723         at least HP-UX's hpcc.
73724
73725 2006-09-22  Simon Josefsson  <jas@extundo.com>
73726
73727         * modules/gc-sha1:
73728         * modules/gc-md4:
73729         * modules/gc-hmac-sha1:
73730         * modules/gc-hmac-md5:
73731         * modules/gc-des:
73732         * modules/gc-arcfour: Distribute more files.
73733
73734 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73735
73736         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73737         (gl_linked_iterator_from_to): Initialize struct completely.
73738         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73739         (gl_tree_iterator_from_to): Likewise
73740         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73741         * lib/gl_array_list.c [lint] (gl_array_iterator)
73742         (gl_array_iterator_from_to): Likewise.
73743         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73744         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73745         (gl_carray_iterator_from_to): Likewise.
73746
73747         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73748         * lib/md4.c (md4_process_block): Remove unused variable.
73749         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73750         parentheses for clarity.
73751
73752 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73753
73754         * modules/bison-i18n (Depends-on): Add gettext.
73755
73756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73757
73758         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73759         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73760         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73761         also add missing comma that caused broken test.
73762         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73763         stdlib.h, for `abort'.
73764         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73765         variables.
73766         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73767         include unistd.h if present, for `rmdir'.
73768         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73769         variables.
73770         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73771         in the process include standard headers for prototypes.
73772         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73773         gets declared on GNU/Linux.
73774         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73775         unistd.h, for `rmdir'.
73776         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73777
73778         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73779         always true.
73780         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73781
73782         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73783
73784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73785
73786         * gnulib-tool (func_version): Create output all at once.  This
73787         may help avoid triggering unnecessary SIGPIPEs, and at any
73788         rate it doesn't hurt.
73789
73790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73791             Bruno Haible  <bruno@clisp.org>
73792
73793         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73794         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73795         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73796
73797         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73798         (gl_FUNC_VASPRINTF): Invoke it.
73799
73800 2006-09-22  Bruno Haible  <bruno@clisp.org>
73801
73802         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73803         getloadavg.c as first argument.
73804
73805 2006-09-22  Bruno Haible  <bruno@clisp.org>
73806
73807         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73808         at the beginning of the gl_INIT macro.
73809         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73810         gl_GETLOADAVG.
73811
73812 2006-09-22  Bruno Haible  <bruno@clisp.org>
73813
73814         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73815         module.
73816         Suggested by Ralf Wildenhues.
73817
73818 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73819
73820         Import this patch from libc:
73821
73822         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73823
73824         * lib/regex_internal.c (re_string_reconstruct): Handle
73825         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73826         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73827         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73828         re_string_context_at.
73829
73830         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73831         now requires it.
73832         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73833         gl_REGEX now does it for us.
73834         (gl_REGEX): Add test taken from
73835         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73836
73837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73838         Check that large offsets work.  Modernize Autoconf usages.
73839         Prefer "yes" to mean a good thing rather than a bad.
73840         Don't put "#define mkstemp" in config.h, as this might interfere
73841         with standard system headers that "#define mkstemp mkstemp64".
73842
73843         * modules/mkstemp (Depends-on): Add extensions, so that
73844         mkstemp is visible on some platforms.
73845         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73846         (Include): Change to "mkstemp.h" from <stdlib.h>.
73847         (Files): Add mkstemp.h.
73848
73849         * lib/mkstemp.h: New file, since some standard headers
73850         #define mkstemp.
73851         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73852         Include "mkstemp.h".
73853         Make the _LIBC code resemble glibc original more,
73854         e.g., use K&R style.
73855         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73856         (mkstemp): Remove, since mkstemp.h does this for us.
73857         * lib/stdlib--.h: Include mkstemp.h.
73858
73859         Import this patch from libc:
73860
73861         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73862
73863         * lib/tempname.c (__gen_tempname): Change attempts_min
73864         into a macro.  Use preprocessor to decide how to initialize
73865         attempts [Coverity CID 67].
73866
73867 2006-09-20  Bruno Haible  <bruno@clisp.org>
73868
73869         * lib/mkdtemp.c: Import from libc.
73870         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73871                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73872                 attempts_min into a macro.  Use preprocessor to decide how to
73873                 initialize attempts [Coverity CID 67].
73874         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73875                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73876                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73877
73878 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73879
73880         * gnulib-tool (func_exit): New function, to allow to pass the
73881         exit status portably through the trap.  Use everywhere.
73882         (--help, --version): Signal a write error.
73883         (trap): catch SIGPIPE, for write errors.
73884         Exit at the end of the trap, with the correct exit status.
73885
73886 2006-09-19  Karl Berry  <karl@gnu.org>
73887
73888         * doc/gnulib.texi: note about the license texinfo files.
73889
73890 2006-09-19  Eric Blake  <ebb9@byu.net>
73891
73892         * gnulib-tool: Avoid space-tab.
73893
73894 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73895
73896         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73897         that prevented coreutils 6.1 from building.  Problem reported
73898         by Petter Reinholdtsen.
73899
73900 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73901
73902         * gnulib-tool (avoidlist): Fix typo that broke options like
73903         --avoid=lock that are used by coreutils bootstrap.
73904
73905 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73906
73907         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73908         more systematically.
73909
73910 2006-09-18  Jim Meyering  <jim@meyering.net>
73911
73912         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73913
73914 2006-09-18  Bruno Haible  <bruno@clisp.org>
73915
73916         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73917
73918 2006-09-18  Bruno Haible  <bruno@clisp.org>
73919
73920         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73921         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73922         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73923         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73924         * m4/gettext.m4: Require autoconf >= 2.52.
73925         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73926         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73927         of gl_cv_header_inttypes_h.
73928
73929 2006-09-18  Bruno Haible  <bruno@clisp.org>
73930
73931         * lib/javaversion.c: Include configmake.h.
73932
73933 2006-09-18  Bruno Haible  <bruno@clisp.org>
73934
73935         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73936         avoid that the while loops be executed in a subshell.
73937
73938 2006-09-18  Bruno Haible  <bruno@clisp.org>
73939
73940         * MODULES.html.sh (func_module): Break long lines.
73941         Suggested by Bruce Korb <bkorb@gnu.org>.
73942
73943 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73944
73945         Speed up by a factor of 1.12.
73946         * gnulib-tool (nl): New variable.
73947         (func_import): Rewrite include directive extraction to only read each
73948         directive once.
73949
73950 2006-09-17  Bruno Haible  <bruno@clisp.org>
73951
73952         * modules/javaversion (Makefile.am): Remove DEFS setting.
73953         (Depends-on): Add configmake, for PKGDATADIR definition.
73954
73955 2006-09-17  Bruno Haible  <bruno@clisp.org>
73956
73957         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73958
73959 2006-09-17  Bruno Haible  <bruno@clisp.org>
73960
73961         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73962         (func_modules_transitive_closure, func_modules_add_dummy,
73963         func_modules_to_filelist, func_import, func_create_testdir,
73964         func_create_megatestdir, ...): Use it wherever possible.
73965         Suggested by Ralf Wildenhues.
73966
73967 2006-09-16  Karl Berry  <karl@gnu.org>
73968
73969         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73970         to avoid sectioning errors.
73971         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73972         [ifinfo]: blank line after @center-ed titles.
73973         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73974         Spell FSF address consistently with others.
73975         (These changes approved by rms.)
73976
73977 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73978
73979         Speed up by a factor of 1.61.
73980         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73981         already checked module names again.
73982
73983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73984
73985         Speed up by a factor of 1.13.
73986         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73987         for new_files, and the input to func_add_or_update.
73988
73989 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73990
73991         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73992         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73993
73994 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73995
73996         * modules/mkancesdirs (Depends-on): Add fcntl.
73997         * modules/savewd: New file.
73998         * MODULES.html.sh (File system functions): Add savewd.
73999
74000         * modules/configmake (Makefile.am): Add support for the
74001         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74002
74003 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74004
74005         * m4/savewd.m4: New file.
74006
74007 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74008
74009         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74010         (dirchownmod): New arg FD.  All callers changed.
74011         Use FD rather than opening the directory ourself, as opening is
74012         now the caller's responsibility.
74013         * lib/dirchownmod.h: Likewise.
74014         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74015         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74016         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74017         (test_dir): Remove.
74018         (mkancesdirs): Return length of prefix of FILE that has already
74019         been made, or -2 if there is a child doing the work.  Redo
74020         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74021         ".", and treat ".." specially since it might stray back into
74022         already-created areas.  Use a subprocess if necessary.  New arg
74023         WD; all users changed.  MAKE_DIR function should now return 1
74024         if it creates a directory that is not readable.  Return -2 if
74025         a child process is spun off.
74026         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74027         Adjust signature to match code.
74028         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74029         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74030         all users changed.
74031         * lib/savewd.c, lib/savewd.h: New files.
74032
74033 2006-09-15  Jim Meyering  <jim@meyering.net>
74034
74035         * modules/rename-dest-slash: New module.
74036         * MODULES.html.sh (posix_compat): Add it here.
74037
74038         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74039
74040 2006-09-15  Jim Meyering  <jim@meyering.net>
74041
74042         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74043         file.
74044
74045         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74046
74047 2006-09-15  Jim Meyering  <jim@meyering.net>
74048
74049         * lib/rename-dest-slash.c (has_trailing_slash): Use
74050         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74051         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74052         test before testing whether SRC is a directory.
74053         Suggestions from Bruno Haible.
74054
74055         Avoid a warning about an unused variable.
74056         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74057         into the #ifdef block where it's used.
74058
74059         * lib/rename-dest-slash.c: New file.
74060
74061 2006-09-14  Bruno Haible  <bruno@clisp.org>
74062
74063         * lib/allocsa.c: Include <config.h> unconditionally.
74064         * lib/asnprintf.c: Likewise.
74065         * lib/asprintf.c: Likewise.
74066         * lib/c-strcasecmp.c: Likewise.
74067         * lib/c-strcasestr.c: Likewise.
74068         * lib/c-strncasecmp.c: Likewise.
74069         * lib/c-strstr.c: Likewise.
74070         * lib/classpath.c: Likewise.
74071         * lib/clean-temp.c: Likewise.
74072         * lib/concatpath.c: Likewise.
74073         * lib/copy-file.c: Likewise.
74074         * lib/csharpcomp.c: Likewise.
74075         * lib/csharpexec.c: Likewise.
74076         * lib/execute.c: Likewise.
74077         * lib/fatal-signal.c: Likewise.
74078         * lib/findprog.c: Likewise.
74079         * lib/fwriteerror.c: Likewise.
74080         * lib/gl_array_list.c: Likewise.
74081         * lib/gl_array_oset.c: Likewise.
74082         * lib/gl_avltree_list.c: Likewise.
74083         * lib/gl_avltree_oset.c: Likewise.
74084         * lib/gl_avltreehash_list.c: Likewise.
74085         * lib/gl_carray_list.c: Likewise.
74086         * lib/gl_linked_list.c: Likewise.
74087         * lib/gl_linkedhash_list.c: Likewise.
74088         * lib/gl_list.c: Likewise.
74089         * lib/gl_oset.c: Likewise.
74090         * lib/gl_rbtree_list.c: Likewise.
74091         * lib/gl_rbtree_oset.c: Likewise.
74092         * lib/gl_rbtreehash_list.c: Likewise.
74093         * lib/imaxabs.c: Likewise.
74094         * lib/imaxdiv.c: Likewise.
74095         * lib/javacomp.c: Likewise.
74096         * lib/javaexec.c: Likewise.
74097         * lib/javaversion.c: Likewise.
74098         * lib/linebreak.c: Likewise.
74099         * lib/localcharset.c: Likewise.
74100         * lib/lock.c: Likewise.
74101         * lib/mbchar.c: Likewise.
74102         * lib/mbswidth.c: Likewise.
74103         * lib/mkdtemp.c: Likewise.
74104         * lib/pipe.c: Likewise.
74105         * lib/printf-args.c: Likewise.
74106         * lib/printf-parse.c: Likewise.
74107         * lib/progname.c: Likewise.
74108         * lib/progreloc.c: Likewise.
74109         * lib/readlink.c: Likewise.
74110         * lib/sh-quote.c: Likewise.
74111         * lib/stpcpy.c: Likewise.
74112         * lib/stpncpy.c: Likewise.
74113         * lib/strcasecmp.c: Likewise.
74114         * lib/strcasestr.c: Likewise.
74115         * lib/strcspn.c: Likewise.
74116         * lib/striconv.c: Likewise.
74117         * lib/strncasecmp.c: Likewise.
74118         * lib/strnlen1.c: Likewise.
74119         * lib/strstr.c: Likewise.
74120         * lib/strtok_r.c: Likewise.
74121         * lib/tls.c: Likewise.
74122         * lib/tmpdir.c: Likewise.
74123         * lib/unicodeio.c: Likewise.
74124         * lib/unsetenv.c: Likewise.
74125         * lib/vasnprintf.c: Likewise.
74126         * lib/vasprintf.c: Likewise.
74127         * lib/wait-process.c: Likewise.
74128         * lib/xallocsa.c: Likewise.
74129         * lib/xsetenv.c: Likewise.
74130         * lib/xstriconv.c: Likewise.
74131
74132 2006-09-13  Simon Josefsson  <jas@extundo.com>
74133
74134         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74135         that internally, suggested by Ralf Wildenhues
74136         <Ralf.Wildenhues@gmx.de>.
74137
74138 2006-09-13  Simon Josefsson  <jas@extundo.com>
74139
74140         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74141         @LIBOBJS@.
74142         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74143
74144 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74147         longer worry about uses that don't define HAVE_CONFIG_H.
74148         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74149         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74150         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74151         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74152         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74153         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74154         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74155         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74156         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74157         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74158         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74159         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74160         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74161         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74162         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74163         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74164         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74165         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74166         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74167         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74168         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74169         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74170         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74171         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74172         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74173         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74174         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74175         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74176         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74177         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74178         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74179         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74180         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74181         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74182         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74183         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74184         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74185         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74186         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74187         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74188         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74189         Likewise.
74190
74191 2006-09-13  Eric Blake  <ebb9@byu.net>
74192
74193         * lib/getopt.c: Fix typo in last commit.
74194
74195 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74196
74197         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74198         dgettext.
74199
74200 2006-09-12  Jim Meyering  <jim@meyering.net>
74201
74202         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74203         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74204         Reported by Nelson H. F. Beebe.
74205
74206 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74207
74208         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74209         program_invocation_name and program_invocation_short_name are
74210         initialized.
74211         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74212         and program_invocation_short_name to argp.h, so they are visible
74213         to user programs.
74214         * lib/argp.h: Likewise
74215
74216 2006-09-10  Bruno Haible  <bruno@clisp.org>
74217
74218         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74219         m4/inttypes_h.m4, m4/uintmax_t.m4.
74220
74221 2006-09-10  Bruno Haible  <bruno@clisp.org>
74222
74223         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74224         gl_AC_TYPE_UINTMAX_T.
74225
74226 2006-09-10  Bruno Haible  <bruno@clisp.org>
74227
74228         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74229
74230 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74231
74232         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74233         convention.  Text proposed by Bruno Haible.
74234         (struct argp_option): Document the use of N_() wrappers.
74235
74236         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74237         '\v', and translate the two parts separately, instead of feeding
74238         the whole string to gettext.  This allows to exclude
74239         '\v' from the strings visible to the translator by writing doc
74240         strings as N_("..") "\v" N_("..").
74241
74242 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74243
74244         * config/srclist.txt: Undo latest change; the bug was fixed.
74245
74246 2006-09-09  Bruno Haible  <bruno@clisp.org>
74247
74248         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74249         assignments if building a library without libtool.
74250         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74251         in func_emit_lib_Makefile_am.
74252         (func_import): When building a static library libfoo.a, arrange to
74253         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74254         (func_create_testdir): Likewise.
74255         * modules/gc (configure.ac, Makefile.am): If building statically,
74256         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74257         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74258         * modules/striconv (configure.ac, Makefile.am): Likewise.
74259         Based on a suggestion by Ralf Wildenhues.
74260
74261 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74262
74263         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74264         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74265         Also:
74266
74267         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74268         Add year_2050_test to catch glibc bug 2821
74269         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74270
74271         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74272         Prefer #ifdef to #if.
74273
74274         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74275         Return from 'main' instead of calling 'exit'.
74276
74277 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74278
74279         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74280         returned the maximum time_t value rather than (time_t) -1.
74281         Problem originally reported by William Bardwell
74282         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74283
74284         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74285         Moved to here ...
74286         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74287         ... from here.
74288
74289 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74290
74291         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74292         2821 is fixed.
74293
74294 2006-09-08  Jim Meyering  <jim@meyering.net>
74295
74296         Don't make generated files read-only.  That would bother too many
74297         people.  However, do retain the ability to work when targets are
74298         read-only: remove the destination and temporary files before writing
74299         them (when generated via sed or echo), or by using the -f option for
74300         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74301         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74302         * modules/byteswap, modules/configmake, modules/fcntl:
74303         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74304         * modules/localcharset, modules/netinet_in, modules/poll:
74305         * modules/stdbool, modules/stdint, modules/sys_select:
74306         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74307
74308 2006-09-08  Jim Meyering  <jim@meyering.net>
74309
74310         Avoid new build failure on FreeBSD 6.0.
74311         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74312         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74313         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74314
74315 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74316
74317         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74318
74319 2006-09-07  Jim Meyering  <jim@meyering.net>
74320
74321         Fix global typo in last change: use chmod u-w, not chmod u-x.
74322         Spotted by Paul Eggert and Bruce Korb.
74323         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74324         * modules/byteswap, modules/configmake, modules/fcntl:
74325         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74326         * modules/localcharset, modules/netinet_in, modules/poll:
74327         * modules/stdbool, modules/stdint, modules/sys_select:
74328         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74329
74330 2006-09-06  Jim Meyering  <jim@meyering.net>
74331
74332         Make generated files be read-only.
74333         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74334         Ensure that each generated file is now read-only.
74335         * modules/argz: Likewise.
74336         * modules/arpa_inet: Likewise.
74337         * modules/byteswap: Likewise.
74338         * modules/configmake: Likewise.
74339         * modules/fcntl: Likewise.
74340         * modules/fnmatch: Likewise.
74341         * modules/getopt: Likewise.
74342         * modules/glob: Likewise.
74343         * modules/inttypes: Likewise.
74344         * modules/netinet_in: Likewise.
74345         * modules/poll: Likewise.
74346         * modules/stdbool: Likewise.
74347         * modules/stdint: Likewise.
74348         * modules/sys_select: Likewise.
74349         * modules/sys_socket: Likewise.
74350         * modules/sys_stat: Likewise.
74351         * modules/sysexits: Likewise.
74352         * modules/localcharset: Same as above, but continue using temporary
74353         file named "t-$@" (why different?) rather than the "$@-t" used
74354         everywhere else.
74355
74356         * modules/sysexits (Makefile.am): Replace literal occurrences
74357         of "sysexit.h" more readable, and more consistent, "$@".
74358
74359 2006-09-06  Bruno Haible  <bruno@clisp.org>
74360
74361         * modules/striconv: New file.
74362         * modules/xstriconv: New file.
74363         * MODULES.html.sh (Internationalization functions): Add striconv,
74364         xstriconv.
74365
74366 2006-09-06  Bruno Haible  <bruno@clisp.org>
74367
74368         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74369         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74370         not using libtool correctly.
74371
74372 2006-09-06  Bruno Haible  <bruno@clisp.org>
74373
74374         * lib/striconv.h: New file.
74375         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74376         iconvstring.c.
74377         * lib/xstriconv.h: New file.
74378         * lib/xstriconv.c: New file.
74379
74380 2006-09-06  Bruno Haible  <bruno@clisp.org>
74381
74382         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74383         lib_..._LDFLAGS.
74384
74385 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74386
74387         * lib/argz_.h: Sync from Libtool.
74388
74389         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74390                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74391
74392         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74393
74394 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74395
74396         * modules/trim: New file.
74397
74398 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74399
74400         * lib/trim.h: New file.
74401         * lib/trim.c: New file.
74402
74403 2006-09-05  Bruno Haible  <bruno@clisp.org>
74404
74405         * MODULES.html.sh (String handling): Add trim.
74406
74407 2006-09-04  Karl Berry  <karl@gnu.org>
74408
74409         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74410         until next release.
74411
74412 2006-09-03  Bruno Haible  <bruno@clisp.org>
74413
74414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74415         correctly.
74416
74417 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74420         not gl_GETLOADAVG.  Omit unneeded semicolons.
74421         Problems reported by Ralf Wildenhues in
74422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74423         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74424         at the end, which is the usual gnulib style.
74425
74426         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74427         of doing all the work ourselves.
74428         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74429         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74430
74431 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74432
74433         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74434         Problem reported by Ralf Wildenhues in
74435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74436
74437         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74438         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74439
74440 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74443         yesterday's patch by changing test -n to test -z.
74444
74445 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74446
74447         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74448         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74449         the former is now obsolescent.
74450
74451         * modules/chdir-long (Depends-on): Add fcntl.
74452
74453 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74456         obsolescent, and programs should use gnulib instead.
74457         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74458         but with prefixes changed.
74459
74460 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74461
74462         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74463         or stdbool.h, because they might not exist while configuring.
74464
74465         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74466         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74467         does that for us.
74468         (O_DIRECTORY): Remove.
74469
74470 2006-08-31  Eric Blake  <ebb9@byu.net>
74471
74472         * gnulib-tool: Don't let emacs change spaces to TAB.
74473
74474 2006-08-31  Bruno Haible  <bruno@clisp.org>
74475
74476         * gnulib-tool: When calling func_import more than once, do it in a
74477         subshell.
74478         Reported by Eric Blake <ebb9@byu.net>.
74479
74480 2006-08-31  Bruno Haible  <bruno@clisp.org>
74481
74482         * gnulib-tool (nl): Remove variable.
74483         (sed_transform_lib_file): Use more robust test for config-h module.
74484         (func_import): Fix typo in 2006-08-25 patch.
74485
74486 2006-08-31  Bruno Haible  <bruno@clisp.org>
74487
74488         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74489         specified, augment Makefile.am variables instead of assigning them.
74490
74491 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         Work around a bug in both the Linux and SunOS 64-bit kernels:
74494         nanosleep mishandles sleeps for longer than 2**31 seconds.
74495         Problem reported by Frank v Waveren in
74496         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74498         Check for nanosleep bug.
74499         (LIB_NANOSLEEP): Append clock_gettime library if needed.
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         * lib/nanosleep.c (BILLION): New constant.
74508         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74509         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74510         implementation.
74511
74512 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74513
74514         * modules/nanosleep (Depends-on): Add gettime.
74515
74516 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74517         and Simon Josefsson  <jas@extundo.com>
74518         and Oskar Liljeblad  <oskar@osk.mine.nu>
74519
74520         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74521         * gnulib-tool (func_import): New license type 'unmodifiable license
74522         text'.
74523         * modules/fdl: Use it.  Longer description.
74524         * module/gpl, module/lgpl: New files.
74525
74526 2006-08-30  Jim Meyering  <jim@meyering.net>
74527
74528         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74529         shadowing the parameter.
74530
74531 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74532
74533         Sync from Libtool:
74534
74535         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74536
74537         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74538         sharing with gnulib.  Report by Eric Blake.
74539
74540 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         * modules/isapipe: New file.
74543         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74544
74545 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         * modules/configmake (Makefile.am): Add a comment, and omit
74548         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74549         by Bruno Haible.
74550
74551 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74552
74553         * m4/isapipe.m4: New file.
74554
74555 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74556
74557         * lib/isapipe.c, lib/isapipe.h: New files.
74558
74559 2006-08-29  Jim Meyering  <jim@meyering.net>
74560
74561         * modules/configmake (Makefile.am): Make configmake.h depend on
74562         Makefile.  Otherwise, a stale configmake.h could hang around.
74563
74564 2006-08-29  Eric Blake  <ebb9@byu.net>
74565
74566         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74567         resolution of upstream bug 3044.
74568
74569 2006-08-29  Bruno Haible  <bruno@clisp.org>
74570
74571         * modules/localcharset (Depends-on): Add configmake.
74572         (Makefile.am): Remove setting of LIBDIR through DEFS.
74573
74574 2006-08-29  Bruno Haible  <bruno@clisp.org>
74575
74576         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74577         defined.
74578
74579 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74580
74581         * modules/fcntl: New file.
74582         * modules/chdir-safer (Depends-on): Add fcntl.
74583         * modules/fts: Likewise.
74584         * modules/mkdir-p: Likewise.
74585
74586         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74587         This undoes the most recent change, since we're now addressing the
74588         problem in a different way.
74589
74590         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74591         into output, since the output might be called Makefile.am even
74592         if $makefile_name is something different.
74593         (func_import): Use $makefile_am rather than
74594         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74595         empty.
74596
74597         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74598
74599 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74600
74601         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74602         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74603         recent change to stdint.m4, since we're now addressing the problem in a
74604         different way.
74605
74606 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74607
74608         * m4/fcntl_h.m4: New file.
74609
74610 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74611
74612         * lib/fcntl_.h: New file.
74613         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74614         the fcntl module.
74615         * lib/dirchownmod.c: Likewise.
74616         * lib/fts.c: Likewise.
74617
74618         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74619         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74620         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74621         just before including <inttypes.h>, to avoid circular inclusion.
74622
74623 2006-08-28  Jim Meyering  <jim@meyering.net>
74624
74625         * doc/visibility.texi: Actually read and correct the grammar of the
74626         sentence affected by yesterday's change.
74627
74628 2006-08-28  Eric Blake  <ebb9@byu.net>
74629
74630         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74631         needs wrapper.
74632
74633 2006-08-28  Eric Blake  <ebb9@byu.net>
74634
74635         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74636
74637 2006-08-28  Eric Blake  <ebb9@byu.net>
74638
74639         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74640
74641 2006-08-28  Bruno Haible  <bruno@clisp.org>
74642
74643         * modules/c-strstr: New file, from GNU gettext.
74644         * MODULES.html.sh (String handling): Add c-strstr.
74645
74646 2006-08-28  Bruno Haible  <bruno@clisp.org>
74647
74648         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74649         macros.
74650         Reported by Eric Blake.
74651
74652 2006-08-28  Bruno Haible  <bruno@clisp.org>
74653
74654         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74655         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74656         * lib/vasprintf.c: Include errno.h, limits.h.
74657         (EOVERFLOW): New fallback definition.
74658         (vasprintf): Test here whether the string length is > INT_MAX.
74659         * lib/vsnprintf.c: Include errno.h, limits.h.
74660         (EOVERFLOW): New fallback definition.
74661         (vsnprintf): Fix bug when generated string was too long for the buffer.
74662         Test here whether the string length is > INT_MAX.
74663
74664 2006-08-28  Bruno Haible  <bruno@clisp.org>
74665
74666         * lib/inttypes_.h (SCNX*): Remove definitions.
74667         Reported by Eric Blake.
74668
74669 2006-08-28  Bruno Haible  <bruno@clisp.org>
74670
74671         * lib/c-strstr.h: New file, from GNU gettext.
74672         * lib/c-strstr.c: New file, from GNU gettext.
74673
74674 2006-08-28  Bruno Haible  <bruno@clisp.org>
74675
74676         * gnulib-tool: Reorder some statements.
74677
74678 2006-08-28  Bruno Haible  <bruno@clisp.org>
74679
74680         * gnulib-tool: New option --makefile-name.
74681         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74682         $makefile_name.
74683         (func_import): Write $makefile_name to the cache file, and read it from
74684         there unless explicitly specified. Use $makefile_name as file name
74685         instead of Makefile.am. Adjust the recommendations accordingly.
74686
74687 2006-08-28  Bruno Haible  <bruno@clisp.org>
74688
74689         * gnulib-tool (func_verify_module): Check against misapplying patch.
74690
74691 2006-08-28  Bruno Haible  <bruno@clisp.org>
74692
74693         * gnulib-tool (func_relativize, func_relconcat): New functions.
74694         Give an error if --local-dir is given with --update.
74695         Remove trailing slashes from $local_gnulib_dir.
74696         (func_import): Store the relativized $local_gnulib_dir in
74697         gnulib-cache.m4, and read it from there if not specified explicitly.
74698
74699 2006-08-28  Bruno Haible  <bruno@clisp.org>
74700
74701         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74702         is the current directory. Respect also $local_gnulib_dir.
74703
74704 2006-08-28  Bruno Haible  <bruno@clisp.org>
74705             Simon Josefsson  <jas@extundo.com>
74706
74707         BeOS portability.
74708         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74709
74710 2006-08-27  Jim Meyering  <jim@meyering.net>
74711
74712         * doc/visibility.texi: Remove duplicate word: "pointer".
74713
74714 2006-08-26  Bruno Haible  <bruno@clisp.org>
74715
74716         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74717         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74718         (Makefile.am): Create inttypes.h from inttypes_.h.
74719         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74720
74721         * modules/imaxabs: New file.
74722
74723         * modules/imaxdiv: New file.
74724
74725 2006-08-26  Bruno Haible  <bruno@clisp.org>
74726
74727         * m4/inttypes.m4: New file.
74728         * m4/_inttypes_h.m4: Remove file.
74729         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74730         PRI_MACROS_BROKEN.
74731         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74732
74733         * m4/imaxabs.m4: New file.
74734
74735         * m4/imaxdiv.m4: New file.
74736
74737 2006-08-26  Bruno Haible  <bruno@clisp.org>
74738
74739         * lib/inttypes_.h: New file.
74740         * lib/inttypes.h: Remove file.
74741         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74742
74743         * lib/imaxabs.c: New file.
74744
74745         * lib/imaxdiv.c: New file.
74746
74747 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         New config-h module, so that "make" output needn't be cluttered
74750         by -DHAVE_CONFIG_H.
74751         * MODULES.html.sh (Support for building libraries and executables):
74752         Add config-h.
74753         * modules/config-h: New file.
74754         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74755         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74756         the config-h module is used.
74757
74758         New configmake module, so that "make" output needn't be cluttered
74759         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74760         * MODULES.html.sh (Support for building libraries and executables):
74761         Add configmake.
74762         * modules/configmake: New file.
74763
74764 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * m4/config-h.m4: New file.
74767
74768 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * config/srclist.txt: Add elisp-comp.
74771
74772 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74773
74774         * MODULES.html.sh (Support for building libraries and executables):
74775         Add elisp-comp.
74776         * build-aux/elisp-comp: New file.
74777         * modules/elisp-comp: New file.
74778
74779 2006-08-24  Bruno Haible  <bruno@clisp.org>
74780
74781         * gnulib-tool (func_create_testdir): Use non-default values of
74782         sourcebase and m4base.
74783
74784 2006-08-24  Bruno Haible  <bruno@clisp.org>
74785
74786         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74787         HTML structure.
74788
74789 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         * modules/openat (Depends-on): Add lchown.
74792
74793 2006-08-23  Bruno Haible  <bruno@clisp.org>
74794
74795         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74796         of gl_LOCK_EARLY instead of gl_LOCK.
74797
74798 2006-08-23  Bruno Haible  <bruno@clisp.org>
74799
74800         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74801         on OSF/1 to no.
74802         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74803
74804 2006-08-23  Bruno Haible  <bruno@clisp.org>
74805
74806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74807         as unusable.
74808
74809         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74810         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74811         (gl_LOCK): New macro.
74812
74813 2006-08-22  Simon Josefsson  <jas@extundo.com>
74814
74815         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74816         to md5 module.
74817
74818 2006-08-22  Simon Josefsson  <jas@extundo.com>
74819
74820         * MODULES.html.sh: Add "Support for maintaining and release
74821         projects".
74822
74823         * build-aux/gnupload: New file, from coreutils.
74824
74825 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         Avoid the need for AC_LIBSOURCES in m4 macros.
74828         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74829         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74830         * modules/check-version (EXTRA_DIST): Add check-version.h.
74831         * modules/crc (EXTRA_DIST): Add crc.h.
74832         * modules/des (EXTRA_DIST): Add des.h.
74833         * modules/gc (EXTRA_DIST): Add gc.h.
74834         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74835         * modules/getline (EXTRA_DIST): Add getline.h.
74836         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74837         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74838         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74839         * modules/md2 (EXTRA_DIST): Add md2.h.
74840         * modules/md4 (EXTRA_DIST): Add md4.h.
74841         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74842         * modules/read-file (EXTRA_DIST): Add read-file.h.
74843         * modules/readline (EXTRA_DIST): Add readline.h.
74844         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74845         rijndael-api-fst.h.
74846
74847 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         * m4/rijndael.m4 (gl_ARCFOUR):
74850         * m4/arctwo.m4 (gl_ARCTWO):
74851         * m4/check-version.m4 (gl_CHECK_VERSION):
74852         * m4/crc.m4 (gl_CRC):
74853         * m4/des.m4 (gl_DES):
74854         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74855         * m4/gc.m4 (gl_GC):
74856         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74857         * m4/getline.m4 (gl_FUNC_GETLINE):
74858         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74859         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74860         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74861         * m4/md2.m4 (gl_MD2):
74862         * m4/md4.m4 (gl_MD4):
74863         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74864         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74865         * m4/readline.m4 (gl_FUNC_READLINE):
74866         * m4/rijndael.m4 (gl_RIJNDAEL):
74867         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74868         to get the necessary .h files and whatnot.
74869
74870 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74873         gnulib rather than the other way around.
74874         * config/srclistvars.sh (COREUTILS): Remove.
74875
74876 2006-08-22  Jim Meyering  <jim@meyering.net>
74877
74878         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74879
74880         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74881
74882 2006-08-22  Eric Blake  <ebb9@byu.net>
74883
74884         * modules/regexprops-generic: New file.
74885         * MODULES.html.sh (Support for building documentation): List it.
74886
74887 2006-08-22  Eric Blake  <ebb9@byu.net>
74888
74889         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74890         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74892         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74893
74894 2006-08-22  Bruno Haible  <bruno@clisp.org>
74895
74896         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74897         and lib_LTLIBRARIES like the other lib_* variables.
74898
74899 2006-08-22  Bruno Haible  <bruno@clisp.org>
74900
74901         * build-aux/x-to-1.in: New file, from GNU gettext.
74902
74903 2006-08-22  Bruno Haible  <bruno@clisp.org>
74904
74905         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74906         <utmpx.h> exists.
74907
74908 2006-08-22  Bruno Haible  <bruno@clisp.org>
74909
74910         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74911         <utmpx.h> exists.
74912
74913 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         BeOS portability.
74916         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74917         exist.
74918         Problem reported by Bruno Haible.
74919
74920 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         Avoid the need for AC_LIBSOURCES in m4 macros.
74923         * modules/acl (EXTRA_DIST): Add acl.h.
74924         * modules/argmatch (Files): Add m4/argmatch.m4.
74925         (configure.ac): Add gl_ARGMATCH.
74926         (EXTRA_DIST): Renamed from lib_SOURCES, for
74927         consistency with the other modules.  Remove argmatch.c.
74928         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74929         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74930         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74931         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74932         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74933         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74934         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74935         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74936         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74937         * modules/closeout (EXTRA_DIST): Add closeout.h.
74938         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74939         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74940         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74941         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74942         dirname.h; remove basename.c and stripslash.c.
74943         * modules/exclude (EXTRA_DIST): Add exclude.h.
74944         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74945         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74946         * modules/file-type (EXTRA_DIST): Add file-type.h.
74947         * modules/filemode (EXTRA_DIST): Add filemode.h.
74948         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74949         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74950         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74951         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74952         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74953         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74954         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74955         * modules/getdate (EXTRA_DIST): Add getdate.c.
74956         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74957         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74958         * modules/getpass (EXTRA_DIST): Add getpass.h.
74959         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74960         * modules/group-member (EXTRA_DIST): Add group-member.h.
74961         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74962         * modules/hash (EXTRA_DIST): Add hash.h.
74963         * modules/human (EXTRA_DIST): Add human.h.
74964         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74965         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74966         * modules/lchown (EXTRA_DIST): Add lchown.h.
74967         * modules/long-options (EXTRA_DIST): Add long-options.h.
74968         * modules/lstat (EXTRA_DIST): Add lstat.h.
74969         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74970         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74971         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74972         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74973         * modules/memxor (EXTRA_DIST): Add memxor.h.
74974         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74975         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74976         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74977         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74978         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74979         * modules/physmem (EXTRA_DIST): Add physmem.h.
74980         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74981         * modules/posixver (EXTRA_DIST): Add posixver.h.
74982         * modules/quote (EXTRA_DIST): Add quote.h.
74983         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74984         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74985         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74986         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74987         regex_internal.h regexec.c.
74988         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74989         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74990         * modules/same (EXTRA_DIST): Add same.h.
74991         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74992         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74993         * modules/savedir (EXTRA_DIST): Add savedir.h.
74994         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74995         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74996         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74997         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74998         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74999         * modules/strdup (EXTRA_DIST): Add strdup.h.
75000         * modules/strftime (EXTRA_DIST): Add strftime.h.
75001         * modules/strndup (EXTRA_DIST): Add strndup.h.
75002         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75003         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75004         * modules/time_r (EXTRA_DIST): Add time_r.h.
75005         * modules/timespec (EXTRA_DIST): Add timespec.h.
75006         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75007         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75008         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75009         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75010         * modules/userspec (EXTRA_DIST): Add userspec.h.
75011         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75012         * modules/utimens (EXTRA_DIST): Add utimens.h.
75013         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75014         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75015         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75016         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75017         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75018         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75019         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75020         * modules/yesno (EXTRA_DIST): Add yesno.h.
75021
75022 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75023
75024         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75025
75026         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75027         * m4/dev-ino.m4, same-inode.m4: Remove.
75028
75029         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75030         * m4/acl.m4 (AC_FUNC_ACL):
75031         * m4/backupfile.m4 (gl_BACKUPFILE):
75032         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75033         * m4/canon-host.m4 (gl_CANON_HOST):
75034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75035         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75036         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75037         * m4/cloexec.m4 (gl_CLOEXEC):
75038         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75039         * m4/closeout.m4 (gl_CLOSEOUT):
75040         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75041         * m4/dirname.m4 (gl_DIRNAME):
75042         * m4/exclude.m4 (gl_EXCLUDE):
75043         * m4/exitfail.m4 (gl_EXITFAIL):
75044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75045         * m4/file-type.m4 (gl_FILE_TYPE):
75046         * m4/filemode.m4 (gl_FILEMODE):
75047         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75048         * m4/fpending.m4 (gl_FUNC_FPENDING):
75049         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75050         * m4/fts.m4 (gl_FUNC_FTS):
75051         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75052         * m4/getdate.m4 (gl_GETDATE):
75053         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75054         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75055         * m4/getpass.m4 (gl_FUNC_GETPASS):
75056         * m4/gettime.m4 (gl_GETTIME):
75057         * m4/getugroups.m4 (gl_GETUGROUPS):
75058         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75059         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75060         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75061         * m4/hash.m4 (gl_HASH):
75062         * m4/idcache.m4 (gl_IDCACHE):
75063         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75064         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75065         * m4/long-options.m4 (gl_LONG_OPTIONS):
75066         * m4/lstat.m4 (gl_FUNC_LSTAT):
75067         * m4/md5.m4 (gl_MD5):
75068         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75069         * m4/memcoll.m4 (gl_MEMCOLL):
75070         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75071         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75072         * m4/memxor.m4 (gl_MEMXOR):
75073         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75074         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75075         * m4/modechange.m4 (gl_MODECHANGE):
75076         * m4/mountlist.m4 (gl_MOUNTLIST):
75077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75078         * m4/openat.m4 (gl_FUNC_OPENAT):
75079         * m4/pathmax.m4 (gl_PATHMAX):
75080         * m4/physmem.m4 (gl_PHYSMEM):
75081         * m4/posixtm.m4 (gl_POSIXTM):
75082         * m4/posixver.m4 (gl_POSIXVER):
75083         * m4/quote.m4 (gl_QUOTE):
75084         * m4/quotearg.m4 (gl_QUOTEARG):
75085         * m4/readtokens.m4 (gl_READTOKENS):
75086         * m4/readutmp.m4 (gl_READUTMP):
75087         * m4/regex.m4 (gl_REGEX):
75088         * m4/safe-read.m4 (gl_SAFE_READ):
75089         * m4/safe-write.m4 (gl_SAFE_WRITE):
75090         * m4/same.m4 (gl_SAME):
75091         * m4/save-cwd.m4 (gl_SAVE_CWD):
75092         * m4/savedir.m4 (gl_SAVEDIR):
75093         * m4/settime.m4 (gl_SETTIME):
75094         * m4/sha1.m4 (gl_SHA1):
75095         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75096         * m4/stat-macros.m4 (gl_STAT_MACROS):
75097         * m4/stat-time.m4 (gl_STAT_TIME):
75098         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75099         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75100         * m4/strdup.m4 (gl_FUNC_STRDUP):
75101         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75102         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75103         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75104         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75105         * m4/time_r.m4 (gl_TIME_R):
75106         * m4/timespec.m4 (gl_TIMESPEC):
75107         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75108         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75109         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75110         * m4/userspec.m4 (gl_USERSPEC):
75111         * m4/utimecmp.m4 (gl_UTIMECMP):
75112         * m4/utimens.m4 (gl_UTIMENS):
75113         * m4/xalloc.m4 (gl_XALLOC):
75114         * m4/xgetcwd.m4 (gl_XGETCWD):
75115         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75116         * m4/xreadlink.m4 (gl_XREADLINK):
75117         * m4/xstrtod.m4 (gl_XSTRTOD):
75118         * m4/yesno.m4 (gl_YESNO):
75119         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75120         to get the necessary .h files and whatnot.
75121
75122 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75123             Bruno Haible  <bruno@clisp.org>
75124
75125         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75126         /bin/sh understanding of '!' conditional negation.
75127
75128 2006-08-21  Jim Meyering  <jim@meyering.net>
75129
75130         * modules/openat (Depends-on): Really alphabetize.
75131
75132         * modules/acl (Depends-on): Add error and quote.
75133
75134         * check-module (find_included_lib_files): Add at-func.c to the
75135         ok-to-include-more-than-once white list.
75136
75137         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75138
75139 2006-08-21  Bruno Haible  <bruno@clisp.org>
75140
75141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75142         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75143         Reported by Martin Lambers <marlam@marlam.de>.
75144
75145 2006-08-21  Bruno Haible  <bruno@clisp.org>
75146
75147         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75148         specify an installation location, don't emit a noinst_LIBRARIES or
75149         noinst_LTLIBRARIES assignment.
75150
75151 2006-08-21  Bruno Haible  <bruno@clisp.org>
75152
75153         BeOS portability.
75154         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75155         BeOS has mbrtowc() but no <wctype.h>.
75156
75157 2006-08-21  Bruno Haible  <bruno@clisp.org>
75158
75159         BeOS portability.
75160         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75161         exist.
75162
75163 2006-08-21  Bruno Haible  <bruno@clisp.org>
75164
75165         BeOS portability.
75166         * lib/mbchar.h: Include <wctype.h> only if it exists.
75167
75168 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         Remove files that are no longer needed by their respective modules.
75171         * m4/obstack.m4: Remove.
75172         * m4/strerror_r.m4: Remove.
75173         * m4/uint32_t.m4: Remove.
75174         * m4/uintptr_t.m4: Remove.
75175         * m4/ullong_max.m4: Remove.
75176         * m4/xstrtoimax.m4: Remove.
75177         * m4/xstrtoumax.m4: Remove.
75178
75179         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75180         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75181         dependencies now capture this.
75182
75183         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75184         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75185         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75186         * m4/human.m4 (gl_HUMAN): Likewise.
75187         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75188         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75189
75190         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75191
75192         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75193         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75194         stdint.
75195         * m4/human.m4 (gl_HUMAN): Likewise.
75196         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75197         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75198         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75199         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75200         * m4/xstrtol (gl_XSTRTOL): Likewise.
75201
75202         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75203         AC_TYPE_LONG_LONG_INT.
75204         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75205         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75206         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75207         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75208
75209         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75210         on stdbool.
75211
75212         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75213         (gl_PREREQ_XSTRTOUL): Remove.
75214
75215         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75216
75217         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75218         mode.
75219
75220 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75221
75222         Add and change modules to make it easier for coreutils to use
75223         gnulib-tool.
75224         * modules/backupfile (Files): Remove m4/d-ino.m4.
75225         (Depends-on): Add d-ino.
75226         * modules/cycle-check (Depends-on): Add stdint.
75227         (lib_SOURCES): Add cycle-check.h.
75228         * modules/d-ino: New module.
75229         * modules/d-type: New module.
75230         * modules/error (Files): Remove m4/strerror_r.m4.
75231         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75232         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75233         m4/inttypes_h.m4, m4/uintmax_t.m4.
75234         (Depends-on): Add stdint.
75235         (lib_SOURCES): Add fsusage.h.
75236         * modules/getcwd (Files): Remove d-ino.m4.
75237         (Depends-on): Add d-ino.
75238         * modules/getndelim2 (Depends-on): Add stdint.
75239         * modules/glob (Files): Remove m4/d-type.m4.
75240         (Depends-on): Add d-type.
75241         * modules/host-os: New module.
75242         * modules/human (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 human.h.
75246         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75247         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75248         m4/uintmax_t.m4, m4/ulonglong.m4.
75249         (Depends-on): Add stdint.
75250         (EXTRA_DIST): Add inttostr.h.
75251         * modules/lchmod: New module.
75252         * modules/link-follow: New module.
75253         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75254         (Depends-on): Add lchmod.
75255         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75256         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75257         (Depends-on): Add stdint.
75258         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75259         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75260         (Depends-on): Add stdint.
75261         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75262         * modules/perl: New module.
75263         * modules/regex (Depends-on): Add stdint.
75264         * modules/rmdir-errno: New module.
75265         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75266         m4/intmax_t.m4.
75267         (Depends-on): Add stdint.
75268         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75269         m4/uintmax_t.m4.
75270         (Depends-on): Add stdint.
75271         * modules/unlink-busy: New module.
75272         * modules/utimecmp (Depends-on): Add stdint.
75273         * modules/uptime: New module.
75274         * modules/winsz-ioctl: New module.
75275         * modules/winsz-termios: New module.
75276         * modules/xnanosleep (Depends-on): Add nanosleep.
75277         * modules/ullong_max: Remove.
75278         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75279         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75280         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75281         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75282         (Depends-on): Add inttypes.
75283         (lib_SOURCES): Add xstrtol.h.
75284         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75285         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75286         * MODULES.html.sh: Move 'assert' into the assert section.
75287         Move 'dummy' into the linking section.
75288         Remove ullong_max.
75289         Add section for compatibility checks for POSIX:2001 functions,
75290         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75291         winsz-ioctl, and winsz-termios into it.
75292         Add lchmod.
75293         Add top-level Misc section and put host-os, perl, and uptime
75294         into it.
75295
75296 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75299         now assume the stdint module.  Do not include inttypes.h.
75300         * lib/fsusage.h: Likewise.
75301         * lib/getndelim2.c: Likewise.
75302         * lib/human.h: Likewise.
75303         * lib/inttostr.h: Likewise.
75304         * lib/obstack.c: Likewise.
75305         * lib/regex_internal.h: Likewise.
75306         * lib/tempname.c: Likewise.
75307         * lib/utimecmp.c: Likewise.
75308         * lib/xstrtol.h: Likewise.
75309
75310         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75311
75312         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75313         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75314         * lib/xtime.h: Likewise.
75315
75316 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         * modules/openat (Files): Add lib/fchmodat.c.
75319         Fixes problem reported by Jay Youngman.
75320
75321 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75324         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75325
75326 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75327             Bruno Haible  <bruno@clisp.org>
75328
75329         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75330         and is a script that invokes bison. Tighten the code. Add comments.
75331
75332 2006-08-18  Jim Meyering  <jim@meyering.net>
75333
75334         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75335         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75336         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75337         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75338
75339 2006-08-18  Bruno Haible  <bruno@clisp.org>
75340
75341         * modules/bison-i18n: New file.
75342         * MODULES.html.sh (Internationalization functions): Add it.
75343
75344 2006-08-18  Bruno Haible  <bruno@clisp.org>
75345
75346         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75347         sys/statvfs.h. When getmntinfo was found, check its declaration and
75348         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75349
75350 2006-08-18  Bruno Haible  <bruno@clisp.org>
75351
75352         * m4/bison-i18n.m4: New file, from bison.
75353
75354 2006-08-18  Bruno Haible  <bruno@clisp.org>
75355
75356         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75357         (ME_DUMMY): Treat "kernfs" as a dummy.
75358         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75359
75360 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         Update from coreutils.
75363
75364         2006-08-15  Jim Meyering  <jim@meyering.net>
75365
75366         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75367
75368         2006-01-17  Jim Meyering  <jim@meyering.net>
75369
75370         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75371
75372         2006-01-11  Jim Meyering  <jim@meyering.net>
75373
75374         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75375         Check for the lchmod function.
75376
75377 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75378
75379         Update from coreutils.
75380
75381         * lib/__fpending.h: Add copyright notice.
75382         * lib/fprintftime.h: Likewise.
75383         * lib/savedir.c: Use (C) in copyright notice.
75384         * lib/savedir.h: Likewise.
75385
75386         2006-08-15  Jim Meyering  <jim@meyering.net>
75387
75388         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75389         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75390         in support of the EXPECTED_ERRNO macro.
75391         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75392         definitions.  Instead, define the appropriate symbols and include
75393         "at-func.c".
75394         * lib/mkdirat.c (mkdirat): Likewise.
75395         * lib/fchmodat.c (fchmodat): Likewise.
75396         (ENOSYS): Remove definition.
75397         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75398         it.  Don't include "unistd--.h" -- it wasn't ever used.
75399
75400         2006-01-17  Jim Meyering  <jim@meyering.net>
75401
75402         Rewrite fts.c not to change the current working directory,
75403         by using openat, fstatat, fdopendir, etc..
75404
75405         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75406         (HAVE_OPENAT_SUPPORT): Define.
75407         [_LIBC] (fchdir): Don't undef or define; no longer used.
75408         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75409         Now, this `function' always succeeds, and consumes its file descriptor
75410         parameter -- so callers must not close such FDs.  Update callers.
75411         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75412         (diropen): Add parameter, SP.  Adjust all callers.
75413         Implement using diropen_fd, rather than open.
75414         (fts_open): Initialize new member, fts_cwd_fd.
75415         Remove fts_rft-setting code.
75416         (fts_close): Close fts_cwd_fd, if necessary.
75417         (__opendir2): Define in terms of opendir or opendirat,
75418         depending on whether the FST_NOCHDIR flag is set.
75419         (fts_build): Since fts_safe_changedir consumes its FD, and since
75420         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75421         and close the dup'd file descriptor upon failure.
75422         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75423         (fts_safe_changedir): Tweak semantics to reflect that this function
75424         now calls cwd_advance_fd and hence consumes its FD argument.
75425         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75426         [struct FTS] (fts_rft): Remove now-unused member.
75427         [struct FTS] (fts_cycle.state): Improve comment.
75428
75429         * lib/openat.c (openat_needs_fchdir): New function.
75430         * lib/openat.h (openat_needs_fchdir): Declare it.
75431
75432 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75433
75434         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75435         Problem and fix reported by Pádraig Brady in
75436         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75437
75438 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75439
75440         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75441
75442 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75443
75444         * lib/memcoll.c (memcoll): Optimize for the common case where the
75445         arguments are bytewise equal.
75446
75447 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75448
75449         * doc/regexprops-generic.texi: Add a copyright notice.
75450
75451 2006-08-15  Bruno Haible  <bruno@clisp.org>
75452
75453         * modules/tmpdir (License): Change to LGPL.
75454
75455 2006-08-15  Bruno Haible  <bruno@clisp.org>
75456
75457         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75458         module.
75459
75460 2006-08-14  Simon Josefsson  <jas@extundo.com>
75461
75462         * config/srclist.txt: Add gnupload.
75463
75464 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         Change copyright notice from LGPL 2 to GPL 2, since that's the
75467         standard form used in the gnulib repository.
75468         * tests/test-lock.c: Likewise.
75469         * tests/test-stdint.c: Likewise.
75470         * tests/test-tls.c: Likewise.
75471
75472         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75473         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75474         Add copyright notice.
75475
75476         * check-module: Add copyright notice.  Output a copyright
75477         notice if "--version" is specified.
75478         * modules/COPYING: New file.
75479         * tests/test-getaddrinfo.c: Add copyright notice.
75480         * tests/test-verify.c: Likewise.
75481
75482 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         Change copyright notice from LGPL 2 to GPL 2, since that's the
75485         standard form used in the gnulib repository.
75486         * lib/lock.c: LGPL -> GPL.
75487         * lib/lock.h: Likewise.
75488         * lib/strnlen1.c: Likewise.
75489         * lib/strnlen1.h: Likewise.
75490         * lib/tls.c: Likewise.
75491         * lib/tls.h: Likewise.
75492         * lib/tmpdir.c: Likewise.
75493
75494         * lib/TODO: Remove; this belongs only in coreutils.
75495
75496 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75497
75498         Add copyright notices to long-enough files that lack them, since
75499         otherwise the files aren't clearly free.  Use the same notice that
75500         getdate.texi already uses.
75501         * doc/alloca-opt.texi: Add copyright notice.
75502         * doc/alloca.texi: Likewise.
75503         * doc/ctime.texi: Likewise.
75504         * doc/functions.texi: Likewise.
75505         * doc/gcd.texi: Likewise.
75506         * doc/gnulib-tool.texi: Likewise.
75507         * doc/inet_ntoa.texi: Likewise.
75508         * doc/visibility.texi: Likewise.
75509
75510         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75511         * doc/quote.texi: Add copyright notice.
75512
75513         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75514         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75515         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75516         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75517         is now obsolete, and give a pointer to the Sun list.
75518         Add copyright notice.
75519
75520 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75521
75522         * config/srclistvars.sh: Add copyright notice.
75523
75524 2006-08-14  Eric Blake  <ebb9@byu.net>
75525
75526         Import the following change from libc:
75527
75528         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75529
75530         Upstream bug 2997.
75531         * lib/misc/error.c: Add space between program name and message if file
75532         name is missing.
75533
75534 2006-08-12  Karl Berry  <karl@gnu.org>
75535
75536         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75537         remove, these originate in gnulib now.
75538
75539 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75540
75541         * doc/Makefile (standards.info standards.html standards.dvi):
75542         Also depend on make-stds.texi.
75543
75544 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75545
75546         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75547         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75548
75549         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75550         in wchar_t.  Problem reported by Eric Blake.
75551
75552         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75553         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75554         Also, help the compiler to keep LEN in a register.
75555
75556 2006-08-11  Eric Blake  <ebb9@byu.net>
75557
75558         * users.txt: Sort.  Add tar.
75559
75560 2006-08-11  Bruno Haible  <bruno@clisp.org>
75561
75562         * users.txt: New file.
75563
75564 2006-08-11  Bruno Haible  <bruno@clisp.org>
75565
75566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75567         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75568
75569 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75570
75571         * modules/snprintf (Depends-on): Remove minmax.
75572         (Maintainer): Add self and Bruno.
75573
75574 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75575
75576         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75577         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75578         (EOVERFLOW): Define if the system does not.
75579         Do not include "minmax.h"; it wasn't used.
75580         (snprintf): Don't assume size_t promotes to an unsigned type.
75581         Fix bug when generated string was too long for the buffer: the
75582         buffer's contents are supposed to be the initial prefix of the
75583         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75584         exceeds INT_MAX; do the check ourselves.
75585
75586         Import the following changes from libc:
75587
75588         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75589
75590         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75591         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75592         set wc to the byte which couldn't be converted.
75593         (re_string_reconstruct): Don't clear valid_raw_len before calling
75594         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75595         tip_context using re_string_context_at.
75596
75597         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75598
75599         * lib/posix/regex.h: g++ still cannot handled [restrict].
75600
75601         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75602
75603         * lib/posix/regex.h: Remove special handling for VMS.
75604
75605 2006-08-10  Jim Meyering  <jim@meyering.net>
75606
75607         * modules/same-inode: New module.
75608         * modules/dev-ino: New module.
75609         * modules/cycle-check: Depend on these modules, rather than simply
75610         including their .h files.
75611         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75612         required via m4/cycle-check.m4.
75613         * modules/same: Depend on new same-inode module, rather than
75614         including same-inode.h.
75615         * modules/chdir-safer: New file.
75616
75617         * modules/chown (Depends-on): Add stat-macros.
75618
75619 2006-08-10  Jim Meyering  <jim@meyering.net>
75620
75621         * m4/cycle-check.m4: New file.
75622         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75623         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75624
75625 2006-08-10  Eric Blake  <ebb9@byu.net>
75626
75627         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75628         in from original proposal.
75629
75630 2006-08-10  Eric Blake  <ebb9@byu.net>
75631         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75632
75633         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75634         namespace.
75635
75636 2006-08-10  Bruno Haible  <bruno@clisp.org>
75637
75638         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75639         as well.
75640
75641 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75642
75643         Sync from coreutils.
75644
75645         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75646
75647         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75648         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75649
75650 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         * modules/restrict: Remove; no longer needed now that we assume
75653         Autoconf 2.59 or later.
75654         * MODULES.html.sh: Remove 'restrict'.
75655         * modules/argp (Depends-on): Remove 'restrict'.
75656         * modules/base64 (Depends-on): Likewise.
75657         * modules/gc (Depends-on): Likewise.
75658         * modules/getaddrinfo (Depends-on): Likewise.
75659         * modules/glob (Depends-on): Likewise.
75660         * modules/inet_ntop (Depends-on): Likewise.
75661         * modules/inet_pton (Depends-on): Likewise.
75662         * modules/memxor (Depends-on): Likewise.
75663         * modules/regex (Depends-on): Likewise.
75664         * modules/strtok_r (Depends-on): Likewise.
75665         * modules/time_r (Depends-on): Likewise.
75666
75667 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75668
75669         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75670         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75671         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75672         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75673         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75674         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75675         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75676         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75677
75678         Merge from coreutils.
75679         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75680         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75682         * m4/time_r.m4 (gl_TIME_R): Likewise.
75683
75684 2006-08-09  Karl Berry  <karl@gnu.org>
75685
75686         * config/srclist.txt: no more gettext-tools, per Bruno.
75687
75688 2006-08-08  Eric Blake  <ebb9@byu.net>
75689
75690         * modules/verror: New module.
75691         * MODULES.html.sh: Document it.
75692
75693 2006-08-08  Eric Blake  <ebb9@byu.net>
75694
75695         * lib/verror.h, lib/verror.c: New files.
75696
75697 2006-08-08  Eric Blake  <ebb9@byu.net>
75698
75699         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75700         verror_at_line output complies with GNU Coding Standards even when
75701         file is NULL.
75702
75703 2006-08-07  Bruno Haible  <bruno@clisp.org>
75704
75705         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75706         versions of AIX.
75707         Reported by Ralf Wildenhues.
75708
75709 2006-08-07  Bruno Haible  <bruno@clisp.org>
75710
75711         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75712         in an AC_DEFUN. Needed so that the autoconf snippets can use
75713         AC_REQUIRE.
75714
75715 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75716
75717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75718         Initialize pkgdata_DATA.
75719         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75720         overriding it.
75721
75722 2006-08-06  Eric Blake  <ebb9@byu.net>
75723
75724         * lib/error.h: Fold in some upstream changes from glibc.
75725         * lib/error.c: Likewise.
75726
75727 2006-08-04  Bruno Haible  <bruno@clisp.org>
75728
75729         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75730         Make the mostlyclean-local rule depend on mostlyclean-generic.
75731         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75732
75733 2006-07-31  Bruno Haible  <bruno@clisp.org>
75734
75735         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75736         <stdlib.h>, <string.h>.
75737
75738 2006-07-30  Bruno Haible  <bruno@clisp.org>
75739
75740         * modules/readlink (License): Change to LGPL.
75741
75742 2006-07-30  Bruno Haible  <bruno@clisp.org>
75743
75744         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75745         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75746         set PKGDATADIR to point to it.
75747
75748 2006-07-30  Bruno Haible  <bruno@clisp.org>
75749
75750         * modules/csharpexec (configure.ac): Comment out macro invocation.
75751         * modules/javaexec (configure.ac): Likewise.
75752         * modules/javacomp-script (configure.ac): Likewise.
75753
75754         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75755
75756 2006-07-30  Bruno Haible  <bruno@clisp.org>
75757
75758         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75759         linked-list.
75760
75761 2006-07-30  Bruno Haible  <bruno@clisp.org>
75762
75763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75764
75765 2006-07-30  Bruno Haible  <bruno@clisp.org>
75766
75767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75768         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75769         get removed.
75770
75771 2006-07-29  Bruno Haible  <bruno@clisp.org>
75772
75773         Make it possible for gnulib-tool to work with locally modified or
75774         augmented gnulib repositories.
75775         * gnulib-tool (func_usage): Document --local-dir option.
75776         (local_gnulib_dir): New variable.
75777         Handle --local-dir option.
75778         (func_lookup_file): New function.
75779         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75780         (func_get_description, func_get_filelist, func_get_description,
75781         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75782         func_get_automake_snippet, func_get_include_directive,
75783         func_get_license, func_get_maintainer): Use func_lookup_file.
75784         (func_import, func_create_testdir): Use func_lookup_file.
75785
75786 2006-07-29  Bruno Haible  <bruno@clisp.org>
75787
75788         * modules/setenv (Depends-on): Add unistd.
75789
75790 2006-07-29  Bruno Haible  <bruno@clisp.org>
75791
75792         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75793
75794 2006-07-29  Bruno Haible  <bruno@clisp.org>
75795
75796         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75797
75798 2006-07-29  Bruno Haible  <bruno@clisp.org>
75799
75800         * gnulib-tool (import, update): If there is no Makefile.am, look at
75801         aclocal.m4, instead of bailing out.
75802
75803 2006-07-29  Bruno Haible  <bruno@clisp.org>
75804
75805         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75806         Categorize the options by when they are useful.
75807
75808 2006-07-29  Bruno Haible  <bruno@clisp.org>
75809
75810         * gnulib-tool (func_usage): Document option --no-libtool.
75811         Handle option --no-libtool.
75812         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75813         for changed semantics of $libtool variable.
75814         (func_import): Likewise. If libtool is not used, show this through
75815         an option --no-libtool.
75816         (func_create_testdir): Update.
75817
75818 2006-07-29  Bruno Haible  <bruno@clisp.org>
75819
75820         * gnulib-tool (func_import): Extend error message about missing
75821         --doc-base.
75822
75823 2006-07-29  Bruno Haible  <bruno@clisp.org>
75824
75825         * gnulib-tool (func_import): Don't create the $docbase directory if
75826         there is no file to store there.
75827
75828 2006-07-29  Bruno Haible  <bruno@clisp.org>
75829
75830         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75831         relevant, look for configure.ac there, not in the current directory.
75832         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75833
75834 2006-07-29  Bruno Haible  <bruno@clisp.org>
75835
75836         * gnulib-tool (SORT): New variable.
75837         (func_usage): Undocument --assume-autoconf option.
75838         Remove --assume-autoconf option handling.
75839         (autoconf_minversion): Determine from the contents of configure.ac.
75840         (func_import): Remove autoconf_minversion handling.
75841         Suggested by Eric Blake.
75842
75843 2006-07-29  Bruno Haible  <bruno@clisp.org>
75844
75845         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75846
75847 2006-07-29  Bruno Haible  <bruno@clisp.org>
75848
75849         * config/srclist.txt (*setenv.[ch]): Remove rules.
75850
75851 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75852
75853         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75854
75855 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75856
75857         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75858         arpa/inet.h.
75859
75860 2006-07-28  Simon Josefsson  <jas@extundo.com>
75861
75862         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75863         * modules/inet_pton (Depends-on): Likewise.
75864
75865 2006-07-28  Simon Josefsson  <jas@extundo.com>
75866
75867         * m4/netinet_in_h.m4: New file.
75868
75869 2006-07-28  Simon Josefsson  <jas@extundo.com>
75870
75871         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75872         #include's.
75873
75874 2006-07-28  Simon Josefsson  <jas@extundo.com>
75875
75876         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75877         #include's.
75878
75879 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75880
75881         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75882         setgid on directories only if they set these bits.
75883         * lib/modechange.h: Remove obsolete comment about masks.
75884
75885 2006-07-28  Eric Blake  <ebb9@byu.net>
75886
75887         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75888         macro expansion.
75889
75890 2006-07-28  Bruno Haible  <bruno@clisp.org>
75891
75892         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75893
75894 2006-07-28  Bruno Haible  <bruno@clisp.org>
75895
75896         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75897
75898 2006-07-28  Bruno Haible  <bruno@clisp.org>
75899
75900         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75901         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75902         Define fallbacks.
75903         Avoids link error on FreeBSD 4.x.
75904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75905
75906         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75907         encoding.
75908         * lib/mbswidth.c (iswcntrl): Likewise.
75909
75910 2006-07-27  Bruno Haible  <bruno@clisp.org>
75911
75912         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75913         test.
75914
75915 2006-07-27  Bruno Haible  <bruno@clisp.org>
75916
75917         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75918         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75919         defined.
75920
75921 2006-07-26  Eric Blake  <ebb9@byu.net>
75922
75923         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75924
75925 2006-07-26  Eric Blake  <ebb9@byu.net>
75926
75927         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75928         like mingw that lack mkstemp.
75929         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75930         avoid compilation warning on mingw.
75931
75932 2006-07-26  Bruno Haible  <bruno@clisp.org>
75933
75934         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75935         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75936         INT_FAST*_MIN, INTPTR_MIN.
75937
75938 2006-07-25  Bruno Haible  <bruno@clisp.org>
75939
75940         * modules/version-etc (Depends-on): Add stdarg.
75941
75942 2006-07-25  Bruno Haible  <bruno@clisp.org>
75943
75944         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75945         complex commands.
75946
75947 2006-07-25  Bruno Haible  <bruno@clisp.org>
75948
75949         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75950         defined in <stdarg.h> or config.h.
75951
75952 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75953
75954         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75955         (gl_STDIO_SAFER): Remove.
75956
75957 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75958
75959         * MODULES.html.sh (File stream based Input/Output):
75960         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75961         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75962         * modules/fopen-safer, modules/tmpfile-safer: New files.
75963         * modules/stdio-safer: Remove.
75964
75965 2006-07-24  Bruno Haible  <bruno@clisp.org>
75966
75967         * modules/tmpdir: New file.
75968         * MODULES.html.sh (File system functions): Add it.
75969
75970 2006-07-24  Bruno Haible  <bruno@clisp.org>
75971
75972         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75973         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75974
75975 2006-07-24  Bruno Haible  <bruno@clisp.org>
75976
75977         * modules/clean-temp: New file.
75978
75979 2006-07-24  Bruno Haible  <bruno@clisp.org>
75980
75981         * m4/tmpdir.m4: New file, from GNU gettext.
75982
75983 2006-07-24  Bruno Haible  <bruno@clisp.org>
75984
75985         * lib/tmpdir.h: New file, from GNU gettext.
75986         * lib/tmpdir.c: New file, from GNU gettext.
75987
75988 2006-07-24  Bruno Haible  <bruno@clisp.org>
75989
75990         * lib/clean-temp.h: New file, from GNU gettext.
75991         * lib/clean-temp.c: New file, from GNU gettext.
75992
75993 2006-07-23  Eric Blake  <ebb9@byu.net>
75994
75995         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75996         (Depends-on): Add binary-io.
75997
75998 2006-07-23  Eric Blake  <ebb9@byu.net>
75999
76000         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76001
76002 2006-07-23  Eric Blake  <ebb9@byu.net>
76003
76004         * lib/tmpfile-safer.c: New file.
76005         * lib/stdio-safer.h (fopen_safer): Add prototype.
76006         * lib/stdio--.h (tmpfile): Make safer.
76007
76008 2006-07-23  Bruno Haible  <bruno@clisp.org>
76009
76010         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76011         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76012         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76013         gl_linked_remove_at): Use it.
76014
76015 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76016         and Simon Josefsson <jas@extundo.com>
76017
76018         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76019
76020         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76021
76022 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76023
76024         * modules/close-stream: New file.
76025         * modules/closeout (Description): Make it clear that it exits
76026         with a diagnostic on error.
76027         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76028         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76029
76030 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76031
76032         * m4/close-stream.m4: New file.
76033
76034 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76035
76036         * lib/close-stream.c, lib/close-stream.h: New files.
76037
76038 2006-07-22  Bruno Haible  <bruno@clisp.org>
76039
76040         Merge from GNU gettext 0.15.
76041
76042         2006-05-01  Bruno Haible  <bruno@clisp.org>
76043
76044                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76045
76046         2006-07-22  Bruno Haible  <bruno@clisp.org>
76047
76048                 * modules/javaversion: New file.
76049                 * MODULES.html.sh (Java): Add javaversion.
76050
76051         2006-03-12  Bruno Haible  <bruno@clisp.org>
76052
76053                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76054
76055         2005-12-04  Bruno Haible  <bruno@clisp.org>
76056
76057                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76058                 (untested).
76059
76060         2006-06-21  Bruno Haible  <bruno@clisp.org>
76061
76062                 Avoid warnings from recent versions of mcs.
76063                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76064                 -o, -L, -r any more. Use options documented since mcs-1.0
76065                 instead. Similarly for -g.
76066
76067         2005-12-04  Bruno Haible  <bruno@clisp.org>
76068
76069                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76070                 .resources, not .resource.
76071
76072         2005-07-09  Bruno Haible  <bruno@clisp.org>
76073
76074                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76075                 add a .dll suffix.
76076                 Reported by Mark Junker <mjscod@gmx.de>.
76077
76078         2006-07-22  Bruno Haible  <bruno@clisp.org>
76079
76080                 * modules/gettext: Upgrade to gettext-0.15.
76081                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76082                 m4/visibility.m4.
76083                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76084
76085 2006-07-22  Bruno Haible  <bruno@clisp.org>
76086
76087         Merge from GNU gettext 0.15.
76088
76089         2006-03-25  Bruno Haible  <bruno@clisp.org>
76090
76091                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76092
76093         2006-07-21  Bruno Haible  <bruno@clisp.org>
76094
76095                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76096                 "1.1".
76097
76098         2006-05-09  Bruno Haible  <bruno@clisp.org>
76099
76100                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76101                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76102                 for the conftestver execution.
76103
76104         2006-05-01  Bruno Haible  <bruno@clisp.org>
76105
76106                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76107                 optional target-version argument. Verify that the compiler
76108                 groks source of the specified source-version, or add -source
76109                 option as necessary. Verify that the compiler produces
76110                 bytecode in the specified target-version, or add -target and
76111                 -source options as necessary. Make the result of the test
76112                 available as variable CONF_JAVAC. Also log error output in
76113                 config.log.
76114
76115         2006-03-11  Bruno Haible  <bruno@clisp.org>
76116
76117                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76118
76119         2006-05-09  Bruno Haible  <bruno@clisp.org>
76120
76121                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76122                 CLASSPATH_SEPARATOR to a semicolon.
76123
76124         2006-03-12  Bruno Haible  <bruno@clisp.org>
76125
76126                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76127                 available as variable CONF_JAVA, for subsequent autoconf
76128                 tests. Also log error output in config.log.
76129
76130         2006-07-19  Bruno Haible  <bruno@clisp.org>
76131
76132                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76133                 that getline works on glibc2 systems. Needed to avoid trouble
76134                 in relocatable.c.
76135                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76136
76137         2005-12-04  Bruno Haible  <bruno@clisp.org>
76138
76139                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76140                 launcher (untested).
76141
76142         2005-12-04  Bruno Haible  <bruno@clisp.org>
76143
76144                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76145
76146         2006-07-22  Bruno Haible  <bruno@clisp.org>
76147
76148                 * gettext.m4: Update from GNU gettext-0.15.
76149                 * nls.m4: Likewise.
76150                 * po.m4: Likewise.
76151                 * inttypes-pri.m4: Likewise.
76152                 * inttypes-h.m4: Renamed from inttypes.m4.
76153                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76154
76155 2006-07-22  Bruno Haible  <bruno@clisp.org>
76156
76157         Merge from GNU gettext 0.15.
76158
76159         2005-07-05  Bruno Haible  <bruno@clisp.org>
76160
76161                 * printf-args.c (printf_fetchargs): Work around broken
76162                 definition of wint_t on mingw.
76163
76164         2005-02-12  Bruno Haible  <bruno@clisp.org>
76165
76166                 * xallocsa.h: Add extern "C" for C++.
76167
76168         2006-05-17  Bruno Haible  <bruno@clisp.org>
76169
76170                 Cygwin portability.
76171                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76172
76173         2006-04-30  Bruno Haible  <bruno@clisp.org>
76174
76175                 * progreloc.c: Include <mach-o/dyld.h> if available.
76176                 (find_executable): Use _NSGetExecutablePath when possible.
76177
76178         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76179
76180                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76181                 function.
76182
76183         2005-12-29  Bruno Haible  <bruno@clisp.org>
76184
76185                 * progreloc.c (set_program_name_and_installdir): Fix
76186                 compilation error.
76187
76188         2005-12-04  Bruno Haible  <bruno@clisp.org>
76189
76190                 Cygwin portability.
76191                 * progreloc.c: Include <windows.h> also on Cygwin.
76192                 (find_executable): Add support for Cygwin.
76193                 (set_program_name_and_installdir): Handle also platforms with
76194                 nonempty EXEEXT.
76195
76196         2006-07-11  Bruno Haible  <bruno@clisp.org>
76197
76198                 * javacomp.c: Fix a comment.
76199                 Reported by Jim Meyering.
76200
76201         2006-04-30  Bruno Haible  <bruno@clisp.org>
76202
76203                 * javacomp.h (compile_java_class): Add source_version,
76204                 target_version arguments.
76205                 * javacomp.c: Rewritten to choose only a compiler that
76206                 respects the specified source_version and target_version.
76207
76208         2006-06-27  Bruno Haible  <bruno@clisp.org>
76209
76210                 Assume correct S_ISDIR macro.
76211                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76212
76213         2006-07-22  Bruno Haible  <bruno@clisp.org>
76214
76215                 * javaversion.h: New file, from GNU gettext.
76216                 * javaversion.c: New file, from GNU gettext.
76217                 * javaversion.java: New file, from GNU gettext.
76218                 * javaversion.class: New file, from GNU gettext.
76219
76220         2006-05-17  Bruno Haible  <bruno@clisp.org>
76221
76222                 Cygwin portability.
76223                 * javaexec.c (execute_java_class): Test for jview program
76224                 also on Cygwin.
76225
76226         2006-04-09  Bruno Haible  <bruno@clisp.org>
76227
76228                 * fatal-signal.c: Don't include string.h.
76229                 (at_fatal_signal): Use a copying loop instead of memcpy.
76230
76231         2005-12-04  Bruno Haible  <bruno@clisp.org>
76232
76233                 * csharpexec.c: Add support for 'clix' launcher (untested).
76234                 (execute_csharp_using_sscli): New function.
76235                 (execute_csharp_program): Call it.
76236
76237         2006-06-21  Bruno Haible  <bruno@clisp.org>
76238
76239                 Avoid warnings from recent versions of mcs.
76240                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76241                 -o, -L, -r any more. Use options documented since mcs-1.0
76242                 instead. Similarly for -g.
76243
76244         2005-07-09  Bruno Haible  <bruno@clisp.org>
76245
76246                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76247                 add a .dll suffix.
76248                 Reported by Mark Junker <mjscod@gmx.de>.
76249
76250         2006-06-17  Bruno Haible  <bruno@clisp.org>
76251
76252                 * config.charset: Update for NetBSD 3.0.
76253
76254         2006-05-17  Bruno Haible  <bruno@clisp.org>
76255
76256                 Cygwin portability.
76257                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76258
76259         2006-05-16  Bruno Haible  <bruno@clisp.org>
76260
76261                 * localcharset.c [CYGWIN]: Include <windows.h>.
76262                 (get_charset_aliases): For Cygwin, return the same CPxxx
76263                 aliases list as under WIN32.
76264                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76265                 the environment variables. Fall back to GetACP().
76266
76267         2006-04-05  Bruno Haible  <bruno@clisp.org>
76268
76269                 * config.charset: Update Juan Manuel Guerrero's address.
76270
76271         2005-02-12  Bruno Haible  <bruno@clisp.org>
76272
76273                 * allocsa.h: Add extern "C" for C++.
76274
76275         2005-02-10  Bruno Haible  <bruno@clisp.org>
76276
76277                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76278                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76279
76280         2006-07-22  Bruno Haible  <bruno@clisp.org>
76281
76282                 * gettext.h: Update to GNU gettext-0.15.
76283
76284 2006-07-22  Bruno Haible  <bruno@clisp.org>
76285
76286         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76287         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76288         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76289
76290 2006-07-21  Eric Blake  <ebb9@byu.net>
76291
76292         * modules/stdlib-safer: New file.
76293         * MODULES.html.sh (File stream based Input/Output): Add
76294         stdlib-safer.
76295
76296 2006-07-21  Eric Blake  <ebb9@byu.net>
76297
76298         * lib/stdlib-safer.h: New file from coreutils, required by
76299         stdlib--.h.
76300
76301 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76304
76305 2006-07-20  Bruno Haible  <bruno@clisp.org>
76306
76307         * gnulib-tool: Recognize new option --assume-autoconf.
76308         (autoconf_minversion): New variable.
76309         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76310
76311 2006-07-20  Bruno Haible  <bruno@clisp.org>
76312
76313         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76314
76315 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76316
76317         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76318         Reindent and repaginate.
76319
76320 2006-07-19  Derek Price  <derek@ximbiot.com>
76321
76322         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76323         Correct grammar.
76324
76325 2006-07-17  Bruno Haible  <bruno@clisp.org>
76326
76327         * modules/list: New file.
76328         * modules/array-list: New file.
76329         * modules/carray-list, modules/carray-list-tests: New files.
76330         * modules/linked-list, modules/linked-list-tests: New files.
76331         * modules/avltree-list, modules/avltree-list-tests: New files.
76332         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76333         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76334         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76335         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76336         * modules/oset: New file.
76337         * modules/array-oset: New file.
76338         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76339         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76340         * tests/test-carray_list.c: New file.
76341         * tests/test-linked_list.c: New file.
76342         * tests/test-avltree_list.c: New file.
76343         * tests/test-rbtree_list.c: New file.
76344         * tests/test-linkedhash_list.c: New file.
76345         * tests/test-avltreehash_list.c: New file.
76346         * tests/test-rbtreehash_list.c: New file.
76347         * tests/test-avltree_oset.c: New file.
76348         * tests/test-rbtree_oset.c: New file.
76349         * MODULES.html.sh (Container data structures): New section.
76350
76351 2006-07-17  Bruno Haible  <bruno@clisp.org>
76352
76353         * m4/gl_list.m4: New file.
76354
76355 2006-07-17  Bruno Haible  <bruno@clisp.org>
76356
76357         * lib/gl_list.h: New file.
76358         * lib/gl_list.c: New file.
76359         * lib/gl_array_list.h: New file.
76360         * lib/gl_array_list.c: New file.
76361         * lib/gl_carray_list.h: New file.
76362         * lib/gl_carray_list.c: New file.
76363         * lib/gl_linked_list.h: New file.
76364         * lib/gl_linked_list.c: New file.
76365         * lib/gl_anylinked_list1.h: New file.
76366         * lib/gl_anylinked_list2.h: New file.
76367         * lib/gl_avltree_list.h: New file.
76368         * lib/gl_avltree_list.c: New file.
76369         * lib/gl_anyavltree_list1.h: New file.
76370         * lib/gl_anyavltree_list2.h: New file.
76371         * lib/gl_rbtree_list.h: New file.
76372         * lib/gl_rbtree_list.c: New file.
76373         * lib/gl_anyrbtree_list1.h: New file.
76374         * lib/gl_anyrbtree_list2.h: New file.
76375         * lib/gl_anytree_list1.h: New file.
76376         * lib/gl_anytree_list2.h: New file.
76377         * lib/gl_linkedhash_list.h: New file.
76378         * lib/gl_linkedhash_list.c: New file.
76379         * lib/gl_anyhash_list1.h: New file.
76380         * lib/gl_anyhash_list2.h: New file.
76381         * lib/gl_avltreehash_list.h: New file.
76382         * lib/gl_avltreehash_list.c: New file.
76383         * lib/gl_rbtreehash_list.h: New file.
76384         * lib/gl_rbtreehash_list.c: New file.
76385         * lib/gl_anytreehash_list1.h: New file.
76386         * lib/gl_anytreehash_list2.h: New file.
76387
76388         * lib/gl_oset.h: New file.
76389         * lib/gl_oset.c: New file.
76390         * lib/gl_array_oset.h: New file.
76391         * lib/gl_array_oset.c: New file.
76392         * lib/gl_avltree_oset.h: New file.
76393         * lib/gl_avltree_oset.c: New file.
76394         * lib/gl_rbtree_oset.h: New file.
76395         * lib/gl_rbtree_oset.c: New file.
76396         * lib/gl_anytree_oset.h: New file.
76397
76398 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         * m4/mkancesdirs.m4: New file.
76401         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76402         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76403         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76404         it.
76405
76406 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76407
76408         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76409         * lib/mkancesdirs.h: New files.
76410         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76411         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76412         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76413         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76414         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76415         callers changed.  Revamp internals significantly, by not
76416         attempting to create directories that are temporarily more
76417         permissive than the final results.  Do not attempt to use
76418         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76419         This removes some race conditions, fixes some bugs, and simplifies
76420         things.  Use new dirchownmod function to do owner and mode changes.
76421         * lib/mkdir-p.h: Likewise.
76422         * lib/modechange.c (octal_to_mode): New function.
76423         (struct mode_change): New member mentioned.
76424         (make_node_op_equals): New arg mentioned.  All callers changed.
76425         (mode_compile): Keep track of which mode bits the user has explicitly
76426         mentioned.
76427         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76428         New arg PMODE_BITS, to keep track of which mode bits the user
76429         mentioned; it treats S_ISUID and S_ISGID speciall.
76430         All callers changed.
76431         * lib/modechange.h: Likewise.
76432
76433 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76434
76435         * MODULES.html.sh: Add mkancestors.
76436         * modules/mkancesdirs: New module.
76437         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76438         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76439         The chdir-safer and afs files are now orphans; I'll remove them
76440         unless someone speaks up.
76441         Add lib/dirchownmod.c, lib/dirchownmod.h.
76442         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76443         Add lchown, mkancesdirs.
76444         (Maintainer): Add self.
76445
76446 2006-07-15  Karl Berry  <karl@gnu.org>
76447
76448         * gnulib-tool: help message wording/arrangement.
76449
76450 2006-07-14  Simon Josefsson  <jas@extundo.com>
76451
76452         * doc/gnulib.texi (Libtool and Windows): New section.
76453
76454 2006-07-12  Simon Josefsson  <jas@extundo.com>
76455
76456         * modules/gendocs (License): Fix license, approved by Karl.
76457
76458 2006-07-12  Eric Blake  <ebb9@byu.net>
76459
76460         * MODULES.html.sh: Add gendocs.
76461
76462 2006-07-11  Eric Blake  <ebb9@byu.net>
76463
76464         * modules/fdl: New module, to install doc/fdl.texi.
76465         * MODULES.html.sh: Add new section for documentation modules.
76466         * gnulib-tool: Avoid space-tab.
76467         (--doc-base): New option, to manage files from doc.
76468
76469 2006-07-11  Eric Blake  <ebb9@byu.net>
76470
76471         * m4/absolute-header.m4: Fix comments to match recent change.
76472
76473 2006-07-11  Eric Blake  <ebb9@byu.net>
76474
76475         * gnulib-tool: List --doc-base before --tests-base.
76476
76477 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76478
76479         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76480
76481 2006-07-11  Bruno Haible  <bruno@clisp.org>
76482
76483         * README: Mention where to put documentation.
76484
76485 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76486
76487         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76488
76489 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76490
76491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76492         to stdint.m4.
76493
76494 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76495
76496         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76497         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76498         "no/such/file/stdint.h" when there is no such file, so that
76499         the resulting C code can be parsed by dodgy compilers.
76500         Problems reported by Bob Proulx.
76501
76502 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76503
76504         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76505         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76506         macros into the GNU _D_EXACT_NAMLEN.
76507         * lib/savedir.c:  Likewise.
76508         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76509
76510 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76511         and Paul Eggert  <eggert@cs.ucla.edu>
76512
76513         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76514         * m4/savedir.m4:
76515         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76516         macros into the GNU _D_EXACT_NAMLEN.
76517
76518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76519
76520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76521         around the absolute name, to work around a problem with the HP-UX
76522         11.23 native C compiler, reported by Bob Proulx.
76523
76524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76525
76526         * doc/maintain.texi, make-stds.texi: Sync from
76527         <http://savannah.gnu.org/projects/gnustandards>.
76528
76529 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76530
76531         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76532
76533 2006-07-09  Jim Meyering  <jim@meyering.net>
76534
76535         * m4/glob.m4: Remove a doubled word in a comment.
76536
76537 2006-07-09  Jim Meyering  <jim@meyering.net>
76538
76539         * lib/argp-pv.c: Remove a doubled word in a comment.
76540         * lib/check-version.c (check_version): Likewise.
76541         * lib/javacomp.c (compile_java_class): Likewise.
76542
76543 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76544
76545         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76546         for the benefit of people using Autoconf 2.60.  If you want to
76547         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76548         (or m4/onceonly.m4, if pre-2.57) manually.
76549
76550 2006-07-08  Jim Meyering  <jim@meyering.net>
76551
76552         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76553         comment.
76554         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76555         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76556         comment.
76557
76558 2006-07-08  Jim Meyering  <jim@meyering.net>
76559
76560         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76561
76562 2006-07-07  Simon Josefsson  <jas@extundo.com>
76563
76564         * tests/test-crc.c: Change expected crc value, the test vector
76565         were probably computed using the old broken crc.c?
76566
76567 2006-07-06  Simon Josefsson  <jas@extundo.com>
76568
76569         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76570         now the canonical place for the M4 file).
76571
76572         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76573         from the sys_socket dependency now.
76574
76575         * modules/inet_pton (Files): Ditto.
76576
76577         * modules/inet_ntop (Files): Ditto.
76578
76579 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76580
76581         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76582         not gl_PREREQ_GETUSERSHELL.
76583
76584 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76585
76586         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76587         with only one argument, for Autoconf 2.60.
76588         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76589         expand to nothing, so add a shell command to avoid syntax error.
76590         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76591
76592 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76593
76594         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76595
76596 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76597
76598         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76599         no longer needed.  Check for isblank decl.
76600         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76601         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76602         of existence.
76603
76604 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76605
76606         * lib/getloadavg.c: Use __VMS, not VMS.
76607         * lib/getopt.c: Likewise.
76608         * lib/getpagesize.h: Likewise.
76609         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76610         and probably does not work.
76611
76612 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76613
76614         * lib/.cppi-disable: Add wcwidth.
76615         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76616         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76617         (ISGRAPH): Remove.  All uses changed to isgraph.
76618         (FOLD) [!defined _LIBC]: Remove special case.
76619         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76620         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76621         HAVE_ISBLANK.
76622         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76623         case.
76624
76625 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76626
76627         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76628         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76629         brackets.  Other minor changes to suppress some compiler
76630         warnings.
76631
76632 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76633         and Paul Eggert  <eggert@cs.ucla.edu>
76634
76635         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76636         of invoking obsolescent AC_HEADER_DIRENT macro.
76637         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76638         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76639         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76640         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76641         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76642         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76643         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76644         * m4/readdir.m4: Remove; no longer needed.
76645
76646 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76647         and Paul Eggert  <eggert@cs.ucla.edu>
76648
76649         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76650         Don't worry about this obsolete case any more.
76651         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76652         directories.
76653         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76654         worry about this obsolete case any more.
76655         * lib/fts.c: Likewise.
76656         * lib/getcwd.c: Likewise.
76657         * lib/glob.h: Likewise.
76658         * lib/savedir.c: Likewise.
76659
76660 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76661
76662         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76663         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76664         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76665         needed.
76666         All uses removed.
76667         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76668         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76669         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76670         needed.
76671         * m4/getdate.m4 (gl_GETDATE): Likewise.
76672         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76673         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76674         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76675         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76676         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76677         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76678         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76679         needed.
76680
76681 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76682
76683         * lib/memcasecmp.c: Include <limits.h>.
76684         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76685         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76686         Don't assume isdigit succeeds only on '0' through '9'.
76687
76688 2006-07-05  Eric Blake  <ebb9@byu.net>
76689
76690         * modules/getaddrinfo (Depends-on): Add snprintf.
76691
76692 2006-07-05  Eric Blake  <ebb9@byu.net>
76693
76694         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76695         to avoid 'header present but could not be compiled' on cygwin.
76696
76697 2006-07-05  Eric Blake  <ebb9@byu.net>
76698
76699         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76700         missing from netdb.h.
76701         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76702
76703 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76704
76705         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76706         no longer needed.
76707         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76708         * m4/getdate.m4 (gl_GETDATE): Likewise.
76709         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76710         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76711         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76712         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76713         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76714
76715 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76716
76717         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76718         All uses of is_space replaced by isspace.
76719         * lib/exit.h: Don't talk about STDC_HEADERS.
76720         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76721         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76722         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76723         replaced by isprint etc.
76724         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76725         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76726         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76727         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76728         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76729         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76730
76731 2006-07-05  Bruno Haible  <bruno@clisp.org>
76732
76733         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76734         the function exists, before testing against AIX.
76735         Reported by Martin Lambers <marlam@marlam.de>.
76736
76737 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76738
76739         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76740         From Mark D. Baushke.
76741
76742 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76743
76744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76745         to the absolute name, not just one, to bypass Sun C 5.8's
76746         "warning: #include of /usr/include/... may be non-portable".
76747
76748 2006-07-04  Eric Blake  <ebb9@byu.net>
76749
76750         * modules/dirname-tests: New test module.
76751         * tests/test-dirname.c: New file, replacing dirname.c
76752         TEST_DIRNAME section that was recently deleted.
76753
76754 2006-07-04  Bruno Haible  <bruno@clisp.org>
76755
76756         Assume ANSI C header files and <ctype.h> functions.
76757         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76758         (mbsnwidth): Use isprint, iscntrl instead.
76759
76760 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76761
76762         Merge from coreutils.
76763         * MODULES.html.sh: Add xstrtold.
76764         * modules/xstrtold: New file.
76765         * modules/cycle-check (Files): Add lib/same-inode.h.
76766         * modules/dirname (Files): Add m4/double-slash-root.m4.
76767         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76768         * modules/mkdir-p (Files): Add lib/same-inode.h.
76769         * modules/same (Files): Add lib/same-inode.h.
76770
76771 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76772
76773         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76774         This is to keep the terminology clean; POSIX talks about
76775         "absolute pathnames", not "full pathnames", but the GNU
76776         Coding Standards say to use "path" for something else;
76777         so use "absolute" to keep both sides happy.
76778         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76779         Set gl_absolute_header, not gl_full_header_path.
76780         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76781         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76782         All uses changed.
76783
76784         Merge from coreutils.
76785
76786         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76787
76788         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76789         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76790         want to require the building of c-strtod.o.
76791         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76792         needs -lm directly.
76793         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76794
76795         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76798         --as-needed option if available.  Problem reported by Albert Chin in
76799         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76800         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76801         cc merely issues a bunch of annoying warnings for --as-needed
76802         (this problem was reported by Bob Proulx).  Also, try linking with
76803         -lm to detect a bug in binutils 2.16 (this problem was reported
76804         by Ralf Wildenhues).
76805
76806         2006-06-18  Jim Meyering  <jim@meyering.net>
76807
76808         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76809         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76810         macro.
76811         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76812         also check for glibc-2.4's abort-inducing bug.
76813
76814         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76815         Low-probability clean-up should be to use rmdir to get rid of
76816         the just-created directory, not unlink.
76817
76818         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76819         configure fail, and request a bug report to inform us about it.
76820         Add a comment that, barring reports to the contrary, in 2007 we'll
76821         assume ftruncate is universally available.
76822
76823         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76826
76827         2006-03-12  Jim Meyering  <jim@meyering.net>
76828
76829         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76830         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76831         * m4/same.m4 (gl_SAME): Likewise.
76832         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76833
76834         2006-03-11  Eric Blake  <ebb9@byu.net>
76835
76836         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76837         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76838         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76839         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76840
76841 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76842
76843         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76844         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76845         reported by Mark D. Baushke, one in
76846         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76847
76848         Merge from coreutils.
76849
76850         * lib/.cppi-disable: Add stdint_.h.
76851         * lib/.cvsignore: Add stdint.h.
76852
76853         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76854
76855         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76856         both double and long double versions.
76857         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76858         * lib/xstrtold.c: New file.
76859         * lib/xstrtod.h (xstrtold): New decl.
76860
76861         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76862
76863         * lib/filemode.c (setst): Remove.
76864         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76865         (arguably) clearer, and the generated code is a bit smaller on my
76866         Debian GNU/Linux stable x86 host.
76867
76868         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76871         Assume that filemode.h includes sys/types.h and sys/stat.h.
76872         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76873         (ftypelet): Reorder to put common cases first, for efficiency.
76874         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76875         to do 'M'.
76876         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76877         of 10, for compatibility with FreeBSD.  All callers changed.
76878         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76879         types that can't be deduced solely from st_mode.  First arg is now a
76880         const pointer.
76881         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76882         (strmode): Renamed from mode_string.
76883         (filemodestring): New decl.
76884         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76885         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76886         needed.
76887         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76888
76889         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76890
76891         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76892         fsusage.h now does that.  Include fsusage.h first, to test interface.
76893         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76894         at most one method (the old code could have generated decls that
76895         didn't conform to C89, not that this was ever exercised).
76896         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76897
76898         2006-03-19  Jim Meyering  <jim@meyering.net>
76899
76900         Work even in a chroot where d_ino values for entries in "/"
76901         don't match the stat.st_ino values for the same names.
76902         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76903         number, iterate through all entries again, using lstat instead.
76904         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76905         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76906
76907         * lib/getcwd.c (__getcwd): Clarify a comment.
76908         Use memcpy in place of a call to strcpy.
76909
76910         2006-03-12  Jim Meyering  <jim@meyering.net>
76911
76912         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76913         matches that of the current directory (which we're about to chdir ".."
76914         out of), then save the dev-ino of the parent, instead.
76915
76916         * lib/same-inode.h (SAME_INODE): New file/macro.
76917         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76918         Include "same-inode.h", instead.
76919         * lib/same.c: Likewise.
76920         * lib/cycle-check.h: Include "same-inode.h".
76921         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76922         * lib/cycle-check.c (SAME_INODE): Remove definition.
76923         * lib/root-dev-ino.h: Include "same-inode.h".
76924
76925         2006-03-11  Eric Blake  <ebb9@byu.net>
76926
76927         * lib/same.c (same_name): s/base_name/last_component/
76928         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76929         * lib/filenamecat.c (file_name_concat): Likewise.
76930
76931         2006-03-11  Eric Blake  <ebb9@byu.net>,
76932                     Paul Eggert  <eggert@cs.ucla.edu>
76933
76934         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76935         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76936         drive prefix.
76937         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76938         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76939         (last_component): New method.
76940         * lib/dirname.c (dir_len): Determine when drive letters need a
76941         subsequent slash.  Preserve // when it is special.
76942         (dir_name): Don't append dot when drive letter is absolute.
76943         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76944         * lib/basename.c (base_name): New semantics - malloc the result.
76945         Preserve // when it is special.  Preserve relative files that look
76946         like drive letters.
76947         (base_len): Preserve // when it is special.
76948         (last_component): New method, similar to old base_name semantics.
76949         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76950         base_name.  Strip redundant slashes from ///.
76951
76952 2006-07-03  Jim Meyering  <jim@meyering.net>
76953
76954         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76955         macro is used before the first cycle_check call.
76956
76957 2006-07-03  Eric Blake  <ebb9@byu.net>
76958
76959         * modules/dirname (Depends-on): Add xstrndup.
76960
76961 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76964         test cases, so that config.log is a bit easier to follow.
76965
76966 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76969         both are 64 bits, since this seems to be the tradition, and this
76970         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76971         we ever run into a host that prefers long long to long in this
76972         case, we'll need another configure-time test.  Problem reported by
76973         Jim Meyering.
76974
76975 2006-07-02  Eric Blake  <ebb9@byu.net>
76976
76977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76978
76979 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         * modules/inttypes (Depends-on): No longer depends on stdint.
76982         * modules/stdint (Description): Say more about assumptions.
76983         Say that the fast types might differ.  Say macros are used.
76984         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76985         (Makefile.am): Revise list of substituted symbols to match
76986         new stdint.m4.
76987         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76988         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76989         * tests/test-stdint.c (verify_same_types)
76990         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76991         the code conforms to C99/C89.
76992         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76993         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76994
76995 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76998         but fix a bug, by requiring at least 64 bits.
76999         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77000         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77001         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77002         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77003
77004         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77005         changes.  Make 2.59 a prerequisite.  Check and substitute for
77006         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77007         inttypes.h.  Do not use special include files; just use the
77008         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77009         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77010         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77011         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77012         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77013         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77014         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77015         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77016         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77017         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77018         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77019         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77020         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77021         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77022         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77023         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77024         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77025         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77026         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77027         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77028         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77029         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77030         not check for things that C99 does not require, e.g., int8_t.  If
77031         a test isn't needed unless <stdint.h> isn't working, and is
77032         unlikely to be needed for any other reason, then don't do it
77033         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77034         size_t, since we assume C89 freestanding at least.  Do not check
77035         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77036         the right thing even if the types are not defined.  Instead use:
77037         (gl_STDINT_TYPE_PROPERTIES): New macro.
77038         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77039         testing whether <sys/types.h> clashes, as Autoconf does this for
77040         us now.  All uses removed.
77041         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77042         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77043         (gl_CHECK_TYPE_SAME):
77044         Remove; no longer needed.
77045         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77046         exists, since we'll return 0 anyway in that case.
77047         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77048
77049 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77052         possible collision with system files.
77053         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77054         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77055         WCHAR_MIN and WCHAR_MAX in this case.
77056         (<stddef.h>): Do not include; no longer needed.
77057         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77058         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77059         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77060         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77061         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77062         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77063         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77064         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77065         !defined(__c99))]: Include in this case too, since it's harmless
77066         now.
77067         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77068         dangerous to do so.
77069         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77070         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77071         (_STDINT_MIN, _STDINT_MAX): New macros.
77072         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77073         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77074         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77075         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77076         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77077         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77078         macros, not typedefs; this simplifies things quite a bit.
77079         Use long int for all types narrower than int64_t.
77080         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77081         Define in terms of long long int or int64_t or long int,
77082         not int64_t or int32_t.  This saves some compile-time testing.
77083         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77084         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77085         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77086         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77087         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77088         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77089         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77090         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77091         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77092         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77093         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77094         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77095         undef any previous version and define our own version, for
77096         simplicity and consistency with the new macros for types.
77097         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77098         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77099         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77100         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77101         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77102         @WINT_T_SUFFIX@ to keep things simple here.
77103         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77104         Simplify by assuming typical 8/16/32/64 host, since we're
77105         already doing that elsewhere anyway.
77106         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77107         and assume long long int is 64 bits if available.  This
77108         speeds up 'configure'.
77109
77110 2006-07-01  Eric Blake  <ebb9@byu.net>
77111
77112         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77113         Reported by Andreas Buening.
77114
77115 2006-07-01  Eric Blake  <ebb9@byu.net>
77116
77117         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77118
77119 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77120
77121         * lib/getaddrinfo.c: fixed typo
77122
77123 2006-06-29  Jim Meyering  <jim@meyering.net>
77124
77125         * modules/strftime (Maintainer): Add my name, since with the
77126         FPRINTFTIME changes strftime.c has forked from glibc.
77127
77128 2006-06-29  Eric Blake  <ebb9@byu.net>
77129
77130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77131
77132 2006-06-29  Eric Blake  <ebb9@byu.net>
77133
77134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77135
77136 2006-06-29  Eric Blake  <ebb9@byu.net>
77137
77138         * lib/stat_.h: New file.
77139
77140 2006-06-29  Eric Blake  <ebb9@byu.net>
77141
77142         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77143         unused static function.
77144
77145 2006-06-29  Eric Blake  <ebb9@byu.net>
77146
77147         * doc/functions.texi (Function Portability): Document missing lstat
77148         on mingw.
77149
77150 2006-06-29  Eric Blake  <ebb9@byu.net>
77151
77152         * MODULES.html.sh: Add sys_stat.
77153         * modules/sys_stat: New module.
77154         * modules/mkstemp (Depends-on): Add sys_stat.
77155
77156 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77157
77158         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77159
77160 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77161
77162         * m4/c-bs-a.m4: Removed.
77163
77164 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77165
77166         * lib/strftime.c: Assume strftime() exists.
77167
77168 2006-06-29  Derek Price  <derek@ximbiot.com>
77169
77170         * modules/c-bs-a: Removed - \a is C89.
77171         * MODULES.html.sh: Remove c-bs-a.
77172
77173 2006-06-29  Bruno Haible  <bruno@clisp.org>
77174
77175         * modules/wcwidth (License): Change to LGPL.
77176
77177 2006-06-28  Simon Josefsson  <jas@extundo.com>
77178
77179         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77180         on _WIN32.
77181
77182         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77183         getnameinfo.
77184
77185 2006-06-28  Simon Josefsson  <jas@extundo.com>
77186
77187         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77188
77189 2006-06-28  Simon Josefsson  <jas@extundo.com>
77190
77191         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77192         functions there.  It will succeed on Windows XP, but on Windows
77193         2000 and (presumably) earlier, it will fail, and use the internal
77194         re-implementation.
77195         (use_win32_p): New function.
77196         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77197         Support AI_NUMERICSERV to disable getservbyname.
77198         (getnameinfo): New function, only supports
77199         NI_NUMERICHOST|NI_NUMERICSERV for now.
77200
77201         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77202         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77203         getnameinfo.
77204
77205 2006-06-28  Eric Blake  <ebb9@byu.net>
77206
77207         * modules/wcwidth: New file.
77208         * modules/mbchar (Depends-on): Add wcwidth.
77209         * modules/mbswidth (Depends-on): Add wcwidth.
77210         * MODULES.html.sh: Add wcwidth.
77211
77212 2006-06-28  Eric Blake  <ebb9@byu.net>
77213
77214         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77216
77217 2006-06-28  Eric Blake  <ebb9@byu.net>
77218
77219         * lib/xvasprintf.h: Fix comments.
77220
77221 2006-06-28  Eric Blake  <ebb9@byu.net>
77222
77223         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77224         * lib/mbswidth.c (wcwidth): Move from here...
77225         * lib/wcwidth.h: ...to this new file.
77226
77227 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77228
77229         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77230
77231         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77232         it's obsolete.
77233         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77234
77235 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77236
77237         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77238         Autoconf 2.60 says this stuff was obsolete.
77239
77240 2006-06-28  Bruno Haible  <bruno@clisp.org>
77241
77242         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77243
77244 2006-06-28  Bruno Haible  <bruno@clisp.org>
77245
77246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77247         gt_TYPE_WCHAR_T.
77248
77249 2006-06-28  Bruno Haible  <bruno@clisp.org>
77250
77251         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77252         declaration for wcwidth.
77253         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77254
77255 2006-06-28  Bruno Haible  <bruno@clisp.org>
77256
77257         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77258         (mkdir): Define using _mkdir.
77259
77260 2006-06-28  Bruno Haible  <bruno@clisp.org>
77261
77262         * lib/getaddrinfo.h: Fix POSIX URL.
77263         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77264         _WIN32.
77265         (use_win32_p): Make static.
77266         (getaddrinfo): Reject service name if it is empty or does not consist
77267         solely of decimal digits, or if its value is > 65535.
77268         (getnameinfo): Remove useless casts.
77269
77270 2006-06-27  Simon Josefsson  <jas@extundo.com>
77271
77272         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77273         Eggert and Martin Lambers.
77274
77275 2006-06-27  Simon Josefsson  <jas@extundo.com>
77276
77277         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77278         Eggert and Martin Lambers.
77279
77280 2006-06-27  Bruno Haible  <bruno@clisp.org>
77281
77282         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77283         result to 0, not to empty.
77284         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77285
77286 2006-06-27  Bruno Haible  <bruno@clisp.org>
77287
77288         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77289
77290 2006-06-26  Simon Josefsson  <jas@extundo.com>
77291
77292         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77293         present.
77294
77295 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77298         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77300
77301 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77302
77303         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77304
77305 2006-06-26  Bruno Haible  <bruno@clisp.org>
77306
77307         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77308
77309 2006-06-26  Bruno Haible  <bruno@clisp.org>
77310
77311         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77312
77313 2006-06-26  Bruno Haible  <bruno@clisp.org>
77314
77315         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77316         SGI C compiler in pre-C99 mode.
77317         Suggested by Mark D. Baushke and Larry Jones.
77318
77319 2006-06-26  Bruno Haible  <bruno@clisp.org>
77320
77321         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77322         WCHAR_MAX.
77323         Reported by Mark D. Baushke and Larry Jones.
77324
77325 2006-06-26  Bruno Haible  <bruno@clisp.org>
77326
77327         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77328         in pre-C99 mode.
77329         Suggested by Mark D. Baushke and Larry Jones.
77330
77331 2006-06-23  Simon Josefsson  <jas@extundo.com>
77332             Bruno Haible  <bruno@clisp.org>
77333
77334         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77335         Emit mostlyclean-local rule.
77336         (func_emit_tests_Makefile_am): Likewise.
77337         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77338
77339 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77340
77341         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77342
77343 2006-06-23  Bruno Haible  <bruno@clisp.org>
77344
77345         * tests/test-stdint.c: Update to match ISO C 99 Technical
77346         Corrigendum 1.
77347
77348 2006-06-23  Bruno Haible  <bruno@clisp.org>
77349
77350         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77351
77352 2006-06-23  Bruno Haible  <bruno@clisp.org>
77353
77354         * lib/stdint_.h: Treat IRIX like OpenBSD.
77355
77356 2006-06-23  Bruno Haible  <bruno@clisp.org>
77357
77358         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77359         ISO C 99 Technical Corrigendum 1.
77360
77361 2006-06-22  Simon Josefsson  <jas@extundo.com>
77362
77363         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77364         MinGW.
77365
77366 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77367
77368         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77369         needed.  Some compiler complained about some of them.  Problem reported
77370         by Larry Jones in
77371         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77372
77373 2006-06-21  Simon Josefsson  <jas@extundo.com>
77374
77375         * tests/test-getaddrinfo.c: New file.
77376
77377         * modules/getaddrinfo-tests: New file.
77378
77379         * MODULES.html.sh: Add inet_pton.
77380
77381         * modules/inet_pton: New file.
77382
77383 2006-06-21  Simon Josefsson  <jas@extundo.com>
77384
77385         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77386         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77387         of using the (limited) gnulib implementation on Windows XP.
77388
77389         * m4/inet_pton.m4: New file.
77390
77391 2006-06-21  Simon Josefsson  <jas@extundo.com>
77392
77393         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77394         variable.
77395
77396         * lib/socket_.h: Don't define WINVER.
77397
77398         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77399         slightly modified to work in gnulib.
77400
77401 2006-06-21  Simon Josefsson  <jas@extundo.com>
77402
77403         * doc/gnulib.texi (Windows sockets): Add.
77404
77405 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77406
77407         * lib/read-file.c (fread_file): Start with buffer allocation of
77408         0 bytes rather than 1 byte; this simplifies the code.
77409         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77410         code to free buffer and save/restore errno.
77411         (internal_read_file): Remove unused local.
77412
77413 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77416         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77417         Problem reported by Denis Excoffier in
77418         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77419
77420 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77421
77422         * modules/sys_socket, modules/socklen: Include sys/types since
77423         FreeBSD 4.x's sys/socket.h needs it.
77424
77425 2006-06-19  Simon Josefsson  <jas@extundo.com>
77426
77427         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77428
77429 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77432
77433 2006-06-19  Bruno Haible  <bruno@clisp.org>
77434
77435         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77436         and FULL_PATH_INTTYPES_H in angle brackets.
77437         Reported by Mark D. Baushke <mdb@gnu.org>.
77438
77439 2006-06-17  Eric Blake  <ebb9@byu.net>
77440
77441         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77442         errno.
77443
77444 2006-06-17  Bruno Haible  <bruno@clisp.org>
77445
77446         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77447         <sys/inttypes.h>.
77448
77449 2006-06-17  Bruno Haible  <bruno@clisp.org>
77450
77451         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77452         whether errno is declared. Assume <errno.h> declares errno.
77453
77454 2006-06-17  Bruno Haible  <bruno@clisp.org>
77455
77456         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77457
77458 2006-06-17  Bruno Haible  <bruno@clisp.org>
77459
77460         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77461         problem on Solaris 2.5.1.
77462
77463 2006-06-16  Eric Blake  <ebb9@byu.net>
77464
77465         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77466         * lib/unicodeio.c [!defined errno]: Likewise.
77467         * lib/strtol.c [!defined errno]: Likewise.
77468         * lib/strtod.c [!defined errno]: Likewise.
77469
77470 2006-06-15  Eric Blake  <ebb9@byu.net>
77471
77472         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77473
77474 2006-06-15  Eric Blake  <ebb9@byu.net>
77475
77476         * config/srclist.txt (ssize_t.m4): Lose sync.
77477
77478 2006-06-15  Bruno Haible  <bruno@clisp.org>
77479
77480         * modules/stdint (Files): Include m4/full-header-path.m4,
77481         m4/size_max.m4, m4/wchar_t.m4.
77482         (Makefile.am): Many more substitutions.
77483         * modules/stdint-tests: New file.
77484         * tests/test-stdint.c: New file.
77485
77486 2006-06-15  Bruno Haible  <bruno@clisp.org>
77487
77488         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77489         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77490         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77491         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77492         gl_CHECK_TYPE_SAME): New macros.
77493
77494 2006-06-15  Bruno Haible  <bruno@clisp.org>
77495
77496         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77497
77498 2006-06-15  Bruno Haible  <bruno@clisp.org>
77499
77500         * lib/stdint_.h: Rewritten to be fully auto-configured.
77501         Fixes bug on HP-UX/IA64.
77502
77503 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77504
77505         * lib/getdate.y (__attribute__): Don't define if already defined.
77506         Problem reported by Larry Jones.
77507         * lib/utimens.c (__attribute__): Likewise.
77508
77509 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77510
77511         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77512         reported by Andreas Schwab.
77513
77514 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77515             Bruno Haible  <bruno@clisp.org>
77516
77517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77518         check for the declaration of strnlen and a run test that exposes the
77519         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77520         rpl_strndup.
77521
77522 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77523             Bruno Haible  <bruno@clisp.org>
77524
77525         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77526
77527 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77528
77529         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77530         compile test, for Tru64 4.0D.
77531
77532 2006-05-28  Karl Berry  <karl@gnu.org>
77533
77534         * config/srclist.txt (printf-args.c): lose sync.
77535
77536 2006-05-26  Martin Lambers  <marlam@marlam.de>
77537
77538         * lib/getpass.c: Updates the test for the native W32 API, and adds
77539         missing includes, thus fixing compilation warnings.
77540
77541 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77542
77543         * lib/exclude.c (exclude_fnmatch): New function.
77544         (excluded_file_name): Call exclude_fnmatch.
77545         * lib/exclude.h (excluded_file_name): New prototype
77546
77547 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77548
77549         * lib/tempname.c (small_open, large_open): New macros.
77550         (__open, __open64) [!_LIBC]: Remove.
77551         (__gen_tempname): Use small_open and large_open instead of __open
77552         and __open64.  This fixes a portability bug on HP-UX 11.11i
77553         reported by Simon Wing-Tang in
77554         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77555
77556 2006-05-24  Bruno Haible  <bruno@clisp.org>
77557
77558         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77559         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77560         Reported by Thorsten Maerz <torte@netztorte.de> via
77561         Aaron Stone <aaron@serendipity.cx>.
77562
77563 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77566         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77567         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77568         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77569         not really conditional on the cache.
77570         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77571
77572 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77575         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77576         (my_usleep): Don't mishandle maximum value.
77577
77578 2006-05-19  Jim Meyering  <jim@meyering.net>
77579
77580         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77581
77582 2006-05-17  Bruno Haible  <bruno@clisp.org>
77583
77584         Cygwin portability.
77585         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77586
77587 2006-05-17  Bruno Haible  <bruno@clisp.org>
77588
77589         * lib/stdint_.h: Fix recognition of Cygwin.
77590
77591 2006-05-15  Bruno Haible  <bruno@clisp.org>
77592
77593         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77594         on libtool patch by Ralf Wildenhues.
77595
77596 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77597
77598         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77599         test for C99 conformance; (bool) 0.5 is an integer constant
77600         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77601         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77602
77603 2006-05-11  Simon Josefsson  <jas@extundo.com>
77604
77605         * m4/xvasprintf.m4: Fix obvious typo.
77606
77607 2006-05-11  Jim Meyering  <jim@meyering.net>
77608
77609         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77610         James Lemley.
77611
77612 2006-05-10  Simon Josefsson  <jas@extundo.com>
77613
77614         * lib/md4.c: Typo fix, update copyright years.
77615         (K1, K2): Don't use L because it turn computations into 64-bit on
77616         64-bit platforms.
77617
77618 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77619
77620         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77621         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77622         unwanted sign propagation, e.g., on hosts with 64-bit int.
77623         There still are some problems with reeelly weird theoretical hosts
77624         (e.g., 33-bit int) but it's not worth worrying about now.
77625         * lib/sha1.c (rol): Likewise.
77626         (K1, K2, K3, K4): Remove unnecessary L suffix.
77627
77628 2006-05-10  Bruno Haible  <bruno@clisp.org>
77629
77630         * lib/des.c: Cast to avoid warnings.
77631
77632 2006-05-09  Bruno Haible  <bruno@clisp.org>
77633
77634         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77635         (Depends-on): Depend also on xsize, stdarg.
77636         (configure.ac): Add gl_XVASPRINTF.
77637
77638 2006-05-09  Bruno Haible  <bruno@clisp.org>
77639
77640         * m4/xvasprintf.m4: New file.
77641
77642 2006-05-09  Bruno Haible  <bruno@clisp.org>
77643
77644         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77645         (EOVERFLOW): Define fallback value.
77646         (xstrcat): New function.
77647         (xvasprintf): Recognize the special case of a string concatenation.
77648
77649 2006-05-08  Eric Blake  <ebb9@byu.net>
77650
77651         * gnulib-tool (func_version): Base copyright year on CVS date.
77652         (func_emit_copyright_notice): New function.
77653         (func_emit_lib_Makefile_am): Use it.
77654         (func_emit_tests_Makefile_am): Likewise.
77655         (func_import): Likewise.
77656
77657 2006-05-08  Bruno Haible  <bruno@clisp.org>
77658
77659         * modules/stdarg: New file.
77660         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77661
77662 2006-05-08  Bruno Haible  <bruno@clisp.org>
77663
77664         * m4/stdarg.m4: New file, from GNU gettext.
77665
77666 2006-05-08  Bruno Haible  <bruno@clisp.org>
77667
77668         * config/srclist.txt (build-aux/config.rpath): different from latest
77669         release.
77670
77671 2006-05-08  Bruno Haible  <bruno@clisp.org>
77672
77673         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77674
77675 2006-05-05  Jim Meyering  <jim@meyering.net>
77676
77677         * m4/warning.m4: New file, derived from bison's file by the same name.
77678
77679 2006-05-03  Bruno Haible  <bruno@clisp.org>
77680
77681         * lib/stdint_.h: Shorter URL.
77682         * lib/inttypes.h: Likewise.
77683
77684 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77687
77688 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77689
77690         * lib/verify.h: Document the internals better.  Most of this change
77691         was written by Bruno Haible.
77692
77693 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         * doc/verify.texi: New file, partly based on a proposal by
77696         Bruno Haible.
77697
77698 2006-05-02  Bruno Haible  <bruno@clisp.org>
77699
77700         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77701         test from here...
77702         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77703
77704 2006-04-29  Bruno Haible  <bruno@clisp.org>
77705
77706         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77707         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77708
77709 2006-04-29  Bruno Haible  <bruno@clisp.org>
77710
77711         * gnulib-tool: Make --update option actually work.
77712
77713 2006-04-29  Bruno Haible  <bruno@clisp.org>
77714
77715         * doc/gcd.texi: New file.
77716         * doc/gnulib.texi: Include it.
77717
77718 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77719
77720         * lib/getdate.y (get_date): When adding relative date, start with the
77721         initial time, not with the result of the first mktime call.
77722
77723 2006-04-25  Bruno Haible  <bruno@clisp.org>
77724
77725         * gnulib-tool (func_import): Output the include directives in three
77726         blocks, sorted separately.
77727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77728
77729 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77732         to define main with arguments, for C++.  Reported by Eric Blake.
77733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77734         Prefer 'int main ()' to 'int main (void)', for C++.
77735         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77737         for 'main', for C99 and C++.
77738
77739 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77740
77741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77742         Don't assume that exit status -1 is valid.
77743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77744         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77745         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77746         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77747         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77748         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77749         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77750         functions can be used without declaring them, or that you can
77751         exit with status -1.
77752         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77753
77754 2006-04-24  Karl Berry  <karl@gnu.org>
77755
77756         * config/srclist.txt (longdouble.m4): sync lost.
77757
77758 2006-04-24  Eric Blake  <ebb9@byu.net>
77759
77760         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77761
77762 2006-04-24  Bruno Haible  <bruno@clisp.org>
77763
77764         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77765         poll() implementation in AIX.
77766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77767
77768 2006-04-24  Bruno Haible  <bruno@clisp.org>
77769
77770         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77771         assigned exactly once.
77772
77773 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77774             Bruno Haible  <bruno@clisp.org>
77775
77776         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77777         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77778         for AM_CPPFLAGS.
77779
77780 2006-04-23  Bruno Haible  <bruno@clisp.org>
77781
77782         * modules/copy-file: Depend on unistd.
77783         * modules/execute: Likewise.
77784         * modules/fatal-signal: Likewise.
77785         * modules/findprog: Likewise.
77786         * modules/mkdtemp : Likewise.
77787         * modules/pipe: Likewise.
77788         * modules/wait-process: Likewise.
77789
77790 2006-04-23  Bruno Haible  <bruno@clisp.org>
77791
77792         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77793         condition was already detected.
77794         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77795
77796 2006-04-23  Bruno Haible  <bruno@clisp.org>
77797
77798         * lib/copy-file.c: Include <unistd.h> unconditionally.
77799         * lib/execute.c: Likewise.
77800         * lib/fatal-signal.c: Likewise.
77801         * lib/findprog.c: Likewise.
77802         * lib/mkdtemp.c: Likewise.
77803         * lib/pipe.h: Likewise.
77804         * lib/pipe.c: Likewise.
77805         * lib/wait-process.h: Likewise.
77806
77807 2006-04-23  Bruno Haible  <bruno@clisp.org>
77808
77809         * gnulib-tool (func_usage): Fix --import description. Document
77810         --update.
77811         (func_import): Create temporary file in a temporary directory, if
77812         --dry-run is specified. Silence errors from 'grep' when there are no
77813         m4 files in $m4dir.
77814         (func_create_testdir): Silence errors from 'grep' when there are no
77815         m4 files in $m4dir.
77816         Reported by Karl Berry <karl@freefriends.org>.
77817
77818 2006-04-20  Bruno Haible  <bruno@clisp.org>
77819
77820         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77821         one argument, so that the code will be portable to Autoconf 2.60.
77822         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77823         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77824         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77825
77826 2006-04-19  Derek Price  <derek@ximbiot.com>
77827             Eric Blake  <ebb9@byu.net>
77828
77829         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77830         rather than "/full/path.h".  Update comment to match.  Shorten &
77831         generalize m4_translit call via AS_TR_CPP.
77832
77833 2006-04-19  Derek Price  <derek@ximbiot.com>
77834             Eric Blake  <ebb9@byu.net>
77835
77836         * lib/inttypes.h: Correct grammar in comment.
77837
77838 2006-04-18  Derek Price  <derek@ximbiot.com>
77839             Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * modules/inttypes: New file.
77842         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77843
77844 2006-04-18  Derek Price  <derek@ximbiot.com>
77845             Paul Eggert  <eggert@cs.ucla.edu>
77846
77847         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77848         New files.
77849
77850 2006-04-18  Derek Price  <derek@ximbiot.com>
77851             Paul Eggert  <eggert@cs.ucla.edu>
77852
77853         * lib/inttypes.h: New file.
77854         * lib/strtoimax.c: Assume <inttypes.h>.
77855
77856 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77857
77858         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77859         isn't mounted.  Problem reported by Kir Kolyshkin.
77860
77861 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77862
77863         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77864         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77865         Derek R. Price.
77866         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77867         implementation.
77868
77869 2006-04-12  Eric Blake  <ebb9@byu.net>
77870
77871         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77872         is now done automatically by the corresponding Autoconf macro.
77873
77874 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77877         time_r.h.
77878
77879 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         Merge regex changes from libc, removing some of our
77882         POSIX-conformance changes that were rejected and redoing them in a
77883         less-intrusive way.
77884
77885         * lib/regcomp.c (re_compile_internal, init_dfa):
77886         Length arg is now size_t, not Idx.  All uses changed.
77887         (peek_token): Forward decl now says internal_function.
77888         (__re_error_msgid, __re_error_msgid_idx):
77889         Now static rather than extern with attribute_hidden.
77890         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77891         For some reason libc prefers K&R style defns for external functions.
77892         (regerror) [!defined _LIBC]: Likewise.
77893         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77894         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77895         (build_range_exp, build_collating_symbol):
77896         Use K&R-style defn.
77897         (re_compile_fastmap): Use '\0' to memset, not 0.
77898         (utf8_sb_map): Make the calculations more obvious.
77899         (init_dfa, parse_bracket_exp, build_charclass_op):
77900         Call calloc and cast result, as glibc does.
77901         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77902         (build_range_exp, build_collating_symbol):
77903         Now internal functions.
77904
77905         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77906
77907         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77908         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77909         Don't depend on VMS; depend on __VMS instead, for POSIX
77910         namespace cleanness.
77911         (regoff_t): Define to ssize_t, not long int.
77912
77913         Remove the REG_ macros named below.  Instead, make the old names
77914         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77915         __USE_GNU_REGEX.
77916         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77917         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77918         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77919         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77920         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77921         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77922         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77923         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77924         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77925         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77926         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77927         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77928         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77929         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77930         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77931         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77932         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77933         (REG_NREGS):
77934         Remove.  All uses replaced by the old RE_* names.
77935         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77936         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77937         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77938         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77939         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77940         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77941         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77942         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77943         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77944         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77945         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77946         Don't bother having these macros be independent of each others'
77947         values, since they no longer exist in the POSIX name space.
77948
77949         Rename the following member names back to their old names,
77950         unless !__USE_GNU_REGEX.  All uses changed back.
77951         (buffer): Renamed from re_buffer.
77952         (allocated): Renamed from re_allocated.
77953         (used): Renamed from re_used.
77954         (syntax): Renamed from re_syntax.
77955         (fastmap): Renamed from re_fastmap.
77956         (translate): Renamed from re_translate.
77957         (can_be_null): Renamed from re_can_be_null.
77958         (regs_allocated): Renamed from re_regs_allocated.
77959         (fastmap_accurate): Renamed from re_fastmap_accurate.
77960         (no_sub): Renamed from re_no_sub.
77961         (not_bol): Renamed from re_not_bol.
77962         (not_eol): Renamed from re_not_eol.
77963         (newline_anchor): Renamed from re_newline_anchor.
77964         (num_regs): Renamed from rm_num_regs.
77965         (start): Renamed from rm_start.
77966         (end): Renamed from rm_end.
77967
77968         (free_state): Move up a bit.
77969
77970         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77971         #define to be empty.
77972         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77973         when that is what is intended.
77974         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77975         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77976         (MAX): New macro.
77977         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77978         All uses changed back to re_malloc, etc.  It's now the caller's
77979         responsibility to check for overflow; all callers changed.
77980         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77981         (re_x2nrealloc): Remove.
77982         (free_state): Remove decl.
77983
77984         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77985         (re_set_registers, re_exec):
77986         Use K&R-style defn.
77987
77988         2006-01-31  Roland McGrath  <roland@redhat.com>
77989
77990         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77991         Reported by Mike Frysinger <vapier@gentoo.org>.
77992
77993         2006-01-15  Andreas Jaeger  <aj@suse.de>
77994
77995         [BZ #1950]
77996         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77997         build_wcs_upper_buffer change.
77998         (build_wcs_upper_buffer): Change return type.
77999
78000         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78001
78002         * lib/regex_internal.h: Include <stdint.h> if available.
78003
78004         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78005
78006         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78007
78008         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78009
78010         * lib/regcomp.c: Adjust for changed secondary hash function.
78011
78012         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78013
78014         * lib/regex.h: Pretty printing.
78015         Clean up namespace a bit.
78016
78017         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78018
78019         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78020         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78021
78022         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78023                     Ulrich Drepper  <drepper@redhat.com>
78024
78025         [BZ #1302]
78026         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78027         changed.
78028         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78029
78030         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78031
78032         [BZ #281]
78033         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78034         * lib/regcomp.c: Remove unnecessary uses of
78035         unsigned RE_TRANSLATE_TYPE.
78036         * lib/regex_internal.h: Likewise.
78037         * lib/regex_internal.c: Likewise.
78038         * lib/regexec.c: Likewise.
78039         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78040
78041         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78042
78043         * lib/regexec.c (find_recover_state): Remove unnecessary
78044         initialization.
78045         (transit_state_bkref): Make DFA a const pointer.
78046         (get_subexp): Likewise.
78047         (check_arrival): Likewise.
78048         (update_cur_sifted_state): Likewise.
78049         (re_search_internal): Likewise.
78050         (prune_impossible_nodes): Likewise.
78051         (acquire_init_state_context): Likewise.
78052         (proceed_next_node): Likewise.
78053         (set_regs): Likewise.
78054         (free_fail_stack_return): Likewise.
78055         (check_arrival_expand_ecl): Mark DFA parameter as const.
78056         (check_arrival_expand_ecl_sub): Likewise.
78057         (check_subexp_limits): Likewise.
78058         (sub_epsilon_src_nodes):  Likewise.
78059         (add_epsilon_src_nodes):  Likewise.
78060         (merge_state_array): Likewise.
78061         (update_regs): Likewise.
78062         (build_trtable): Likewise.
78063         (sift_states_backward): Mark MCTX parameter as const.
78064         (build_sifted_states): Likewise.
78065         (update_cur_sifted_state): Likewise.
78066         (sift_states_mkref): Likewise.
78067         (check_arrival_expand_ecl): Mark eclosure as const.
78068         (check_dst_limits_calc_pos_1): Likewise.
78069         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78070         pointer.
78071
78072         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78073
78074         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78075         (transit_state_sb): Likewise.
78076         (transit_state_mb): Likewise.
78077         (sift_states_iter_mb): Likewise.
78078         (check_arrival_add_next_nodes): Likewise.
78079         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78080         [_LIBC] (re_search_2_stub): Use mempcpy.
78081
78082         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78083         mbrtowc for very simple UTF-8 case.
78084
78085         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78086         a pointer-to-const.
78087         (re_acquire_state_context): Likewise.
78088         * lib/regex_internal.h: Adjust prototypes.
78089
78090         * lib/regex.c: Prevent using C++ compilers.
78091
78092         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78093         (re_acquire_state_context): Likewise.
78094
78095 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * modules/regex (Depends-on): Add ssize_t.
78098
78099 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78100
78101         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78102         translation table.
78103
78104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78105
78106         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78107
78108 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78109             Bruno Haible  <bruno@clisp.org>
78110
78111         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78112         <sys/types.h> and <inttypes.h>.
78113
78114 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78115
78116         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78117         `__error_t_defined', so argp.h will not typedef the former.
78118
78119 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78120
78121         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78122         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78123         glibc names.  Even if glibc is changed to conform to POSIX, the
78124         traditional names will be available anyway, since regex depends on
78125         the extensions module.  Also, fix a longstanding typo in the
78126         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78127         reported by Emanuele Giaquinta.  Also, change sense of cached
78128         variable, so that the message makes sense.
78129
78130 2006-03-24  Simon Josefsson  <jas@extundo.com>
78131
78132         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78133         including some doc fixes.
78134         (base64_encode_alloc): Fix +1 bug on allocation failures.
78135
78136 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78137
78138         * lib/base64.c (base64_encode): Do not read past end of array with
78139         unsanitized input on systems with CHAR_BIT > 8.
78140
78141 2006-03-24  Eric Blake  <ebb9@byu.net>
78142
78143         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78144
78145 2006-03-22  Karl Berry  <karl@gnu.org>
78146
78147         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78148         * config/srclistvars.sh (COREUTILS): new var.
78149
78150 2006-03-17  Jim Meyering  <jim@meyering.net>
78151
78152         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78153         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78154
78155 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78158         no longer needs it.  Instead, check that regoff_t is as least
78159         as wide as ptrdiff_t.
78160
78161         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78162         so that our regex.h stays compatible with the installed regex.
78163         This is helpful for installers who configure --without-included-regex.
78164         Problem reported by Emanuele Giaquinta.
78165
78166 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78167
78168         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78169         Typedef to long int, not to off_, as POSIX will likely change
78170         in that direction.
78171
78172 2006-03-15  Eric Blake  <ebb9@byu.net>
78173
78174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78175
78176 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78177
78178         * lib/argp-help.c (validate_uparams): Fix typo
78179         * lib/argp-parse.c (argp_default_options): Consistently begin help
78180         messages with a lowercase letter.
78181
78182 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78185         overrun buffers and shouldn't be used (much as gets shouldn't be
78186         used).
78187         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78188
78189 2006-03-08  Simon Josefsson  <jas@extundo.com>
78190
78191         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78192         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78193
78194 2006-03-08  Simon Josefsson  <jas@extundo.com>
78195
78196         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78197         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78198
78199 2006-03-08  Simon Josefsson  <jas@extundo.com>
78200
78201         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78202         signal that configure disabled the device.
78203
78204 2006-03-08  Simon Josefsson  <jas@extundo.com>
78205
78206         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78207         languages.
78208
78209 2006-03-07  Simon Josefsson  <jas@extundo.com>
78210
78211         * modules/getopt (Depends-on): Add unistd.
78212
78213         * modules/unistd: New file.
78214
78215 2006-03-07  Simon Josefsson  <jas@extundo.com>
78216
78217         * modules/gc-random: New file.
78218
78219 2006-03-07  Simon Josefsson  <jas@extundo.com>
78220
78221         * m4/unistd_h.m4: New file.
78222
78223 2006-03-07  Simon Josefsson  <jas@extundo.com>
78224
78225         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78226         test to be side-effect free by storing the result in the cache
78227         variable gl_cv_lib_readline, and moving the assignment of
78228         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78229         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78230
78231 2006-03-07  Simon Josefsson  <jas@extundo.com>
78232
78233         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78234         error on missing devices (the functions will return an error).
78235
78236         * m4/gc.m4: Move random stuff to gc-random.m4
78237
78238 2006-03-07  Simon Josefsson  <jas@extundo.com>
78239
78240         * lib/unistd_.h: New file.
78241
78242 2006-03-07  Simon Josefsson  <jas@extundo.com>
78243
78244         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78245
78246 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78247
78248         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78249         Problem reported by Juan Manuel Guerrero.
78250
78251 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78252
78253         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78254         the unistd module.
78255         * lib/getlogin_r.c: Likewise.
78256         * lib/getlogin_r.h: Likewise.
78257         * lib/glob.c: Likewise.
78258         * lib/pagealign_alloc.c: Likewise.
78259         * lib/unistd_.h: Remove; no longer needed.
78260
78261 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78262
78263         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78264         Add unistd.
78265         * modules/c-stack (Depends-on): Add unistd.
78266         * modules/getlogin_r: Likewise.
78267         * modules/glob: Likewise.
78268         * modules/pagealign_alloc: Likewise.
78269         * modules/unistd (Files): Remove lib/unistd_.h.
78270         (EXTRA_DIST): Remove.
78271         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78272         need unistd_.h.
78273         (MOSTLYCLEANFILES): Remove unistd.h-t.
78274
78275 2006-03-03  Simon Josefsson  <jas@extundo.com>
78276
78277         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78278
78279 2006-03-03  Simon Josefsson  <jas@extundo.com>
78280
78281         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78282         libidn and bison.
78283
78284 2006-03-03  Simon Josefsson  <jas@extundo.com>
78285
78286         * build-aux/maint.mk: Add indent target.
78287
78288 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78289
78290         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78291         our replacement poll.h in any case, to avoid a differing
78292         declaration from a system header.  Seen on AIX.
78293
78294 2006-03-01  Simon Josefsson  <jas@extundo.com>
78295
78296         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78297         <kasal@ucw.cz>.
78298
78299 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * modules/gettime (Depends-on): Add extensions module.
78302         * modules/nanosleep (Depends-on): Likewise.
78303         * modules/settime (Depends-on): Likewise.
78304
78305 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78306
78307         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78308         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78309         pedantically.
78310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78311         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78312
78313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78314         not "==".  Reported by Ralf Wildenhues.
78315
78316 2006-03-01  Karl Berry  <karl@gnu.org>
78317
78318         * doc/Copyright/request-*: new files, synced from gnuorg.
78319
78320 2006-03-01  Karl Berry  <karl@gnu.org>
78321
78322         * config/srclist.txt (Copyright/*): new entries.
78323
78324 2006-02-28  Simon Josefsson  <jas@extundo.com>
78325
78326         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78327
78328 2006-02-27  Simon Josefsson  <jas@extundo.com>
78329
78330         * lib/base64.h: Indent #define's.  From Jim Meyering
78331         <jim@meyering.net>.
78332
78333 2006-02-27  Jim Meyering  <jim@meyering.net>
78334
78335         Revert the change of 2006-02-24, so these files can continue
78336         to be sync'd from gettext.
78337         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78338         of `config.h'.
78339
78340 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78341
78342         * modules/intprops: New file.
78343         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78344         Add intprops.
78345         * modules/getloadavg (Files): Remove lib/intprops.h.
78346         (Depends-on): Add intprops.
78347         * modules/human: Likewise.
78348         * modules/inttostr: Likewise.
78349         * modules/openat: Likewise.
78350         * modules/sig2str: Likewise.
78351         * modules/userspec: Likewise.
78352         * modules/utimecmp: Likewise.
78353         * modules/xnanosleep: Likewise.
78354         * modules/xstrtol: Likewise.
78355
78356 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78357
78358         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78359         * modules/lock-tests (TESTS): Use $(EXEEXT).
78360         * modules/tls-tests: Likewise.
78361         * modules/argp-tests: Likewise.
78362         (check_PROGRAMS): New var, replacing...
78363         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78364
78365 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78366
78367         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78368         `config.h'.
78369
78370 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78373
78374 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78375
78376         Sync from coreutils.
78377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78378         gl_CHDIR_SAFER.
78379
78380 2006-02-22  Jim Meyering  <jim@meyering.net>
78381
78382         Sync from coreutils.
78383         * m4/chdir-safer.m4: New file.
78384
78385 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78388         AT_FDCWD exceeds INT_MAX.
78389         * lib/openat.h (AT_FDCWD): Likewise.
78390
78391 2006-02-17  Eric Blake  <address@hidden>
78392
78393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78394
78395 2006-02-16  Simon Josefsson  <jas@extundo.com>
78396
78397         * modules/getaddrinfo (Depends-on): Add sys_socket.
78398
78399 2006-02-15  Simon Josefsson  <jas@extundo.com>
78400
78401         * build-aux/maint.mk: Add dsyntax-check rule.
78402
78403 2006-02-15  Eric Blake  <ebb9@byu.net>
78404
78405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78406         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78407         'present but cannot compile' warnings on cygwin.
78408         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78409         use ws2tcpip.h if sys/socket.h works.
78410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78411         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78412
78413 2006-02-14  Simon Josefsson  <jas@extundo.com>
78414
78415         * modules/maintainer-makefile (Files): Rename.
78416
78417         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78418         and (the local) Makefile.cfg to maint-cfg.mk.
78419
78420         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78421         to the latter.
78422
78423         * modules/maintainer-makefile: New module.
78424
78425         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78426         severaly stripped to make it possible to build it up from scratch
78427         with reliable tests.
78428
78429         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78430         fixes to permit overriding the default actions when configure and
78431         makefile are not available.
78432
78433 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78434
78435         Sync from coreutils.
78436         * modules/lstat (Depends-on): Don't depend on xalloc.
78437         (License): Change from GPL to LGPL, since this is now simply a
78438         replacement for a libc function.
78439
78440 2006-02-14  Jim Meyering  <jim@meyering.net>
78441
78442         Sync from coreutils.
78443
78444         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78445         failure on deficient systems, and simplify gnulib lgpl dependencies.
78446         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78447         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78448
78449         * lib/xalloc-die.c: Remove unused definition of N_.
78450
78451 2006-02-14  Jim Meyering  <jim@meyering.net>
78452
78453         Sync from coreutils.
78454         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78455         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78456         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78457         double-quote uses of that variable, to accommodate the rare case in
78458         which getmntent is available in none of the libraries checked.  This
78459         happens at least on FreeBSD 5.0.
78460
78461 2006-02-13  Simon Josefsson  <jas@extundo.com>
78462
78463         * gnulib-tool (Usage): Fix --import, from
78464         karl@freefriends.org (Karl Berry).
78465
78466 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78467
78468         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78469
78470 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78471
78472         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78473         "autoupdate" on 2005-12-12.
78474
78475 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78476
78477         * modules/closeout (Depends-on): Remove atexit.
78478
78479 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78480
78481         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78482         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78483
78484 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78485
78486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78487         __EXTENSIONS__ if this causes compilation to fail.  Problem
78488         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78489         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78490
78491 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78492
78493         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78494         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78495         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78496         All uses changed.
78497
78498 2006-01-26  Simon Josefsson  <jas@extundo.com>
78499
78500         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78501         prototype is visible on mingw32.
78502
78503         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78504         for mingw32.
78505
78506         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78507         mingw32).
78508
78509 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78510
78511         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78512         attempt to open for write; this always fails, at least on POSIX
78513         hosts.  This reinstates the 2006-01-09 change, which was
78514         inadvertently removed.
78515
78516 2006-01-26  Bruno Haible  <bruno@clisp.org>
78517
78518         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78519         Reported by Paul Eggert.
78520
78521 2006-01-26  Bruno Haible  <bruno@clisp.org>
78522             Paul Eggert  <eggert@cs.ucla.edu>
78523
78524         * lib/stdbool_.h (_Bool)
78525         [(! (defined __cplusplus || defined __BEOS__)
78526           && !defined __GNUC__
78527           && !(defined __HP_cc || defined __xlc__
78528                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78529                || defined __sgi))]:
78530         #define to signed char in these cases too; this simplifies
78531         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78532         etc., separately) and makes it more conservative.
78533
78534 2006-01-25  Simon Josefsson  <jas@extundo.com>
78535
78536         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78537         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78538         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78539
78540 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78541
78542         * lib/argp-namefrob.h: Bugfix. Remove stray #
78543
78544 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78545
78546         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78547         so that we test the test.
78548         Check for yet another HP-UX cc bug involving *bool |= bool.
78549
78550 2006-01-25  Karl Berry  <karl@gnu.org>
78551
78552         * config/srclist.txt (vasnprintf.c): sync lost.
78553
78554 2006-01-25  Jim Meyering  <jim@meyering.net>
78555
78556         Sync from the stable (b5) branch of coreutils:
78557
78558         * lib/fts.c (fts_children): Don't let close() clobber errno from
78559         failed fchdir().
78560
78561         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78562         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78563         a dangling symlink.  That can also happen at least for ELOOP.
78564         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78565         FYI, this bug predates the inclusion of fts.c in coreutils.
78566
78567         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78568         in their own block, so pre-c99 compilers don't object.
78569
78570         Avoid the double-free (first in fts_read, second in fts_close) that
78571         would occur when an `active' directory is made inaccessible (e.g.,
78572         via chmod a-x) during a traversal.
78573         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78574         before returning.  Reproduce this failure by
78575         mkdir -p a/b; cd a; chmod a-x . b
78576         Reported by Stavros Passas.
78577
78578 2006-01-25  Jim Meyering  <jim@meyering.net>
78579
78580         * lib/fileblocks.c: Remove more useless parentheses.
78581         * lib/readutmp.h: Likewise.
78582
78583 2006-01-25  Bruno Haible  <bruno@clisp.org>
78584
78585         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78586         warnings.
78587         Reported by Paul Eggert.
78588
78589 2006-01-25  Bruno Haible  <bruno@clisp.org>
78590
78591         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78592         rid of a trap command. For Solaris sh.
78593         Reported by Mark D. Baushke <mdb@gnu.org>.
78594
78595 2006-01-24  Simon Josefsson  <jas@extundo.com>
78596
78597         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78598         Bruno.
78599
78600 2006-01-24  Karl Berry  <karl@gnu.org>
78601
78602         * config/srclist.txt (argp-namefrob.h): sync lost.
78603
78604 2006-01-24  Jim Meyering  <jim@meyering.net>
78605
78606         * modules/openat (Files): Add lib/intprops.h.
78607         From Mark D. Baushke.
78608
78609 2006-01-24  Jim Meyering  <jim@meyering.net>
78610
78611         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78612         Reported by Mark D. Baushke.
78613
78614 2006-01-24  Jim Meyering  <jim@meyering.net>
78615
78616         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78617
78618 2006-01-24  Bruno Haible  <bruno@clisp.org>
78619
78620         * modules/strnlen (Maintainer): Change from glibc to all.
78621
78622 2006-01-24  Bruno Haible  <bruno@clisp.org>
78623
78624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78625         Patch by Paul Eggert.
78626
78627 2006-01-24  Bruno Haible  <bruno@clisp.org>
78628
78629         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78630         already has it.
78631         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78632         2005-11-26.
78633
78634         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78635         'signed char' to avoid problems with the built-in _Bool type.
78636         Reported by Paul Eggert on 2005-11-26.
78637
78638 2006-01-24  Bruno Haible  <bruno@clisp.org>
78639
78640         * gnulib-tool (func_import): Avoid constructing complicated sed
78641         expressions inside backquote.
78642         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78643
78644 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78645
78646         These changes imported from libc.
78647         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78648         test and two separate function calls.
78649         * lib/strndup.c (__strndup): Add libc_hidden_def.
78650
78651 2006-01-23  Simon Josefsson  <jas@extundo.com>
78652
78653         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78654         Remove the test_*_SOURCES variable: automake infers it by default.
78655         * modules/tls-tests: Likewise.
78656
78657 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78658
78659         Work around porting bugs reported by Dieter in
78660         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78661         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78662         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78663         Include "getopt.h" first, to check interface.
78664         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78665         !HAVE_DECL_GETENV.
78666         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78667         (__strndup): Revert to K&R-style function dfns, the glibc style.
78668         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78669         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78670         Include strnlen.h first, to get prototype properly.
78671         (strnlen): Renamed from __strnlen.
78672         Remove weak alias.
78673
78674 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78675
78676         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78677
78678 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * config/srclist.txt: Adjust to reflect glibc reorganization.
78681         This affects only comments.
78682
78683 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78684
78685          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78686          Reported by Bruce Korb <bkorb@gnu.org>.
78687
78688 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78689
78690         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78691         to pacify gcc -Wswitch-default.
78692
78693 2006-01-22  Bruno Haible  <bruno@clisp.org>
78694
78695         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78696         temporary buffer for sprintf, take into account the precision also
78697         for 'd', 'i', 'u', 'o', 'x', 'X'.
78698
78699 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78700
78701         * modules/argp-tests: New module
78702         * tests/test-argp.c: New file
78703         * tests/test-argp-2.sh: New file
78704
78705 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78706
78707         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78708         (__argp_base_name): Removed
78709         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78710         typo.
78711         (__argp_base_name): Provide macro definition or extern declaration
78712         depending on the configuration
78713
78714 2006-01-20  Simon Josefsson  <jas@extundo.com>
78715
78716         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78717
78718 2006-01-20  Simon Josefsson  <jas@extundo.com>
78719
78720         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78721
78722 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78723
78724         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78725         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78726         Suggested by Bruno Haible.
78727
78728 2006-01-20  Karl Berry  <karl@gnu.org>
78729
78730         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78731         until changes propagate, I guess.
78732
78733 2006-01-19  Simon Josefsson  <jas@extundo.com>
78734
78735         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78736
78737 2006-01-19  Simon Josefsson  <jas@extundo.com>
78738
78739         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78740
78741 2006-01-19  Simon Josefsson  <jas@extundo.com>
78742
78743         * gnulib-tool: Set check_PROGRAMS.
78744
78745         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78746         modules/des-tests, modules/gc-arcfour-tests,
78747         modules/gc-arctwo-tests, modules/gc-des-tests,
78748         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78749         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78750         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78751         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78752         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78753         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78754         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78755         test_*_SOURCES.
78756
78757 2006-01-18  Simon Josefsson  <jas@extundo.com>
78758
78759         * modules/socklen (Depends-on): Depend on sys_socket.
78760
78761 2006-01-18  Simon Josefsson  <jas@extundo.com>
78762
78763         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78764         modules/des-tests, modules/gc-arcfour-tests,
78765         modules/gc-arctwo-tests, modules/gc-des-tests,
78766         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78767         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78768         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78769         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78770         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78771         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78772         $(EXEEXT) to automake TESTS variable, for mingw32.
78773
78774 2006-01-17  Simon Josefsson  <jas@extundo.com>
78775
78776         * modules/socklen (Include): Need sys/socket.h.
78777
78778 2006-01-17  Bruno Haible  <bruno@clisp.org>
78779
78780         * modules/ssize_t (Include): Add <sys/types.h>.
78781
78782 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78785         it's not portable and it doesn't work with cross-compiles.
78786         Problem reported by Bruno Haible.  Fix missing-$ typo in
78787         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78788         -zignore from being used with Sun's C compiler.
78789
78790 2006-01-12  Simon Josefsson  <jas@extundo.com>
78791
78792         * lib/base64.c: Fix warning, reported by Bruno Haible
78793         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78794
78795 2006-01-12  Bruno Haible  <bruno@clisp.org>
78796
78797         * modules/ldd: New file.
78798         * build-aux/ldd.sh.in: New file.
78799         * MODULES.html.sh (Support for building libraries and executables): Add
78800         ldd.
78801
78802 2006-01-12  Bruno Haible  <bruno@clisp.org>
78803
78804         * m4/ldd.m4: New file.
78805
78806 2006-01-12  Bruno Haible  <bruno@clisp.org>
78807
78808         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78809         endless loop while replacing $auxdir with build-aux.
78810
78811 2006-01-11  Simon Josefsson  <jas@extundo.com>
78812
78813         * lib/stdint_.h (SIZE_MAX): Add missing (.
78814
78815 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         Sync from coreutils.
78818         * lib/md5.c: Fix commentary typos.
78819         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78820         * lib/md5.h (__attribute__): Remove; unused.
78821         * lib/sha1.c: Fix commentary to match md5 better.
78822         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78823         so that we don't need to worry about alignment.  All uses changed.
78824         This merges the 2005-10-28 md5 change into sha1.
78825
78826 2006-01-11  Jim Meyering  <jim@meyering.net>
78827
78828         Sync from coreutils.
78829         * lib/md5.c (OP): Fix spacing.
78830
78831 2006-01-11  Bruno Haible  <bruno@clisp.org>
78832
78833         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78834         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78835         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78836
78837 2006-01-11  Bruno Haible  <bruno@clisp.org>
78838
78839         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78840         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78841         the "early" section as well.
78842
78843 2006-01-11  Bruno Haible  <bruno@clisp.org>
78844
78845         Avoid "ar: no archive members specified" error on MacOS X.
78846         * gnulib-tool (func_modules_add_dummy): New function.
78847         (func_import, func_create_testdir): Invoke it.
78848
78849 2006-01-11  Bruno Haible  <bruno@clisp.org>
78850
78851         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78852         with $auxdir in AC_CONFIG_FILES statements.
78853
78854 2006-01-11  Bruno Haible  <bruno@clisp.org>
78855
78856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78857         Initialize also noinst_HEADERS to empty.
78858
78859 2006-01-11  Bruno Haible  <bruno@clisp.org>
78860
78861         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78862         variables.
78863         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78864         autoreconf.
78865
78866 2006-01-11  Bruno Haible  <bruno@clisp.org>
78867
78868         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78869         overridable by the user.
78870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78871
78872 2006-01-10  Simon Josefsson  <jas@extundo.com>
78873
78874         * modules/sys_socket: New file.
78875
78876 2006-01-10  Simon Josefsson  <jas@extundo.com>
78877
78878         * m4/sys_socket_h.m4: New file.
78879
78880 2006-01-10  Simon Josefsson  <jas@extundo.com>
78881
78882         * lib/socket_.h: New file.
78883
78884 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * modules/readutmp (Maintainer): Add myself.
78887
78888 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78891         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78892         People who are still concerned with buggy memcmp implementations
78893         can invoke gl_FUNC_MEMCMP themselves.
78894
78895 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78896
78897         * lib/regex_internal.h (BITSET_WORD_BITS):
78898         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78899         preprocessor mishandles large unsigned values as if they were signed.
78900         Problem reported by Claudio Fontana in
78901         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78902
78903 2006-01-10  Jim Meyering  <jim@meyering.net>
78904
78905         Avoid the double-free (first in fts_read, second in fts_close) that
78906         would occur when an `active' directory is made inaccessible (e.g.,
78907         via chmod a-x) during a traversal.
78908         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78909         before returning.  Reproduce this failure by
78910         mkdir -p a/b; cd a; chmod a-x . b
78911         Reported by Stavros Passas.
78912
78913         Sync from coreutils.
78914         * lib/sha1.c: Tweak grammar in a comment.
78915
78916 2006-01-10  Jim Meyering  <jim@meyering.net>
78917
78918         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78919         Patch by Joerg Sonnenberger.
78920
78921 2006-01-10  Bruno Haible  <bruno@clisp.org>
78922
78923         * modules/readutmp: Depend on module free.
78924         * modules/strtok_r: Depend on module restrict.
78925
78926 2006-01-10  Bruno Haible  <bruno@clisp.org>
78927
78928         * modules/gettext (configure.ac): Add an invocation of
78929         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78930
78931 2006-01-10  Bruno Haible  <bruno@clisp.org>
78932
78933         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78934         Reported by Werner Lemberg <wl@gnu.org>.
78935
78936 2006-01-10  Bruno Haible  <bruno@clisp.org>
78937
78938         * lib/localcharset.c: Update from GNU gettext.
78939
78940 2006-01-10  Bruno Haible  <bruno@clisp.org>
78941
78942         * lib/argp.h (__const): Remove macro. Use const instead.
78943         * lib/argp-fmtstream.h (__const): Likewise.
78944         * lib/glob_.h (__const): Remove macro.
78945         * lib/glob-libc.h: Use const instead of __const.
78946
78947 2006-01-10  Bruno Haible  <bruno@clisp.org>
78948
78949         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78950         variable.
78951         Needed to avoid an automake error regarding the 'gettext' module.
78952
78953 2006-01-09  Simon Josefsson  <jas@extundo.com>
78954
78955         * modules/inet_ntop (Depends-on): Add restrict.
78956
78957 2006-01-09  Simon Josefsson  <jas@extundo.com>
78958
78959         * modules/gc-rijndael-tests (License): Put under LGPL.
78960
78961         * modules/gc-des-tests (License): Likewise.
78962
78963         * modules/gc-arcfour-tests (License): Likewise.
78964
78965         * modules/gc-arctwo-tests (License): Likewise.
78966
78967         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78968
78969         * modules/gc-hmac-sha1-tests (Files): Likewise.
78970
78971         * modules/gc-hmac-md5-tests (License): Likewise.
78972
78973         * modules/gc-sha1-tests (License): Likewise.
78974
78975         * modules/gc-md5-tests (License): Likewise.
78976
78977         * modules/gc-md4-tests (License): Likewise.
78978
78979         * modules/gc-md2-tests (License): Likewise.
78980
78981         * modules/gc-tests (License): Likewise.
78982
78983         * modules/des-tests (License): Likewise.
78984
78985         * modules/md4-tests (License): Likewise.
78986
78987         * modules/md2-tests (License): Likewise.
78988
78989 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         Sync from coreutils:
78992
78993         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78994         * modules/lib-ignore: New file.
78995         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78996         chdir-safer.m4, lchmod.m4.
78997         * modules/openat: Add mkdirat.c, openat-priv.h.
78998
78999 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         Sync from coreutils.
79002         * m4/lib-ignore.m4: New file.
79003         * m4/lchmod.m4: New file.
79004
79005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79006
79007         Sync from coreutils.
79008         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79009         for write access: POSIX says that must fail.
79010         * lib/fts.c (diropen): Likewise.
79011         * lib/save-cwd.c (save_cwd): Likewise.
79012         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79013         well, for minor improvements on hosts that lack O_DIRECTORY.
79014         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79015         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79016         Fall back on chown if open failed with EACCES.
79017
79018         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79019         Report an error at compile-time if only a 1-second nominal clock
79020         resolution is found.
79021
79022         * lib/lchmod.h: New file.
79023         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79024         (make_dir_parents): Use lchown rather than chown, and
79025         lchmod rather than chmod.
79026
79027         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79028         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79029         "proc" reported by n0dalus.
79030
79031         * lib/mountlist.c: Include <limits.h>.
79032         (dev_from_mount_options)
79033         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79034         New function.  It no longer assumes "dev=" has the System V meaning
79035         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79036         (read_file_system_list)
79037         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79038         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79039         dev= in that case.
79040
79041         * lib/posixtm.h (PDS_PRE_2000): New macro.
79042         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79043         allow_century.  All usages changed.  Reject dates outside the range
79044         1969-1999 if PDS_PRE_2000 is used.
79045
79046 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79047
79048         Sync from coreutils.
79049         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79050         (Time of day items): Mention the possibility of leap seconds.
79051         Problem reported by Dr. David Alan Gilbert.
79052
79053 2006-01-09  Jim Meyering  <jim@meyering.net>
79054
79055         Sync from coreutils.
79056
79057         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79058
79059         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79060
79061         * lib/modechange.c (mode_compile): Reject an invalid mode string
79062         that starts with an octal digit.  From Andreas Gruenbacher.
79063
79064         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79065         and dup to open_safer and dup_safer, respectively.
79066         (openat_permissive): Fix typo in comment.
79067
79068         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79069         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79070         (_): Remove; no longer needed.
79071         (openat): Renamed from rpl_openat; no need for rpl_openat
79072         since openat.h renames openat for us.
79073         Replace most of the body with a call to openat_permissive,
79074         to avoid duplicate code.
79075         Port to (probably hypothetical) environments were mode_t is
79076         wider than int.
79077         (openat_permissive): Require mode arg, so that we can check
79078         types better.  Put it just after flags.  Change cwd failure
79079         indicator from pointer-to-bool to pointer-to-errno-value.
79080         All callers changed.
79081         Invoke openat_save_fail and/or openat_restore_fail if
79082         cwd_errno is null, so that openat can call us.
79083         (openat_permissive, fdopendir, fstatat, unlinkat):
79084         Simplify errno handling to avoid some duplicate code,
79085         as it's OK to set errno on success.
79086         * lib/openat.h: Revamp code so that function macros depend on
79087         __OPENAT_PREFIX only, not also on AT_FDCWD.
79088         (openat_ro): Remove.  Caller changed to use openat_permissive.
79089         (openat_permissive): Now a macro, if not a function.
79090         (openat_restore_fail, openat_save_fail): Now always functions,
79091         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79092
79093         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79094         and openat.c.
79095         * lib/mkdirat.c: Include openat-priv.h.
79096         Remove definitions of macros defined therein.
79097         * lib/openat.c: Likewise.
79098
79099         * lib/mkdirat.c (mkdirat): New file and function.
79100         * lib/openat.h (mkdirat): Declare.
79101
79102         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79103
79104         * lib/openat.h (openat_permissive): Declare.
79105         (openat_ro): Define.
79106
79107         * lib/openat.c (EXPECTED_ERRNO): New macro.
79108         (openat_permissive): New function -- used in remove.c rewrite.
79109         (all functions): Set errno just before returning, only if there
79110         was an actual failure.
79111         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79112
79113         Emulate openat-family functions using Linux's procfs, if possible.
79114         Idea and some code based on Ulrich Drepper's glibc changes.
79115
79116         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79117         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79118         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79119         before falling back on save_cwd and restore_cwd.
79120         (fdopendir, fstatat, unlinkat): Likewise.
79121
79122         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79123         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79124
79125         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79126         as second argument to va_arg.  Otherwise, some versions of gcc
79127         warn that `if this code is reached, the program will abort'.
79128
79129 2006-01-09  Jim Meyering  <jim@meyering.net>
79130
79131         Sync from coreutils.
79132         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79133         Require openat-priv.h.
79134
79135 2006-01-09  Bruno Haible  <bruno@clisp.org>
79136
79137         * modules/strnlen (Include): Use strnlen.h.
79138
79139 2006-01-09  Bruno Haible  <bruno@clisp.org>
79140
79141         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79142
79143 2006-01-09  Bruno Haible  <bruno@clisp.org>
79144
79145         * lib/sysexit_.h (EX_OK): New macro.
79146         Suggested by Martin Lambers <marlam@marlam.de>.
79147
79148 2006-01-09  Bruno Haible  <bruno@clisp.org>
79149
79150         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79151         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79152
79153 2006-01-09  Bruno Haible  <bruno@clisp.org>
79154
79155         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79156         numbers.
79157
79158 2006-01-09  Bruno Haible  <bruno@clisp.org>
79159
79160         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79161         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79162         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79163         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79164
79165 2006-01-09  Bruno Haible  <bruno@clisp.org>
79166
79167         * build-aux/javacomp.sh.in: New file, moved from lib/.
79168         * modules/javacomp-script (Files): Update.
79169         (configure.ac): Add AC_CONFIG_FILES invocation.
79170         (EXTRA_DIST): Remove variable.
79171
79172         * build-aux/javaexec.sh.in: New file, moved from lib/.
79173         * modules/javaexec (Files): Update.
79174         (configure.ac): Add AC_CONFIG_FILES invocation.
79175         (EXTRA_DIST): Remove javaexec.sh.in.
79176
79177         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79178         * modules/csharpcomp-script (Files): Update.
79179         (configure.ac): Add AC_CONFIG_FILES invocation.
79180         (EXTRA_DIST): Remove variable.
79181
79182         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79183         * modules/csharpexec (Files): Update.
79184         (configure.ac): Add AC_CONFIG_FILES invocation.
79185         (EXTRA_DIST): Remove csharpexec.sh.in.
79186
79187 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79188
79189         Sync from coreutils.
79190
79191         Add POSIX ACL support
79192         * lib/acl.h (copy_acl, set_acl): Add declarations.
79193         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79194         systems other than Linux.
79195         (chmod_or_fchmod): New function: use fchmod when possible,
79196         and chmod otherwise.
79197         (file_has_acl): Add a POSIX ACL implementation, with a
79198         Linux-specific subcase.
79199         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79200         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79201         acls are unsupported.
79202         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79203         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79204         are unsupported.
79205
79206 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79207
79208         Sync from coreutils.
79209         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79210
79211 2006-01-07  Bruno Haible  <bruno@clisp.org>
79212
79213         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79214         gl_EARLY.
79215
79216 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79217
79218         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79219         Problem reported for Mingw by Mark Junker.
79220
79221 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * README: Gnulib normally doesn't generate a tarball.
79224
79225 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79226
79227         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79228         long int, not int, for nanosecond counts, so that people who are
79229         used to POSIX struct timespec won't be surprised.  Reported by Jim
79230         Meyering.
79231
79232 2005-12-28  Bruno Haible  <bruno@clisp.org>
79233
79234         * build-aux/config.rpath: Update from GNU gettext.
79235
79236 2005-12-16  Jim Meyering  <jim@meyering.net>
79237
79238         * modules/fprintftime: New module.
79239         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79240
79241 2005-12-16  Jim Meyering  <jim@meyering.net>
79242
79243         * m4/fprintftime.m4: New file.
79244
79245 2005-12-16  Jim Meyering  <jim@meyering.net>
79246
79247         * lib/fprintftime.c, lib/fprintftime.h: New files.
79248
79249 2005-12-15  Simon Josefsson  <jas@extundo.com>
79250
79251         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79252         new m4/socklen.m4.
79253
79254 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79255
79256         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79257         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79258
79259 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79260
79261         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79262         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79263         struct uparams is valid. Fall back to the default values if it is
79264         not.
79265
79266 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79267
79268         * modules/argp (Files): Add argp-pin.c
79269         (Depends-on): dirname
79270         (lib_SOURCES): Add argp-pin.c
79271
79272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79273
79274         * m4/argp.m4:  Check if program_invocation_name and
79275         program_invocation_short_name are declared and define appropriate
79276         macros if they are not.
79277
79278 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79279
79280         * lib/argp-help.c (__argp_base_name): New function
79281         (__argp_short_program_name): Rewrite using __argp_base_name
79282         * lib/argp-namefrob.h: Define program_invocation_name and
79283         program_invocation_short_name if requested
79284         (__argp_base_name): Add prototype
79285         * lib/argp-parse.c (argp_def): Use gettext wrappers
79286         (argp_default_parser): Use __argp_base_name
79287         * lib/argp-pin.c: New file. Defines program_invocation_name and
79288         program_invocation_short_name on systems that lack them.
79289
79290 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79291
79292         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79293         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79294         porting problem reported by Georg Schwarz in
79295         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79296
79297 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79300         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79301         porting problem reported by Georg Schwarz in
79302         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79303
79304 2005-12-05  Bruno Haible  <bruno@clisp.org>
79305
79306         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79307         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79308         Reported by Mark Junker <mjscod@gmx.de>.
79309
79310 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79311
79312         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79313         Use implementation from Albert Chin, with some
79314         comments/corrections by Stepan Kasal and myself.
79315
79316 2005-12-02  Bruno Haible  <bruno@clisp.org>
79317
79318         * gnulib-tool (func_import): Accept GPLed build tool modules when
79319         --lgpl is given.
79320         * modules/csharpcomp-script: New file.
79321         * modules/csharpcomp: Depend on it.
79322         * modules/javacomp-script: New file.
79323         * modules/javacomp: Depend on it.
79324         Suggested by Simon Josefsson.
79325
79326 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79327
79328         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79329         statement, to work around an HP-UX 10.20 compiler bug reported by
79330         Peter O'Gorman.
79331
79332 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79333
79334         * modules/savedir (Depends-on): Add openat.
79335
79336 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79339         (uintmax_t) [defined uintmax_t]: Do not declare.
79340         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79341         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79342         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79343         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79344         sake of portability to weird hosts that C allows (though we don't
79345         know of any practical examples).
79346
79347         * lib/savedir.h (fdsavedir): New decl.
79348         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79349         contains most of the former guts of savedir.
79350         (savedir): Use savedirstream.
79351         Include "openat.h".
79352
79353 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79354
79355         * modules/obstack (Files): Add m4/ulonglong.m4.
79356         Problem reported by Davide Angelocola.
79357
79358 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79359
79360         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79361         coreutils no longer futzes with rounding modes.
79362
79363 2005-11-14  Jim Meyering  <jim@meyering.net>
79364
79365         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79366         replacement of mkstemp.
79367
79368 2005-11-10  Simon Josefsson  <jas@extundo.com>
79369
79370         * lib/readline.c: Remove EOL.
79371
79372 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79373
79374         * modules/gethrxtime (Depends-on): Add gettime.
79375
79376 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79379         or gettimeofday; no longer needed.
79380
79381 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79382
79383         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79384         time business.
79385         (gethrxtime) [! (HAVE_NANOUPTIME
79386         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79387         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79388         our own approximation.
79389
79390 2005-11-08  Eric Blake  <ebb9@byu.net>
79391
79392         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79393
79394 2005-11-08  Eric Blake  <ebb9@byu.net>
79395
79396         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79397
79398 2005-11-04  Bruno Haible  <bruno@clisp.org>
79399
79400         * gnulib-tool: Implement --update mode.
79401
79402 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79403
79404         Fix porting problem reported by Theodoros V. Kalamatianos.
79405         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79406         Don't assume that futimes failing means we must fail.
79407
79408 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79411         variables to suggest the intended function of the PATH_MAX check.
79412
79413 2005-10-30  Kean Johnston  <jkj@sco.com>
79414
79415         Trivial changes to support SCO systems.
79416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79417         as PATH_MAX.
79418         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79419         where __ptr is null when no I/O is pending.
79420
79421 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79422
79423         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79424         leave errno alone.  Problem reported by Dmitry V. Levin.
79425
79426 2005-10-28  Simon Josefsson  <jas@extundo.com>
79427
79428         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79429         Test more.
79430
79431         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79432
79433         * modules/md2, modules/md2-tests: New files.
79434
79435 2005-10-28  Simon Josefsson  <jas@extundo.com>
79436
79437         * m4/inet_ntop.m4: More tests.
79438
79439         * m4/gc-md2.m4, md2.m4: New file.
79440
79441 2005-10-28  Simon Josefsson  <jas@extundo.com>
79442
79443         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79444         "restrict" keywords, as per POSIX.  Protect the function
79445         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79446         Don't use K&R prototypes.  Check the sprintf return values.
79447         Re-define EAFNOSUPPORT if not present.  Indent.
79448
79449         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79450         suggested by Bruno Haible <bruno@clisp.org>.
79451
79452         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79453
79454         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79455
79456         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79457         libgcrypt).
79458
79459         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79460
79461         * lib/md2.h, lib/md2.c: New files.
79462
79463 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79464
79465         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79466         errno alone.  Problem reported by Frederic Jolliton.
79467
79468 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79469
79470         * modules/verify (License): Change from GPL to LGPL.  This is a
79471         tiny module and there are apparently near-equivalents that are
79472         under the BSD license.
79473
79474 2005-10-24  Simon Josefsson  <jas@extundo.com>
79475
79476         * modules/sha1: Relicense to LGPL.
79477
79478 2005-10-24  Simon Josefsson  <jas@extundo.com>
79479
79480         * lib/md4.h: Shrink buffer size, now that we changed the type.
79481
79482 2005-10-23  Simon Josefsson  <jas@extundo.com>
79483
79484         * gnulib-tool (func_import): Fix --tests-base.
79485
79486 2005-10-22  Simon Josefsson  <jas@extundo.com>
79487
79488         * modules/arcfour (Depends-on): Need stdint.
79489
79490 2005-10-22  Simon Josefsson  <jas@extundo.com>
79491
79492         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79493         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79494
79495 2005-10-22  Simon Josefsson  <jas@extundo.com>
79496
79497         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79498         suggested by Bruno Haible <bruno@clisp.org>.
79499
79500 2005-10-22  Simon Josefsson  <jas@extundo.com>
79501
79502         * lib/crc.h: Include stddef.h, for size_t.
79503
79504 2005-10-22  Simon Josefsson  <jas@extundo.com>
79505
79506         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79507         arcfour_context struct (simplify test vector testing in GNU
79508         Shishi).
79509
79510 2005-10-21  Simon Josefsson  <jas@extundo.com>
79511
79512         * modules/des, modules/des-tests: New files.
79513
79514         * modules/gc-des, modules/gc-des-tests: New files.
79515
79516         * tests/test-des.c, tests/test-gc-des.c: New file.
79517
79518 2005-10-21  Simon Josefsson  <jas@extundo.com>
79519
79520         * modules/arctwo, modules/arctwo-tests: New files.
79521
79522         * tests/test-arctwo.c: New file.
79523
79524         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79525
79526         * tests/test-gc-arctwo.c: New file.
79527
79528 2005-10-21  Simon Josefsson  <jas@extundo.com>
79529
79530         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79531         Bruno Haible <bruno@clisp.org>.
79532
79533         * m4/gc-des.m4: New file.
79534
79535 2005-10-21  Simon Josefsson  <jas@extundo.com>
79536
79537         * m4/arctwo.m4: New file.
79538
79539         * m4/gc-arctwo.m4: New file.
79540
79541 2005-10-21  Simon Josefsson  <jas@extundo.com>
79542
79543         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79544         block.
79545
79546 2005-10-21  Simon Josefsson  <jas@extundo.com>
79547
79548         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79549         <bruno@clisp.org>.
79550
79551         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79552
79553         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79554         Bruno Haible <bruno@clisp.org>.
79555
79556         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79557         <bruno@clisp.org>.
79558
79559 2005-10-21  Simon Josefsson  <jas@extundo.com>
79560
79561         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79562
79563 2005-10-21  Simon Josefsson  <jas@extundo.com>
79564
79565         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79566
79567 2005-10-21  Simon Josefsson  <jas@extundo.com>
79568
79569         * lib/des.h, lib/des.c: New files.
79570
79571         * lib/gc-gnulib.c: Support DES.c
79572
79573 2005-10-21  Simon Josefsson  <jas@extundo.com>
79574
79575         * lib/arctwo.h, lib/arctwo.c: New files.
79576
79577         * lib/gc-gnulib.c: Support ARCTWO.
79578
79579 2005-10-21  Simon Josefsson  <jas@extundo.com>
79580
79581         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79582         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79583
79584 2005-10-21  Simon Josefsson  <jas@extundo.com>
79585
79586         * gnulib-tool (func_import, func_create_testdir): Define automake
79587         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79588         Makefile.am snippet),
79589         suggested by Bruno Haible <bruno@clisp.org>.
79590
79591         * modules/gc (Makefile.am): Use it.
79592
79593 2005-10-21  Bruno Haible  <bruno@clisp.org>
79594
79595         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79596         patch.
79597
79598 2005-10-19  Simon Josefsson  <jas@extundo.com>
79599
79600         * tests/test-gc-rijndael.c: New file.
79601
79602         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79603
79604 2005-10-19  Simon Josefsson  <jas@extundo.com>
79605
79606         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79607         interface too.
79608
79609 2005-10-19  Simon Josefsson  <jas@extundo.com>
79610
79611         * tests/test-gc-arcfour.c: New file.
79612
79613         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79614
79615 2005-10-19  Simon Josefsson  <jas@extundo.com>
79616
79617         * modules/gc-md4, modules/gc-md4-tests: New file.
79618
79619         * tests/test-gc-md4.c: New file.
79620
79621 2005-10-19  Simon Josefsson  <jas@extundo.com>
79622
79623         * m4/gc-md4.m4: New file.
79624
79625 2005-10-19  Simon Josefsson  <jas@extundo.com>
79626
79627         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79628         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79629         <kasal@ucw.cz>.
79630
79631 2005-10-19  Simon Josefsson  <jas@extundo.com>
79632
79633         * m4/gc-arcfour.m4: New file.
79634
79635         * m4/gc-rijndael.m4: New file.
79636
79637 2005-10-19  Simon Josefsson  <jas@extundo.com>
79638
79639         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79640
79641 2005-10-19  Simon Josefsson  <jas@extundo.com>
79642
79643         * lib/gc-gnulib.c: Support ARCFOUR.
79644
79645 2005-10-19  Simon Josefsson  <jas@extundo.com>
79646
79647         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79648         support.
79649
79650         * lib/gc.h: Add ECB enum type.
79651
79652         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79653
79654 2005-10-18  Simon Josefsson  <jas@extundo.com>
79655
79656         * tests/test-md5.c: New file.
79657
79658         * modules/md5-tests: New file.
79659
79660 2005-10-18  Simon Josefsson  <jas@extundo.com>
79661
79662         * tests/test-md4.c: New file.
79663
79664         * modules/md4, modules/md4-tests: New files.
79665
79666 2005-10-18  Simon Josefsson  <jas@extundo.com>
79667
79668         * m4/md4.m4: New file.
79669
79670 2005-10-18  Simon Josefsson  <jas@extundo.com>
79671
79672         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79673
79674 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79675
79676         * gnulib-tool (func_create_testdir): Omit the second check whether
79677         BUILT_SOURCES in nonempty.
79678
79679 2005-10-17  Simon Josefsson  <jas@extundo.com>
79680
79681         * tests/test-rijndael.c: New file.
79682
79683 2005-10-17  Simon Josefsson  <jas@extundo.com>
79684
79685         * modules/sha1: Depend on stdint instead of md5.
79686
79687         * modules/md5: Depend on stdint, remove uint32_t.
79688
79689 2005-10-17  Simon Josefsson  <jas@extundo.com>
79690
79691         * modules/gc-sha1-tests: New file.
79692
79693         * tests/test-gc-sha1.c: New file.
79694
79695 2005-10-17  Simon Josefsson  <jas@extundo.com>
79696
79697         * m4/md5.m4: Remove call to uint32_t.m4.
79698
79699 2005-10-17  Simon Josefsson  <jas@extundo.com>
79700
79701         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79702
79703         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79704         md5.h.
79705
79706         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79707
79708         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79709
79710 2005-10-17  Simon Josefsson  <jas@extundo.com>
79711
79712         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79713
79714 2005-10-17  Simon Josefsson  <jas@extundo.com>
79715
79716         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79717
79718 2005-10-17  Simon Josefsson  <jas@extundo.com>
79719
79720         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79721
79722         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79723
79724 2005-10-17  Bruno Haible  <bruno@clisp.org>
79725
79726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79727         that it can also be used in a test.
79728
79729 2005-10-16  Bruno Haible  <bruno@clisp.org>
79730
79731         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79732         TESTS_ENVIRONMENT, so that individual tests can augment it.
79733
79734         * gnulib-tool (func_create_testdir): Use an intermediate target for
79735         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79736         macros, like $(ALLOCA_H), which cannot be passed through the command
79737         line.
79738
79739 2005-10-15  Simon Josefsson  <jas@extundo.com>
79740
79741         * modules/rijndael-tests: New file.
79742
79743         * modules/rijndael: New file.
79744
79745 2005-10-15  Simon Josefsson  <jas@extundo.com>
79746
79747         * m4/rijndael.m4: New file.
79748
79749 2005-10-15  Simon Josefsson  <jas@extundo.com>
79750
79751         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79752
79753         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79754
79755 2005-10-14  Simon Josefsson  <jas@extundo.com>
79756
79757         * tests/test-arcfour.c: New file.
79758
79759         * modules/arcfour, modules/arcfour-tests: New files.
79760
79761 2005-10-14  Simon Josefsson  <jas@extundo.com>
79762
79763         * m4/arcfour.m4: New file.
79764
79765 2005-10-14  Simon Josefsson  <jas@extundo.com>
79766
79767         * lib/arcfour.h, lib/arcfour.c: New files.
79768
79769 2005-10-14  Roland McGrath  <roland@redhat.com>
79770
79771         Import from libc.  [BZ #1331]
79772         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79773         macro argument.
79774         Reported by Matej Vela <vela@debian.org>.
79775
79776 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79777
79778         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79779         include <wchar.h>; no longer needed.
79780
79781 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79782
79783         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79784
79785 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79786         and  Ulrich Drepper  <drepper@redhat.com>
79787
79788         Import from libc.
79789         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79790         instead of inline stream orientation test and two separate
79791         function calls.  Pay no attention to USE_IN_LIBIO.
79792
79793 2005-10-13  Simon Josefsson  <jas@extundo.com>
79794
79795         * modules/gc-hmac-md5-tests: New file.
79796
79797         * tests/test-gc-hmac-sha1.c: New file.
79798
79799         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79800
79801         * modules/gc-hmac-md5-tests: New file.
79802
79803         * tests/test-gc-md5.c: New file.
79804
79805         * modules/gc-md5-tests: New file.
79806
79807 2005-10-13  Simon Josefsson  <jas@extundo.com>
79808
79809         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79810         Move memory allocation outside of loop.
79811
79812 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79813
79814         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79815         intermediate directory is in a read-only file system.  Problem
79816         reported by Eric Blake.
79817
79818 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79819
79820         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79821
79822 2005-10-12  Simon Josefsson  <jas@extundo.com>
79823
79824         * tests/test-hmac-sha1.c: New file.
79825
79826         * modules/hmac-sha1-tests: New file.
79827
79828         * modules/hmac-sha1: New file.
79829
79830 2005-10-12  Simon Josefsson  <jas@extundo.com>
79831
79832         * modules/gc-sha1: New file.
79833
79834 2005-10-12  Simon Josefsson  <jas@extundo.com>
79835
79836         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79837
79838         * tests/test-gc-pbkdf2-sha1.c: New file.
79839
79840 2005-10-12  Simon Josefsson  <jas@extundo.com>
79841
79842         * modules/gc-md5, modules/gc-hmac-md5: New files.
79843
79844         * modules/gc (Files): Remove md5, memxor and hmac files.
79845
79846 2005-10-12  Simon Josefsson  <jas@extundo.com>
79847
79848         * m4/gc-pbkdf2-sha1.m4: New file.
79849
79850         * m4/gc-hmac-sha1.m4: New file.
79851
79852         * m4/gc-sha1: New file.
79853
79854         * m4/hmac-sha1.m4: New file.
79855
79856 2005-10-12  Simon Josefsson  <jas@extundo.com>
79857
79858         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79859
79860         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79861
79862 2005-10-12  Simon Josefsson  <jas@extundo.com>
79863
79864         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79865         suggested by Bruno Haible <bruno@clisp.org>.
79866
79867 2005-10-12  Simon Josefsson  <jas@extundo.com>
79868
79869         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79870
79871 2005-10-12  Simon Josefsson  <jas@extundo.com>
79872
79873         * lib/gc-pbkdf2-sha1.c: New file.
79874
79875         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79876
79877 2005-10-12  Simon Josefsson  <jas@extundo.com>
79878
79879         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79880
79881         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79882
79883 2005-10-12  Simon Josefsson  <jas@extundo.com>
79884
79885         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79886         GC_USE_HMAC_MD5, respectively.
79887
79888         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79889         (gc_md5): Fix typo.
79890
79891         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79892
79893         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79894
79895         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79896
79897 2005-10-12  Bruno Haible  <bruno@clisp.org>
79898
79899         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79900         Reported by Stepan Kasal <kasal@ucw.cz>.
79901
79902 2005-10-11  Simon Josefsson  <jas@extundo.com>
79903
79904         * tests/test-crc.c: New file.
79905
79906         * modules/crc, modules/crc-tests: New files.
79907
79908 2005-10-11  Simon Josefsson  <jas@extundo.com>
79909
79910         * m4/crc.m4: New file.
79911
79912 2005-10-11  Simon Josefsson  <jas@extundo.com>
79913
79914         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79915
79916         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79917
79918         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79919
79920 2005-10-11  Simon Josefsson  <jas@extundo.com>
79921
79922         * lib/crc.h, lib/crc.c: New files.
79923
79924         * lib/gc.h (gc_hash_buffer): Add doc.
79925
79926 2005-10-11  Bruno Haible  <bruno@clisp.org>
79927
79928         * modules/c-strcasestr: New file.
79929         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79930
79931 2005-10-11  Bruno Haible  <bruno@clisp.org>
79932
79933         * modules/c-strcase: New file.
79934         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79935
79936 2005-10-11  Bruno Haible  <bruno@clisp.org>
79937
79938         * lib/strcasecmp.c: Include limits.h.
79939         (strcasecmp): Avoid integer overflow on exotic platforms.
79940         * lib/strncasecmp.c: Include limits.h.
79941         (strncasecmp): Avoid integer overflow on exotic platforms.
79942         Reported by Paul Eggert.
79943
79944 2005-10-11  Bruno Haible  <bruno@clisp.org>
79945
79946         * lib/c-strcasestr.h: New file, from GNU gettext.
79947         * lib/c-strcasestr.c: New file, from GNU gettext.
79948
79949 2005-10-11  Bruno Haible  <bruno@clisp.org>
79950
79951         * lib/c-strcase.h: New file, from GNU gettext.
79952         * lib/c-strcasecmp.c: New file, from GNU gettext.
79953         * lib/c-strncasecmp.c: New file, from GNU gettext.
79954
79955 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79956
79957         * modules/mempcpy (License): GPL -> LGPL.
79958         * modules/strchrnul (License): Likewise.
79959         * modules/sysexits (License): Likewise.
79960
79961 2005-10-08  Simon Josefsson  <jas@extundo.com>
79962
79963         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79964
79965 2005-10-07  Simon Josefsson  <jas@extundo.com>
79966
79967         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79968
79969 2005-10-06  Simon Josefsson  <jas@extundo.com>
79970
79971         * tests/test-hmac-md5.c: New file.
79972
79973         * modules/hmac-md5-tests: New file.
79974
79975         * modules/hmac-md5: New file.
79976
79977 2005-10-06  Simon Josefsson  <jas@extundo.com>
79978
79979         * m4/hmac-md5.m4: New file.
79980
79981         * m4/memxor.m4: Require gl_C_RESTRICT.
79982
79983 2005-10-06  Simon Josefsson  <jas@extundo.com>
79984
79985         * lib/memxor.c (memxor): Avoid casts and warnings.
79986
79987 2005-10-06  Simon Josefsson  <jas@extundo.com>
79988
79989         * lib/hmac-md5.c: New file.
79990
79991         * lib/hmac.h: New file.
79992
79993 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79994
79995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79996         promotes to int, not unsigned int, to catch the AIX 5.3
79997         compiler bug.
79998
79999 2005-10-05  Simon Josefsson  <jas@extundo.com>
80000
80001         * modules/memxor: New file.
80002
80003         * modules/iconv (Files): Move config.rpath to havelib, it is used
80004         there.
80005
80006         * modules/havelib (Files): Add config.rpath.
80007
80008 2005-10-05  Simon Josefsson  <jas@extundo.com>
80009
80010         * m4/memxor.m4: New file.
80011
80012 2005-10-05  Simon Josefsson  <jas@extundo.com>
80013
80014         * lib/memxor.c (memxor): Fix compiler error.
80015
80016         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80017         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80018
80019         * lib/memxor.h, lib/memxor.c: New files.
80020
80021         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80022         we assume all systems have it, suggested by Jim Meyering
80023         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80024         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80025         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80026         same reasons.
80027
80028 2005-10-05  Simon Josefsson  <jas@extundo.com>
80029
80030         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80031
80032 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80033
80034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80035         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80036         needed, since the source code now assumes these .h files.
80037
80038 2005-10-05  Derek Price  <derek@ximbiot.com>
80039
80040         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80041
80042 2005-10-05  Bruno Haible  <bruno@clisp.org>
80043
80044         * modules/stdint (License): Change to LGPL.
80045
80046 2005-10-04  Simon Josefsson  <jas@extundo.com>
80047
80048         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80049         D. Baushke" <mdb@gnu.org>.
80050
80051 2005-10-04  Bruno Haible  <bruno@clisp.org>
80052
80053         * lib/verify.h (verify_true): Provide alternative definition for C++.
80054
80055 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80056
80057         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80058         (SSIZE_MAX): New macro, if not already defined.
80059         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80060         than 2 GiB.
80061
80062 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80063
80064         Sync from coreutils.
80065         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80066         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80067         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80068         ULLONG_MAX doesn't work with 2.7.2.1.
80069
80070 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80071
80072         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80073         From Ben Pfaff.
80074
80075         * modules/exclude (Depends-on): Depend on verify.
80076         * modules/strtoimax (Depends-on): Likewise.
80077         * modules/utimecmp (Depends-on): Likewise.
80078
80079 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * lib/exclude.c: Include verify.h.
80082         (verify): Remove.  All callers changed to use verify.h's version.
80083         * lib/strtoimax.c: Likewise.
80084         * lib/utimecmp.c: Likewis.e
80085
80086         Sync from coreutils.
80087         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80088         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80089         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80090         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80091         bother returning ENOSYS if settimeofday or stime fails; just let
80092         them return whatever errno they want to return.
80093         * lib/utimens.c: Include unistd.h, for dup2.
80094         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80095         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80096
80097 2005-10-02  Jim Meyering  <jim@meyering.net>
80098
80099         Sync from coreutils.
80100         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80101         from glibc-2.2.5 that fails for read-only files.
80102
80103 2005-10-02  Jim Meyering  <jim@meyering.net>
80104
80105         Sync from coreutils.
80106         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80107         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80108         `#if HAVE_CONFIG_H'.
80109         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80110         Remove AT_FDCWD test.
80111         Do not consume the fd unless successful.
80112         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80113         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80114         block, so that we don't even try to compile it if settimeofday is
80115         available.  This works around a compilation failure on OSF1 V5.1,
80116         due to stime requiring a `long int*' while tv_sec is `int'.
80117
80118 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80119
80120         Sync from coreutils.
80121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80122         against `yes', rather than just testing for nonempty.
80123
80124 2005-10-01  Simon Josefsson  <jas@extundo.com>
80125
80126         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80127         and Darwin.
80128
80129         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80130         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80131         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80132         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80133         Check if struct addrinfo is declared.
80134
80135 2005-10-01  Simon Josefsson  <jas@extundo.com>
80136
80137         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80138         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80139         AI_* and EAI_* definitions.  Protect function declarations.
80140
80141 2005-10-01  Jim Meyering  <jim@meyering.net>
80142
80143         Sync from coreutils.
80144
80145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80146         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80147         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80149         in the inet and nsl libraries.  Required on Solaris 5.7.
80150
80151 2005-10-01  Jim Meyering  <jim@meyering.net>
80152
80153         Sync from coreutils.
80154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80155         in the inet and nsl libraries.  Required on Solaris 5.7.
80156
80157 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80158
80159         * lib/getdelim.c (getdelim): Remove unused variables.
80160
80161 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80164         so that the code works even with ancient cpp.  Portability problem
80165         with GCC 2.7.2.1 reported by Thomas M.Ott.
80166
80167 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80168
80169         * modules/regex (Depends-on): Add strcase.
80170
80171         * modules/gethostname (Licence): Change from GPL to LGPL, since
80172         gethostname.c is a trivial implementation of a standard library
80173         function.
80174         * modules/poll (License): Change from GPL to LGPL, since it's
80175         derived from LGPL code.
80176
80177 2005-09-27  Jim Meyering  <jim@meyering.net>
80178
80179         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80180         HAVE_CONFIG_H.
80181
80182         * lib/intprops.h (signed_type_or_expr__): Define.
80183         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80184         for unsigned types.
80185
80186 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * lib/verify.h (verify_expr): Remove, replacing with:
80189         (verify_true): New macro that returns true instead of void.
80190         (verify_type__): Remove.
80191         (verify): Use verify_true rather than verify_type__.
80192
80193 2005-09-26  Bruno Haible  <bruno@clisp.org>
80194
80195         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80196         is necessary.
80197         (lib_SOURCES): Remove mbchar.c.
80198         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80199         (Files): Add m4/mbrtowc.m4.
80200         * modules/mbiter: Likewise.
80201         * modules/mbuiter: Likewise.
80202
80203 2005-09-26  Bruno Haible  <bruno@clisp.org>
80204
80205         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80206         compile mbchar.c if they are not both present.
80207         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80208         * m4/mbiter.m4 (gl_MBITER): Likewise.
80209         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80210         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80211         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80212
80213 2005-09-25  Jim Meyering  <jim@meyering.net>
80214
80215         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80216         also uses socklen_t.
80217
80218 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80219
80220         * lib/utimens.c (ENOSYS): Define if not already defined.
80221         (futimens): Support having a null PATH if the file descriptor
80222         is nonnegative.
80223
80224         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80225         Remove.
80226         (__attribute): Define to empty unless GCC 3.1 or later.
80227         This works around a core dump on OpenBSD 3.4, which has GCC
80228         2.95.3, which dumps core when given __attribute__(()).  It also
80229         simplifies other tests, since we really don't want to bother with
80230         worrying about which ancient version of GCC supported what.
80231         Original problem reported by Yoann Vandoorselaere, with part of
80232         the fix suggested by Derek Price.
80233
80234 2005-09-24  Jim Meyering  <jim@meyering.net>
80235
80236         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80237         so we can once again use a positive bitfield width of 1 -- now we
80238         don't have to explain why we were using a bitfield width of 2.
80239
80240 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80241
80242         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80243         and similarly for the other external symbols.  Problem reported
80244         by James Gallager.
80245
80246         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80247         bug reported by Jim Meyering.
80248
80249         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80251         not needed, since socklen is a prerequisite module.
80252
80253 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80254
80255         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80256         Problem reported by Eric Blake.
80257         (getaddrinfo): Initialize se so that it's not garbage.
80258         Redo internal storage allocation so that it doesn't make unportable
80259         assumptions about alignment.
80260         Fix a memory leak.
80261
80262         * lib/utimens.c (futimens): Use futimesat if available.
80263         Prefer it to futimes since it doesn't have the futimes bug.
80264
80265         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80266         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80267         Instead, declare a function that returns a pointer to an array,
80268         and use verify_type__ to declare the size of the array.
80269         Problem and germ of a solution reported by Bruno Haible.
80270         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80271         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80272
80273 2005-09-23  Jim Meyering  <jim@meyering.net>
80274
80275         Sync from coreutils.
80276         Correct build failure (socklen_t not defined) on at least
80277         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80279
80280 2005-09-23  Jim Meyering  <jim@meyering.net>
80281
80282         * modules/getaddrinfo (Depends-on): Add socklen.
80283
80284 2005-09-23  Bruno Haible  <bruno@clisp.org>
80285
80286         * tests/test-verify.c: New file.
80287
80288 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80289
80290         Sync from coreutils.
80291
80292         * modules/argmatch (Depends-on): Add verify.
80293         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80294         unistd-safer.
80295         * modules/save-cwd (Depends-on): Likewise.
80296
80297         * modules/openat (Files): Add lib/openat-die.c.
80298         (Depends-on): Remove error, exitfail.
80299         Add dirname.
80300
80301         * modules/verify: New file.
80302         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80303         with "verify" module.
80304
80305 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         Sync from coreutils.
80308
80309         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80310         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80311         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80312         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80313         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80314         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80315         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80316         Don't bother checking for string.h, stdlib.h, unistd.h.
80317         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80318         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80319         module's job.
80320         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80321         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80322
80323         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80324         (gl_GETDATE): Use it.
80325
80326         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80327
80328 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80329
80330         Sync from coreutils.
80331
80332         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80333         stat-time.h.
80334         * lib/argmatch.h: Include verify.h
80335         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80336         (ARGMATCH_ASSERT): Remove; unused.
80337         * lib/canonicalize.c: Assume STDC_HEADERS.
80338         * lib/exclude.c: Include "strcase.h".
80339         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80340         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80341         and stdio-safer.h.
80342         (getusershell): Call fopen, not fopen_safer.
80343         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80344         Do not include unistd-safer.h.
80345         (save_cwd): Don't call fd_safer; no longer needed
80346         now that we include fcntl--.h.
80347
80348         * lib/getdate.y (relative_time): New type.
80349         (RELATIVE_TIME_0): New constant.
80350         (parser_control): Use relative_time instead of doing it ourselves.
80351         (%union): Add new relative_time rel member.
80352         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80353         Now typeless.
80354         (relunit, relunit_snumber): Now of type rel.
80355         (zone, rel, relunit, get_date): Adjust to above changes.
80356
80357         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80358         Do not include unistd-safer.h.
80359         (getloadavg): Don't call fd_safer; no longer needed
80360         now that we include fcntl--.h.
80361
80362         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80363         (make_dir_parents): Treat ENOSYS like EEXIST.
80364
80365         Improve quality of diagnostics on restore_cwd failure.
80366         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80367         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80368         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80369         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80370         each time through the loop.  Do not diagnose restore_cwd failure;
80371         that is the caller's job (and perhaps the caller does not care).
80372
80373         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80374         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80375         If the file already exists but is not a directory, don't bother
80376         to try to make its parents.
80377         Close potential file descriptor leak if we can't chdir("/") (!).
80378         Don't always return true if chdir($PWD) fails; return true only
80379         if the requested action was done successfully (except for the
80380         chdir($PWD)).
80381         Don't log final directory unless we actually made it.
80382         Refactor to avoid duplicate code to fix up permissions.
80383         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80384
80385         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80386         to make it a bit faster and (I hope) clearer.
80387         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80388         Fix bug in formats like %2N.
80389
80390         * lib/verify.h: New file.
80391
80392 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80393
80394         Sync from coreutils.
80395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80396
80397 2005-09-22  Jim Meyering  <jim@meyering.net>
80398
80399         Sync from coreutils.
80400
80401         * m4/lstat.m4 (gl_FUNC_LSTAT):
80402         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80403         Remove obsolete comment.
80404         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80405         * m4/xstrtod.m4: Likewise.
80406
80407         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80408
80409 2005-09-22  Jim Meyering  <jim@meyering.net>
80410
80411         Sync from coreutils.
80412
80413         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80414
80415         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80416         the .tm_year member, since otherwise gcc-4.0 would now warn about
80417         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80418
80419         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80420         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80421
80422         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80423         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80424         when run in a time zone for which daylight savings time is in effect
80425         for the starting date.
80426
80427         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80428         stop us from restricting permissions of just-created absolute-named
80429         directories.
80430         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80431         to restore initial working directory.
80432         * lib/mkdir-p.c (make_dir_parents): New parameter:
80433         different_working_dir, to tell caller if/when we change the working
80434         directory and are unable to return to the initial one.
80435         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80436         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80437         `return false'.  This fixes a bug introduced on 2004-07-30.
80438
80439         * lib/openat.c (fdopendir): Be sure to close the supplied
80440         file descriptor before returning.  This makes our replacement
80441         implementation a little closer to Solaris's, where fdopendir
80442         ties the file descriptor to the returned DIR* pointer.
80443         * lib/openat.c (unlinkat): New function.
80444         * lib/openat.h (unlinkat): Add prototype.
80445         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80446         (openat_restore_fail): Rename from openat_restore_die.
80447         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80448
80449         Provide an alternative to exiting immediately upon save_cwd or
80450         restore_cwd failure.  Now, an application can arrange e.g.,
80451         to perform a longjump in that case.
80452         * lib/openat.c: Include dirname.h.
80453         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80454         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80455         and openat_restore_die rather than calling error directly.
80456         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80457
80458         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80459         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80460         define.
80461
80462         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80463         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80464                             int utc, int nanoseconds);
80465         Background:
80466         date should not have to allocate a megabyte of virtual memory to
80467         handle a format argument like +%1048575T.  When implemented with
80468         strftime, it must allocate such a buffer, use strftime to fill it
80469         in, print it, then free it.
80470         With fprintftime, it simply prints everything and exits.
80471         With no need for memory allocation, that's one fewer way to fail.
80472         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80473         optional field width, not before, so we accept %9:z, not %:9z.
80474         (my_strftime): Be sure to use L_('x') for literals.
80475
80476         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80477         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80478         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80479         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80480         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80481         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80482         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80483         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80484         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80485         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80486         * lib/xgethostname.c, lib/xreadlink.c:
80487         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80488
80489         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80490         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80491         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80492         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80493         and don't include <sys/file.h>).
80494
80495 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80496
80497         Sync from coreutils.
80498
80499         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80500         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80501         [!LDAV_DONE]: Avoid unused variable warning.
80502
80503 2005-09-21  Bruno Haible  <bruno@clisp.org>
80504
80505         * lib/unicodeio.h (unicode_to_mb): New declaration.
80506
80507 2005-09-20  Derek Price  <derek@ximbiot.com>
80508
80509         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80510         getaddrinfo.h.
80511
80512 2005-09-20  Bruno Haible  <bruno@clisp.org>
80513
80514         * gnulib-tool: Remove trailing slashes from the values specified for
80515         --source-base, --m4-base, --tests-base, --aux-dir.
80516         Suggested by Simon Josefsson <jas@extundo.com>.
80517
80518 2005-09-20  Bruno Haible  <bruno@clisp.org>
80519
80520         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80521         func_modules_to_filelist, func_import, func_create_testdir): Make all
80522         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80523         change when gnulib-tool is invoked in a different locale.
80524
80525 2005-09-19  Simon Josefsson  <jas@extundo.com>
80526
80527         * m4/socklen.m4: Fix typo.
80528
80529 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80530
80531         Use a consistent style for including <config.h>.
80532         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80533         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80534         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80535         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80536         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80537         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80538         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80539         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80540         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80541         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80542         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80543         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80544         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80545         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80546         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80547         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80548         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80549         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80550         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80551         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80552         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80553         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80554         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80555         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80556         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80557         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80558         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80559         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80560         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80561         lib/xstrtoumax.c, lib/yesno.c:
80562         Standardize inclusion of config.h.
80563         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80564         lib/inttostr.h:  Removed inclusion of config.h from header files.
80565         * lib/inttostr.c:  Adjusted in-tree users.
80566         * lib/timespec.h: Remove superfluous warning to include config.h.
80567         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80568         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80569         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80570         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80571         config.h with HAVE_CONFIG_H.
80572
80573 2005-09-19  Jim Meyering  <jim@meyering.net>
80574
80575         * modules/pathmax (License): Change to LGPL.
80576
80577 2005-09-19  Derek Price  <derek@ximbiot.com>
80578
80579         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80580
80581 2005-09-19  Bruno Haible  <bruno@clisp.org>
80582
80583         * gnulib-tool (import): Provide default for --tests-base.
80584
80585 2005-09-19  Bruno Haible  <bruno@clisp.org>
80586
80587         * doc/quote.texi: New file, extracted from gnulib.texi.
80588         * doc/ctime.texi: New file, extracted from gnulib.texi.
80589         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80590         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80591         * doc/gnulib.texi: Include them.
80592
80593 2005-09-18  Bruno Haible  <bruno@clisp.org>
80594
80595         Portability fix.
80596         * gnulib-tool (func_readlink): New function.
80597         (func_ln_if_changed): Use it.
80598
80599 2005-09-18  Bruno Haible  <bruno@clisp.org>
80600
80601         * gnulib-tool: Support --with-tests also with --import.
80602         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80603         (func_import): Use variables $testsbase and $inctests. Emit a
80604         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80605         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80606         SUBDIRS += $testsdir.
80607         (func_create_testdir): Update.
80608
80609 2005-09-18  Bruno Haible  <bruno@clisp.org>
80610
80611         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80612         instead of $dry_run.
80613         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80614         (func_ln_if_changed): Don't handle dry-run here.
80615         (func_import): In dry-run mode, detect more precisely which actions
80616         would be performed, and don't use "...ing" verbs.
80617
80618 2005-09-18  Bruno Haible  <bruno@clisp.org>
80619
80620         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80621         (func_import): Use join on two temporary files instead of three nested
80622         loops, in order to determine which files are new or old.
80623
80624 2005-09-18  Bruno Haible  <bruno@clisp.org>
80625
80626         * gnulib-tool (func_import): Comment out code that spits out the
80627         new files with --dry-run.
80628
80629 2005-09-18  Bruno Haible  <bruno@clisp.org>
80630
80631         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80632
80633 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80634
80635         * lib/stat-time.h: New file.
80636         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80637         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80638         in a different way.
80639         (timespec_cmp): New function.
80640         * lib/utimecmp.c: Include stat-time.h.
80641         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80642         members exist, not on the obsolescent ST_MTIM_NSEC.
80643         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80644
80645 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80646
80647         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80648
80649 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80650
80651         * MODULES.html.sh (File system functions): Add stat-time.
80652         * modules/stat-time: New file.
80653         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80654         is now done in a different way, by the stat-time module.
80655         * modules/utimecmp (Depends-on): Add stat-time.
80656
80657 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * m4/st_mtim.m4: Remove.  Superseded by...
80660         * m4/stat-time.m4: New file.
80661         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80662         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80663
80664 2005-09-15  Derek Price  <derek@ximbiot.com>
80665
80666         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80667
80668 2005-09-15  Derek Price  <derek@ximbiot.com>
80669
80670         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80671         * lib/regex_internal.c: Ditto, using this...
80672         (__GNUC_PREREQ): ...new macro.
80673         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80674         using...
80675         (__GNUC_PREREQ): ...this new macro.
80676
80677         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80678
80679 2005-09-15  Derek Price  <derek@ximbiot.com>
80680             Paul Eggert  <eggert@cs.ucla.edu>
80681
80682         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80683         changes, consolidating in...
80684         * lib/regex_internal.h: ...this file.
80685
80686 2005-09-13  Jim Meyering  <jim@meyering.net>
80687
80688         * lib/canon-host.c: Filter through gnu indent and reword comments
80689         slightly.
80690         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80691
80692 2005-09-13  Derek Price  <derek@ximbiot.com>
80693
80694         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80695         failure.
80696         Reported by Jim Meyering  <jim@meyering.net>.
80697
80698 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80699
80700         * lib/base64.c: Typo.
80701         (base64_encode): Put b64str in initialized data section.
80702
80703 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         Merge glibc and coreutils changes into gnulib, plus a few
80706         extra fixes.
80707         * lib/md5.c: Use #error rather than a string.
80708         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80709         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80710         (__attribute__): Define to empty for non recent-GCC.
80711         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80712         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80713         Renamed from their non-__ counterparts, with new macros replacing
80714         them if not _LIBC.  Add __THROW attribute.
80715         (rol): Remove.
80716         (struct md5_ctx): Align buffer if using GCC.
80717         * lib/sha1.h (struct sha1_ctx): Likewise.
80718         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80719         The old name was backwards.
80720         (NOTSWAP): Remove; not used.
80721         (rol): New macro, moved here from md5.h.
80722         (sha1_process_block): Remove a FIXME that doesn't make sense.
80723
80724 2005-09-12  Derek Price  <derek@ximbiot.com>
80725
80726         Return usable errors from canon-host.
80727         * lib/canon-host.h: New file.
80728         * lib/canon-host.c (canon_host): Wrap...
80729         (canon_host_r): ...this new function, which now relies exclusively on
80730         getaddrinfo.
80731         (ch_strerror): New function.
80732         (last_cherror): New global.
80733         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80734         interface.
80735         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80736         void *.
80737         (freeaddrinfo): Free ai->ai_canonname when set.
80738
80739 2005-09-12  Derek Price  <derek@ximbiot.com>
80740
80741         Make canon-host require getaddrinfo.
80742         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80743         AC_LIBSOURCE canon-host.h.  Call...
80744         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80745         gl_GETADDRINFO.
80746         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80747
80748 2005-09-12  Derek Price  <derek@ximbiot.com>
80749
80750         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80751         LGPL.
80752         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80753
80754 2005-09-12  Derek Price  <derek@ximbiot.com>
80755
80756         * lib/gai_strerror.c: Include config.h when available.  Include
80757         getaddrinfo.h before other headers to test interface.
80758         Reported by Larry Jones <lawrence.jones@ugs.com>.
80759
80760 2005-09-12  Derek Price  <derek@ximbiot.com>
80761             Paul Eggert  <eggert@cs.ucla.edu>
80762
80763         * modules/glob (Files): Add glob-libc.h.
80764
80765 2005-09-12  Derek Price  <derek@ximbiot.com>
80766             Paul Eggert  <eggert@cs.ucla.edu>
80767
80768         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80769         glob_.h, glob-libc.h.
80770         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80771
80772 2005-09-12  Derek Price  <derek@ximbiot.com>
80773             Paul Eggert  <eggert@cs.ucla.edu>
80774
80775         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80776         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80777         protecting things that should be done only in gnulib contexts.
80778         * lib/glob_.h: New file, containing only the glob things needed for
80779         gnulib.
80780         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80781         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80782         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80783         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80784         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80785         and to respect the namespace rules better.
80786
80787 2005-09-08  Simon Josefsson  <jas@extundo.com>
80788
80789         * modules/socklen: New file.
80790
80791 2005-09-08  Simon Josefsson  <jas@extundo.com>
80792
80793         * m4/socklen.m4: New file.
80794
80795 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80796
80797         * modules/utimens (Files): Add m4/utimbuf.m4, since
80798         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80799         Reported by Sergey Poznyakoff.
80800
80801 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80802
80803         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80804         definitions, since that's the preferred style in glibc.
80805         Fix a minor spacing issue, and update copyright notice to match
80806         glibc's.
80807
80808 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80811
80812 2005-09-06  Simon Josefsson  <jas@extundo.com>
80813
80814         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80815         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80816
80817 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80818
80819         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80820         warning.
80821
80822 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80823
80824         * config/srclist.txt: Add glibc bug 1302.
80825
80826 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80827
80828         Change bitset word type from unsigned int to unsigned long int,
80829         as this has better performance on typical 64-bit hosts.
80830         Port bitset code to hosts with unusual word sizes.
80831         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80832         (build_collating_symbol):
80833         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80834         argument is a bitset.  This is merely a style issue, but it makes
80835         it clearer that an entire array is expected.
80836         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80837         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80838         Port to the case where bitset_word is not the same as unsigned int.
80839         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80840         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80841         Likewise.
80842         * lib/regexec.c (check_dst_limits_calc_pos_1,
80843         check_subexp_matching_top):
80844         (build_trtable, group_nodes_into_DFAstates):
80845         Likewise.
80846         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80847         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80848         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80849         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80850         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80851         * lib/regcomp.c (optimize_subexps, lower_subexp):
80852         Work even if bitset_word has holes in its bitwise representation.
80853         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80854         * lib/regexec.c (check_dst_limits_calc_pos_1,
80855         check_subexp_matching_top):
80856         Likewise.
80857         * lib/regex_internal.c (re_string_reconstruct):
80858         Don't assume UCHAR_MAX == 255.
80859         * lib/regex_internal.h (bitset_set_all): Likewise.
80860         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80861         All uses changed.
80862         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80863         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80864         All uses changed.
80865         (BITSET_WORD_MAX): New macro.
80866         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80867         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80868         (bitset_empty, bitset_copy):
80869         Prefer sizeof (bitset) to multiplying it out ourselves.
80870         (bitset_not_merge): Remove; unused.
80871         (bitset_contain): Return bool, not unsigned int with one bit on.
80872         All callers changed.
80873         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80874         alignment than re_node_set; do this by defining a new internal
80875         type struct dests_alloc and using it to allocate memory.
80876
80877 2005-09-05  Bruno Haible  <bruno@clisp.org>
80878
80879         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80880         links.
80881
80882 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80883
80884         * modules/size_max (Makefile.am): Add size_max.h
80885
80886 2005-09-04  Derek Price  <derek@ximbiot.com>
80887
80888         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80889
80890 2005-09-03  Simon Josefsson  <jas@extundo.com>
80891
80892         * gnulib-tool: Fix typo.
80893
80894 2005-09-03  Simon Josefsson  <jas@extundo.com>
80895
80896         * config/srclist.txt: Add glibc bug 1293.
80897
80898 2005-09-03  Derek Price  <derek@ximbiot.com>
80899
80900         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80901         From Larry Jones <lawrence.jones@ugs.com>.
80902
80903 2005-09-02  Simon Josefsson  <jas@extundo.com>
80904
80905         * modules/socklen: New file.
80906
80907 2005-09-02  Simon Josefsson  <jas@extundo.com>
80908
80909         * modules/havelib: New module.
80910
80911         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80912         Use havelib.
80913
80914 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80915
80916         Check for arithmetic overflow when calculating sizes, to prevent
80917         some buffer-overflow issues.  These patches are conservative, in the
80918         sense that when I couldn't determine whether an overflow was possible,
80919         I inserted a run-time check.
80920         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80921         macros.
80922         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80923         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80924         (re_xnrealloc, re_x2nrealloc): New inline functions.
80925         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80926         parse_bracket_exp):
80927         (build_equiv_class, build_charclass): Check for arithmetic overflow
80928         in size expression calculations.
80929         * lib/regex_internal.c (re_string_realloc_buffers):
80930         (build_wcs_upper_buffer, re_node_set_add_intersect):
80931         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80932         (re_dfa_add_node, register_state): Likewise.
80933         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80934         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80935         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80936         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80937
80938 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80939
80940         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80941         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80942
80943 2005-09-02  Bruno Haible  <bruno@clisp.org>
80944
80945         Support for lib vs. lib64 distinction on biarch platforms.
80946         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80947         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80949
80950 2005-09-02  Bruno Haible  <bruno@clisp.org>
80951
80952         * gnulib-tool (import): In the other first-use case, provide defaults
80953         as well.
80954
80955 2005-09-02  Bruno Haible  <bruno@clisp.org>
80956
80957         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80958         patches not yet found in the latest gettext release.
80959
80960 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80963         to avoid a collision with bits/local_lim.h in glibc.
80964         All uses changed.  Problem reported by Dmitry V. Levin in
80965         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80966
80967         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80968         bugs in int versus size_t comparisons.
80969         (re_string_context_at): Fix bug where the code assumed that
80970         Idx is signed.
80971
80972         Use bool where appropriate.
80973         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80974         All callers changed.
80975         (calc_eclosure_iter): Likewise, for ROOT arg.
80976         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80977         (build_charclass_op): Likewise, for NON_MATCH arg.
80978         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80979         (re_string_construct_common): Likewise, for ICASE arg.
80980         * lib/regexec.c (re_search_2_stub, re_search_stub):
80981         Likewise, for RET_LEN arg.
80982         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80983         (set_regs): Likewise, for FL_BACKTRACK arg.
80984         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80985         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80986         (calc_eclosure_iter, parse_bracket_exp):
80987         Use bool for internal variables that are booleans.
80988         * lib/regexec.c (re_search_internal, check_matching,
80989         proceed_next_node):
80990         (set_regs, build_sifted_states, sift_states_bkref):
80991         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80992         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80993         (find_collation_sequence_value):
80994         Likewise.
80995         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80996         (re_node_set_compare):
80997         Return bool, not int. All callers changed.
80998         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80999         (build_trtable, check_node_accept): Likewise.
81000         * lib/regex_internal.h: Include stdbool.h.
81001
81002         Fix bugs uncovered when converting to bool.
81003         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81004         failure instead of charging ahead blindly.
81005         * lib/regex_internal.c (register_state): Likewise.
81006         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81007         for freeing internal storage.
81008         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81009         bitset pieces used as boolean, to avoid undefined behavior
81010         on hosts that do int overflow checking.
81011
81012 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81013
81014         * config/srclist.txt: Add glibc bugs 1285-1287.
81015
81016 2005-09-01  Jim Meyering  <jim@meyering.net>
81017
81018         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81019         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81020         Require gl_STAT_MACROS, too.
81021
81022 2005-09-01  Bruno Haible  <bruno@clisp.org>
81023
81024         * gnulib-tool (import): In the first-use case, provide defaults.
81025
81026 2005-09-01  Bruno Haible  <bruno@clisp.org>
81027
81028         * gnulib-tool (func_import): Remove the .tmp files.
81029
81030 2005-09-01  Bruno Haible  <bruno@clisp.org>
81031
81032         * gnulib-tool (func_import): Fix handling of symbolic links.
81033
81034 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81035
81036         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81037         old glibc regex code mishandles strings longer than 2**31 bytes.
81038         This patch fixes this when the regex code is used in gnulib
81039         (i.e., outside glibc).
81040
81041         This patch should not affect the use of the regex code inside
81042         glibc.  No doubt this problem also needs to be handled for glibc
81043         as well, but the result will be an incompatible change to the
81044         glibc ABI, and the old ABI will have to be supported too.  That
81045         can be the the subject for another patch.
81046
81047         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81048         governing whether the rest of this patch is active.  By default,
81049         the macro is disabled and the patch has no effect.
81050         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81051         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81052         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81053         (re_match_2, re_set_registers): Use the new types.
81054         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81055         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81056         New macros.
81057         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81058         (re_string_context_at, bin_tree_t, re_dfastate_t):
81059         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81060         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81061         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81062         (re_string_char_size_at, re_string_wchar_at):
81063         (re_string_elem_size_at):
81064         Use the new types and macros to port to 64-bit hosts.
81065         Use unsigned types for internal values, so that the code
81066         mostly works even for arrays larger than SSIZE_MAX.
81067         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81068         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81069         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81070         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81071         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81072         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81073         (calc_inveclosure, parse_dup_op, build_range_exp):
81074         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81075         (fetch_number, create_token_tree, mark_opt_subexp):
81076         Likewise.
81077         * lib/regex_internal.c (re_string_construct_common,
81078         create_ci_newstate):
81079         (create_cd_newstate, re_string_allocate, re_string_construct):
81080         (re_string_realloc_buffers, build_wcs_upper_buffer):
81081         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81082         (re_string_reconstruct, re_string_peek_byte_case):
81083         (re_string_fetch_byte_case, re_string_context_at):
81084         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81085         (re_node_set_init_copy, re_node_set_add_intersect):
81086         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81087         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81088         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81089         (re_acquire_state, re_acquire_state_context, register_state):
81090         Likewise.
81091         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81092         search_cur_bkref_entry):
81093         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81094         (re_search_internal, re_search_2_stub, re_search_stub)
81095         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81096         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81097         (update_cur_sifted_state, check_dst_limits):
81098         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81099         (check_subexp_limits, sift_states_bkref, merge_state_array):
81100         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81101         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81102         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81103         (expand_bkref_cache, check_node_accept_bytes):
81104         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81105         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81106         (acquire_init_state_context, check_halt_node_context):
81107         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81108         (sift_states_backward, clean_state_log_if_needed):
81109         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81110         (find_recover_state, transit_state_sb, transit_state_mb):
81111         (transit_state_bkref, build_trtable, match_ctx_clean):
81112         Likewise.
81113         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81114         to work around an assumption that REG_MISSING is negative.
81115
81116         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81117         (seek_collating_symbol_entry) [defined _LIBC]:
81118         (lookup_collation_sequence_value) [defined _LIBC]:
81119         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81120         Use prototypes rather than old-style function definitions.
81121         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81122         (transit_state_sb) [0]:
81123         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81124
81125         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81126         rm_eo.
81127
81128         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81129         (optimize_subexps, lower_subexp):
81130         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81131         since the signed shift might overflow.  Use 1u<<31 instead.
81132         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81133         Likewise.
81134         * lib/regexec.c (check_dst_limits_calc_pos_1,
81135         check_subexp_matching_top): Likewise.
81136
81137         * lib/regcomp.c (optimize_subexps, lower_subexp):
81138         Use CHAR_BIT rather than 8, for clarity.
81139         * lib/regexec.c (check_dst_limits_calc_pos_1):
81140         (check_subexp_matching_top): Likewise.
81141         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81142         have to worry about portability issues when shifting it left.
81143         Remove no-longer-needed test for table_size > 0.
81144         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81145         in a word, as the resulting behavior is undefined.
81146         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81147         in one case, a <= should have been an <, and in another case the
81148         whole test was missing.
81149         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81150         the standard name CHAR_BIT.
81151         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81152         this is not true on one's complement and signed-magnitude hosts.
81153
81154         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81155         next_last_offset.
81156         (struct re_dfa_t): Remove unused member states_alloc.
81157         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81158
81159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81160
81161         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81162         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81163         and large-file glibc and in 32-bit large-file Solaris.
81164
81165 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81168         lengths fit in regoff_t; this isn't true if regoff_t is the same
81169         width as size_t.
81170         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81171         (= START + RANGE) instead of RANGE.  This avoids overflow
81172         problems when regoff_t is the same width as size_t.
81173         All callers changed.
81174         (re_search_2_stub): Check for overflow when adding the
81175         sizes of the two strings.
81176         (re_search_stub): Check for overflow when adding START
81177         to RANGE; if it occurs, substitute the extreme value.
81178
81179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81180
81181         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81182
81183 2005-08-31  Jim Meyering  <jim@meyering.net>
81184
81185         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81186         a pointer-to-const.
81187         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81188         (register_state): Likewise.
81189         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81190         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81191         (group_nodes_into_DFAstates): Likewise.
81192
81193 2005-08-31  Jim Meyering  <jim@meyering.net>
81194
81195         * check-module: Add a FIXME comment.
81196
81197 2005-08-31  Eric Blake  <ebb9@byu.net>
81198
81199         * modules/unistd-safer (Files): Add unistd--.h.
81200         * modules/stdio-safer (Files): Add stdio--.h.
81201
81202 2005-08-31  Derek Price  <derek@ximbiot.com>
81203
81204         * lib/getdelim.c (getdelim): Return EOF on EOF.
81205         Reported by Larry Jones <lawrence.jones@ugs.com>.
81206
81207 2005-08-31  Bruno Haible  <bruno@clisp.org>
81208
81209         Avoid unnecessary diffs in the generated lib/Makefile.am.
81210         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81211         the generated files.
81212         (func_import): Don't set cmd.
81213
81214 2005-08-31  Bruno Haible  <bruno@clisp.org>
81215
81216         * lib/strstr.c: Include <stddef.h>, for NULL.
81217         * lib/strcasestr.c: Likewise.
81218         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81219
81220 2005-08-31  Bruno Haible  <bruno@clisp.org>
81221
81222         * gnulib-tool: New option --macro-prefix.
81223         (func_import): Use macro_prefix.
81224         (import): Handle option --macro-prefix.
81225
81226 2005-08-31  Bruno Haible  <bruno@clisp.org>
81227
81228         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81229         Also use new variables cached_lgpl, cached_libtool.
81230
81231 2005-08-31  Bruno Haible  <bruno@clisp.org>
81232
81233         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81234         always instantiating them.
81235
81236 2005-08-31  Bruno Haible  <bruno@clisp.org>
81237
81238         * gnulib-tool (func_import): Read the previous cached settings
81239         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81240         earlier added by gnulib but are now dropped. Warn when a gnulib file
81241         overwrites a non-gnulib file.
81242
81243 2005-08-31  Bruno Haible  <bruno@clisp.org>
81244
81245         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81246         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81247         projects that don't keep autogenerated files in CVS. Put into
81248         actioncmd only the specified modules, not the transitive closure.
81249
81250 2005-08-31  Bruno Haible  <bruno@clisp.org>
81251
81252         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81253         Create directories that shall be filled.
81254         (import): Don't look for gl_* macros in configure.ac. Recurse across
81255         all directories containing a gnulib-cache.m4 files, if meaningful.
81256
81257 2005-08-31  Bruno Haible  <bruno@clisp.org>
81258
81259         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81260         (import): Set seen_libtool when we see gl_LIBTOOL.
81261
81262 2005-08-31  Bruno Haible  <bruno@clisp.org>
81263
81264         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81265         declaration macro definitions from generated gnulib.m4.
81266
81267 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81268
81269         * lib/iconvme.h: Add prototype for iconv_alloc.
81270
81271 2005-08-29  Simon Josefsson  <jas@extundo.com>
81272
81273         * lib/iconvme.c: Fix errno.
81274
81275 2005-08-29  Bruno Haible  <bruno@clisp.org>
81276
81277         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81278         that it works when the directory contains spaces.
81279
81280 2005-08-29  Bruno Haible  <bruno@clisp.org>
81281
81282         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81283
81284 2005-08-29  Bruno Haible  <bruno@clisp.org>
81285
81286         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81287         Emit more advice.
81288
81289 2005-08-29  Bruno Haible  <bruno@clisp.org>
81290         and Stepan Kasal  <kasal@ucw.cz>
81291
81292         * check-module: If more parameters are given, check each of them
81293         separately; add more exceptions, as noted by Jim Meyering.
81294         (check_module): New procedure.
81295         (%exempt_header): Now contains all exceptions.
81296
81297 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81298
81299         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81300
81301 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81302
81303         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81304
81305 2005-08-28  Bruno Haible  <bruno@clisp.org>
81306
81307         * m4/gnulib-tool.m4: New file.
81308
81309 2005-08-27  Jim Meyering  <jim@meyering.net>
81310
81311         * modules/unistd-safer (Files): Add pipe-safer.c.
81312         * modules/fcntl-safer (Files): Add creat-safer.c.
81313
81314 2005-08-27  Jim Meyering  <jim@meyering.net>
81315
81316         * m4/stdlib-safer.m4: New file.  From coreutils.
81317         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81318         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81319         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81320         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81321         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81322
81323 2005-08-27  Jim Meyering  <jim@meyering.net>
81324
81325         * lib/fopen-safer.c: Merge minor changes from coreutils.
81326         * lib/dup-safer.c: Likewise.
81327         * lib/fd-safer.c: Likewise.
81328
81329         Merge from coreutils.
81330         * lib/stdio--.h: New file.
81331         * lib/stdlib--.h: New file.
81332         * lib/mkstemp-safer.c: New file.
81333
81334         GNU tar needs these.
81335         * lib/pipe-safer.c: New file.
81336         * lib/creat-safer.c: New file.
81337         * lib/fcntl--.h (creat): Define to creat_safer.
81338         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81339         * lib/unistd--.h (pipe): Define to pipe_safer.
81340         * lib/unistd-safer.h: Declare pipe_safer.
81341
81342 2005-08-26  Simon Josefsson  <jas@extundo.com>
81343
81344         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81345         Haible <bruno@clisp.org>.
81346
81347 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * lib/regex_internal.h: Remove all references to
81350         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81351         or better.
81352         (bitset_not, bitset_merge, bitset_not_merge):
81353         (bitset_mask, re_string_allocate, re_string_construct):
81354         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81355         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81356         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81357         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81358         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81359         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81360         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81361         (re_acquire_state_context):
81362         Remove unnecessary forward decls.
81363         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81364         Put __attribute at function definition,
81365         now that the function decl has been removed.
81366         * lib/regex_internal.c (re_string_peek_byte_case):
81367         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81368         Likewise.
81369
81370 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81371
81372         * m4/regex.m4: Add AC_PREREQ(2.50).
81373         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81374
81375 2005-08-25  Simon Josefsson  <jas@extundo.com>
81376
81377         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81378         __fsetlocking.
81379
81380 2005-08-25  Simon Josefsson  <jas@extundo.com>
81381
81382         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81383         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81384         GLIBC specific code.
81385
81386 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81387
81388         Make regex safe for g++.  This fixes one real bug (an "err"
81389         that should have been "*err").  g++ problem reported by
81390         Sam Steingold.
81391         * lib/regex_internal.h (re_calloc): New macro, consistent with
81392         re_malloc etc.  All callers of calloc changed to use re_calloc.
81393         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81394         not int.  All callers changed.
81395         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81396         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81397         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81398         (find_recover_state): Change "err" to "*err"; this fixes what
81399         appears to be a real bug.
81400         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81401         versus int.
81402
81403 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81404
81405         * modules/regex (Depends-on): Add malloc, since the code
81406         assumes that !malloc(0) means failure.
81407
81408 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81409
81410         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81411
81412         alloca modernization/simplification for regex.
81413         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81414         needs to be at the start of the file, and can be moved into
81415         regex_internal.h and simplified.
81416         * lib/regex_internal.h: Include <alloca.h>.
81417         (__libc_use_alloca) [!defined _LIBC]: New macro.
81418         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81419         now works outside glibc.
81420
81421 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         * config/srclist.txt: Add glibc bugs 1241, 1245.
81424
81425 2005-08-25  Jim Meyering  <jim@meyering.net>
81426
81427         * lib/open-safer.c: Include <config.h>.
81428         Otherwise, we'd lose LARGEFILE support in any file using
81429         e.g. "fcntl--.h"
81430
81431 2005-08-25  Bruno Haible  <bruno@clisp.org>
81432
81433         * m4/minmax.m4: Require autoconf 2.52.
81434         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81435         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81436         alternatives of translit over the alphabet.
81437         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81438
81439 2005-08-24  Simon Josefsson  <jas@extundo.com>
81440
81441         * tests/test-getpass.c: New file.
81442
81443 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81444
81445         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81446         for GNU regex features.
81447
81448 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81449
81450         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81451         * lib/regex.h (regerror): Likewise.
81452
81453         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81454         requires this.  (The code never needed it.)
81455
81456         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81457         All uses of recently-renamed identifiers changed to use the new,
81458         POSIX-compliant names.  The code will build and run just fine
81459         without these changes, but it's better to eat our own dog food
81460         and use the standard-conforming names.
81461
81462         * lib/regex.h: Fix a multitude of POSIX name space violations.
81463         These changes have an effect only for programs that define
81464         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81465         do not change anything for programs compiled in the normal way.
81466         Also, there is no effect on the ABI.
81467
81468         (_REGEX_SOURCE): New macro.
81469         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81470         defined and _GNU_SOURCE is not; this fixes a name space violation.
81471
81472         Rename the following macros to obey POSIX requirements.
81473         The old names are still visible as macros if _REGEX_SOURCE is defined.
81474         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81475         RE_BACKSLASH_ESCAPE_IN_LISTS.
81476         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81477         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81478         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81479         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81480         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81481         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81482         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81483         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81484         (REG_INTERVALS): renamed from RE_INTERVALS.
81485         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81486         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81487         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81488         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81489         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81490         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81491         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81492         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81493         RE_UNMATCHED_RIGHT_PAREN_ORD.
81494         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81495         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81496         (REG_DEBUG): renamed from RE_DEBUG.
81497         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81498         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81499         unusual, since we can't clash with the POSIX REG_ICASE.
81500         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81501         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81502         (REG_NO_SUB): renamed from RE_NO_SUB.
81503         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81504         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81505         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81506         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81507         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81508         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81509         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81510         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81511         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81512         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81513         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81514         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81515         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81516         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81517         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81518         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81519         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81520         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81521         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81522         (REG_FIXED): Renamed from REGS_FIXED.
81523         (REG_NREGS): Renamed from RE_NREGS.
81524
81525         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81526         of other REG_* macros, since POSIX says the user is allowed to
81527         #undef these macros selectively.
81528
81529         (reg_errcode_t): Update comment stating what other tables need
81530         to be consistent.
81531
81532         Rename the following enum values to obey POSIX requirements.
81533         The old names are still visible as macros.
81534         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81535         is not defined, since GNU is supposed to be a superset of POSIX as
81536         much as possible, and since we want reg_errcode_t to be a signed
81537         type for implementation consistency.
81538         (_REG_NOERROR): Renamed from REG_NOERROR.
81539         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81540         (_REG_BADPAT): Renamed from REG_BADPAT.
81541         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81542         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81543         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81544         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81545         (_REG_EBRACK): Renamed from REG_EBRACK.
81546         (_REG_EPAREN): Renamed from REG_EPAREN.
81547         (_REG_EBRACE): Renamed from REG_EBRACE.
81548         (_REG_BADBR): Renamed from REG_BADBR.
81549         (_REG_ERANGE): Renamed from REG_ERANGE.
81550         (_REG_ESPACE): Renamed from REG_ESPACE.
81551         (_REG_BADRPT): Renamed from REG_BADRPT.
81552         (_REG_EEND): Renamed from REG_EEND.
81553         (_REG_ESIZE): Renamed from REG_ESIZE.
81554         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81555         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81556         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81557         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81558         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81559
81560         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81561         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81562         changed.  But support the old name if the new one is not defined
81563         and if _REGEX_SOURCE.
81564
81565         Change the following member names in struct re_pattern_buffer.
81566         The old names are still supported if !_REGEX_SOURCE.
81567         The new names are always supported, regardless of _REGEX_SOURCE.
81568         (re_buffer): Renamed from buffer.
81569         (re_allocated): Renamed from allocated.
81570         (re_used): Renamed from used.
81571         (re_syntax): Renamed from syntax.
81572         (re_fastmap): Renamed from fastmap.
81573         (re_translate): Renamed from translate.
81574         (re_can_be_null): Renamed from can_be_null.
81575         (re_regs_allocated): Renamed from regs_allocated.
81576         (re_fastmap_accurate): Renamed from fastmap_accurate.
81577         (re_no_sub): Renamed from no_sub.
81578         (re_not_bol): Renamed from not_bol.
81579         (re_not_eol): Renamed from not_eol.
81580         (re_newline_anchor): Renamed from newline_anchor.
81581
81582         Change the following member names in struct re_registers.
81583         The old names are still supported if !_REGEX_SOURCE.
81584         The new names are always supported, regardless of _REGEX_SOURCE.
81585         (rm_num_regs): Renamed from num_regs.
81586         (rm_start): Renamed from start.
81587         (rm_end): Renamed from end.
81588
81589         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81590         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81591         Prepend __ to parameter names.
81592
81593         Undo yesterday's changes.
81594
81595 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81596
81597         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81598         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81599         lib/regex.c.
81600
81601 2005-08-24  Jim Meyering  <jim@meyering.net>
81602
81603         Sync from coreutils.
81604         * m4/fcntl-safer.m4: New file.
81605
81606         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81607         and object files for this module.
81608
81609 2005-08-24  Jim Meyering  <jim@meyering.net>
81610
81611         Sync from coreutils.
81612         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81613
81614 2005-08-24  Jim Meyering  <jim@meyering.net>
81615
81616         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81617         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81618
81619 2005-08-24  Jim Meyering  <jim@meyering.net>
81620
81621         * modules/fcntl-safer: New module.
81622         * modules/fts (Depends-on): Add fcntl-safer.
81623         * MODULES.html.sh (File descriptor based Input/Output):
81624         Add fcntl-safer.
81625
81626 2005-08-24  Bruno Haible  <bruno@clisp.org>
81627
81628         Support for unit test modules.
81629         * modules/README: Mention tests modules.
81630         * modules/TEMPLATE-TESTS: New file.
81631         * gnulib-tool: New options --extract-tests-module, --with-tests and
81632         --tests-base (unused for the moment).
81633         (testsbase, inctests): New variables.
81634         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81635         (func_verify_module): Exclude TEMPLATE-TESTS.
81636         (func_verify_nontests_module, func_verify_tests_module): New functions.
81637         (func_get_dependencies): Add implicit dependency for tests modules.
81638         (func_get_tests_module): New function.
81639         (func_modules_transitive_closure): When --with-tests was specified,
81640         include the unit tests as well, unless explicitly avoided.
81641         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81642         (func_emit_tests_Makefile_am): New function.
81643         (func_create_testdir): When --with-tests was specified, emit a
81644         tests/ directory.
81645         * MODULES.html.sh (Future developments): Update.
81646
81647 2005-08-24  Bruno Haible  <bruno@clisp.org>
81648
81649         * modules/tls-tests: New file.
81650         * tests/test-tls.c: New file, from GNU gettext.
81651
81652 2005-08-24  Bruno Haible  <bruno@clisp.org>
81653
81654         * modules/lock-tests: New file.
81655         * tests/test-lock.c: New file, from GNU gettext.
81656
81657 2005-08-24  Bruno Haible  <bruno@clisp.org>
81658
81659         * lib/lock.h: Add multiple inclusion guard.
81660         * lib/tls.h: Add multiple inclusion guard.
81661
81662 2005-08-24  Bruno Haible  <bruno@clisp.org>
81663
81664         * gnulib-tool: Add support for the --aux-dir option to
81665         --create-testdir, --create-megatestdir, --test, --megatest.
81666         (func_create_testdir, func_create_megatestdir): Optionally emit a
81667         AC_CONFIG_AUX_DIR directive.
81668         (create-testdir, create-megatestdir, test, megatest): Provide a
81669         default value for $auxdir.
81670
81671 2005-08-24  Bruno Haible  <bruno@clisp.org>
81672
81673         * gnulib-tool (import): Use compound statement instead of subshell
81674         where possible.
81675
81676 2005-08-24  Bruno Haible  <bruno@clisp.org>
81677
81678         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81679
81680 2005-08-24  Bruno Haible  <bruno@clisp.org>
81681
81682         * gnulib-tool (func_version): Update.
81683
81684 2005-08-24  Bruno Haible  <bruno@clisp.org>
81685
81686         * gnulib-tool (func_import, func_create_testdir,
81687         func_create_megatestdir): Quote all autoconf macro arguments.
81688
81689 2005-08-24  Bruno Haible  <bruno@clisp.org>
81690
81691         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81692         option --force, because --force causes the aclocal.m4 of each
81693         subdirectory to be newer than the corresponding config.h.in.
81694
81695 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81696
81697         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81698         All contents moved to gl_REGEX.
81699         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81700         assume that it does.
81701
81702 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81703
81704         * lib/regex.h (REG_NOSYS)
81705         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81706         Define, since POSIX requires it as of 2001.
81707         (_REG_ENOSYS)
81708         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81709         New private symbol, used to keep the enum signed in all cases.
81710         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81711         Youngman in
81712         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81713
81714         * lib/regex_internal.c (re_string_skip_chars, register_state):
81715         (calc_state_hash):
81716         Remove forward decls; no longer needed now that we use prototypes.
81717         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81718         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81719         (clean_state_log_if_needed): Likewise.
81720
81721 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         * config/srclist.txt: Add glibc bugs 1231-1233.
81724
81725 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81726
81727         Fix problems reported by Sam Steingold in
81728         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81729         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81730         assumed that reg_errcode_t is a signed type, which is not
81731         necessarily true if _XOPEN_SOURCE is not defined.
81732         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81733         since some compilers warn about it otherwise.
81734
81735 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81738         (init_word_char, create_initial_state, duplicate_node_closure):
81739         (fetch_token, peek_token_bracket, build_range_exp):
81740         (build_collating_symbol): Remove forward decls; no longer needed
81741         now that we use prototypes.
81742
81743         * lib/regcomp.c:
81744         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81745         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81746         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81747         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81748         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81749         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81750         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81751         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81752         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81753         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81754         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81755         (build_charclass, build_charclass_op, fetch_number, create_tree):
81756         (create_token_tree, mark_opt_subexp, duplicate_tree):
81757         Use prototypes rather than old-style definitions.
81758
81759         * lib/regex_internal.c:
81760         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81761         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81762         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81763         (re_string_reconstruct, re_string_peek_byte_case):
81764         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81765         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81766         (re_node_set_init_copy, re_node_set_add_intersect):
81767         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81768         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81769         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81770         (re_acquire_state, re_acquire_state_context, register_state):
81771         (create_ci_newstate, create_cd_newstate, free_state):
81772         Likewise.
81773         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81774         re_search_2):
81775         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81776         (re_search_internal, prune_impossible_nodes):
81777         (acquire_init_state_context, check_matching, static):
81778         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81779         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81780         (update_regs, sift_states_backward, build_sifted_states):
81781         (clean_state_log_if_needed, merge_state_array):
81782         (update_cur_sifted_state, add_epsilon_src_nodes):
81783         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81784         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81785         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81786         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81787         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81788         (check_arrival, check_arrival_add_next_nodes):
81789         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81790         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81791         (check_node_accept_bytes, check_node_accept, extend_buffers):
81792         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81793         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81794         (sift_ctx_init):
81795         Likewise.
81796
81797         * lib/regex_internal.h:
81798         (re_string_allocate, re_string_construct, re_string_reconstruct):
81799         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81800         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81801         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81802         (re_string_context_at, re_string_peek_byte_case):
81803         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81804         is defined, since we now use prototypes always.
81805
81806         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81807         C89 or better.  All uses removed.
81808
81809 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81810
81811         * config/srclist.txt: Add glibc bugs 1220-1227.
81812
81813 2005-08-20  Jim Meyering  <jim@meyering.net>
81814
81815         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81816         of unused local, dfa.
81817
81818 2005-08-20  Bruno Haible  <bruno@clisp.org>
81819
81820         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81821
81822 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81825         (re_node_set_insert_last, re_dfa_add_node):
81826         Rename local variables to avoid GCC shadowing warnings.
81827
81828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81829
81830         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81831         [defined lint]: Suppress bogus uninitialized-variable warnings.
81832
81833         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81834         and let the caller return REG_ESPACE if out of space.  This
81835         removes an uninitialied-variable warning with GCC 4.0.1, and also
81836         avoids taking the address of a local variable.  All callers
81837         changed.
81838
81839 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81840
81841         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81842         $LIBCSRC/posix/regexec.c.
81843         Add glibc bug 1217 for regcomp.c.
81844
81845 2005-08-19  Jim Meyering  <jim@meyering.net>
81846
81847         * lib/regexec.c (proceed_next_node): Redo local variables to
81848         avoid GCC shadowing warnings.
81849
81850 2005-08-18  Bruno Haible  <bruno@clisp.org>
81851
81852         * lib/strstr.c (strstr): Fix return value in multibyte case.
81853         * lib/strcasestr.c (strcasestr): Likewise.
81854
81855 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81856
81857         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81858
81859 2005-08-17  Jim Meyering  <jim@meyering.net>
81860
81861         Make the %s format (seconds since the epoch) work for a negative
81862         number and when used with a zero-padded field width, e.g. %015s.
81863
81864         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81865         label so that it precedes the code to set `digits'.  Otherwise,
81866         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81867         print `00-22'.  Now, it prints `-0022', as it should.
81868
81869 2005-08-17  Bruno Haible  <bruno@clisp.org>
81870
81871         * modules/strstr (Files): Add m4/mbrtowc.m4.
81872         (Depends-on): Add mbuiter.
81873
81874 2005-08-17  Bruno Haible  <bruno@clisp.org>
81875
81876         * modules/strcasestr: New file.
81877         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81878         strcasestr.
81879
81880 2005-08-17  Bruno Haible  <bruno@clisp.org>
81881
81882         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81883
81884 2005-08-17  Bruno Haible  <bruno@clisp.org>
81885
81886         * modules/mbuiter: New file.
81887         * MODULES.html.sh (Extended multibyte and wide character utilities):
81888         Add mbuiter.
81889
81890 2005-08-17  Bruno Haible  <bruno@clisp.org>
81891
81892         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81893         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81894
81895 2005-08-17  Bruno Haible  <bruno@clisp.org>
81896
81897         * m4/strcasestr.m4: New file.
81898
81899 2005-08-17  Bruno Haible  <bruno@clisp.org>
81900
81901         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81902         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81903
81904 2005-08-17  Bruno Haible  <bruno@clisp.org>
81905
81906         * lib/strcasestr.h: New file.
81907         * lib/strcasestr.c: New file.
81908
81909 2005-08-17  Bruno Haible  <bruno@clisp.org>
81910
81911         * lib/strcasecmp.c: Use mbuiter.h.
81912
81913 2005-08-17  Bruno Haible  <bruno@clisp.org>
81914
81915         * lib/mbuiter.h: New file.
81916
81917 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81920         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81921         and gl_GETOPT are both invoked via different paths (as happens
81922         with GNU tar CVS because it uses both argp and getopt), the former
81923         wins.
81924
81925 2005-08-16  Bruno Haible  <bruno@clisp.org>
81926
81927         * modules/tls: New file.
81928         * MODULES.html.sh (Multithreading): Add tls.
81929
81930 2005-08-16  Bruno Haible  <bruno@clisp.org>
81931
81932         * modules/strnlen1: New file.
81933         * MODULES.html.sh (String handling): Add strnlen1.
81934
81935 2005-08-16  Bruno Haible  <bruno@clisp.org>
81936
81937         * modules/strcase (Files): Add m4/mbrtowc.m4.
81938         (Depends-on): Add strnlen1, mbchar.
81939
81940 2005-08-16  Bruno Haible  <bruno@clisp.org>
81941
81942         * modules/mbiter: New file.
81943         * MODULES.html.sh (Extended multibyte and wide character utilities):
81944         Add mbiter.
81945
81946 2005-08-16  Bruno Haible  <bruno@clisp.org>
81947
81948         * modules/mbfile: New file.
81949         * MODULES.html.sh (Extended multibyte and wide character utilities):
81950         Add mbfile.
81951
81952 2005-08-16  Bruno Haible  <bruno@clisp.org>
81953
81954         * modules/mbchar: New file.
81955         * MODULES.html.sh (Extended multibyte and wide character utilities):
81956         New section.
81957
81958 2005-08-16  Bruno Haible  <bruno@clisp.org>
81959
81960         * m4/tls.m4: New file, from GNU gettext.
81961
81962 2005-08-16  Bruno Haible  <bruno@clisp.org>
81963
81964         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81965         always.
81966         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81967
81968 2005-08-16  Bruno Haible  <bruno@clisp.org>
81969
81970         * m4/mbiter.m4: New file.
81971
81972 2005-08-16  Bruno Haible  <bruno@clisp.org>
81973
81974         * m4/mbfile.m4: New file.
81975
81976 2005-08-16  Bruno Haible  <bruno@clisp.org>
81977
81978         * m4/mbchar.m4: New file.
81979
81980 2005-08-16  Bruno Haible  <bruno@clisp.org>
81981
81982         * lib/tls.h: New file, from GNU gettext.
81983         * lib/tls.c: New file, from GNU gettext.
81984
81985 2005-08-16  Bruno Haible  <bruno@clisp.org>
81986
81987         * lib/strnlen1.h: New file.
81988         * lib/strnlen1.c: New file.
81989
81990 2005-08-16  Bruno Haible  <bruno@clisp.org>
81991
81992         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81993         (mbi_init): Update.
81994         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81995         NUL byte, not after it.
81996
81997 2005-08-16  Bruno Haible  <bruno@clisp.org>
81998
81999         * lib/strcase.h (strcasecmp): Add note in comments.
82000         * lib/strncasecmp.c: Use code from strcasecmp.c.
82001         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82002         (strcasecmp): Work correctly in multibyte locales.
82003
82004 2005-08-16  Bruno Haible  <bruno@clisp.org>
82005
82006         * lib/mbiter.h: New file.
82007
82008 2005-08-16  Bruno Haible  <bruno@clisp.org>
82009
82010         * lib/mbfile.h: New file.
82011
82012 2005-08-16  Bruno Haible  <bruno@clisp.org>
82013
82014         * lib/mbchar.h: New file.
82015         * lib/mbchar.c: New file.
82016
82017 2005-08-16  Bruno Haible  <bruno@clisp.org>
82018
82019         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82020         the valid ones. Makes the comparison operations transitive:
82021         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82022         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82023
82024 2005-08-15  Simon Josefsson  <jas@extundo.com>
82025
82026         * modules/ssize_t (License): Change to 'unlimited'.
82027
82028         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82029
82030 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82033         Add comments for each pending glibc patch.
82034
82035 2005-08-15  Bruno Haible  <bruno@clisp.org>
82036
82037         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82038         __cplusplus is defined.
82039
82040 2005-08-14  Jim Meyering  <jim@meyering.net>
82041
82042         Sync from coreutils.
82043
82044         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82045         Use the hash-table-based cycle-detection code not just when
82046         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82047         Reported by James Youngman in
82048         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82049         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82050         FTS_TIGHT_CYCLE_CHECK.
82051         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82052         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82053         once again.
82054         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82055         * lib/fts.c (fd_safer): Remove decl.
82056         Include fcntl--.h rather than unistd-safer.h
82057         (fts_safe_changedir): Don't call fd_safer; no longer needed
82058         now that we include fcntl--.h.
82059
82060 2005-08-12  Simon Josefsson  <jas@extundo.com>
82061
82062         * modules/getndelim2: Use ssize_t module.
82063         * modules/getnline: Likewise.
82064         * modules/safe-read: Likewise.
82065         * modules/xreadlink: Likewise.
82066
82067         * modules/ssize_t: New file.
82068
82069 2005-08-12  Simon Josefsson  <jas@extundo.com>
82070
82071         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82072
82073 2005-08-12  Simon Josefsson  <jas@extundo.com>
82074
82075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82076         ssize_t.
82077
82078 2005-08-12  Simon Josefsson  <jas@extundo.com>
82079
82080         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82081         readline, getdelim and check_version.
82082         (Support for systems lacking ISO C 99: Sizes of integer types):
82083         Add size_max.
82084
82085 2005-08-12  Bruno Haible  <bruno@clisp.org>
82086
82087         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82088
82089 2005-08-11  Simon Josefsson  <jas@extundo.com>
82090
82091         * modules/readline: New file.
82092
82093         * modules/strnlen (Files): Add strnlen.h.
82094
82095 2005-08-11  Simon Josefsson  <jas@extundo.com>
82096
82097         * m4/readline.m4: New file.
82098
82099 2005-08-11  Simon Josefsson  <jas@extundo.com>
82100
82101         * lib/readline.h, readline.c: New file.
82102
82103 2005-08-11  Simon Josefsson  <jas@extundo.com>
82104
82105         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82106         gl_AVOID.
82107
82108 2005-08-11  Bruno Haible  <bruno@clisp.org>
82109
82110         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82111
82112 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82113
82114         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82115
82116 2005-08-10  Simon Josefsson  <jas@extundo.com>
82117
82118         * tests/test-iconvme.c: New file.
82119
82120 2005-08-10  Simon Josefsson  <jas@extundo.com>
82121
82122         * m4/strnlen.m4: New file.
82123
82124         * m4/strndup.m4: Don't check for strnlen declaration, done in
82125         strnlen.m4.
82126
82127 2005-08-10  Simon Josefsson  <jas@extundo.com>
82128
82129         * lib/strndup.c: Use strnlen.h.
82130
82131         * lib/strnlen.h: New file.
82132
82133 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82134
82135         * README: Typos.
82136
82137 2005-08-02  Simon Josefsson  <jas@extundo.com>
82138
82139         * modules/readline: New file.
82140
82141 2005-08-02  Simon Josefsson  <jas@extundo.com>
82142
82143         * modules/getdelim: New file.
82144
82145         * modules/getline: Rewrite, don't use getndelim2.
82146
82147 2005-08-02  Simon Josefsson  <jas@extundo.com>
82148
82149         * m4/getline.m4: Separate out getdelim stuff into separate module.
82150
82151         * m4/getdelim.m4: New file.
82152
82153 2005-08-02  Simon Josefsson  <jas@extundo.com>
82154
82155         * lib/getline.h, getline.c: Rewrite.
82156
82157         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82158
82159 2005-07-31  Bruno Haible  <bruno@clisp.org>
82160
82161         * lib/lock.h (gl_lock_initializer): New macro.
82162         (gl_lock_define_initialized): Use it.
82163         (gl_rwlock_initializer): New macro.
82164         (gl_rwlock_define_initialized): Use it.
82165         (gl_recursive_lock_initializer): New macro.
82166         (gl_recursive_lock_define_initialized): Use it.
82167
82168 2005-07-30  Karl Berry  <karl@gnu.org>
82169
82170         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82171         Report from Ben Pfaff, regarding getopt.
82172
82173 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82174
82175         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82176         normal way.
82177         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82178         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82179         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82180         (gl_GETOPT): Use the new macros.  Most of the implementation
82181         is moved to the new macros.  This is for programs like Emacs
82182         that don't want all the functionality of gl_GETOPT.
82183
82184 2005-07-26  Bruno Haible  <bruno@clisp.org>
82185
82186         * m4/lock.m4: Update from GNU gettext.
82187
82188 2005-07-26  Bruno Haible  <bruno@clisp.org>
82189
82190         * lib/lock.h: Update from GNU gettext.
82191         * lib/lock.c: Update from GNU gettext.
82192
82193 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82194
82195         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82196         obsolescent AC_TRY_RUN.  Include the default includes files, for
82197         'exit'.
82198
82199 2005-07-24  Bruno Haible  <bruno@clisp.org>
82200
82201         * modules/visibility: New file.
82202         * MODULES.html.sh (Misc): Add visibility.
82203
82204 2005-07-24  Bruno Haible  <bruno@clisp.org>
82205
82206         * m4/visibility.m4: New file.
82207
82208 2005-07-24  Bruno Haible  <bruno@clisp.org>
82209
82210         * doc/visibility.texi: New file.
82211
82212 2005-07-22  Bruno Haible  <bruno@clisp.org>
82213
82214         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82215         $(ALLOCA_H), redundant through BUILT_SOURCES.
82216         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82217         redundant through BUILT_SOURCES.
82218         * modules/byteswap (Makefile.am): Remove explicit dependency on
82219         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82220         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82221         $(FNMATCH_H), redundant through BUILT_SOURCES.
82222         * modules/getopt (Makefile.am): Remove explicit dependency on
82223         $(GETOPT_H), redundant through BUILT_SOURCES.
82224         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82225         redundant through BUILT_SOURCES.
82226         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82227         redundant through BUILT_SOURCES.
82228         * modules/stdbool (Makefile.am): Remove explicit dependency on
82229         $(STDBOOL_H), redundant through BUILT_SOURCES.
82230         * modules/stdint (Makefile.am): Remove explicit dependency on
82231         $(STDINT_H), redundant through BUILT_SOURCES.
82232         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82233         Remove explicit dependency on $(SYSEXITS_H).
82234         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82235
82236 2005-07-18  Simon Josefsson  <jas@extundo.com>
82237
82238         * lib/check-version.c (check_version): Accept identical versions too.
82239
82240 2005-07-18  Bruno Haible  <bruno@clisp.org>
82241
82242         * modules/lock: New file.
82243         * MODULES.html.sh (Multithreading): New section.
82244
82245 2005-07-18  Bruno Haible  <bruno@clisp.org>
82246
82247         * m4/lock.m4: New file, from GNU gettext.
82248
82249 2005-07-18  Bruno Haible  <bruno@clisp.org>
82250
82251         * lib/lock.h: New file, from GNU gettext.
82252         * lib/lock.c: New file, from GNU gettext.
82253
82254 2005-07-18  Bruno Haible  <bruno@clisp.org>
82255
82256         * lib/lock.h (gl_once_t): New type.
82257         (gl_once_define, gl_once): New macros.
82258         * lib/lock.c (fresh_once): New variable.
82259         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82260         functions.
82261
82262 2005-07-16  Simon Josefsson  <jas@extundo.com>
82263
82264         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82265         workaround, suggested by Bruno.
82266
82267 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82268
82269         * modules/xalloc (Depends-on): Add xalloc-die.
82270         * modules/xvasprintf (Depends-on): Add xalloc-die.
82271
82272 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82273
82274         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82275         with a minor change.
82276
82277 2005-07-15  Bruno Haible  <bruno@clisp.org>
82278
82279         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82280         When using lib/poll.c, define poll as rpl_poll.
82281
82282 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * modules/argp (Depends-on): Remove unlocked-io.
82285
82286 2005-07-14  Derek Price  <derek@ximbiot.com>
82287
82288         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82289         for glob symlink bug.
82290
82291 2005-07-14  Bruno Haible  <bruno@clisp.org>
82292
82293         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82294         Instead, test for *_unlocked function declarations directly.
82295
82296 2005-07-11  Simon Josefsson  <jas@extundo.com>
82297
82298         * modules/size_max: New file.
82299
82300         * modules/xsize: Depend on size_max module for size_max.m4.
82301
82302 2005-07-11  Simon Josefsson  <jas@extundo.com>
82303
82304         * lib/size_max.h: New file.
82305
82306 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82307
82308         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82309         copyright symbol and the year.
82310         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82311         (version_etc_va): Use parameterized copyright notice.
82312         Reword to conform to the current GNU coding standards.
82313
82314 2005-07-11  Karl Berry  <karl@gnu.org>
82315
82316         * doc/gnulib.texi (Quoting): new node.
82317         (Initial import): more info, from Patrice.
82318
82319 2005-07-11  Bruno Haible  <bruno@clisp.org>
82320
82321         * gnulib-tool (func_usage): Document option --avoid.
82322         (Command line options): Handle --avoid.
82323         (func_acceptable): New function.
82324         (func_modules_transitive_closure): Use it.
82325
82326 2005-07-11  Bruno Haible  <bruno@clisp.org>
82327
82328         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82329         Reported by Jim Meyering.
82330
82331 2005-07-10  Bruno Haible  <bruno@clisp.org>
82332
82333         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82334         Needed when size_t is smaller than 'unsigned int'.
82335         Reported by Paul Eggert.
82336
82337 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82338
82339         * modules/argp (Depends-on): Add unlocked-io
82340
82341 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82342
82343         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82344         block of defines.
82345
82346 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82347
82348         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82349         fix now.
82350
82351 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82352         and Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82355         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82356
82357 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82358
82359         * modules/regex (Files): Add lib/regex_internal.c,
82360         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82361         (Depends-on): Add extensions.
82362         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82363
82364 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82365
82366         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82367         pathconf.
82368         * m4/same.m4 (gl_SAME): Likewise.
82369         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82370
82371         * m4/regex.m4: Adjust to new libc regex implementation.
82372         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82373         all the .c and .h parts of (the new) regex.
82374         Quote the m4 stuff better.
82375         Check for RE_ICASE bug of old gnulib.
82376         Check for REG_STARTEND of recent libc.
82377         Rename local variables from jm_* to gl_*.
82378         Quote operand of "test -f".
82379         Say "recent enough" version of libc, not "version 2".
82380         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82381         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82382         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82383         Remove check for btowc, isascii.
82384         Require AM_LANGINFO_CODESET.
82385
82386 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82387
82388         * lib/regex.c, regex.h: Sync from libc.
82389         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82390         * lib/regexec.c:
82391         New files, synced from libc, except that regex_internal.h
82392         currently has a small porting fix.
82393
82394 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82395
82396         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82397         regex_internal.c, regexec.c.
82398         Add regex_internal.h too, but as a comment, since the libc version
82399         is currently broken in gnulib mode.
82400
82401 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82402
82403         Support programs like Emacs that use gnulib but not gettext.
82404         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82405         * modules/gettext-h: New file.
82406         * modules/gettext (Files): Remove lib/gettext.h.
82407         (Depends-on): Add gettext-h.
82408         (Makefile.am): Remove lib_SOURCES.
82409         * modules/argmatch, modules/c-stack, modules/closeout:
82410         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82411         * modules/execute, modules/file-type, modules/getaddrinfo:
82412         * modules/getopt, modules/human, modules/javacomp:
82413         * modules/javaexec, modules/mkdir-p, modules/obstack:
82414         * modules/openat, modules/pagealign_alloc, modules/pipe:
82415         * modules/quotearg, modules/regex, modules/rpmatch:
82416         * modules/unicodeio, modules/userspec, modules/version-etc:
82417         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82418         * modules/xsetenv:
82419         Depend on gettext-h, not gettext.
82420
82421 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82422
82423         * gnulib-tool (func_import): Add support for 'public domain' license.
82424         * modules/alloca, modules/atexit, modules/memmove:
82425         Now public domain, not GPL.
82426         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82427         * modules/realloc, modules/strerror, modules/strtod:
82428         Now LGPL, not GPL.
82429
82430 2005-07-05  Bruno Haible  <bruno@clisp.org>
82431
82432         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82433         autoconf CVS. Needed for mingw.
82434
82435 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82436
82437         Remove the dependency of the strftime module on the tzset module.
82438         * modules/strftime (Depends-on): Remove dependency on tzset.
82439
82440 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82441
82442         Remove the dependency of the strftime module on the tzset module.
82443         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82444         gl_FUNC_TZSET_CLOBBER.
82445
82446 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82447
82448         Remove the dependency of the strftime module on the tzset module.
82449         * lib/strftime.c (my_strftime)
82450         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82451         Copy the input structure, to work around some of the bug with
82452         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82453         Solaris releases, you should also use the tzset module, but we won't
82454         require it as a dependency any more since we don't want LGPLed code
82455         to depend on GPLed code.
82456
82457 2005-07-02  Jim Meyering  <jim@meyering.net>
82458
82459         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82460         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82461         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82462         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82463
82464 2005-07-02  Jim Meyering  <jim@meyering.net>
82465
82466         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82467
82468 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82469
82470         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82471         declares only 'struct timespec;' (!).
82472
82473 2005-07-01  Jim Meyering  <jim@meyering.net>
82474
82475         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82476         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82477         * lib/save-cwd.c, tempname.c:
82478         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82479         and don't include <sys/file.h>).
82480
82481 2005-06-29  Jim Meyering  <jim@meyering.net>
82482
82483         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82484         type name.  Use the variable name instead.
82485         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82486         Likewise.
82487
82488 2005-06-28  Simon Josefsson  <jas@extundo.com>
82489
82490         * modules/check-version (Files): Add check-version.m4.
82491
82492 2005-06-28  Simon Josefsson  <jas@extundo.com>
82493
82494         * m4/check-version.m4: New file, suggested by Jim Meyering
82495         <jim@meyering.net>.
82496
82497 2005-06-28  Simon Josefsson  <jas@extundo.com>
82498
82499         * lib/check-version.h, lib/check-version.c: New files.
82500
82501 2005-06-28  Simon Josefsson  <jas@extundo.com>
82502
82503         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82504         collision with global variable.  Better indentation.  Don't
82505         increment buffer pointer beyond buffer end.  Based on comments
82506         from Paul Eggert <eggert@cs.ucla.edu>.
82507
82508         * lib/base64.h: Indent.
82509
82510 2005-06-28  Simon Josefsson  <jas@extundo.com>
82511
82512         * doc/gnulib.texi (Library version handling): New section.
82513
82514 2005-06-28  Jim Meyering  <jim@meyering.net>
82515
82516         * check-module (find_included_lib_files): Hard-code another
82517         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82518         but modules/fts-lgpl (correctly) does not list those files.
82519
82520         * modules/canonicalize (Files): Add lib/pathmax.h.
82521
82522 2005-06-25  Simon Josefsson  <jas@extundo.com>
82523
82524         * modules/check-version: New file.
82525
82526 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82527
82528         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82529         initializer of struct addrinfo, as an indication that we don't
82530         care how many members the structure has.
82531
82532 2005-06-24  Derek Price  <derek@ximbiot.com>
82533         and Bruno Haible  <bruno@clisp.org>
82534
82535         Remove stat module & update lstat.
82536         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82537         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82538         * m4/stat.m4: Remove this file.
82539
82540 2005-06-24  Derek Price  <derek@ximbiot.com>
82541         and Bruno Haible  <bruno@clisp.org>
82542
82543         Remove stat module & update lstat.
82544         * lib/stat.c: Remove this file...
82545         (slash_aware_lstat): ...moving this content and its support...
82546         * lib/lstat.c (rpl_lstat): ...into here.
82547         * lib/lstat.h: New file.
82548
82549 2005-06-24  Derek Price  <derek@ximbiot.com>
82550         and Bruno Haible  <bruno@clisp.org>
82551
82552         Remove stat module & update lstat.
82553         * config/srclist.txt (libc sources): Remove stat.
82554
82555 2005-06-24  Derek Price  <derek@ximbiot.com>
82556         and Bruno Haible  <bruno@clisp.org>
82557
82558         Remove stat module & update lstat.
82559         * MODULES.html.sh (stat): Remove.
82560         * MODULES.html: Regenerated.
82561         * modules/lstat (Description): Correct function name.
82562         (Files): Add "lstat.h".
82563         (Depends-on): Remove stat, add xalloc, stat-macros.
82564         * modules/stat: Remove this file.
82565         (Include): Add "lstat.h", remove <sys/stat.h>.
82566
82567 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82568
82569         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82570         (ranged_convert): Don't save conversion in a temporary struct.
82571         This causes a warning with GCC 4.0.0, and anyway in the typical
82572         case it's not worth the extra 100 bytes or so of code.
82573         (ranged_convert, __mktime_internal): When calling a function via a
82574         pointer P, use P () rather than (*P) (), as we now assume C89 or
82575         better.
82576
82577 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82578
82579         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82580         "who -r" failed to give output.  Problem reported by Tim Waugh.
82581
82582         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82583         (xcalloc): Use it to avoid needless tests.
82584         Problem reported by Jim Meyering.
82585
82586 2005-06-20  Derek Price  <derek@ximbiot.com>
82587
82588         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82589         unnecessary for Autoconfs > 2.59c.
82590
82591 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82592
82593         * lib/argp.h (__option_is_short): Check upper limit of
82594         __key. Isprint() requires its argument to have the value
82595         of an unsigned char or EOF.
82596
82597 2005-06-16  Jim Meyering  <jim@meyering.net>
82598
82599         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82600         when either N or S is zero.
82601
82602 2005-06-16  Derek Price  <derek@ximbiot.com>
82603
82604         * m4/bison.m4: Declare YACC & YFLAGS precious.
82605
82606 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82607
82608         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82609         multibyte string or pattern, fall back on unibyte matching.
82610         Problem reported by James Youngman.
82611
82612 2005-06-08  Bruno Haible  <bruno@clisp.org>
82613
82614         * modules/csharpcomp: New file.
82615         * MODULES.html.sh (C#): Add csharpcomp.
82616
82617 2005-06-08  Bruno Haible  <bruno@clisp.org>
82618
82619         * m4/csharpcomp.m4: New file, from GNU gettext.
82620
82621 2005-06-08  Bruno Haible  <bruno@clisp.org>
82622
82623         * lib/csharpcomp.h: New file, from GNU gettext.
82624         * lib/csharpcomp.c: New file, from GNU gettext.
82625         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82626
82627 2005-06-08  Bruno Haible  <bruno@clisp.org>
82628
82629         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82630         warning on mingw.
82631
82632 2005-06-07  Derek Price  <derek@ximbiot.com>
82633
82634         Sync from CVS.
82635         * lib/glob_.h: Indent nested #ifdef.
82636
82637 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82638
82639         Sync from coreutils.
82640         Use "file name" when talking about file names, instead of "filename"
82641         or "path", as per the GNU coding standards.
82642         * lib/mkdir-p.c: Renamed from makepath.c.
82643         (make_dir_parents): Renamed from make_path.  All callers changed.
82644         * lib/mkdir-p.h: Likewise.  All includers changed.
82645         * lib/filenamecat.c: Renamed from path-concat.c.
82646         (file_name_concat): Renamed from path_concat.  All callers changed.
82647         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82648         * lib/filenamecat.h: Likewise.  All includers changed.
82649         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82650         in comments or local variable names.
82651         * lib/basename.c: Likewise.
82652         * lib/canonicalize.c, canonicalize.h: Likewise.
82653         * lib/dirname.c, dirname.h: Likewise.
82654         * lib/euidaccess.c: Likewise.
82655         * lib/exclude.c: Likewise
82656         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82657         * lib/fsusage.c, fsuage.h: Likewise.
82658         * lib/fts.c, fts_.h: Likewise.
82659         * lib/getcwd.c: Likewise.
82660         * lib/getloadavg.c: Likewise.
82661         * lib/mkstemp.c: Likewise.
82662         * lib/mountlist.c, mountlist.h: Likewise.
82663         * lib/openat.c, openat.h: Likewise.
82664         * lib/readlink-stub.c: Likewise.
82665         * lib/readutmp.c, readutmp.h: Likewise.
82666         * lib/rename.c: Likewise.
82667         * lib/rmdir.c: Likewise.
82668         * lib/same.c: Likewise.
82669         * lib/savedir.c: Likewise.
82670         * lib/stripslash.c: Likewise.
82671         * lib/tempname.c: Likewise.
82672         * lib/xreadlink.c: Likewise.
82673         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82674         All uses changed.
82675         * lib/exclude.h: Likewise.
82676
82677         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82678         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82679         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82680         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82681         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82682         files have been getting away with it for years (MORE/BSD 4.3
82683         is extinct now).
82684         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82685         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82686
82687         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82688         Define to 256, not 255, as per modern POSIX.
82689
82690 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82691
82692         Sync from coreutils.
82693         Use "file name" when talking about file names, instead of "filename"
82694         or "path", as per the GNU coding standards.
82695         * MODULES.html.sh: mkdir-p renamed from makepath.
82696         filenamecat renamed from path-concat.
82697         * modules/filenamecat: Renamed from modules/path-concat.
82698         (Files): filenamecat.h and filenamecat.c renamed from
82699         path-concat.h and path-concat.c.
82700         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82701         (Include): filenamecat.h, not path-concat.h.
82702         * modules/mkdir-p: Renamed from modules/makepath.
82703         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82704         makepath.c.
82705         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82706         (Include): mkdir-p.h, not makepath.h.
82707
82708 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82709
82710         Sync from coreutils.
82711         * m4/mkdir-p.m4: Renamed from makepath.m4.
82712         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82713         Rename files from makepath.c to mkdir-p.c, and from
82714         makepath.h to mkdir-p.h.
82715         * m4/filenamecat.m4: Renamed from path-concat.m4.
82716         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82717         Rename files from path-concat.c to filenamecat.c,
82718         and from path-concat.h to filenamecat.h.
82719         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82720         "file name" in local variables or comments.
82721         * m4/rename.m4: Likewise.
82722
82723 2005-06-01  Bruno Haible  <bruno@clisp.org>
82724
82725         * modules/csharpexec: New file.
82726         * MODULES.html.sh (C#): New section.
82727
82728 2005-06-01  Bruno Haible  <bruno@clisp.org>
82729
82730         * m4/csharp.m4: New file, from GNU gettext.
82731         * m4/csharpexec.m4: New file, from GNU gettext.
82732
82733 2005-06-01  Bruno Haible  <bruno@clisp.org>
82734
82735         * lib/csharpexec.h: New file, from GNU gettext.
82736         * lib/csharpexec.c: New file, from GNU gettext.
82737         * lib/csharpexec.sh.in: New file, from GNU gettext.
82738
82739 2005-05-31  Derek Price  <derek@ximbiot.com>
82740             Paul Eggert  <eggert@cs.ucla.edu>
82741
82742         Sync from cvs.
82743         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82744
82745 2005-05-31  Derek Price  <derek@ximbiot.com>
82746             Paul Eggert  <eggert@cs.ucla.edu>
82747
82748         Sync from cvs.
82749         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82750
82751 2005-05-29  Derek Price  <derek@ximbiot.com>
82752
82753         * config/srclist.txt (glob_.h, glob.c): Add these files.
82754
82755 2005-05-29  Derek Price  <derek@ximbiot.com>
82756
82757         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82758         * modules/glob: New file.
82759         * modules/getlogin_r: Add link to POSIX spec in description.
82760
82761 2005-05-29  Derek Price  <derek@ximbiot.com>
82762             Paul Eggert  <eggert@cs.ucla.edu>
82763
82764         * m4/glob.m4: New file.
82765
82766 2005-05-29  Derek Price  <derek@ximbiot.com>
82767             Paul Eggert  <eggert@cs.ucla.edu>
82768
82769         * lib/glob_.h, lib/glob.c: New files.
82770
82771 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82772
82773         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82774         * modules/fts-lgpl (Depends-on): Remove gettext.
82775
82776 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82777
82778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82779         and don't require gt_INTTYPES_PRI.
82780
82781 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82782
82783         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82784
82785         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82786         the configuration hassle isn't worth it.
82787         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82788         (LONGEST_MODIFIER, PRIuMAX): Remove.
82789
82790 2005-05-27  Bruno Haible  <bruno@clisp.org>
82791
82792         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82793
82794 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82795
82796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82797         _POSIX_PTHREAD_SEMANTICS for Solaris.
82798
82799 2005-05-25  Derek Price  <derek@ximbiot.com>
82800
82801         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82802
82803 2005-05-25  Derek Price  <derek@ximbiot.com>
82804             Paul Eggert  <eggert@cs.ucla.edu>
82805
82806         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82807         * lib/getlogin_r.c, getlogin_r.h: New files.
82808
82809 2005-05-25  Bruno Haible  <bruno@clisp.org>
82810             Derek Price  <derek@ximbiot.com>
82811
82812         * lib/getlogin_r.h: Simplify API documentation.
82813
82814 2005-05-23  Derek Price  <derek@ximbiot.com>
82815
82816         * modules/minmax (Files): Add m4/minmax.m4.
82817         (configure.ac): Add gl_MINMAX.
82818
82819 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82820
82821         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82822         so that unistd-safer.h (GPL'ed code) need not be included.
82823
82824 2005-05-22  Bruno Haible  <bruno@clisp.org>
82825
82826         * m4/minmax.m4: New file.
82827         Based on a patch by Derek Price <derek@ximbiot.com>.
82828
82829 2005-05-22  Bruno Haible  <bruno@clisp.org>
82830
82831         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82832         (INT64_MIN): Fix definition.
82833         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82834
82835         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82836         NEED_SIGNED_INT_TYPES.
82837
82838         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82839         HAVE_SYSTEM_INTTYPES.
82840
82841 2005-05-22  Bruno Haible  <bruno@clisp.org>
82842
82843         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82844         Also include <sys/param.h> if it defines MIN, MAX.
82845         Based on a patch by Derek Price <derek@ximbiot.com>.
82846
82847 2005-05-21  Jim Meyering  <jim@meyering.net>
82848
82849         * modules/fts (Files): Add m4/inttypes-pri.m4.
82850         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82851
82852 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82853
82854         New fts module.
82855         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82856         (setup_dir, free_dir): New functions.
82857         (enter_dir, leave_dir): Define trivial
82858         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82859         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82860         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82861         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82862         Move to fts-cycle.c.
82863         (fts_open): Use setup_dir.
82864         (fts_close): Use free_dir.
82865         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82866         This adds a label and some gotos, but the alternatives were messier.
82867         Check for memory allocation failure when entering a dir.
82868         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82869         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82870         (FTS): New member fts_cycle, that is a union that contains the
82871         old active_dir_ht and cycle_state.  All uses changed to mention
82872         fts_cycle.ht and fts_cycle.state.
82873         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82874         fts.c, with the following changes:
82875         (setup_dir, free_dir): New functions.
82876         (enter_dir): Now returns bool.  Return true if successful, false
82877         if memory exhausted.  All callers changed.
82878         Do not bother partly cleaning up on
82879         memory allocation failure; that is free_dir's job.
82880         However, free ad if hash_insert fails, to avoid memory leak.
82881         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82882         fts->fts_options to see which union member to use.
82883
82884 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82885
82886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82887         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82888
82889 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82892
82893 2005-05-20  Jim Meyering  <jim@meyering.net>
82894
82895         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82896         Now a macro, to pacify GCC.
82897
82898 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82899
82900         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82901         of -1.
82902
82903 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82904
82905         * lib/chown.c (rpl_chown): Return -1 on failure.
82906
82907 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82908
82909         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82910         Don't check for stddef.h.
82911         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82912         don't use its results.
82913         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82914         since we include them unconditionally.  Don't require
82915         AM_STDBOOL_H, since stdbool is a prerequisite.
82916         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82917         since we assume C89 or better.
82918         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82919         as we don't use their results.
82920         Don't check for fchdir, memmove, memset, strrchr, as we use
82921         them unconditionally.
82922         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82923         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82924
82925 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82926
82927         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82928         Include <stddef.h> unconditionally, since we assume C89 now.
82929         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82930         * lib/fts.c: Include fts_.h first, to check interface.
82931         Do not include intprops.h; no longer needed.
82932         Include cycle-check.h and hash.h, since fts_.h no longer does.
82933         Remove unnecessary casts of closedir to void.
82934         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82935         decide whether to decrement nlinks.
82936         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82937         (FTS): Use struct hash_table * instead of Hash_table, so that
82938         we no longer need to include hash.h here.
82939
82940 2005-05-18  Jim Meyering  <jim@meyering.net>
82941
82942         * modules/dirfd (License): Change to LGPL.  Most of the code
82943         is already in the public domain.
82944
82945 2005-05-18  Jim Meyering  <jim@meyering.net>
82946
82947         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82948         Reported by Yoann Vandoorselaere.
82949
82950 2005-05-17  Jim Meyering  <jim@meyering.net>
82951
82952         * m4/fts.m4: New file, from coreutils.
82953
82954 2005-05-17  Jim Meyering  <jim@meyering.net>
82955
82956         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82957
82958 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82959
82960         Sync from coreutils.
82961         * m4/unlinkdir.m4: New file.
82962
82963 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82964
82965         Sync from coreutils.
82966         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82967         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82968         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82969         White space changes only.
82970         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82971         special.
82972         * lib/yesno.c: Include getline.h, not ctype.h.
82973         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82974         Use getline to remove arbitrary restriction on response length.
82975
82976 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         * config/srclist-update: Spell out "Street" in FSF postal
82979         mail address; this is the style the FSF seems to prefer.
82980
82981         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82982         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82983         this updates FSF postal mail address.
82984
82985         Sync from coreutils.
82986         * modules/unlinkdir: New file.
82987         * modules/yesno (Depends-on): Add getline.
82988         * MODULES.html.sh (File system functions): Add unlinkdir.
82989
82990 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82991
82992         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82993         lib/strsep.h:
82994         Change the initial comment to refer to GPL, not LGPL.
82995         gnulib-tool will change it to LGPL as needed.
82996
82997         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82998         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82999         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83000         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83001         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83002         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83003         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83004         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83005         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83006         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83007         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83008         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83009         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83010         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83011         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83012         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83013         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83014         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83015         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83016         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83017         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83018         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83019         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83020         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83021         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83022         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83023         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83024         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83025         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83026         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83027         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83028         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83029         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83030         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83031         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83032         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83033         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83034         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83035         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83036         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83037         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83038         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83039         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83040         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83041         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83042         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83043         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83044         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83045         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83046         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83047         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83048         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83049         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83050         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83051         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83052         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83053         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83054         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83055         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83056         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83057         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83058         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83059         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83060         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83061         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83062         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83063         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83064         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83065         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83066         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83067         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83068         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83069         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83070         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83071         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83072         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83073         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83074         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83075         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83076         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83077         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83078         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83079         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83080         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83081         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83082         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83083         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83084         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83085         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83086         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83087         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83088         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83089         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83090         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83091         lib/yesno.c, lib/yesno.h:
83092         Update FSF postal mail address.
83093
83094 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83095
83096         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83097         tests/test-memmem.c, tests/test-stpncpy.c:
83098         Update FSF postal mail address.
83099
83100 2005-05-13  Bruno Haible  <bruno@clisp.org>
83101
83102         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83103         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83104         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83105         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83106         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83107         Add support for 64-bit integers in the MSVC compiler.
83108
83109 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83110
83111         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83112
83113 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83114
83115         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83116
83117 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83118
83119         * doc/getdate.texi (General date syntax): Don't say that date
83120         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83121         Problem reported by Nic Ferrier.
83122
83123 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83124
83125         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83126         specified in ai_socktype. Fix invalid ai_protocol
83127         check. ai_protocol is usually set to 0 or depending on
83128         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83129         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83130         ai_socktype / ai_protocol in the returned addrinfo structure.
83131
83132 2005-05-10  Simon Josefsson  <jas@extundo.com>
83133
83134         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83135         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83136
83137 2005-05-10  Karl Berry  <karl@gnu.org>
83138
83139         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83140         (from http://www.gnu.org/licenses).
83141         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83142         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83143         fdl.texi suffices.
83144
83145 2005-05-10  Karl Berry  <karl@gnu.org>
83146
83147         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83148         (COPYING.DOC): remove.
83149
83150         * config/srclist-update: new FSF address.
83151
83152 2005-05-10  Derek Price  <derek@ximbiot.com>
83153
83154         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83155         possible.
83156
83157 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83158             Bruno Haible  <bruno@clisp.org>
83159
83160         * modules/inet_ntop: New file.
83161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83162         inet_ntop.
83163
83164 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83165             Bruno Haible  <bruno@clisp.org>
83166
83167         * m4/inet_ntop.m4: New file.
83168
83169 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83170             Bruno Haible  <bruno@clisp.org>
83171
83172         * lib/inet_ntop.h: New file.
83173         * lib/inet_ntop.c: New file, from glibc with modifications.
83174
83175 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83176
83177         * modules/time_r (License): Change to LGPL.
83178         * modules/extensions (License): Change to LGPL.  Actually,
83179         the license is more permissive than that, but currently gnulib-tool
83180         doesn't know how to handle more-permissive licenses.
83181
83182         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83183         Problem reported by Dave Love.
83184
83185 2005-05-08  Jim Meyering  <jim@meyering.net>
83186
83187         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83188         blank.
83189
83190 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83191
83192         * modules/argmatch (Depends-on): Add stdbool.
83193         * modules/backupfile (Depends-on): Likewise.
83194         * modules/chdir-long (Depends-on): Likewise.
83195         * modules/closeout (Depends-on): Likewise.
83196         * modules/cycle-check (Depends-on): Likewise.
83197         * modules/dirname (Depends-on): Likewise.
83198         * modules/fnmatch (Depends-on): Likewise.
83199         * modules/fsusage (Depends-on): Likewise.
83200         * modules/fwriteerror (Depends-on): Likewise.
83201         * modules/getcwd (Depends-on): Likewise.
83202         * modules/getloadavg (Depends-on): Likewise.
83203         * modules/hard-locale (Depends-on): Likewise.
83204         * modules/makepath (Depends-on): Likewise.
83205         * modules/mountlist (Depends-on): Likewise.
83206         * modules/nanosleep (Depends-on): Likewise.
83207         * modules/posixtm (Depends-on): Likewise.
83208         * modules/quotearg (Depends-on): Likewise.
83209         * modules/readtokens (Depends-on): Likewise.
83210         * modules/readtokens0 (Depends-on): Likewise.
83211         * modules/readutmp (Depends-on): Likewise.
83212         * modules/save-cwd (Depends-on): Likewise.
83213         * modules/strftime (Depends-on): Likewise.
83214         * modules/userspec (Depends-on): Likewise.
83215         * modules/utimecmp (Depends-on): Likewise.
83216         * modules/xgetcwd (Depends-on): Likewise.
83217         * modules/xnanosleep (Depends-on): Likewise.
83218         * modules/xstrtod (Depends-on): Likewise.
83219         * modules/yesno (Depends-on): Likewise.
83220
83221 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83222
83223         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83224         needless checks.
83225
83226 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         Merge from coreutils.  Among other things,
83229         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83230         * lib/fd-safer.c: New file.
83231         * lib/fcntl-safer.h, open-safer.c: Remove.
83232         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83233         * lib/dup-safer.c: Include unistd-safer.h first.
83234         Don't include errno.h.
83235         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83236         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83237         * lib/file-type.c: Rely on file-type.h change.
83238         * lib/getloadavg.c: Include unistd-safer.h.
83239         (getloadavg): Use safer open.
83240         * lib/getusershell.c: Include "stdio-safer.h".
83241         (getusershell): Use safer fopen.
83242         * lib/long-options.c (long_options): Use NULL rather than 0.
83243         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83244         'free'.
83245         * lib/modechange.c: Likewise.
83246         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83247         (MODE_DONE): New constant.
83248         (struct mode_change): Remove 'next' member.
83249         (make_node_op_equals): New function; like the old one of the
83250         same name, except it allocates an array.
83251         (mode_compile, mode_create_from_ref): Use it.
83252         (mode_compile): Allocate result as an array, not a linked list.
83253         Parse octal string ourself, so that we catch mistakes like "+0".
83254         (mode_adjust): Arg is an array, not a linked list.
83255         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83256         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83257         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83258         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83259         Remove.  This is now stat-macros.h's job.
83260         (talloc): Remove.  All callers replaced by xalloc, so that
83261         our invokers don't have to worry about reporting memory failures.
83262         (make_node_op_equals): Remove.
83263         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83264         New constants.
83265         (struct mode_change): Moved here from modechange.h.
83266         (mode_append_entry): Remove.
83267         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83268         apps to have incorrect behavior.  Use simpler algorithm for head
83269         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83270         Detect more invalid usages rather than having somewhat-random behavior.
83271         Don't insert an "a=" action, as that leads to incorrect behavior.
83272         (mode_compile, mode_create_from_ref): Return NULL on error instead
83273         of an enum, since now there's only one way to have an error.  All
83274         callers changed.
83275         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83276         at the correct time.  Simplify calculation of "+u" and its ilk.
83277         Don't mishandle "+X".
83278         (mode_free): Remove "register" and localize decls.
83279         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83280         (struct mode_change): Move to modechange.c; callers don't
83281         need to see this stuff.
83282         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83283         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83284         (mode_change, mode_adjust): Reflect the new signatures noted above.
83285         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83286         that might redefine system include files.
83287         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83288         (my_usleep): Use NULL rather than (void *) 0.
83289         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83290         Use siginterrupt to specify that system calls should be interrupted.
83291         (rpl_nanosleep): Move initialization of suspended closer to call of
83292         my_usleep.
83293         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83294         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83295         (desirable_utmp_entry): New function.
83296         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83297         using x2nrealloc, to simplify logic.
83298         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83299         size calculation.  Do not assume utmp file is a regular file.
83300         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83301         (READ_UTMP_CHECK_PIDS): New constant.
83302         * lib/save-cwd.c: Include unistd-safer.h.
83303         (save_cwd): Use fd_safer.
83304         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83305         [!_LIBC] Include "stat-macros.h" instead.
83306         * lib/unistd-safer.h (fd_safer): New decl.
83307
83308 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83309
83310         * modules/getloadavg (Depends-on): Add unistd-safer.
83311         * modules/getusershell (Depends-on): Add stdio-safer.
83312         * modules/lstat (Depends-on): Remove xalloc.
83313         * modules/mkstemp (Depends-on): Add stat-macros.
83314         * modules/modechange (Depends-on): Remove xstrtol.
83315         Add stat-macros, xalloc.
83316         * modules/save-cwd (Depends-on): Add unistd-safer.
83317         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83318         * modules/unistd-safer (Files): Add lib/fd-safer.c
83319         (Makefile.am): Remove lib_SOURCES.
83320
83321         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83322         Remove fcntl-safer; unistd-safer supersedes it.
83323
83324 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83325
83326         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83327         AC_HEADER_STAT.
83328         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83329         (gl_PREREQ_CHOWN): Remove.
83330         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83331         it.  Don't require AC_HEADER_STAT.
83332         (gl_PREREQ_LSTAT): Remove.
83333         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83334         Don't require AC_HEADER_STAT.
83335         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83336         (gl_PREREQ_RMDIR): Remove.
83337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83338         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83339         the stat-macros module a prerequisite.
83340         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83341         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83342         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83343         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83344         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83345         variable names.
83346         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83347         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83348         variable prefixes.
83349         * m4/fcntl-safer.m4: Remove.
83350         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83351         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83352         Invoke gl_PREREQ_FD_SAFER.
83353         (gl_PREREQ_FD_SAFER): New macro.
83354         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83355         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83356         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83357         Remove duplicate call to AC_LIBOBJ(readutmp).
83358         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83359
83360         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83361         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83362
83363 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83364
83365         * MODULES.html.sh (Misc): Add byteswap.
83366
83367 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83368
83369         * modules/getcwd (Depends-on): Add extensions.
83370         * modules/openat (Depends-on): Likewise.
83371
83372 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83373
83374         * modules/byteswap: New file.
83375
83376 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83377
83378         * m4/byteswap.m4: New file.
83379
83380 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83381
83382         * lib/byteswap_.h: New file.
83383
83384 2005-04-25  Karl Berry  <karl@gnu.org>
83385
83386         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83387
83388 2005-04-25  Albert Chin  <china@thewrittenword.com>
83389
83390         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83391         Toolkit C bug.
83392
83393 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83394
83395         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83396         (func_ln_if_changed): Remove forcibly for no error message
83397         in case file does not exist.
83398
83399 2005-04-19  Simon Josefsson  <jas@extundo.com>
83400
83401         * gnulib-tool (Options): Make --symlink mean --symbolic.
83402
83403 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83404
83405         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83406
83407 2005-04-16  Simon Josefsson  <jas@extundo.com>
83408
83409         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83410
83411 2005-04-15  Simon Josefsson  <jas@extundo.com>
83412
83413         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83414
83415 2005-04-15  Simon Josefsson  <jas@extundo.com>
83416
83417         * gnulib-tool: Rename --symlink to --symbolic.
83418
83419 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83420
83421         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83422         symbolic links to files instead of copying/moving.  Add --aux-dir,
83423         specifying directory relative --dir where auxiliary build tools
83424         are placed.
83425
83426 2005-04-14  Bruno Haible  <bruno@clisp.org>
83427
83428         * modules/allocsa (License): Change to LGPL.
83429         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83430
83431 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83432
83433         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83434         that "UTC +1 second" continues to work.  Problem reported
83435         by Dmitry V. Levin.
83436         (relunit_snumber): New rule.
83437         (relunit): Use it.
83438
83439 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83440
83441         * lib/getdate.y (universal_time_zone_table): New constant.
83442         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83443         universal_time_zone_table.
83444         (lookup_zone): Prefer universal_time_zone_table to
83445         local_time_zone_table, so that "GMT" time stamps are allowed in
83446         London during the summer.  Problem reported by Ian Abbott.
83447
83448 2005-04-12  Jim Meyering  <jim@meyering.net>
83449
83450         * lib/human.c (humblock): Set *options even when returning due to
83451         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83452         warning from gcc-4.
83453
83454 2005-04-09  Jim Meyering  <jim@meyering.net>
83455
83456         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83457         -Wuninitialized: initialize tm0.tm_year.
83458
83459 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83460
83461         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83462         count, since there's no maximum.  All uses changed.
83463         Add member dsts_seen.
83464         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83465         not being INT_MAX.
83466         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83467         Use pc_rels_seen to decide whther a date is absolute.
83468
83469         * lib/getdate.y (number): Don't overwrite year.
83470         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83471         check.
83472
83473 2005-04-02  Simon Josefsson  <jas@extundo.com>
83474
83475         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83476         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83477
83478 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83479
83480         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83481         where no absolute path name can be longer than PATH_MAX.
83482
83483 2005-03-27  Jim Meyering  <jim@meyering.net>
83484
83485         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83486
83487 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83488
83489         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83490         "one's complement" -> "ones' complement" in comment, as per Knuth.
83491         "value of type" -> "type or expression" in comment.
83492         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83493
83494 2005-03-26  Jim Meyering  <jim@meyering.net>
83495
83496         Comment nits.
83497         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83498         Correct typos: s/or/of/.
83499
83500 2005-03-26  Jim Meyering  <jim@meyering.net>
83501
83502         * modules/check-include-files: Move to ../ and rename to...
83503         * check-module: ...this.
83504
83505 2005-03-25  Jim Meyering  <jim@meyering.net>
83506
83507         * modules/xvasprintf (Files): Add xalloc.h.
83508
83509 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83510
83511         * modules/gettext (Files): config/config.rpath ->
83512         build-aux/config.rpath
83513         * modules/iconv (Files): Likewise.
83514         Problem reported by Oskar Liljeblad.
83515
83516 2005-03-23  Jim Meyering  <jim@meyering.net>
83517
83518         * modules/check-include-files: New script to check for
83519         missing dependencies, multiple includes, etc.
83520
83521         * modules/c-strtold (Depends-on): Add xalloc.
83522         * modules/c-strtod (Depends-on): Add xalloc.
83523         * modules/hash (Depends-on): Add xalloc.
83524         (Files): Remove lib/xalloc.h.
83525
83526         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83527         * modules/userspec (Files): Add lib/inttostr.h.
83528
83529 2005-03-23  Jim Meyering  <jim@meyering.net>
83530
83531         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83532
83533 2005-03-22  Jim Meyering  <jim@meyering.net>
83534
83535         * modules/stat-macros: New module.
83536         * modules/canonicalize, modules/euidaccess, modules/file-type,
83537         * modules/filemode, modules/lchown, modules/makepath,
83538         * modules/rmdir, modules/stat: Depend on new stat-macros module
83539         rather than listing lib/stat-macros.h manually.
83540         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83541
83542 2005-03-22  Jim Meyering  <jim@meyering.net>
83543
83544         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83545
83546 2005-03-22  Bruno Haible  <bruno@clisp.org>
83547
83548         * config/srclist.txt: Replace target directory 'config' with
83549         'build-aux'.
83550         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83551         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83552         ../build-aux/.
83553
83554 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83555
83556         * modules/chdir-long (Depends-on): Add mempcpy.
83557
83558         * modules/acl, modules/backupfile, modules/c-strtod,
83559         modules/c-strtold, modules/canon-host, modules/canonicalize,
83560         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83561         modules/exclude, modules/exitfail, modules/file-type,
83562         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83563         modules/getdate, modules/getline, modules/getpagesize,
83564         modules/getpass, modules/getugroups, modules/group-member,
83565         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83566         modules/inttostr, modules/long-options, modules/makepath,
83567         modules/md5, modules/memcasecmp, modules/memcoll,
83568         modules/modechange, modules/mountlist, modules/path-concat,
83569         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83570         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83571         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83572         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83573         modules/strftime, modules/strndup, modules/strverscmp,
83574         modules/timespec, modules/unlocked-io, modules/userspec,
83575         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83576         modules/yesno:
83577         Remove lib_SOURCES line from Makefile.am section, as this is now
83578         done automatically by the corresponding Autoconf macro.
83579
83580 2005-03-21  Jim Meyering  <jim@meyering.net>
83581
83582         Changes imported from coreutils.
83583
83584         * lib/cycle-check.c: Don't include xalloc.h.
83585
83586         * lib/path-concat.c: Don't include assert.h.
83587         (path_concat): Remove assertion that would have triggered
83588         for ABASE starting with more than one slash.
83589         Reported by Andreas Schwab.
83590
83591         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83592         properly when ABASE is an absolute file name.
83593         Correct the description of this function.
83594         Include <assert.h>.
83595         Add an assertion and a test driver.
83596         This fixes a bug introduced on 2004-07-02.
83597         Andreas Schwab reported the resulting failure of cp --parents:
83598         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83599
83600 2005-03-21  Jim Meyering  <jim@meyering.net>
83601
83602         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83603         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83604
83605 2005-03-21  Jim Meyering  <jim@meyering.net>
83606         and  Paul Eggert  <eggert@cs.ucla.edu>
83607
83608         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83609         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83610         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83611         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83612         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83613         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83614         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83615         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83616         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83617         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83618         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83619         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83620         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83621         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83622         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83623         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83624         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83625         for these modules.
83626
83627 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83628
83629         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83630         (which shouldn't happen), generate nothing instead of returning 0
83631         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83632
83633 2005-03-16  Bruno Haible  <bruno@clisp.org>
83634
83635         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83636         HAVE_LONGLONG_64BIT.
83637
83638 2005-03-16  Bruno Haible  <bruno@clisp.org>
83639
83640         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83641         HAVE_LONGLONG_64BIT.
83642
83643 2005-03-16  Bruno Haible  <bruno@clisp.org>
83644
83645         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83646         HAVE_LONGLONG_64BIT.
83647
83648 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83649
83650         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83651         reliably distinguish strftime failure from empty output on POSIX
83652         hosts.
83653
83654 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83655
83656         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83657         (iconv_string): Don't guess a size-zero buffer, as that might cause
83658         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83659         result would be 'too large', where 'too large' is (heuristically)
83660         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83661         overflow concerns.  This will prevent some unwanted malloc failures
83662         when the inputs are very large.
83663
83664 2005-03-15  Karl Berry  <karl@gnu.org>
83665
83666         * config/srclist.txt (config.rpath): from gettext.
83667         * config/config.rpath: update.
83668
83669 2005-03-15  Bruno Haible  <bruno@clisp.org>
83670
83671         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83672         to 'negate'.
83673
83674         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83675         variable.
83676
83677         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83678         results.
83679
83680 2005-03-14  Simon Josefsson  <jas@extundo.com>
83681
83682         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83683         <fx@gnu.org>.
83684
83685 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83686
83687         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83688         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83689         intprops.h.
83690         * lib/strtol.c: Likewise.
83691
83692 2005-03-14  Jim Meyering  <jim@meyering.net>
83693
83694         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83695         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83696         to be nonzero so that we (and caller) can detect the difference
83697         between a valid zero-length expansion and an error return, even
83698         when the underlying strftime fails before writing anything into
83699         that location.
83700
83701 2005-03-14  Bruno Haible  <bruno@clisp.org>
83702
83703         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83704         Update from GNU gettext 0.14.3.
83705
83706 2005-03-10  Jim Meyering  <jim@meyering.net>
83707
83708         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83709
83710 2005-03-10  Jim Meyering  <jim@meyering.net>
83711
83712         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83713         so that this module works on systems without fchdir.
83714
83715 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83716
83717         Factor int-properties macros into a single file, except for
83718         glibc-related files.
83719         * lib/intprops.h: New file.
83720         * lib/getloadavg.c: Include it instead of limits.h.
83721         (INT_STRLEN_BOUND): Remove.
83722         * lib/human.c: Include intprops.h.
83723         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83724         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83725         302/1000.
83726         * lib/inttostr.h: Include intprops.h instead of limits.h.
83727         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83728         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83729         for consistency with intprops.h.
83730         (time_t_is_integer, twos_complement_arithmetic): Use them.
83731         * lib/sig2str.h: Include <signal.h>, intprops.h.
83732         (INT_STRLEN_BOUND): Remove.
83733         * lib/strftime.c (TYPE_SIGNED): Remove.
83734         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83735         * lib/strtol.c: Adjust comments to match intprops.h.
83736         * lib/userspec.c: Include intprops.h.
83737         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83738         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83739         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83740         instead of rolling our own expressions.
83741         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83742
83743         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83744         instead of int.
83745         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83746         the right thing even if adding 1900 would overflow.  Similarly
83747         for tm_mon + 1 and tm_yday + 1.
83748         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83749         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83750         (DO_SIGNED_NUMBER): New macro.
83751         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83752
83753 2005-03-07  Bruno Haible  <bruno@clisp.org>
83754
83755         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83756
83757 2005-03-07  Bruno Haible  <bruno@clisp.org>
83758
83759         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83760
83761 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83762
83763         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83764         (func_import): Only replace files via --import when they have actually
83765         changed.
83766
83767 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83768
83769         * m4/mmap-anon.m4: New file.
83770         * m4/pagealign_alloc.m4: New file.
83771
83772 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83773             Bruno Haible  <bruno@clisp.org>
83774
83775         * modules/pagealign_alloc: New file.
83776         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83777
83778 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83779             Bruno Haible  <bruno@clisp.org>
83780
83781         * lib/pagealign_alloc.h: New file.
83782         * lib/pagealign_alloc.c: New file.
83783
83784 2005-03-03  Bruno Haible  <bruno@clisp.org>
83785
83786         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83787         Use an all-permissive copyright notice, recommended by RMS.
83788
83789 2005-03-02  Bruno Haible  <bruno@clisp.org>
83790
83791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83792         of AIX, the replacement has to be done only after <string.h> is
83793         included, therefore not in config.h. stpncpy.h does the replacement,
83794         and stpncpy.c uses it.
83795
83796 2005-03-02  Bruno Haible  <bruno@clisp.org>
83797
83798         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83799         stpncpy.c uses it.
83800
83801 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83802
83803         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83804         The workaround isn't strictly needed for POSIX conformance, and
83805         it's too much of a pain to configure and maintain.  We'll ask
83806         people to fix their kernels instead.
83807         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83808         (NANOSLEEP_BUG_WORKAROUND): Remove.
83809         (xnanosleep): Remove the workaround.
83810
83811 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83812
83813         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83814         Reported by Derek Price.
83815         (Include): Add "timespec.h".
83816
83817         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83818
83819 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83820
83821         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83822         to detect nanosleep bug.
83823
83824 2005-03-01  Bruno Haible  <bruno@clisp.org>
83825
83826         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83827
83828 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83829
83830         * modules/gethrxtime: New file.
83831         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83832         (Depends-on): Add gethrxtime.
83833         (configure.ac): Add gl_XNANOSLEEP.
83834         (Makefile.am): Remove lib_SOURCES line.
83835
83836 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83837
83838         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83839         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83840
83841 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83842
83843         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83844         * lib/timespec.h (gettime): Return void, since it always
83845         succeeds now.  All uses changed.
83846         * lib/gettime.c (gettime): Likewise.
83847         [HAVE_NANOTIME]: Prefer nanotime.
83848         Assume gettimeofday succeeds, as POSIX requires.
83849         Assime time () succeeds, since other code already does.
83850         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83851         (timespec_subtract): Remove.
83852         (NANOSLEEP_BUG_WORKAROUND): New constant.
83853         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83854         things considerably.  Use it only on GNU/Linux hosts, since the
83855         workaround shouldn't be needed elsewhere.
83856
83857 2005-02-24  Bruno Haible  <bruno@clisp.org>
83858
83859         * modules/gettext (Files): Add m4/glibc2.m4.
83860
83861 2005-02-24  Bruno Haible  <bruno@clisp.org>
83862
83863         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83864         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83865         * m4/progtest.m4:
83866         Update from GNU gettext 0.14.2.
83867         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83868
83869 2005-02-24  Bruno Haible  <bruno@clisp.org>
83870
83871         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83872         * lib/config.charset: Update from GNU gettext 0.14.2.
83873
83874 2005-02-24  Bruno Haible  <bruno@clisp.org>
83875
83876         * lib/gettext.h: Update from GNU gettext 0.14.2.
83877
83878 2005-02-23  Simon Josefsson  <jas@extundo.com>
83879
83880         * m4/iconvme.m4: New file.
83881
83882 2005-02-23  Jim Meyering  <jim@meyering.net>
83883
83884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83885         change.
83886         Thanks to Bruno Haible for catching it.
83887
83888 2005-02-22  Simon Josefsson  <jas@extundo.com>
83889
83890         * modules/iconvme: New file.
83891
83892         * MODULES.html.sh: Add iconvme.
83893
83894 2005-02-22  Simon Josefsson  <jas@extundo.com>
83895
83896         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83897
83898 2005-02-22  Simon Josefsson  <jas@extundo.com>
83899
83900         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83901
83902 2005-02-22  Jim Meyering  <jim@meyering.net>
83903
83904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83905         s/ifndef/ifdef/.
83906
83907 2005-02-20  Neil Conway  <neilc@samurai.com>
83908
83909         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83910         returned by OSX/Darwin if the specified buffer is not large
83911         enough for the hostname.
83912
83913 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83914
83915         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83916         pass it to _help, otherwise the latter coredumps trying to
83917         dereference state.root_argp.
83918
83919 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83920
83921         * modules/chdir-long (Depends-on): Add memrchr.
83922         * modules/memrchr (Files): Add lib/memrchr.h.
83923         (Include): "memrchr.h".
83924
83925 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83926
83927         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83928
83929 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83930
83931         * lib/memrchr.h: New file.
83932         * lib/chdir-long.c: Include it.
83933         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83934         Don't bother including stddef.h.
83935
83936 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83937
83938         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83939         inclusion.
83940         Include <sys/types.h>, for dev_t.
83941         (ME_DUMMY, ME_REMOTE): Move from here....
83942         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83943         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83944         Dmitry V. Levin.
83945         Include mountlist.h first, to test the interface.
83946
83947 2005-01-29  Bruno Haible  <bruno@clisp.org>
83948
83949         * lib/progname.c (program_name): Initialize.
83950         Needed when linking statically on MacOS X.
83951
83952 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83953
83954         Sync from coreutils.
83955         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83956         (Depends-on): Add c-strtod.
83957         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83958
83959 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83960
83961         Sync from coreutils.
83962         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83963
83964         Remove files that are specific to coreutils.
83965         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83966
83967 2005-01-28  Bruno Haible  <bruno@clisp.org>
83968
83969         * modules/javacomp: New file.
83970         * MODULES.html.sh (Java): Add javacomp.
83971
83972 2005-01-28  Bruno Haible  <bruno@clisp.org>
83973
83974         * m4/javacomp.m4: New file, from GNU gettext.
83975
83976 2005-01-28  Bruno Haible  <bruno@clisp.org>
83977
83978         * lib/javacomp.sh.in: New file, from GNU gettext.
83979         * lib/javacomp.h: New file, from GNU gettext.
83980         * lib/javacomp.c: New file, from GNU gettext.
83981
83982 2005-01-26  Simon Josefsson  <jas@extundo.com>
83983
83984         * lib/gai_strerror.c: Use GPL in header.
83985
83986 2005-01-26  Bruno Haible  <bruno@clisp.org>
83987
83988         * modules/javaexec: New file.
83989         * MODULES.html.sh (Java): Add javaexec.
83990
83991 2005-01-26  Bruno Haible  <bruno@clisp.org>
83992
83993         * m4/javaexec.m4: New file, from GNU gettext.
83994
83995 2005-01-26  Bruno Haible  <bruno@clisp.org>
83996
83997         * lib/javaexec.sh.in: New file, from GNU gettext.
83998         * lib/javaexec.h: New file, from GNU gettext.
83999         * lib/javaexec.c: New file, from GNU gettext.
84000
84001 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84002
84003         * modules/lchown (Depends-on): Remove lchown.h
84004
84005 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84006
84007         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84008         must be defined if the header file was not found, in order
84009         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84010
84011 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84012
84013         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84014         initializers for struct pentry_state.
84015         (__argp_error): Check return value of __asprintf
84016         (__argp_failure): Translate error message
84017
84018         * lib/argp-parse.c: Removed braces around the expansion of N_()
84019
84020 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84023         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84024         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84025         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84026         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84027         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84028         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84029         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84030         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84031         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84032         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84033         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84034         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84035         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84036         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84037         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84038         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84039         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84040         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84041         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84042         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84043         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84044         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84045         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84046         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84047         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84048         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84049         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84050         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84051         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84052         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84053         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84054         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84055         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84056         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84057         Use an all-permissive copyright notice, recommended by RMS.
84058
84059 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84060
84061         * modules/chdir-long (Depends-on): Remove mempcpy.
84062
84063 2005-01-21  Jim Meyering  <jim@meyering.net>
84064
84065         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84066         same value as for Solaris 9.
84067
84068         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84069         component length.  This included changing the parameter to be
84070         of type `char *' rather than `char const *'.
84071         * lib/chdir-long.h (chdir_long): Update prototype.
84072
84073         * lib/openat.c (fdopendir, fstatat): New functions.
84074         * lib/openat.h: Include headers required for use of DIR and struct
84075         stat.
84076         [AT_SYMLINK_NOFOLLOW]: Define.
84077         (fdopendir, fstatat): Add prototypes.
84078
84079 2005-01-21  Bruno Haible  <bruno@clisp.org>
84080
84081         * modules/classpath: New file.
84082         * MODULES.html.sh (Java): Add classpath.
84083
84084 2005-01-21  Bruno Haible  <bruno@clisp.org>
84085
84086         * lib/classpath.h: New file, from GNU gettext.
84087         * lib/classpath.c: New file, from GNU gettext.
84088
84089 2005-01-20  Simon Josefsson  <jas@extundo.com>
84090
84091         * modules/version-etc-fsf: New file.
84092
84093 2005-01-20  Simon Josefsson  <jas@extundo.com>
84094
84095         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84096         * lib/version-etc.c: Remove version_etc_copyright.
84097         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84098         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84099
84100 2005-01-20  Simon Josefsson  <jas@extundo.com>
84101
84102         * lib/base64.h (isbase64): Add.
84103
84104         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84105         using a unsigned prototype, don't inline.
84106         (base64_decode): Use it.
84107
84108 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84109
84110         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84111         it.
84112
84113 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84114
84115         * lib/save-cwd.c (save_cwd): Remove code to support the case
84116         where fchdir is missing or flaky.
84117
84118 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84119
84120         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84121
84122 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84123
84124         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84125         AC_LIBSOURCES now does this.
84126         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84127         with new ullong_max module.
84128
84129 2005-01-19  Bruno Haible  <bruno@clisp.org>
84130
84131         * modules/sh-quote: New file.
84132         * MODULES.html.sh (Executing programs): Add sh-quote.
84133
84134 2005-01-19  Bruno Haible  <bruno@clisp.org>
84135
84136         * lib/sh-quote.h: New file, from GNU gettext.
84137         * lib/sh-quote.c: New file, from GNU gettext.
84138
84139 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84140
84141         Merge from coreutils.
84142         * m4/ullong_max.m4: New file.
84143         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84144         (gl_MACROS): Assume localeconv exists.
84145
84146 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84147
84148         Merge changes from coreutils, as described below in several
84149         changelogs dated today.
84150
84151         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84152         (O_DIRECTORY): Remove; not needed here, since "." must be
84153         a directory.  All uses removed.
84154         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84155         universal on Suns, and we also need to test for IRIX.
84156         Revamp code to use 'if' rather than '#if'.
84157         Avoid unnecessary comparison of cwd->desc to 0.
84158
84159         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84160         for known valid error numbers rather than observed invalid ones.
84161
84162 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84163
84164         * modules/ullong_max: New file.
84165
84166         * modules/chdir-long, modules/openat: New files.
84167         * modules/save-cwd (Depends-on): Depend on chdir-long.
84168         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84169
84170 2005-01-18  Jim Meyering  <jim@meyering.net>
84171
84172         Merge from coreutils.
84173         * m4/chdir-long.m4, m4/openat.m4: New files.
84174         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84175         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84176         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84177         is sane and DOES follow symlinks.  Besides, testing 20 different
84178         systems found no broken chown implementations.
84179         Prompted by a change in rsync's copy of this macro.
84180         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84181
84182         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84183
84184         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84185         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84186         NULL-means-set-to-current-time semantics.
84187         Remove temporary file immediately, rather than waiting
84188         for configure's at-exit trap code to do it.
84189
84190 2005-01-18  Jim Meyering  <jim@meyering.net>
84191
84192         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84193
84194         * lib/utimens.c (futimens): Account for the fact that futimes
84195         can also fail with errno == ENOSYS or errno == ENOENT.
84196         Patch from Dmitry V. Levin.
84197
84198         Change the name of the robust chdir function from chdir to chdir_long.
84199         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84200         (restore_cwd): Use chdir_long, not chdir.
84201         * lib/chdir-long.c: Renamed from chdir.c.
84202         * lib/chdir-long.h: Renamed from chdir.h.
84203         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84204         Hurd.
84205
84206 2005-01-18  Bruno Haible  <bruno@clisp.org>
84207
84208         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84209         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84210         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84211         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84212         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84213         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84214         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84215         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84216         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84217         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84218         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84219         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84220         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84221         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84222         Use an all-permissive copyright notice, recommended by RMS.
84223
84224 2005-01-18  Bob Proulx  <bob@proulx.com>
84225
84226         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84227         simplify offsetof() macro construct to avoid compile failure with
84228         native HP-UX 11.0 ANSI C compiler.
84229
84230 2005-01-17  Bruno Haible  <bruno@clisp.org>
84231
84232         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84233         redundant because stpncpy.m4 takes care of it.
84234
84235 2005-01-17  Bruno Haible  <bruno@clisp.org>
84236
84237         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84238
84239 2005-01-17  Bruno Haible  <bruno@clisp.org>
84240
84241         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84242         used.
84243
84244 2005-01-17  Bruno Haible  <bruno@clisp.org>
84245
84246         * lib/fwriteerror.h (fwriteerror): Change specification to include
84247         fclose.
84248         * lib/fwriteerror.c: Include <stdbool.h>.
84249         (fwriteerror): At the end, close the file stream. Record whether
84250         stdout was already closed.
84251
84252 2005-01-17  Bruno Haible  <bruno@clisp.org>
84253
84254         * lib/execute.c (environ): Declare if needed.
84255         * lib/pipe.c (environ): Likewise.
84256         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84257
84258 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84259
84260         * modules/argp: Depend on vsnprintf
84261
84262 2005-01-10  Jim Meyering  <jim@meyering.net>
84263
84264         * modules/closeout (Depends-on): Add atexit.
84265
84266 2005-01-06  Bruno Haible  <bruno@clisp.org>
84267
84268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84269
84270 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84271
84272         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84273         definitions to be after all include files, to avoid collisions.
84274         Problem reported by Bob Proulx.
84275
84276 2005-01-04  Jim Meyering  <jim@meyering.net>
84277
84278         Changes imported from coreutils.
84279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84280         as the mkstemp template, use a temporary directory and an
84281         8.3-friendly template to avoid trouble on systems like DJGPP.
84282         Reported by Juan M. Guerrero via Stepan Kasal.
84283         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84284         close. Remove the temporary directory right away, rather than waiting
84285         for configure's at-exit trap code to do it.
84286         Suggestion from Stepan Kasal.
84287
84288 2005-01-01  Simon Josefsson  <jas@extundo.com>
84289
84290         * gnulib-tool: Print #include directives when --import'ing.
84291
84292 2004-12-28  Simon Josefsson  <jas@extundo.com>
84293
84294         * tests/test-base64.c: Include required header files.  Remove
84295         unused variables.
84296
84297 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * modules/error (Depends-on): Remove gettext.
84300
84301 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84302
84303         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84304         not needed.  This removes a dependency on the gettext module.
84305         [defined _LIBC]: Do not include <libintl.h>; not needed.
84306
84307 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84308
84309         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84310         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84311
84312 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84313
84314         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84315         HAVE_DECL_STRTOLD.
84316
84317 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84318
84319         * modules/getdate (Depends-on): Remove alloca-opt.
84320
84321 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84324
84325 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84326
84327         * lib/argp-parse.c: Include <stddef.h>.
84328         (alignof, alignto): New macros.
84329         (parser_init): Don't assume that void * is aligned sufficiently
84330         for struct option.
84331
84332         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84333         need to extend the stack.
84334         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84335         large.
84336
84337 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84338
84339         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84340
84341 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84342
84343         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84344         (2004-10-24) change.  Apparently this was a false alarm.
84345
84346         * modules/getdate: Depend on alloca-opt, not alloca.
84347
84348 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84349
84350         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84351         Remove now-obsolete comment about AIX.
84352         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84353         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84354         (YYMAXDEPTH): New macro.
84355
84356 2004-12-18  Simon Josefsson  <jas@extundo.com>
84357
84358         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84359
84360 2004-12-18  Bruno Haible  <bruno@clisp.org>
84361
84362         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84363
84364 2004-12-18  Bruno Haible  <bruno@clisp.org>
84365
84366         * lib/fatal-signal.c (fatal_signals): Make non-const.
84367         (init_fatal_signals): New function.
84368         (uninstall_handlers, install_handlers): Ignore signals that were set to
84369         SIG_IGN.
84370         (at_fatal_signal): Call init_fatal_signals.
84371         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84372         SIG_IGN.
84373         Reported by Paul Eggert.
84374
84375 2004-12-18  Bruno Haible  <bruno@clisp.org>
84376
84377         * doc/alloca.texi: New file.
84378         * doc/alloca-opt.texi: New file.
84379
84380 2004-12-17  Jim Meyering  <jim@meyering.net>
84381
84382         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84383         Otherwise, install-sh could exit with improper exit status when
84384         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84385
84386 2004-12-16  Simon Josefsson  <jas@extundo.com>
84387
84388         * tests/test-base64.c: Add license.
84389
84390 2004-12-15  Stepan Kasal  <address@hidden>
84391
84392         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84393
84394 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84395
84396         * modules/getcwd (Files): Add m4/d-ino.m4.
84397         Suggested by Mark D. Baushke.
84398
84399 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84400
84401         * lib/getdate.y (textint): New member "negative".
84402         (time_zone_hhmm): New function.
84403         Expect 14 shift-reduce conflicts, not 13.
84404         (o_colon_minutes): New rule.
84405         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84406         (yylex): Set the "negative" member of signed numbers.
84407
84408 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84409
84410         * doc/getdate.texi (Time of day items, Time zone items):
84411         Describe new formats +00:00, UTC+00:00.
84412
84413 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84414
84415         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84416         spurious "-l"s.  Problem reported by Stepan Kasal.
84417
84418 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84419
84420         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84421         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84422
84423 2004-12-04  Simon Josefsson  <jas@extundo.com>
84424
84425         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84426         Vandoorselaere <yoann@prelude-ids.org>.
84427
84428 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84429
84430         Changes imported from coreutils.
84431         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84432         exist.
84433         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84434
84435 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84436
84437         Changes imported from coreutils.
84438         * lib/hard-locale.c: Assume <locale.h> exists.
84439         Include "strdup.h".
84440         (GLIBC_VERSION): New macro.
84441         (hard_locale): Assume setlocale exists.
84442         Rewrite to avoid #ifdef.
84443         Use strdup rather than malloc + strcpy.
84444         * lib/human.c: Assume <locale.h> exists.
84445         (human_readable): Assume localeconv exists.
84446
84447 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84448
84449         * modules/hard-locale (Depends-on): Add strdup.
84450
84451 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84452
84453         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84454         convert T2, not T.  (Imported from libc.)
84455
84456 2004-11-30  Simon Josefsson  <jas@extundo.com>
84457
84458         * modules/restrict (License): Change to LGPL.
84459
84460 2004-11-30  Simon Josefsson  <jas@extundo.com>
84461
84462         * m4/restrict.m4: Add copyright and copying conditions.
84463
84464 2004-11-30  Simon Josefsson  <jas@extundo.com>
84465
84466         * m4/base64.m4: New file.
84467
84468 2004-11-30  Simon Josefsson  <jas@extundo.com>
84469
84470         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84471         base64.
84472
84473         * tests/test-base64.c: New file.
84474
84475         * modules/base64: New file.
84476
84477 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84478
84479         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84480         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84481
84482         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84483
84484 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84485
84486         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84487         (__getcwd.c): Don't restore errno; glibc doesn't.
84488         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84489         first, falling back to our code only if its results look suspicious.
84490         Ensure that the resulting buffer is only as large as necessary.
84491
84492         * lib/readutmp.c: Include readutmp.h first.
84493         Include <errno.h>, since readutmp.h no longer does that.
84494         * lib/readutmp.h: Don't include <errno.h>,
84495         <sys/param.h>, <time.h>; not needed to establish interface.
84496         (errno): Remove decl.
84497         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84498         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84499         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84500
84501 2004-11-28  Simon Josefsson  <jas@extundo.com>
84502
84503         * lib/base64.h, base64.c: New file.
84504
84505 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84508
84509 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84510
84511         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84512         (Depends-on): Remove pathmax, same.  Add mempcpy.
84513         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84514         (Makefile.am): Append getcwd.h to lib_SOURCES.
84515         (Include): Add getcwd.h.
84516         (Maintainer): Change from Jim Meyering to "all, glibc",
84517         since getdate now uses intended-for-glibc code.
84518         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84519         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84520
84521 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84522
84523         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84524         HP's ANSI C compiler.
84525         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84526         Declaring int functions causes warnings on some modern systems and
84527         shouldn't be needed to compile on ancient ones.
84528         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84529         defined.
84530
84531         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84532         with the following changes.
84533         (__set_errno): Parenthesize properly.
84534         Include <stdbool.h>.
84535         (MIN, MAX, MATCHING_INO): New macros.
84536         (__getcwd): Define with prototype, not K&R form.
84537         Use heuristics to allocate default buffer on stack if possible.
84538         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84539         behavior, and to avoid the PATH_MAX limit when computing
84540         ../../../../...
84541         Use MATCHING_INO to compare inode number to file.
84542         Check for arithmetic overflow in size calculations.
84543         Fix bug in reallocation of dot array that caused getcwd to fail
84544         on directories nested deeper than 75.
84545         Be more careful about saving errno on error.
84546         Do not use realloc; use only free+malloc, as this is a bit
84547         more flexible and avoids a needless copy operation.
84548         Do not inspect st_dev and st_ino for symbolic links; POSIX
84549         doesn't specify the latter.
84550         Check for closedir errors.
84551         Avoid needless casts.
84552         Use "#ifdef weak_alias" around weak_alias, to be like other
84553         glibc code.
84554         The following changes to getcwd.c have effect only when used in
84555         gnulib; they have no effect inside glibc proper.
84556         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84557         as alloca isn't used.
84558         (alloca, __alloca): Likewise.
84559         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84560         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84561         unconditionally, as gnulib assumes C89 or better.
84562         Do not include <sys/param.h>.
84563         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84564         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84565         better.
84566         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84567         Include <dirent.h> in a way that is compatible with modern Autoconf.
84568         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84569         New macros, if not already defined.
84570         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84571         Use "_LIBC", not "defined _LIBC", for consistency.
84572         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84573         a mempcpy module.
84574         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84575         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84576         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84577         credit only to Jim Meyering and adjust the copyright dates.
84578         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84579         <stdlib.h>, <unistd.h>, "pathmax.h".
84580         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84581         (INITIAL_BUFFER_SIZE): Remove.
84582         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84583
84584 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84585
84586         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84587         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84588         Use the _ONCE methods, for efficiency.
84589         Check for fcntl.h.  In test program, include <errno.h>
84590         and <fcntl.h> if available.  Remove old K&R cruft from
84591         test program.  Check for common errors in GNU/Linux,
84592         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84593         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84594         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84595         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84596         name accordingly.
84597         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84598         accommodate new getcwd.c.
84599         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84600         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84601         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84602         that's all we need now.
84603
84604 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84605
84606         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84607         argp-parse.c depends on getopt internals, that means we should
84608         always use our getopt, to be on the safe side.
84609         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84610         order not to spoil the result of an eventual previous invocation
84611         of gl_GETOPT_SUBSTITUTE.
84612
84613 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84614
84615         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84616         redefinition warnings. To avoid them, include the defines
84617         in `#if !defined __need_getopt ... #endif'. The only place
84618         where __getopt_argv_const is used is in definitions
84619         of getopt_long and getopt_long_only below, which are as well
84620         protected by `#ifndef __need_getopt'.
84621         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84622         __need_getopt after including <stdio.h> and <unistd.h> These
84623         headers might have defined it.
84624
84625 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84626
84627         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84628
84629 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84630
84631         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84632         (futimens): New function, which uses futimes if available.
84633         (futimens, utimens): Support timespec==NULL, with same semantics
84634         as utime and utimens.
84635         * lib/utimens.h (futimens): New decl.
84636
84637 2004-11-23  Jim Meyering  <jim@meyering.net>
84638
84639         * lib/getopt_.h: Remove trailing blanks.
84640
84641 2004-11-23  Jim Meyering  <jim@meyering.net>
84642
84643         * lib/__fpending.c: Add comment.
84644
84645 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84646
84647         * modules/canonicalize (Depends-on): Add xreadlink.
84648         Problem reported by James Youngman.
84649
84650 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84651
84652         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84653         New macros.
84654         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84655         optopt): Use them instead of invoking ## directly; otherwise, the
84656         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84657
84658 2004-11-19  Bruno Haible  <bruno@clisp.org>
84659
84660         * lib/strtok_r.c: Move comments from here...
84661         * lib/strtok_r.h: ... to here.
84662
84663 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84664
84665         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84666         implementations that mishandle size_t overflow.
84667
84668 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84669
84670         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84671         might fail.  Problem reported by Yoann Vandoorselaere.
84672         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84673         implementations that mishandle size_t overflow.
84674
84675 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84676
84677         * modules/canon-host (Depends-on): Add strdup.
84678
84679 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84680
84681         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84682
84683 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84684
84685         * lib/canon-host.c: Include "strdup.h".
84686         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84687         Use strdup instead of malloc/strcpy to duplicate strings.
84688
84689         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84690         (human_space_before_unit): New constant.
84691         * lib/human.c (human_readable): Support it.
84692
84693         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84694         (xgetcwd): Set errno correctly when failing.
84695         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84696         the failure is actually due to a PATH_MAX problem.
84697
84698         Further getopt changes to make it more likely that glibc will
84699         buy the changes back.
84700         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84701         (getopt): Use it, so to preserve glibc semantic
84702         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84703         when compiling for libc.
84704         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84705         (getopt_long, getopt_long_only): Use it.
84706
84707         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84708         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84709         (getopt): Argv is now char * const *, as per standard.
84710         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84711         not char *__getopt_argv_const *.
84712         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84713         _getopt_long_only_r): Likewise.
84714         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84715         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84716         _getopt_long_r, _getopt_long_only_r): Likewise.
84717         * lib/getopt_.h (__getopt_argv_const): Remove.
84718         (getopt): Argv is now char * const *, as per standard.
84719
84720         * lib/getdate.y (tORDINAL): New token.
84721         (day, relunit): Allow it for relative times.
84722         (relative_time_table): Use tORDINAL for ordinals.
84723
84724 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84725
84726         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84727         Document that "second" isn't allowed as an ordinal number.
84728
84729 2004-11-16  Jim Meyering  <jim@meyering.net>
84730
84731         * modules/closeout (Depends-on): Add fpending.
84732
84733 2004-11-15  Jim Meyering  <jim@meyering.net>
84734
84735         * lib/closeout.c: Include "__fpending.h" once again.
84736         Include <stdbool.h>.
84737         (close_stdout): Don't fail just because stdout was closed initially,
84738         since some programs don't write to stdout in the normal course of
84739         operation (other than --version and --help), and we don't want this
84740         function to make e.g. `touch file >&-' fail.
84741         But do fail if it was closed and someone has tried to write to it.
84742         E.g., `printf foo >&-' must fail.
84743
84744 2004-11-13  Jim Meyering  <jim@meyering.net>
84745
84746         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84747
84748 2004-11-12  Simon Josefsson  <jas@extundo.com>
84749
84750         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84751         small doc fix is still pending.
84752
84753 2004-11-11  Simon Josefsson  <jas@extundo.com>
84754
84755         * modules/strtok_r: New file.
84756
84757         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84758         strtok_r.
84759
84760 2004-11-11  Simon Josefsson  <jas@extundo.com>
84761
84762         * m4/strtok_r.m4: New file.
84763
84764         * m4/getopt.m4: Replace opterr.
84765
84766 2004-11-11  Simon Josefsson  <jas@extundo.com>
84767
84768         * lib/strtok_r.h, strtok_r.c: New file.
84769
84770 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84771
84772         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84773         of replacing opterr, getopt, etc.  This should handle the
84774         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84775
84776 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84777
84778         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84779         we can stop lying to compilers about the constness of argv when we
84780         are compiled outside glibc.
84781         (getopt, getopt_long, getopt_long_only): Use it.
84782         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84783         _getopt_internal, getopt): Likewise.
84784         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84785         _getopt_long_only_r): Likewise.
84786         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84787         _getopt_long_r, _getopt_long_only_r): Likewise.
84788
84789         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84790         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84791         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84792         the other external symbols.
84793         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84794         declaration, since the above renaming now works around collisions.
84795
84796 2004-11-11  Jim Meyering  <jim@meyering.net>
84797
84798         * lib/linebreak.c: Remove trailing blanks.
84799         * lib/alloca_.h: Likewise.
84800         * lib/acosl.c: Likewise.
84801         * lib/euidaccess.c: Likewise.
84802         * lib/allocsa.h: Likewise.
84803
84804 2004-11-10  Simon Josefsson  <jas@extundo.com>
84805
84806         * m4/getaddrinfo.m4: New file.
84807
84808 2004-11-10  Simon Josefsson  <jas@extundo.com>
84809
84810         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84811
84812 2004-11-10  Simon Josefsson  <jas@extundo.com>
84813
84814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84815         getaddrinfo.
84816
84817         * modules/getaddrinfo: New file.
84818
84819 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84820
84821         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84822
84823 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84824
84825         * lib/mktime.c (SHR): New macro, which is a portable
84826         substitute for >> that should work even on Crays.
84827         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84828         Problem reported by Mark D. Baushke in
84829         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84830         * lib/getdate.y (SHR): Likewise.
84831         (tm_diff): Use it.
84832         * lib/strftime.c (SHR): Likewise.
84833         (tm_diff): Use it.
84834         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84835         quote_these_too, so that right shifts are well defined.  All uses
84836         changed.
84837
84838 2004-11-10  Jim Meyering  <jim@meyering.net>
84839
84840         Ensure that no close failure goes unreported.
84841         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84842         return early when it seems there's nothing to flush.
84843         Don't include __fpending.h.
84844
84845 2004-11-10  Jim Meyering  <jim@meyering.net>
84846
84847         * modules/closeout (Depends-on): Remove fpending.
84848
84849 2004-11-10  Jim Meyering  <jim@meyering.net>
84850
84851         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84852
84853 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84854
84855         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84856         gl_FUNC_STRFTIME.
84857         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84858         and AC_REQUIRE when possible, to avoid duplicate checks.
84859         Check for <wchar.h>.
84860
84861 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84862
84863         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84864
84865 2004-11-09  Bruno Haible  <bruno@clisp.org>
84866
84867         * m4/sockpfaf.m4: New file.
84868
84869 2004-11-05  Bruno Haible  <bruno@clisp.org>
84870
84871         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84872         Reported by Mark D. Baushke <mdb@cvshome.org>.
84873
84874 2004-11-04  Bruno Haible  <bruno@clisp.org>
84875
84876         2004-09-11  Bruno Haible  <bruno@clisp.org>
84877                 * allocsa.valgrind: New file.
84878         2004-02-06  Bruno Haible  <bruno@clisp.org>
84879                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84880                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84881                 Reported by Christopher Seip <chris.seip@hp.com>.
84882
84883 2004-11-04  Bruno Haible  <bruno@clisp.org>
84884
84885         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84886         (Makefile.am): Distribute it.
84887
84888 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84889
84890         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84891         with errno == ERANGE if the buffer is too small.
84892         Problem reported by Mark D. Baushke.
84893
84894 2004-11-03  Albert Chin  <china@thewrittenword.com>
84895             Paul Eggert  <eggert@cs.ucla.edu>
84896
84897         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84898         equivalent, substitute $ac_type for equivalent type rather than
84899         blindly using uint32_t *always* which won't work if uint32_t is not
84900         available.  Define _UINT32_T to work around typedef of uint32_t if
84901         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84902         2.5.1.
84903
84904 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         * m4/jm-macros.m4: Sync from coreutils.
84907         (gl_MACROS): Check for mbrlen, for pathchk.
84908         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84909
84910 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * lib/xreadlink.c (MAXSIZE): New macro.
84913         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84914         size does not exceed MAXSIZE.  Avoid cast.
84915         As suggested by Mark D. Baushke in
84916         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84917         if readlink fails with buffer size just under MAXSIZE, try again
84918         with MAXSIZE.
84919
84920 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84921
84922         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84923
84924 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84925         and  Paul Eggert  <eggert@cs.ucla.edu>
84926
84927         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84928         (get_date): Overparenthesize to avoid GCC warning.
84929
84930 2004-11-02  Bruno Haible  <bruno@clisp.org>
84931
84932         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84933         returns void.
84934
84935 2004-11-02  Bruno Haible  <bruno@clisp.org>
84936
84937         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84938         function returns void.
84939
84940 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84941
84942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84943         fflush_unlocked, flockfile, funlockfile, funlockfile,
84944         fputs_unlocked, putc_unlocked.
84945
84946 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84947
84948         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84949         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84950         already declared.
84951
84952 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84953
84954         * modules/getdate (Files): Add doc/getdate.texi.
84955         (Depends-on): Add setenv, xalloc.
84956
84957 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84958
84959         * lib/getdate.y: Add support for TZ="foo" within a date string.
84960         Fix some bugs near time_t boundaries.  Reject dates with
84961         out-of-range components, e.g., "Sept 31".
84962         Include <stdlib.h>, "setenv.h", "xalloc.h".
84963         (ISDIGIT_LOCALE): Remove; unused.
84964         Note that the TZ and time functions used here are not reentrant.
84965         (mktime_ok, get_tz): New functions.
84966         (TZBUFSIZE): New constant.
84967         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84968         This requires that we sometimes generate our own TZ="XXX..." setting.
84969
84970 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84971
84972         * doc/getdate.texi: New file, from coreutils with modifications for
84973         the new TZ parsing.
84974
84975 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84976
84977         * lib/mktime.c (not_equal_tm): Remove redundant check.
84978
84979 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84980
84981         * modules/regex (lib_SOURCES): Add regex.c.
84982         Reported by James Youngman in
84983         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84984
84985 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84986
84987         * lib/getdate.y: Use Bison 1.875 features, and some minor
84988         code cleanups.  This change does not affect semantics.
84989         Don't include <stdlib.h>; no longer needed.
84990         Don't include unlocked-io.h; only the "#if TEST" code uses
84991         stdio, and performance isn't crucial there.
84992         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84993         Bison 1.875 features as described below.
84994         All uses of "PC." replaced by "pc->".
84995         (YYSTYPE): Add a forward declaration.
84996         (yylex, yyerror): Use full prototypes in forward decls.
84997         Use "%pure-parser" rather than obsolescent "%pure_parser".
84998         Use %parse-param and %lex-param instead of obsolescent
84999         YYPARSE_PARAM and YYLEX_PARAM.
85000         (meridian_table, month_and_day_table, time_units_table,
85001         relative_time_table, time_zone_table, military_table,
85002         lookup_zone, lookup_word, get_date):
85003         Use NULL instead of 0 where appropriate.
85004         (to_hour): Avoid abort (), to avoid a dependency on
85005         stdlib.h.
85006         (yyerror, yylex): Now accepts parser_control * arg.
85007         (main) [TEST]: Use '\0' rather than 0 for char.
85008
85009 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85012
85013 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85014
85015         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85016         It's now the caller's responsibility to handle the case where
85017         !HAVE_GETPAGESIZE && !defined getpagesize.
85018
85019         * lib/mktime.c (leapyear): Arg is long int, not int.
85020
85021 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85022
85023         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85024
85025 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85026
85027         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85028         missing.  Problem reported by James Youngman.
85029
85030 2004-10-16  Simon Josefsson  <jas@extundo.com>
85031
85032         * gnulib-tool: Fix comments.  Fix parse problem.
85033         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85034
85035 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85036
85037         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85038         implementation of getopt_long.  Problem reported by Alexander Taler in:
85039         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85040
85041 2004-10-15  Bruno Haible  <bruno@clisp.org>
85042
85043         * gnulib-tool: Untabify. Initialize supplied_libname.
85044         (func_usage): More homogenous output.
85045         (func_modules_transitive_closure, func_modules_to_filelist,
85046         func_emit_lib_Makefile_am): New functions.
85047         (func_import): New function, extracted from big case statement. Use
85048         func_get_license, func_modules_transitive_closure,
85049         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85050         opt_lgpl. Don't use test -a, as it's not portable.
85051         (func_create_testdir): Use func_modules_transitive_closure,
85052         func_modules_to_filelist, func_emit_lib_Makefile_am.
85053
85054 2004-10-15  Bruno Haible  <bruno@clisp.org>
85055
85056         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85057
85058 2004-10-15  Bruno Haible  <bruno@clisp.org>
85059
85060         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85061         the portions belonging to each module.
85062         Suggested by Derek Robert Price <derek@ximbiot.com>.
85063
85064 2004-10-12  Simon Josefsson  <jas@extundo.com>
85065
85066         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85067         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85068         to real functions.
85069
85070 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85071
85072         * modules/vsnprintf: New file.
85073
85074 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85075
85076         * m4/vsnprintf.m4: New file.
85077
85078 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85079
85080         * lib/vsnprintf.h: New file.
85081         * lib/vsnprintf.c: New file.
85082
85083 2004-10-11  Bruno Haible  <bruno@clisp.org>
85084
85085         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85086         vsnprintf.
85087
85088 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85089
85090         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85091
85092 2004-10-07  Bruno Haible  <bruno@clisp.org>
85093
85094         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85095         fits into the provided buffer.
85096
85097 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85098
85099         * lib/diacrit.c, diacrit.h: Add GPL notice.
85100
85101         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85102         notice.
85103         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85104         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85105         This avoids a potential constant-folding bug.
85106
85107 2004-10-05  Bruno Haible  <bruno@clisp.org>
85108
85109         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85110         for the declaration of strsep.
85111
85112 2004-10-05  Bruno Haible  <bruno@clisp.org>
85113
85114         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85115
85116 2004-10-04  Simon Josefsson  <jas@extundo.com>
85117
85118         * modules/memmem: New file.
85119         * tests/test-memmem.c: New file.
85120         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85121
85122 2004-10-04  Simon Josefsson  <jas@extundo.com>
85123
85124         * m4/memmem.m4: New file.
85125
85126 2004-10-04  Simon Josefsson  <jas@extundo.com>
85127
85128         * lib/memmem.h: New file.
85129         * lib/memmem.c: New file, taken from glibc.
85130
85131 2004-10-04  Simon Josefsson  <jas@extundo.com>
85132
85133         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85134         '#ifdef USE_UNLOCKED_IO'.
85135
85136 2004-10-04  Simon Josefsson  <jas@extundo.com>
85137
85138         * config/srclist.txt: Add memmem from glibc.
85139
85140 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85141
85142         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85143
85144         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85145         modules/exclude, modules/getdate, modules/getline,
85146         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85147         modules/getusershell, modules/linebuffer, modules/md5,
85148         modules/mountlist, modules/posixtm, modules/readtokens,
85149         modules/readutmp, modules/regex, modules/sha1,
85150         modules/version-etc, modules/yesno:
85151         Remove dependency on unlocked-io.
85152
85153 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85154
85155         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85156
85157         * m4/unlocked-io.m4: Add copyright notice.
85158         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85159
85160 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85161
85162         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85163         * lib/xmalloc.c (xmemdup): Likewise.
85164         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85165         XFREE): Remove these long-obsolescent macros.
85166         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85167         * lib/xstrdup.c: Remove.
85168
85169         * lib/regex.c (re_comp): Cast gettext return value to char *,
85170         Problem reported by Martin Neitzel via Mark D. Baushke.
85171
85172 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85173
85174         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85175         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85176         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85177         regex.c, sha1.c, version-etc.c, yesno.c:
85178         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85179         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85180         the includer's responsibility.
85181
85182         Sync from coreutils.
85183
85184         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85185         points to the start of a string, as the C Standard says the
85186         resulting behavior is undefined.
85187
85188         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85189         simple -> simple_backups, numbered_existing ->
85190         numbered_existing_backups, numbered -> numbered_backups
85191         to avoid shadowing problems.  All uses changed.
85192         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85193         * lib/backupfile.c (check_extension, numbered_backup):
85194         Rename locals to avoid shadowing 'basename'.
85195         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85196         once.
85197
85198         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85199         * lib/.cvsignore: Add getopt.h.
85200
85201 2004-10-04  Bruno Haible  <bruno@clisp.org>
85202
85203         * modules/README: New file.
85204         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85205         not a module.
85206
85207 2004-10-02  Jim Meyering  <jim@meyering.net>
85208
85209         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85210
85211 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85212
85213         * modules/strsep: New file.
85214
85215 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85216
85217         * m4/strsep.m4: New file.
85218
85219 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85220
85221         * lib/strsep.h: New file.
85222         * lib/strsep.c: New file.
85223
85224 2004-10-01  Simon Josefsson  <jas@extundo.com>
85225
85226         * lib/snprintf.c (snprintf): Handle size==0.
85227
85228 2004-10-01  Simon Josefsson  <jas@extundo.com>
85229             Bruno Haible  <bruno@clisp.org>
85230
85231         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85232         (snprintf): Declare 'args'.
85233
85234 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85235
85236         * lib/snprintf.c: Remove comments as to why each header is needed.
85237
85238 2004-10-01  Bruno Haible  <bruno@clisp.org>
85239
85240         * MODULES.html.sh: Add strsep.
85241
85242 2004-09-30  Simon Josefsson  <jas@extundo.com>
85243
85244         * modules/snprintf: New file.
85245
85246 2004-09-30  Simon Josefsson  <jas@extundo.com>
85247
85248         * m4/snprintf.m4: New file.
85249
85250 2004-09-30  Simon Josefsson  <jas@extundo.com>
85251
85252         * lib/snprintf.h, lib/snprintf.c: New files.
85253
85254 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85255
85256         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85257         (hol_entry_help): Never translate an empty string.
85258         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85259         * lib/argp.h (OPTION_NO_TRANS): New option.
85260
85261 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85262
85263         * modules/argp (Maintainer): Replace Simon Josefsson
85264         by Sergey Poznyakoff.
85265
85266 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85267
85268         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85269         changes merged back into glibc.
85270
85271 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85272
85273         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85274
85275 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85276
85277         * lib/xvasprintf.c: Include xalloc.h.
85278         (xvasprintf): Use xalloc_die, not xmalloc_die.
85279
85280 2004-09-29  Bruno Haible  <bruno@clisp.org>
85281
85282         * modules/alloca-opt: New file, derived from modules/alloca.
85283         * modules/allocsa: Depend on alloca-opt instead of alloca.
85284         * modules/setenv: Likewise.
85285         * modules/vasnprintf: Likewise.
85286         * MODULES.html.sh: Add alloca-opt.
85287
85288 2004-09-28  Simon Josefsson  <jas@extundo.com>
85289
85290         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85291         LGPL, and to replace license template from GPL to LGPL.
85292
85293 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85294
85295         * modules/dummy: Change license to LGPL.
85296
85297 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85298
85299         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85300
85301 2004-09-24  Simon Josefsson  <jas@extundo.com>
85302
85303         * modules/minmax (License): Change from GPL to LGPL.
85304
85305 2004-09-23  Simon Josefsson  <jas@extundo.com>
85306
85307         * gnulib-tool (--import): Typo.
85308
85309 2004-09-23  Simon Josefsson  <jas@extundo.com>
85310
85311         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85312
85313 2004-09-22  Bruno Haible  <bruno@clisp.org>
85314
85315         * modules/*: Add 'License' field.
85316         * gnulib-tool: Accept --extract-license option.
85317         (func_get_license): New function.
85318
85319 2004-09-21  Bruno Haible  <bruno@clisp.org>
85320
85321         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85322         Reported by Simon Josefsson.
85323
85324 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85327         gl_AC_TYPE_LONG_LONG.
85328
85329 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85330
85331         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85332
85333 2004-09-18  Simon Josefsson  <jas@extundo.com>
85334         and  Paul Eggert  <eggert@cs.ucla.edu>
85335
85336         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85337         calls with autoreconf.  Define GL_LIB.
85338
85339 2004-09-14  Karl Berry  <karl@gnu.org>
85340
85341         * config/srclist.txt: unsync setenv.c, sigh.
85342
85343 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85344
85345         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85346         Problem reported by Bruno Haible in:
85347         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85348
85349 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85350
85351         * config/srclist.txt: Comment out argp-pvh.c.
85352
85353 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85354
85355         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85356         in case some system header has #define'd it.  Problem reported by
85357         Soeren D. Schulze in
85358         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85359
85360 2004-09-09  Karl Berry  <karl@gnu.org>
85361
85362         * regex.[ch]: delete from the root.  These were supposed to be
85363                 synced with emacs cvs, but this has not happened for about
85364                 a year, and anyway nothing else uses emacs regex.[ch].
85365                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85366                 lib/regex[.ch] is untouched.
85367
85368 2004-09-09  Bruno Haible  <bruno@clisp.org>
85369
85370         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85371
85372 2004-09-09  Bruno Haible  <bruno@clisp.org>
85373
85374         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85375         modifications.
85376         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85377
85378 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85379
85380         * modules/xvasprintf: New file.
85381         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85382
85383 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85384
85385         * lib/xvasprintf.h: New file.
85386         * lib/xvasprintf.c: New file.
85387         * lib/xasprintf.c: New file.
85388
85389 2004-09-08  Bruno Haible  <bruno@clisp.org>
85390
85391         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85392
85393 2004-09-08  Bruno Haible  <bruno@clisp.org>
85394
85395         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85396         length is > INT_MAX.
85397         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85398         more.
85399
85400 2004-09-08  Bruno Haible  <bruno@clisp.org>
85401
85402         * lib/stdint_.h: New file, taken from GNU clisp.
85403
85404 2004-09-08  Bruno Haible  <bruno@clisp.org>
85405             Oskar Liljeblad  <oskar@osk.mine.nu>
85406
85407         * modules/stdint: New file.
85408         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85409
85410 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85411
85412         Import from coreutils.
85413         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85414         strings on unbounded length.  alloca's performance benefits aren't
85415         that important here.
85416         (V_STRDUP): Remove.
85417         (parse_with_separator): New function, with most of the internals
85418         of the old parse_user_spec.  Allow user to omit both user and group,
85419         for compatibility with FreeBSD.
85420         Clone only the user name, not the entire spec.
85421         Do not set *uid, *gid unless entirely successful.
85422         Avoid memory leak in some failing cases.
85423         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85424         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85425         (parse_user_spec): Rewrite to use parse_with_separator.
85426
85427 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85428
85429         * modules/userspec: Don't depend on alloca.
85430
85431 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85432
85433         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85434
85435 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85436
85437         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85438         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85439         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85440
85441 2004-08-16  Simon Josefsson  <jas@extundo.com>
85442
85443         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85444         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85445         Add --dry-run for --import.
85446         Let user provided command line parameters override configure.ac
85447         settings.
85448
85449 2004-08-12  Simon Josefsson  <jas@extundo.com>
85450
85451         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85452         as discussed with Paul Eggert in threads rooted at
85453         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85454         and
85455         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85456         Before, the test was empty, and relied on ELIDE_CODE in source
85457         code.)
85458         (gl_PREREQ_GETOPT): New macro.
85459         (gl_GETOPT): Use them.
85460
85461 2004-08-12  Simon Josefsson  <jas@extundo.com>
85462
85463         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85464         * lib/getopt_.h: Renamed from getopt.h.
85465
85466 2004-08-12  Simon Josefsson  <jas@extundo.com>
85467
85468         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85469         Change default library name from libfoo to libgnu.
85470         Now, if you have a configure.ac that says:
85471                 gl_SOURCE_BASE(gl)
85472                 gl_M4_BASE(gl/m4)
85473                 gl_MODULES(error getopt etcetera)
85474                 gl_INIT
85475         you can import all you need by running:
85476                 ../gnulib/gnulib-tool --import
85477
85478         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85479         (Makefile.am): Rewrite, use logic from argz.
85480         (Include): Use <getopt.h> instead of "getopt.h".
85481
85482 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85483
85484         * modules/argp (Files): Add m4/unlocked-io.m4.
85485         (Depends-on): Add extensions.
85486
85487 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85488
85489         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85490         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85491         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85492         Check for program_invocation_name, program_invocation_short_name,
85493         flockfile, funlockfile, features.h, _getopt_long_only_r.
85494
85495 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85496
85497         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85498         its complicated substitute.
85499         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85500         and program_invocation_name.
85501         (__argp_basename) [!_LIBC]: Remove; the only use was
85502         replaced by its body.
85503         (__argp_short_program_name): Change condition from
85504         !defined __argp_short_program_name to
85505         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85506         to match argp-namefrob.h.
85507         (__argp_failure): Don't assume strerror_r returns char *.
85508         * lib/argp-parse.c (N_): Define unconditionally.
85509         (argp_default_options): Fill out initializers with 0 to avoid
85510         gcc warnings.
85511
85512 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85513
85514         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85515         getopt1.c.
85516
85517 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85518
85519         Merge from coreutils.
85520
85521         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85522
85523         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85524         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85525
85526 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85527
85528         Merge from coreutils.
85529
85530         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85531         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85532         for Reliant Unix 5.43.
85533
85534         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85535         (union fooround): Use uintmax_t, not long int.
85536         The rest is a merge from libc:
85537         [defined _LIBC]: Include <shlib-compat.h>.
85538         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85539
85540         * lib/settime.c (settime): Recode to avoid warning with
85541         Sun Forte C 6U2.
85542
85543         * lib/strverscmp.c: Convert to UTF-8.
85544
85545 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85546
85547         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85548         m4/uintmax_t.m4.
85549
85550 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85551
85552         * modules/xalloc-die: New file.
85553         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85554
85555         * modules/md5 (Files): Add m4/uint32_t.m4.
85556         * modules/sha1: Renamed from modules/sha.
85557         (Files):
85558         Rename lib/sha.h to lib/sha1.h.
85559         Rename lib/sha.c to lib/sha1.c.
85560         Rename m4/sha.m4 to m4/sha1.m4.
85561         (lib_SOURCES): Likewise.
85562         (configure.ac): Rename gl_SHA to gl_SHA1.
85563         (Include): sha.h -> sha1.h.
85564
85565 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85566
85567         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85568         * m4/sha1.m4: Renamed from sha.m4.
85569         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85570
85571 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85572
85573         * lib/obstack.h (obstack_empty_p):
85574         Don't assume that chunk->contents is suitably aligned.
85575         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85576         Likewise. Problem reported by Benno in
85577         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85578
85579         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85580         readable.  This could be improved further but it'd take some work.
85581
85582 2004-08-08  Simon Josefsson  <jas@extundo.com>
85583
85584         * modules/xgethostname (Depends-on): Remove exit and error (not
85585         used).
85586
85587         * modules/getpass-gnu: Add getpass.h.
85588         (Depends-on): Add stdbool.
85589         * modules/getpass: Add getpass.h.
85590
85591 2004-08-08  Simon Josefsson  <jas@extundo.com>
85592
85593         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85594         Check getpass declaration.
85595
85596 2004-08-08  Simon Josefsson  <jas@extundo.com>
85597
85598         * lib/xgethostname.c: Don't include error.h (not used).
85599
85600         * lib/getpass.h: Add.
85601         * lib/getpass.c: Include getpass.h first.
85602
85603 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85604
85605         * lib/xalloc-die.c: New file.
85606         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85607         All uses removed.
85608         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85609         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85610         xalloc-die.c.
85611         (_, N_, xalloc_die): Move to xalloc-die.c.
85612         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85613         so that we needn't mess with xalloc_msg_memory_exhausted.
85614
85615         * lib/sha1.h: Renamed from sha.h.
85616         (SHA1_H): Renamed from _SHA_H.
85617         (sha1_ctx): Renamed from sha_ctx.
85618         (sha1_init_ctx): Renamed from sha_init_ctx.
85619         (sha1_process_block): Renamed from sha_process_block.
85620         (sha1_process_bytes): Renamed from sha_process_bytes.
85621         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85622         (sha1_read_ctx): Renamed from sha_read_ctx.
85623         (sha1_stream): Renamed from sha_stream.
85624         (sha1_buffer): Renamed from sha_buffer.
85625         * lib/sha1.c: Likewise; renamed from sha.c.
85626         Do not include <sys/types.h>.
85627         Include <stddef.h> rather than <stdlib.h>.
85628
85629 2004-08-08  Bruno Haible  <bruno@clisp.org>
85630
85631         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85632         FILESYSTEM_PREFIX_LEN.
85633         * lib/progreloc.c: Likewise.
85634         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85635
85636 2004-08-06  Simon Josefsson  <jas@extundo.com>
85637
85638         * modules/progname (Depends-on): Don't depend on stdbool.
85639
85640 2004-08-06  Simon Josefsson  <jas@extundo.com>
85641
85642         * modules/getsubopt: New file.
85643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85644         getsubopt.
85645
85646 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85647
85648         More merge from coreutils.
85649
85650         * m4/utimens.m4, m4/utimecmp.m4: New files.
85651         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85652         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85653         prereq.m4, sha.m4: Import changes from coreutils.
85654
85655 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85656
85657         More merge from coreutils.
85658         * modules/raise, modules/readtokens0, modules/utimens:
85659         * modules/utimecmp, module/xnanosleep: New files.
85660         * modules/strftime: Add lib/strftime.h.
85661         Change include from <time.h> to "strftime.h".
85662         * modules/yesno: Add lib/yesno.h.
85663         * modules/backupfile: Remove lib/addext.c.
85664         * modules/euidaccess: Add stat-macros.h.
85665         * modules/canonicalize, modules/euidaccess,
85666         modules/filemode, modules/lchown, modules/makepath,
85667         modules/rmdir, modules/stat: Likewise.
85668
85669 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85670
85671         Merge from tar.
85672         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85673         SIZE_MAX is a valid preprocessor constant.
85674         (__argp_basename): Change from "#ifndef _LIBC"
85675         to "#ifndef __argp_short_program_name", so that
85676         we don't compile these functions for tar.
85677
85678         More merges from coreutils.
85679         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85680         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85681         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85682         * lib/addext.c: Remove; no longer needed.
85683         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85684         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85685         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85686         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85687         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85688         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85689         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85690         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85691         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85692         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85693         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85694         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85695         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85696         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85697         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85698         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85699         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85700         Import changes from coreutils.
85701
85702 2004-08-05  Simon Josefsson  <jas@extundo.com>
85703
85704         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85705
85706 2004-08-05  Simon Josefsson  <jas@extundo.com>
85707
85708         * m4/getsubopt.m4: New file.
85709
85710 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85711
85712         Merge from coreutils.
85713
85714         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85715         * m4/getcwd-path-max.m4: New files.
85716
85717         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85718         FILESYSTEM_PREFIX_LEN ->
85719         FILE_SYSTEM_PREFIX_LEN.
85720         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85721         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85722         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85723         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85724
85725         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85726         prerequisite modules now handle the DOS stuff.
85727         Don't check for unistd.h.
85728
85729 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85730
85731         Merge from coreutils.
85732
85733         * lib/.gdb-history: Remove; this doesn't belong here.
85734
85735         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85736         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85737         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85738         * lib/getcwd.c: New files.
85739
85740         * lib/dirname.h: Include <stdbool.h>.
85741         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85742         for consistency with POSIX terminology.  All uses changed.
85743         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85744         (strip_trailing_slashes): Use bool for booleans.
85745         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85746
85747         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85748         sometimes returns a positive errno value even when it succeeds.
85749         (print_errno_message) [!LIBC]: Fall back on strerror if
85750         __strerror_r fails.
85751
85752         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85753         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85754         (longest_relative_suffix): New function.
85755         (path_concat): Use it.  Assume first argument is not NULL.
85756         Port to DOS.  Omit redundant separators.
85757         Report an error instead of returning NULL.
85758         Use mempcpy instead of memcpy.
85759         (xpath_concat): Remove: not declared or used.
85760
85761         * lib/same.h: Include <stdbool.h>
85762         (same_name): Return bool, not int.
85763         * lib/same.c (same_name): Likewise.
85764         (errno): Don't declare; we assume C89 or better now.
85765
85766         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85767         if not already defined.
85768
85769         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85770         * lib/dup-safer.c (errno): Likewise.
85771
85772 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85773
85774         Merge from coreutils.
85775         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85776         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85777         * modules/path-concat: Don't depend on strdup.
85778
85779 2004-08-03  Simon Josefsson  <jas@extundo.com>
85780
85781         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85782         * lib/progname.h: Don't include stdbool.h.
85783
85784 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85785
85786         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85787         * MODULES.html.sh (func_all_modules): Remove fatal.
85788
85789 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85790
85791         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85792
85793 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85794
85795         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85796         working.
85797
85798 2004-08-02  Simon Josefsson  <jas@extundo.com>
85799
85800         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85801         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85802         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85803
85804 2004-08-01  Simon Josefsson  <jas@extundo.com>
85805
85806         * lib/xgetdomainname.c: Include stdlib.h, for free().
85807
85808 2004-07-19  Bruno Haible  <bruno@clisp.org>
85809
85810         * MODULES.html.sh (func_all_modules): Add dummy.
85811
85812 2004-07-16  Simon Josefsson  <jas@extundo.com>
85813
85814         * modules/dummy: New file.
85815
85816 2004-07-16  Simon Josefsson  <jas@extundo.com>
85817
85818         * lib/dummy.c: New file.
85819
85820 2004-07-16  Bruno Haible  <bruno@clisp.org>
85821
85822         * lib/backupfile.h: Add extern "C" for C++.
85823         * lib/closeout.h: Likewise.
85824         * lib/copy-file.h: Likewise.
85825         * lib/findprog.h: Likewise.
85826         * lib/full-write.h: Likewise.
85827         * lib/pathname.h: Likewise.
85828         * lib/progname.h: Likewise.
85829         * lib/stpcpy.h: Likewise.
85830         * lib/stpncpy.h: Likewise.
85831         * lib/strcase.h: Likewise.
85832         * lib/strstr.h: Likewise.
85833         * lib/xalloc.h: Likewise.
85834
85835         * lib/mbswidth.h: Add extern "C" for C++.
85836         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85837
85838 2004-07-13  Robert Millan  <robertmh@gnu.org>
85839
85840         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85841
85842 2004-07-09  Simon Josefsson  <jas@extundo.com>
85843
85844         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85845         failed without this.)
85846
85847 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85848
85849         * modules/chown (Files): Add lib/fchown-stub.c, since
85850         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85851
85852 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85853
85854         * lib/fchown-stub.c: New file.
85855
85856 2004-06-24  Jim Meyering  <jim@meyering.net>
85857
85858         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85859
85860 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85861
85862         * modules/argz: Omit "#include".
85863
85864         * MODULES.html.sh (func_all_modules): Add calloc, to match
85865         2004-06-01 addition of calloc module.
85866
85867 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85868
85869         * m4/argz.m4: New file, which is autoupdated from libtool.
85870
85871 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85872
85873         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85874         libtool.
85875
85876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         * config/srclist-update: Don't insist on "USA." before the
85879         close-comment, as libtool omits the period and puts the */ on a
85880         separate line.
85881         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85882         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85883
85884 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85885
85886         * modules/argz: New file.
85887         * MODULES.html.sh (func_all_modules): Add argz.
85888
85889 2004-06-12  Jim Meyering  <jim@meyering.net>
85890         and  Paul Eggert  <eggert@cs.ucla.edu>
85891
85892         * modules/hash (Files): Add lib/xalloc.h.
85893         * modules/pipe (Depends-on): Add wait-process.
85894         * modules/stat (Depends-on): Add xalloc.
85895         * modules/userspec (Files): Add lib/userspec.h.
85896         * modules/xstrto
85897
85898         Upgrade from gettext-0.13.
85899         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85900         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85901         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85902
85903 2004-06-10  Jim Meyering  <jim@meyering.net>
85904
85905         * lib/calloc.c: New file.
85906
85907 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85908
85909         * lib/getdate.y (yylex): Allow space between sign and number.
85910         Problem reported by Dan Jacobson.
85911
85912 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85913
85914         Merge from coreutils CVS.
85915
85916         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85917         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85918         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85919         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85920         xstrtol.m4: Fix copyright date and/or serial number.
85921
85922         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85923         See if we need an fchown replacement.
85924         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85925         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85926         and use the replacement function if we detect either defect.
85927
85928         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85929         gl_UTIMECMP.
85930
85931 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85932         and  Jim Meyering  <jim@meyering.net>
85933
85934         Merge from coreutils CVS.
85935
85936         * lib/stat-macros.h: New file, with contents from file-type.h
85937         and coreutils' system.h.
85938         * lib/file-type.c: Include "stat-macros.h".
85939         * lib/file-type.h (file_type): Move all macro definitions to new file,
85940         stat-macros.h.
85941
85942         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85943         Wrap old code with this conditional.
85944         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85945         function that does not dereference symlinks.
85946         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85947
85948         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85949         dependency problems.
85950         (xreadlink): Accept new arg SIZE, for efficiency.
85951         All decls and uses changed.
85952         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85953
85954         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85955         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85956
85957         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85958         sysexits.h.
85959
85960 2004-06-01  Jim Meyering  <jim@meyering.net>
85961
85962         * m4/calloc.m4: New file.
85963
85964 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85965
85966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85967         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85968         Also, fix a typo in a diagnostic.
85969
85970 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85971
85972         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85973         or AC_FUNC_REALLOC.
85974
85975 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85976
85977         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85978         macros to be defined.
85979         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85980         the allocator returns NULL because the requested size is zero.
85981
85982 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85983
85984         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85985         var.  Add comment explaining why libc still defines it.  This
85986         merges the following patch from glibc:
85987         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85988
85989 2004-05-20  Andreas Schwab  <schwab@suse.de>
85990
85991         * m4/free.m4: Replace free if it not known to work, not the other
85992         way round.
85993
85994 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85995
85996         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85997         present in glibc since revision 1.1 of this file.
85998         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85999         obstack_alignment_mask, obstack_alloc, obstack_base,
86000         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86001         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86002         obstack_grow0, obstack_init, obstack_int_grow,
86003         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86004         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86005         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86006         nonexistent functions.
86007
86008 2004-05-18  Karl Berry  <karl@gnu.org>
86009
86010         * config/srclist.txt: break link for vasnprintf.c.
86011
86012 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86013
86014         Port obstack to the AS/400, where pointers are 16 bytes wide and
86015         you cannot cast an integer to a valid pointer.  This patch is
86016         currently waiting to be integrated into glibc; see
86017         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86018
86019         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86020         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86021         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86022         (struct obstack): temp member is now a union of a pointer and
86023         an integer, instead of an integer.  All integer uses changed.
86024         This does not affect the physical layout of struct obstack,
86025         except on hosts (like the AS/400) where the size or alignment of
86026         void * is greater than that of ptrdiff_t.
86027         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86028         __STDC__)]: Store temporary in pointer member of union, not
86029         integer member.
86030         * lib/obstack.c: Include <stddef.h>, for offsetof.
86031         (struct fooalign): Remove; it doesn't need a name.
86032         (union fooround): Change double to long double, and add void *.
86033         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86034         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86035         not a macro.  Hence the values are always int; so remove all
86036         casts-to-int in uses.
86037
86038 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86039
86040         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86041         we can get this patch merged into glibc.
86042
86043 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86044             Paul Eggert  <eggert@cs.ucla.edu>
86045
86046         * m4/argp: Depend on alloca.
86047
86048 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86049             Paul Eggert  <eggert@cs.ucla.edu>
86050
86051         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86052         freecoding.
86053
86054 2004-05-17  Bruno Haible  <bruno@clisp.org>
86055
86056         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86057         precision that consists of a '.' followed by an empty digit string.
86058         Patch by Tor Lillqvist <tml@iki.fi>.
86059
86060 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86061
86062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86063         for backward compatibility with older code.  We need our own
86064         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86065         it under some other name, and our alloca.h will define it.
86066
86067 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86068             Derek Price  <derek@ximbiot.com>
86069
86070         * lib/alloca.c: Include <alloca.h>, to get our interface.
86071         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86072         include <alloca.h> first.  Use C89 prototype for alloca; this
86073         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86074         Use #elif for simplicity, since we can assume C89 now.
86075         Don't try to source the system alloca.h since it will not be found
86076         and to prevent recursively including its replacement.
86077         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86078         * lib/regex.c: Likewise.
86079
86080 2004-05-16  Derek Price  <derek@ximbiot.com>
86081             Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         getline cleanup.  This changes the getndelim2 API: both order of
86084         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86085         no delimiter).
86086
86087         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86088         interface does that.
86089         (getline): Always use getdelim, so that we don't have two
86090         copies of this code.
86091         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86092         if available.
86093         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86094         (GETNDELIM2_MAXIMUM): New macro.
86095         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86096         instead of the old practice of delim2==0.  All callers changed.
86097         Return -1 on overflow, instead of returning junk.
86098         Do not set *linesize unless allocation succeeds.
86099         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86100         that we include sys/types.h.
86101         * lib/getnline.h: Likewise.
86102         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86103         (getndelim2): Reorder arguments.
86104         * lib/getnline.c (getnline, getndelim):
86105         Don't discard the NMAX argument.
86106         (getnline): Invoke getndelim, to avoid code duplication.
86107         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86108         of (size_t) -1 by callers of the getnline family.
86109
86110 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86111
86112         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86113         Check for gettimeofday.
86114         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86115         Check for settimeofday, stime.
86116
86117 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86118
86119         * lib/nanosleep.c (suspended): Change its type from int to
86120         sig_atomic_t volatile.
86121         (first_call): Make it private to rpl_nanosleep, and have it
86122         be zero initially as that's a bit faster.
86123         (my_usleep): Round up fractional times instead of truncating them,
86124         as this is the usual meaning for 'sleep'.
86125
86126         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86127         doesn't work.
86128         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86129         (ENOSYS): Define if not defined.
86130         (settime): Fall back on stime if it exists and settimeofday fails.
86131         But don't bother with fallbacks if a method fails with errno == EPERM.
86132
86133 2004-05-11  Jim Meyering  <jim@meyering.net>
86134
86135         Prior to this change, the save_cwd caller required read access to the
86136         current directory on most systems (ones with the fchdir function).
86137
86138         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86139         fails, try write-only, and finally, resort to using xgetcwd.
86140
86141 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86142
86143         * lib/obstack.c, obstack.h: Import changes from libc.
86144
86145 2004-04-28  Bruno Haible  <bruno@clisp.org>
86146
86147         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86148         also implicitly appends .exe to executables.
86149         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86150         accepts Windows pathnames.
86151         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86152         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86153         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86154         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86155         Reported by Derek Robert Price <derek@ximbiot.com>.
86156
86157 2004-04-21  Karl Berry  <karl@gnu.org>
86158
86159         * config/srclist.txt (localcharset.c): break sync.
86160
86161 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86162
86163         * m4/host-os.m4: Add a copyright notice.
86164
86165 2004-04-20  Jim Meyering  <jim@meyering.net>
86166
86167         Change UTILS_ to gl_ in AC_DEFINE'd names.
86168         Change utils_- and jm_-prefixed variables, too.
86169         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86170         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86172
86173         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86174         Don't emit trailing blanks.
86175         Also rename jm_-prefixed variables to have gl_ prefix.
86176
86177         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86178         Also rename jm_-prefixed variables to have gl_ prefix.
86179
86180         * m4/jm-macros.m4: Reflect the renamings.
86181         * m4/prereq.m4: Likewise.
86182
86183 2004-04-20  Jim Meyering  <jim@meyering.net>
86184
86185         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86186         memory.
86187
86188 2004-04-20  Jim Meyering  <jim@meyering.net>
86189             Bruno Haible  <bruno@clisp.org>
86190
86191         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86192         memory when realloc fails.
86193
86194 2004-04-19  Jim Meyering  <jim@meyering.net>
86195
86196         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86197         now that readutmp.c may call `free (0)'.
86198
86199 2004-04-19  Bruno Haible  <bruno@clisp.org>
86200
86201         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86202         * m4/inttypes_h.m4: Likewise.
86203         * m4/stdint_h.m4: Likewise.
86204         * m4/intmax_t.m4: Likewise.
86205         * m4/uintmax_t.m4: Likewise.
86206
86207 2004-04-18  Jim Meyering  <jim@meyering.net>
86208
86209         * m4/prereq.m4: Don't forbid jm_ prefix.
86210
86211         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86212         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86213         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86214         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86215         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86216         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86217         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86218         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86219         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86220         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86221         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86222         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86223         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86224         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86225         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86226         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86227         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86228         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86229         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86230
86231 2004-04-18  Jim Meyering  <jim@meyering.net>
86232
86233         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86234         failure, don't leak memory and do call END_UTMP_ENT.
86235
86236 2004-04-16  Jim Meyering  <jim@meyering.net>
86237
86238         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86239         coreutils' stat program.
86240         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86241
86242 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86243
86244         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86245         C89.
86246         (CHAR_BIT): Remove, since we assume C89.
86247         Include <stdint.h> if available, as per current Autoconf CVS advice.
86248
86249 2004-03-31  Jim Meyering  <jim@meyering.net>
86250
86251         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86252         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86253         * m4/xalloc.m4: Likewise.
86254
86255 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86256
86257         Merge from coreutils.
86258
86259         * m4/inttostr.m4: New file.
86260         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86261         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86262         Require gl_CLOCK_TIME.
86263         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86264
86265 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86266
86267         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86268         not bool, to be more consistent with Unix conventions.
86269         Suggested by Bruno Haible.
86270
86271         Merge from coreutils.
86272
86273         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86274         * lib/umaxtostr.c: New files.
86275
86276         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86277         the usual <time.h> dance.
86278         (get_date): Change signature to support fractional time stamps.
86279         All callers changed.
86280         * lib/getdate.y: Include "getdate.h" first, as we can now
86281         assume C89 and don't need to worry about 'const'.
86282         Similarly, include "unlocked-io.h" near start, not in middle.
86283         Include <limits.h>.
86284         (textint.value): Use long int rather than int.
86285         (textint.digits): Use size_t rather than int.
86286         (BILLION, LOG10_BILLION): New constants.
86287         (parser_control): New member rel_ns.  Members day_ordinal,
86288         time_zone, month, day, hour, minutes, rel_year, rel_month,
86289         rel_day, rel_hour, rel_minutes, rel_seconds
86290         are now long int, not int.  Member seconds is now struct timespec,
86291         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86292         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86293         not int.
86294         (%union.intval): Now long int, not int.
86295         New member timespec.
86296         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86297         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86298         (spec): Now is a timespec or an item list.
86299         (timespec, items): New nonterminals.
86300         (time, rel, relunit, number, get_date):
86301         Add support for fractional seconds.
86302         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86303         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86304         (to_hour): First arg is now long int, not int.
86305         (to_year): Returns long int, not int.
86306         Don't treat year -70 like 70.
86307         (tm_diff): Returns long int, not int.
86308         (lookup_word): Use bool instead of int when appropriate.
86309         (yylex): Use size_t for count, not int.
86310         Detect overflow when parsing large integer constants.
86311         Add support for fractions.
86312         (get_date): Make pointers 'const' if possible.
86313         Use more-portable code to detect integer overflow.
86314         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86315         Don't use ctime; it's not reliable if the year has >4 digits.
86316
86317         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86318         This is for compatibility with BSD.
86319
86320         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86321         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86322         From coreutils' system.h.
86323
86324         * lib/userspec.c: Don't include "posixver.h".
86325         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86326         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86327         compatible extension.  Simplify code by removing a boolean int
86328         that was always nonzero if a string was nonnull.
86329
86330 2004-03-30  Jim Meyering  <jim@meyering.net>
86331
86332         Merge from coreutils.
86333
86334         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86335         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86336         on some systems one must include <grp.h> before it.
86337         Reported by Christian Krackowizer.
86338
86339 2004-03-30  Jim Meyering  <jim@meyering.net>
86340
86341         Merge from coreutils.
86342
86343         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86344
86345         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86346         an empty input stream.
86347
86348         * lib/readtokens.c: Include <stdbool.h>.
86349         (readtoken): Use `size_t' rather than int/long.
86350         All callers adjusted.
86351         Use `bool' rather than `int' where appropriate.
86352         Use memset rather than an explicit loop.
86353         Use x2nrealloc rather than xrealloc.
86354         Allow the use of `\0' as a delimiter.
86355         (readtokens): Likewise.
86356         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86357
86358 2004-03-30  Jim Meyering  <jim@meyering.net>
86359
86360         * m4/realloc.m4: Remove file, since now it does no more than
86361         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86362         the `configure.ac' section of module/realloc.
86363         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86364
86365 2004-03-30  Bruno Haible  <bruno@clisp.org>
86366
86367         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86368         nonnull.
86369
86370 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86371
86372         Merge changes to getloadavg.c from coreutils and Emacs.
86373
86374         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86375         Define to an expression, not to the empty string.
86376         Include cloexec.h and xalloc.h.
86377         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86378         Use set_cloexec_flag rather than rolling our own.
86379         * lib/cloexec.c, lib/cloexec.h: New files.
86380
86381 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86382
86383         * m4/cloexec.m4: New file.
86384
86385 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86386
86387         * lib/getopt.h: Sync with libc CVS.
86388
86389 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86390             Bruno Haible  <bruno@clisp.org>
86391
86392         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86393         mbswidth.
86394
86395 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86396             Bruno Haible  <bruno@clisp.org>
86397
86398         * lib/mbswidth.h: Include <wchar.h> only if
86399         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86400         <wchar.h>.
86401         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86402
86403 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86404
86405         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86406         Sync with libc CVS.
86407         * lib/getopt_int.h: New file, also synced from libc.
86408
86409 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86410
86411         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86412         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86413         Bring back getopt.c, getopt.h, getopt1.c.
86414
86415 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86416
86417         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86418         All uses changed.  Check for sa_sigaction member; this fixes
86419         a bug first reported by Jason Andrade in
86420         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86421
86422 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86423
86424         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86425         '#if' expressions.  Unlike the code it replaces, it does not
86426         depend on (defined _SC_PAGESIZE).  However, it does depend on
86427         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86428         first reported by Jason Andrade in
86429         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86430
86431 2004-02-25  Simon Josefsson  <jas@extundo.com>
86432
86433         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86434
86435 2004-02-25  Simon Josefsson  <jas@extundo.com>
86436
86437         * lib/strdup.h: New file.
86438         * lib/strdup.c: Include it.
86439         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86440         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86441
86442 2004-02-23  Karl Berry  <karl@gnu.org>
86443
86444         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86445         (from fencepost.gnu.org:/gd/gnuorg).
86446
86447 2004-02-23  Karl Berry  <karl@gnu.org>
86448
86449         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86450         * config/srclist.txt: add maintain/standards documents.
86451
86452 2004-02-18  Bruno Haible  <bruno@clisp.org>
86453
86454         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86455         Reported by Derek Robert Price <derek@ximbiot.com>.
86456
86457 2004-02-16  Karl Berry  <karl@gnu.org>
86458
86459         * config/mkinstalldirs, install-sh: update from automake.
86460
86461 2004-02-06  Karl Berry  <karl@gnu.org>
86462
86463         * m4/po.m4: update from gettext 0.14.1.
86464
86465 2004-02-06  Karl Berry  <karl@gnu.org>
86466
86467         * lib/config.charset: update from gettext 0.14.1.
86468
86469 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86470
86471         Add comments and code, prompted by suggestions from Bruno Haible
86472         for sh-quote.
86473         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86474         describing the enum quoting_style values.
86475         * lib/quotearg.c (quotearg_alloc): New function.
86476         (quotearg_buffer_restyled): Treat lone { and } as special.
86477         Treat = as special.  Work around bug with older shells
86478         that "see" a '\' that is really the 2nd byte of a multibyte char.
86479         Quote empty string with shell_quoting_style.
86480
86481 2004-02-03  Bruno Haible  <bruno@clisp.org>
86482
86483         * m4/pipe.m4: New file, from GNU gettext.
86484
86485 2004-02-03  Bruno Haible  <bruno@clisp.org>
86486
86487         * lib/pipe.h: New file, from GNU gettext.
86488         * lib/pipe.c: New file, from GNU gettext.
86489
86490 2004-01-27  Bruno Haible  <bruno@clisp.org>
86491
86492         * m4/execute.m4: New file, from GNU gettext.
86493
86494 2004-01-27  Bruno Haible  <bruno@clisp.org>
86495
86496         * lib/execute.h: New file, from GNU gettext.
86497         * lib/execute.c: New file, from GNU gettext.
86498         * lib/w32spawn.h: New file, from GNU gettext.
86499
86500 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86501
86502         Merge from diffutils.
86503
86504         * lib/file-type.c (file_type): Add typed memory objects.
86505         * lib/file-type.h (S_TYPEISTMO): New macro.
86506
86507         * lib/c-stack.h (c_stack_action): Remove argv argument.
86508         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86509         (die): Don't calculate message unless segv_action returns.
86510         (get_stack_location, min_address_from_argv, max_address_from_argv,
86511         volatile stack_base, volatile_stack_size): Remove.
86512         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86513         that every segmentation violation is a stack overflow.  (Ouch!)
86514         See Debian bug 136249 (still outstanding) for more info about why
86515         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86516
86517 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86518
86519         Exit-status fix from coreutils.
86520
86521         Use exit_failure consistently in place of EXIT_FAILURE,
86522         so that program exit statuses are consistent on failure.
86523
86524         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86525         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86526         * lib/argmatch.h: Comment fix to match the above.
86527         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86528         Now a macro referring to exit_failure, instead of a separate
86529         variable.  Include "exitfail.h" to get it.
86530         * lib/xstrtol.h: Include "exitfail.h".
86531         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86532
86533         * lib/long-options.c (parse_long_options): Use prototype
86534         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86535         for clarity.
86536
86537 2004-01-21  Jim Meyering  <jim@meyering.net>
86538
86539         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86540         so as not to conflict with a different-sized __mktime_internal
86541         function in GNU libc.
86542         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86543         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86544
86545 2004-01-20  Karl Berry  <karl@gnu.org>
86546
86547         * config/config.guess: update from config.
86548
86549         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86550
86551 2004-01-20  Bruno Haible  <bruno@clisp.org>
86552
86553         Safer stack allocation.
86554         * lib/setenv.c: Include allocsa.h.
86555         (alloca): Remove fallback definition.
86556         (freea): Remove macro.
86557         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86558         instead of freea.
86559
86560 2004-01-20  Bruno Haible  <bruno@clisp.org>
86561
86562         * m4/eealloc.m4: New file, from GNU gettext.
86563
86564 2004-01-20  Bruno Haible  <bruno@clisp.org>
86565
86566         * m4/allocsa.m4: New file, from GNU gettext.
86567
86568 2004-01-20  Bruno Haible  <bruno@clisp.org>
86569
86570         * lib/xallocsa.h: New file, from GNU gettext.
86571         * lib/xallocsa.c: New file, from GNU gettext.
86572
86573 2004-01-20  Bruno Haible  <bruno@clisp.org>
86574
86575         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86576
86577 2004-01-20  Bruno Haible  <bruno@clisp.org>
86578
86579         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86580         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86581         specially.
86582
86583 2004-01-20  Bruno Haible  <bruno@clisp.org>
86584
86585         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86586         patch.
86587
86588 2004-01-20  Bruno Haible  <bruno@clisp.org>
86589
86590         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86591
86592 2004-01-20  Bruno Haible  <bruno@clisp.org>
86593
86594         * lib/eealloc.h: New file.
86595
86596 2004-01-20  Bruno Haible  <bruno@clisp.org>
86597
86598         * lib/binary-io.h: Avoid warnings on Cygwin.
86599
86600 2004-01-20  Bruno Haible  <bruno@clisp.org>
86601
86602         * lib/allocsa.h: New file, from GNU gettext.
86603         * lib/allocsa.c: New file, from GNU gettext.
86604
86605 2004-01-18  Karl Berry  <karl@gnu.org>
86606
86607         * doc/gpl.texi, doc/lgpl.texi: new files.
86608
86609 2004-01-18  Karl Berry  <karl@gnu.org>
86610
86611         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86612         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86613
86614 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86615
86616         Merge from coreutils.
86617
86618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86619         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86620         (gl_DEFAULT_POSIX2_VERSION): Move
86621         the documentation from 'configure' into 'config.hin',
86622         so that 'configure --help' isn't burdened by it and
86623         we don't have to worry about its formatting there.
86624         Reword the documentation so that it's more succinct
86625         and can be run together into a single paragraph.
86626         * m4/same.m4 (gl_SAME): Check for pathconf.
86627
86628 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86629
86630         Merge from coreutils.
86631
86632         * lib/posixver.c: Include posixver.h.
86633
86634         * lib/same.c: Include <stdbool.h>, <limits.h>.
86635         (_POSIX_NAME_MAX): Define if not defined.
86636         (MIN): New macro.
86637         (same_name): If file names are silently truncated, report
86638         that the file names are the same if they are the same after
86639         the silent truncation.
86640
86641         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86642         conversion function.
86643         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86644         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86645         longer needed.
86646
86647 2004-01-15  Jim Meyering  <jim@meyering.net>
86648
86649         Merge from coreutils.
86650
86651         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86652         if no library is required.
86653         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86654         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86655         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86656         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86657         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86658         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86659         value, $ac_cv_search_crypt, if it's "none required".
86660         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86661         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86662         not gl_FUNC_GETLOADAVG.
86663         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86664         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86665
86666 2004-01-15  Jim Meyering  <jim@meyering.net>
86667
86668         Merge from coreutils.
86669
86670         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86671         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86672         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86673
86674         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86675         optional configure-time default.
86676
86677         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86678
86679         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86680
86681 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86682
86683         Merge from coreutils.
86684
86685         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86686         value, $ac_cv_search_nanosleep, if it's "none required".
86687
86688 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86689
86690         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86691         with like-named macro in fnmatch.c.
86692         (EXT): Use an internal constant instead.
86693
86694         Merge fnmatch patches from glibc.
86695         * lib/fnmatch.c (mbsinit): Remove define.
86696         Add libc_hidden_ver (__fnmatch, fnmatch).
86697         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86698         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86699
86700 2004-01-14  Karl Berry  <karl@gnu.org>
86701
86702         * config/install-sh: update from automake.
86703
86704 2004-01-13  Karl Berry  <karl@gnu.org>
86705
86706         * config/install-sh: update from automake.
86707
86708 2004-01-09  Karl Berry  <karl@gnu.org>
86709
86710         * config/install-sh: update from automake.
86711
86712 2004-01-05  Karl Berry  <karl@gnu.org>
86713
86714         * config/config.{sub,guess}: update from config.
86715
86716 2003-12-31  Karl Berry  <karl@gnu.org>
86717
86718         * config/depcomp: update from automake.
86719
86720 2003-12-14  Karl Berry  <karl@gnu.org>
86721
86722         * lib/config.charset: update from gettext-runtime.
86723
86724 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86725
86726         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86727         Bug reported by Alfred M. Szmidt.
86728
86729 2003-12-03  Bruno Haible  <bruno@clisp.org>
86730
86731         * m4/gettext.m4: Upgrade from gettext-0.13.
86732         * m4/po.m4: Upgrade from gettext-0.13.
86733         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86734         * m4/intmax.m4: New file, from gettext-0.13.
86735         * m4/printf-posix.m4: New file, from gettext-0.13.
86736
86737 2003-11-29  Karl Berry  <karl@gnu.org>
86738
86739         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86740
86741 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86742             Bruno Haible  <bruno@clisp.org>
86743
86744         * lib/printf-parse.h: Don't include sys/types.h.
86745         (ARG_NONE): New macro.
86746         (char_directive): Change type of *arg_index fields to size_t.
86747         * lib/printf-parse.c: Don't include sys/types.h.
86748         (SSIZE_MAX): Remove macro.
86749         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86750         Remove unnecessary overflow check.
86751         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86752         fields.
86753
86754 2003-11-25  Bruno Haible  <bruno@clisp.org>
86755
86756         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86757
86758 2003-11-25  Bruno Haible  <bruno@clisp.org>
86759
86760         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86761         gt_TYPE_SSIZE_T.
86762
86763 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86764
86765         * modules/alloca: Remove dependency on xalloc.
86766
86767 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86768
86769         * lib/alloca.c: Remove dependency on xalloc module.
86770         (xalloc_die): Remove.
86771         (memory_full) [!defined emacs]: New macro.
86772         [!defined emacs]: Don't include xalloc.h.
86773         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86774         address arithmetic overflows.  Change datatypes a bit to avoid
86775         unnecessary casts.
86776
86777 2003-11-22  Jim Meyering  <jim@meyering.net>
86778
86779         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86780         s/size/size_t/.
86781
86782 2003-11-21  Karl Berry  <karl@gnu.org>
86783
86784         * config/config.{sub,guess}: update from config.
86785
86786 2003-11-18  Karl Berry  <karl@gnu.org>
86787
86788         * config/config.{sub,guess}: update from config.
86789
86790         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86791
86792 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86793
86794         * README: Mention that S+T cannot overflow if S is the size of
86795         an existing object and T is sufficiently small.
86796
86797 2003-11-17  Jim Meyering  <jim@meyering.net>
86798
86799         On systems without utime and without a utimes function capable of
86800         dealing with a NULL struct utimbuf* argument, this utime replacement
86801         could -- in unusual circumstances -- leak a file descriptor.
86802         * lib/utime.c: Include <unistd.h> and <errno.h>.
86803         (utime_null): Be sure to close `fd' and to preserve errno.
86804         Reported by Geoff Collyer via Arnold Robbins.
86805
86806 2003-11-17  Bruno Haible  <bruno@clisp.org>
86807
86808         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86809         (Depends-on): Add xsize.
86810
86811 2003-11-17  Bruno Haible  <bruno@clisp.org>
86812
86813         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86814
86815 2003-11-17  Bruno Haible  <bruno@clisp.org>
86816
86817         * lib/vasnprintf.c (alloca): Remove fallback definition.
86818         (freea): Remove definition.
86819         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86820         Reported by Paul Eggert.
86821
86822 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86823             Bruno Haible  <bruno@clisp.org>
86824
86825         Protect against address arithmetic overflow.
86826         * lib/printf-args.h: Include stddef.h.
86827         (arguments): Change type of field 'count' to size_t.
86828         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86829         'unsigned int' where appropriate.
86830         * lib/printf-parse.h: Include sys/types.h.
86831         (char_directive): Change type of *arg_index fields to ssize_t.
86832         (char_directives): Change type of fields 'count', max_*_length to
86833         size_t.
86834         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86835         (SSIZE_MAX): Define fallback value.
86836         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86837         instead of 'int' where appropriate. Check a_allocated, d_allocated
86838         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86839         * lib/vasnprintf.c: Include xsize.h.
86840         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86841         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86842         overflow. Avoid wraparound when converting a width or precision from
86843         decimal to binary.
86844
86845 2003-11-16  Bruno Haible  <bruno@clisp.org>
86846
86847         Update from GNU gettext.
86848         * lib/printf-parse.c: Generalize to it can be compiled for wide
86849         strings.
86850         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86851         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86852         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86853         SNPRINTF): New macros.
86854         Don't include <alloca.h> if the file is used inside libintl.
86855         (local_wcslen): New function, for Solaris 2.5.1.
86856         (VASNPRINTF): Use it instead of wcslen.
86857
86858 2003-11-16  Bruno Haible  <bruno@clisp.org>
86859
86860         * lib/xsize.h (xmax): New function.
86861         (xsum, xsum3, xsum4): Declare as "pure" functions.
86862
86863 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86864
86865         * modules/xalloc (Files): Undo latest change, since xalloc.h
86866         no longer needs SIZE_MAX or PTRDIFF_MAX.
86867
86868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86869
86870         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86871         gl_PTRDIFF_MAX.
86872
86873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86874
86875         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86876         "return", to pacify some unknown compiler.  Problem reported
86877         by Joerg Schilling.
86878
86879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86880
86881         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86882         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86883         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86884         heuristic is just as accurate as far as we know, and it removes a
86885         dependency on size_max.m4 and ptrdiff_max.m4.
86886
86887 2003-11-11  Bruno Haible  <bruno@clisp.org>
86888
86889         * modules/xsize (Files): Add m4/size_max.m4.
86890         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86891
86892 2003-11-11  Bruno Haible  <bruno@clisp.org>
86893
86894         * m4/size_max.m4: New file.
86895         * m4/ptrdiff_max.m4: New file.
86896         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86897         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86898         (gl_XALLOC): Invoke it.
86899
86900 2003-11-11  Bruno Haible  <bruno@clisp.org>
86901
86902         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86903         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86904         defined.
86905
86906 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86907
86908         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86909         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86910         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86911         From Bruno Haible.
86912         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86913         not (size_t) -1, since it's defined here.
86914
86915 2003-11-09  Karl Berry  <karl@gnu.org>
86916
86917         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86918
86919 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86920
86921         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86922         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86923         Reject sizes of exactly SIZE_MAX bytes.
86924         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86925         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86926
86927 2003-11-05  Bruno Haible  <bruno@clisp.org>
86928
86929         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86930         SIZE_MAX defined in <limits.h> on Solaris.
86931
86932 2003-11-04  Jim Meyering  <jim@meyering.net>
86933
86934         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86935         variable names, rather than @VAR@.
86936         * modules/poll: Likewise.
86937
86938 2003-11-04  Bruno Haible  <bruno@clisp.org>
86939
86940         * modules/xsize: New file.
86941         * modules/linebreak: Depend on xsize.
86942         * MODULES.html.sh (func_all_modules): Add xsize.
86943
86944 2003-11-04  Bruno Haible  <bruno@clisp.org>
86945
86946         * m4/xsize.m4: New file.
86947
86948 2003-11-04  Bruno Haible  <bruno@clisp.org>
86949
86950         * lib/xsize.h: New file.
86951         * lib/linebreak.c: Include xsize.h.
86952         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86953         argument for overflow.
86954         Suggested by Paul Eggert.
86955
86956 2003-11-03  Karl Berry  <karl@gnu.org>
86957
86958         * config/config.{guess,sub}: update from config.
86959
86960 2003-11-03  Jim Meyering  <jim@meyering.net>
86961
86962         * modules/userspec (lib_SOURCES): Add userspec.h.
86963         (Include): Add "userspec.h".
86964         Improve description.
86965
86966 2003-11-03  Jim Meyering  <jim@meyering.net>
86967
86968         * lib/userspec.c: Include "userspec.h".
86969         * lib/userspec.h: New file.
86970
86971 2003-11-03  Bruno Haible  <bruno@clisp.org>
86972
86973         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86974
86975 2003-11-03  Bruno Haible  <bruno@clisp.org>
86976
86977         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86978         available, to avoid (extremely rare) race condition.
86979         Suggested by Paul Eggert.
86980
86981 2003-11-02  Karl Berry  <karl@gnu.org>
86982
86983         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86984
86985 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86986
86987         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86988         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86989         (read_filesystem_list): Set and use me_type_malloced.
86990         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86991         whatever the type happens to be), for brevity and consistency.
86992         Check for size calculation overflow on Alphas running OSF/1.
86993
86994 2003-10-31  Jim Meyering  <jim@meyering.net>
86995
86996         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86997
86998         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86999
87000 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87001             Bruno Haible  <bruno@clisp.org>
87002
87003         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87004         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87005
87006 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87007
87008         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87009         netbsd*-gnu*.  Suggested by Robert Millan.
87010
87011 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87012
87013         * modules/group-member: Depend on stdbool.
87014
87015 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87016
87017         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87018
87019 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87020
87021         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87022         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87023         after the 'gnu' in these cases.  This fixes some bugs in the
87024         previous change, and is based on suggestions by Robert Millan.
87025
87026 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87027
87028         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87029         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87030         no longer needed.
87031         * lib/quotearg.c (quotearg_n_options): Use it.
87032         * lib/group-member.c: Include <stdbool.h>.
87033         (free_group_info): Arg is now const *; don't free arg.
87034         (get_group_info): Now returns bool and accepts struct group_info *,
87035         rather than returning a malloc'ed struct group_info *.
87036         All uses changed.  Check for overflow in internal size calculation.
87037
87038         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87039         rather than xmalloc/xrealloc.
87040         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87041         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87042         conformance bug: the old code used a pointer after freeing the
87043         storage that it addressed.
87044         * lib/hash.c (hash_initialize): Simplify the code by using
87045         xalloc_oversized rather than doing it by hand.
87046         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87047         the buffer preserved.  Use free and xmalloc instead.
87048         * lib/quotearg.c (quotearg_n_options): Likewise.
87049         Use a simpler test for size overflow.  Don't use xalloc_oversized
87050         because unsigned int might be wider than size_t (!); this suggests
87051         that we should switch from unsigned int to size_t for slot numbers.
87052
87053 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87054
87055         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87056         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87057         NetBSD kernels.  Requested by Richard Stallman.
87058
87059 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87060
87061         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87062         to allocate the returned structure.  Do not allocate a subarray,
87063         as x2nrealloc will do that.
87064         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87065         instead of xnrealloc.
87066         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87067
87068 2003-10-27  Bruno Haible  <bruno@clisp.org>
87069
87070         * lib/stdbool_.h: Better support for BeOS.
87071
87072 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87073
87074         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87075         now uses inline.
87076
87077 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87078
87079         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87080         callers that want to do their own size-overflow checking.  Include
87081         <stdbool.h>, since xalloc_oversized returns bool.
87082         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87083         to use xalloc_oversized.
87084
87085         Add two functions x2realloc, x2nrealloc, for programs that grow
87086         arrays dynamically by doubling their sizes.
87087         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87088         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87089         New functions.
87090
87091         Port to C99 semantics for 'inline' of external functions.
87092         Bug reported by Bruno Haible.
87093         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87094         with the old contents of xnmalloc.
87095         (xnmalloc, xmalloc): Use it.
87096         (xnrealloc_inline): New static inline function,
87097         with the old contents of xnrealloc.
87098         (xnrealloc, xrealloc): Use it.
87099
87100         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87101         that.
87102
87103 2003-10-26  Karl Berry  <karl@gnu.org>
87104
87105         * config/srclist.txt (COPYING.DOC): no longer available from
87106         /gd/gnuorg; don't know where the ultimate source is.
87107
87108 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87109
87110         Fix several address-calculation bugs in the hash modules,
87111         plus some minor code cleanup.
87112
87113         * lib/hash.h: Include <stdbool.h>, for bool.
87114         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87115         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87116         hash_get_n_entries, hash_get_max_bucket_length,
87117         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87118         hash_rehash): Use size_t rather than unsigned.
87119         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87120         hash_get_n_buckets_used, hash_get_n_entries,
87121         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87122         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87123         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87124         Likewise.
87125         (SIZE_MAX): Define if not defined.
87126         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87127         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87128         hash_print):
87129         Use const * when possible.
87130         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87131         (check_tuning): Fix bug: if tuning parameters were very close to
87132         0 or 1, rounding errors could have caused subscript violations.
87133         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87134         (hash_initialize): Add 'fail:' label
87135         to free table and return NULL, and use it to simplify code.
87136         Use calloc rather than clearing the storage ourself.
87137         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87138         buffer size calculations.
87139         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87140         Include <stddef.h>, for size_t.
87141         * lib/hash-pjw.c (hash_pjw): Likewise.
87142         Switch to method described by Bruno Haible.
87143         Include <limits.h>, for CHAR_BIT.
87144         (SIZE_BITS): New macro.
87145
87146 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87147
87148         * m4/getline.m4 (AM_FUNC_GETLINE):
87149         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87150         hosts.  Problem reported by Derek Robert Price in
87151         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87152         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87153         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87154
87155 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87156
87157         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87158         ceiling the allocation at NMAX bytes rather than silently
87159         discarding input bytes before NMAX is reached.  This makes
87160         a difference only if NMAX exceeds SIZE_MAX / 2.
87161
87162         * lib/obstack.c: Merge from glibc.
87163         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87164         Add libc_hidden_def (_obstack_newchunk).
87165         (_obstack_free) [! defined _LIBC]: Remove.
87166         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87167         a clone of the function body.
87168         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87169         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87170
87171         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87172         glibc.
87173         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87174         arg to memcpy.
87175
87176         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87177         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87178         Don't use lvalue casts, as GCC plans to remove support for them
87179         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87180         was also present in the non-GCC version, indicating that this
87181         code had always been buggy and had never been widely used.
87182         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87183         Use the fast variant of each macro, rather than copying the
87184         definiens of the fast variant; that way, we'll be more likely to
87185         catch future bugs in the fast variants.
87186
87187 2003-10-20  Bruno Haible  <bruno@clisp.org>
87188
87189         * modules/wait-process: New file.
87190         * MODULES.html.sh (func_all_modules): Add wait-process.
87191
87192 2003-10-20  Bruno Haible  <bruno@clisp.org>
87193
87194         * m4/wait-process.m4: New file.
87195
87196 2003-10-20  Bruno Haible  <bruno@clisp.org>
87197
87198         * lib/wait-process.h: New file, from GNU gettext.
87199         * lib/wait-process.c: New file, from GNU gettext.
87200
87201 2003-10-19  Jim Meyering  <jim@meyering.net>
87202
87203         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87204         HPUX 10.20.
87205
87206 2003-10-18  Karl Berry  <karl@gnu.org>
87207
87208         * config/config.guess: update from config.
87209
87210 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87211
87212         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87213         (getgroups): First arg is int, not size_t.
87214         Don't let 'free' mangle errno.
87215
87216 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87217
87218         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87219
87220 2003-10-16  Karl Berry  <karl@gnu.org>
87221
87222         * config/config.{guess,sub}: update from config.
87223
87224 2003-10-16  Jim Meyering  <jim@meyering.net>
87225
87226         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87227         memcpy.
87228
87229 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87230
87231         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87232         (SIZE_MAX): Remove.
87233         (new_exclude, add_exclude_file): Initial size no longer needs to
87234         be a power of 2.
87235         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87236         our own address arithmetic overflow checking.
87237
87238         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87239         (fnmatch): Do not alloca more than 2000 wide characters;
87240         instead, use malloc for large buffers.
87241         Check for address arithmetic overflow, and return -1
87242         with errno set to ENOMEM in that case.
87243         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87244         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87245         instead, return -1.  Check for address arithmetic overflow.
87246
87247 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87248
87249         Handle invalid suffixes and overflow independently, so that
87250         callers can treat them independently as needed.  Fix some bugs in
87251         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87252         suffix for a human-readable blocksize.  The major caller-visible
87253         change is the addition of a new
87254         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87255         that both overflow and suffix chars were found.
87256
87257         * lib/human.c (humblock): Don't check separately for invalid suffix
87258         char; that is xstrtoumax's job (now that its bug is fixed).
87259         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87260         INTMAX_MAX]: New macros.
87261         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87262         TYPE_MAXIMUM): New macros.
87263         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87264         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87265         if overflow occurs, as it's what __strtol does and it's more useful
87266         in practice.
87267         (__xstrtol): If __strtol reports some error other than ERANGE,
87268         reflect it to the caller as LONGINT_INVALID.  If it reports
87269         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87270         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87271         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87272         value.
87273         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87274         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87275         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87276         [defined UINTMAX_MAX]: New macros.
87277
87278 2003-10-14  Bruno Haible  <bruno@clisp.org>
87279
87280         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87281
87282 2003-10-14  Bruno Haible  <bruno@clisp.org>
87283
87284         * m4/sig_atomic_t: New file, from GNU gettext.
87285         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87286
87287 2003-10-14  Bruno Haible  <bruno@clisp.org>
87288
87289         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87290         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87291         Also use volatile where needed.
87292
87293 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87294
87295         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87296         Change maintainer from Bruno Haible to 'all'.
87297
87298 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87299
87300         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87301
87302 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87303
87304         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87305         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87306         and define in terms of the other primitives.
87307         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87308         (SIZE_MAX): Define if not already defined.
87309         (array_size_overflow): New function.
87310         (xalloc_die): Abort instead of exiting if 'error' returns.
87311         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87312         (xmalloc, xrealloc): Use them.
87313         (xcalloc): Check for address arithmetic overflow.
87314         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87315         a bit faster than strcpy.
87316
87317 2003-10-10  Simon Josefsson  <jas@extundo.com>
87318
87319         * modules/argp (Depends-on): Add restrict and strcase.
87320
87321 2003-10-10  Simon Josefsson  <jas@extundo.com>
87322
87323         * m4/argp.m4: Add AC_C_INLINE.
87324
87325 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87326
87327         Merge getpass from libc, plus a few fixes.
87328
87329         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87330         Include <stdbool.h>.
87331         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87332         __fsetlocking to empty.
87333         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87334         do include <bits/libc-lock.h>.
87335         Do not include <fcntl.h>; not needed.
87336         [_LIBC]: Include <wchar.h>.
87337         (NOTCANCEL_MODE): New macro.
87338         (flockfile, funlockfile) [_LIBC]: New macros.
87339         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87340         [!_LIBC]: New macros.
87341         (call_fclose): New function.
87342         (getpass): Use it.  Save tty stream separately; this simplifies the
87343         code and makes it more reliable if stdin happens to equal stdout.
87344         Invoke __fsetlocking on tty.
87345         Handle thread cancellation if needed.
87346         Namespace cleanup (use __tcgetattr, __getline).
87347         Use bool for Booleans.
87348         [USE_IN_LIBIO]: Handle wide streams.
87349         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87350         stream might go where.
87351
87352         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87353         doesn't have to include <stdio.h> before us.
87354         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87355         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87356         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87357         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87358         if not declared, so that we can use getpass.c code from libc without
87359         rewriting it.
87360         (flockfile, ftrylockfile, funlockfile): New macros.
87361
87362 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87363
87364         * modules/getpass: Depend on stdbool.
87365
87366 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87367
87368         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87369
87370 2003-10-07  Karl Berry  <karl@gnu.org>
87371
87372         * config/config.{guess,sub}: update from config.
87373
87374 2003-10-06  Jim Meyering  <jim@meyering.net>
87375             Bruno Haible  <bruno@clisp.org>
87376
87377         This lets translators provide better translations for the
87378         "Written by ..." part of --version output.
87379         * lib/version-etc.h: Include stdarg.h.
87380         (version_etc_copyright): Declare as readonly.
87381         (version_etc): Make this function variadic with a NULL-terminated list
87382         of author name strings.
87383         (version_etc_va): New declaration.
87384         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87385         (version_etc_copyright): Declare as readonly.
87386         (version_etc_va): New function. Provide a different translatable string
87387         for each possible number of authors < 10. Abbreviate when there are 10
87388         authors or more.
87389         (version_etc): Make this function variadic. Call version_etc_va.
87390         Suggestion from Gary V. Vaughan.
87391
87392         * lib/long-options.h (parse_long_options): Change prototype: the
87393         authors string is moved to the end and becomes variadic.
87394         * lib/long-options.c: Include stdarg.h.
87395         (parse_long_options): Make this function variadic, too.
87396         Call version_etc_va, not version_etc.
87397
87398 2003-10-06  Bruno Haible  <bruno@clisp.org>
87399
87400         * modules/version-etc-2: Remove file.
87401         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87402
87403 2003-10-06  Bruno Haible  <bruno@clisp.org>
87404
87405         * modules/fatal-signal: New file.
87406         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87407
87408 2003-10-06  Bruno Haible  <bruno@clisp.org>
87409
87410         * m4/fatal-signal.m4: New file.
87411         * m4/signalblocking.m4: New file, from GNU gettext.
87412
87413 2003-10-06  Bruno Haible  <bruno@clisp.org>
87414
87415         * lib/version-etc-2.h: Remove file.
87416         * lib/version-etc-2.c: Remove file.
87417
87418 2003-10-06  Bruno Haible  <bruno@clisp.org>
87419
87420         * lib/fatal-signal.h: New file, from GNU gettext.
87421         * lib/fatal-signal.c: New file, from GNU gettext.
87422
87423 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87424
87425         * README: Rework advice for preventing empty .o files.
87426         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87427         not <sys/types.h>.
87428
87429 2003-10-04  Karl Berry  <karl@gnu.org>
87430
87431         * lib/argp*: update from libc.
87432
87433 2003-10-04  Karl Berry  <karl@gnu.org>
87434
87435         * config/config.{guess,sub}: update from config.
87436
87437 2003-10-02  Bruno Haible  <bruno@clisp.org>
87438
87439         * modules/lchown (Include): Add lchown.h.
87440         * modules/time_r (Include): Use "..." syntax.
87441         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87442
87443 2003-10-01  Simon Josefsson  <jas@extundo.com>
87444
87445         * MODULES.html.sh (func_all_modules): Move gethostname from section
87446         'based on' to section 'lacking' POSIX:2001.
87447
87448 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87449
87450         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87451         to output mode on the same stream.
87452
87453 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87454
87455         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87456         Fix arg typo in previous patch.
87457
87458 2003-09-28  Jim Meyering  <jim@meyering.net>
87459
87460         * lib/error.c: Correct cpp indentation.
87461
87462 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87463
87464         * modules/free: New file.
87465
87466 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87467
87468         * m4/free.m4: New file.
87469
87470 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87471
87472         * lib/minmax.h (MIN, MAX)
87473         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87474         Omit the special code that used __typeof__, since we worry that
87475         it could be more trouble than it's worth.  See:
87476         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87477         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87478
87479         * lib/free.c: New file.
87480
87481 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87482
87483         Trivial fixes to Makefile.am parts of module listings.
87484         * modules/strstr: Append strstr.h to lib_SOURCES.
87485         * modules/strcase: Likewise, for strcase.h.
87486
87487 2003-09-27  Karl Berry  <karl@gnu.org>
87488
87489         * config/mkinstalldirs: update from automake.
87490
87491 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87492
87493         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87494         (error_tail): Do not loop, reallocating temporary buffer, since
87495         the output cannot contain more wide characters than the input
87496         contains bytes, the size must be big enough already.  This avoids
87497         one potential size overflow calculation.  Check for size overflow
87498         when calculating temporary buffer size.  Free temporary buffer
87499         when done, if it was allocated with malloc; this plugs a memory
87500         leak.  Remove casts from void * to pointers, that are no longer
87501         needed now that we're assuming C89 or better.
87502
87503         Merge error changes from glibc.
87504
87505         * lib/error.c, error.h: Update copyright notice header to match glibc.
87506         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87507         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87508         Disable cancellation while printing error.
87509         * lib/error.h: Prepend __ to parameter names.
87510
87511 2003-09-26  Jim Meyering  <jim@meyering.net>
87512
87513         * lib/error.c (error_tail): Move some declarations
87514         into inner scope where the local variables are used.
87515
87516 2003-09-26  Bruno Haible  <bruno@clisp.org>
87517
87518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87519         stpncpy().
87520         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87521
87522 2003-09-26  Bruno Haible  <bruno@clisp.org>
87523
87524         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87525         (stpncpy): Define as alias for gnu_stpncpy.
87526         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87527
87528 2003-09-25  Simon Josefsson  <jas@extundo.com>
87529
87530         * lib/xgetdomainname.h: New file.
87531         * lib/xgetdomainname.c: New file.
87532
87533 2003-09-25  Simon Josefsson  <jas@extundo.com>
87534             Bruno Haible  <bruno@clisp.org>
87535
87536         * modules/getdomainname: New file.
87537         * modules/xgetdomainname: New file.
87538         * MODULES.html.sh (func_all_modules): Add getdomainname,
87539         xgetdomainname.
87540
87541 2003-09-25  Simon Josefsson  <jas@extundo.com>
87542             Bruno Haible  <bruno@clisp.org>
87543
87544         * m4/getdomainname.m4: New file.
87545
87546 2003-09-25  Simon Josefsson  <jas@extundo.com>
87547             Bruno Haible  <bruno@clisp.org>
87548
87549         * lib/getdomainname.h: New file.
87550         * lib/getdomainname.c: New file.
87551
87552 2003-09-25  Karl Berry  <karl@gnu.org>
87553
87554         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87555
87556 2003-09-25  Karl Berry  <karl@gnu.org>
87557
87558         * config/install-sh: update from automake.
87559
87560 2003-09-25  Bruno Haible  <bruno@clisp.org>
87561
87562         * modules/version-etc-2: New file, from modules/version-etc with
87563         modifications.
87564         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87565
87566 2003-09-25  Bruno Haible  <bruno@clisp.org>
87567
87568         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87569         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87570
87571 2003-09-24  Simon Josefsson  <jas@extundo.com>
87572
87573         * modules/xgethostname: Add xgethostname.h.
87574
87575 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87576
87577         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87578         the buffer associated with the argument.  Bug reported by
87579         Simon Josefsson.
87580
87581 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87582
87583         * README: Document assumptions that 'int' is at least 32 bits
87584         wide, that integer arithmetic is 2's complement without overflow,
87585         that there are no holes in integer values, that adding sizes of
87586         two nonoverlapping objects can't overflow, and that all-bits-zero
87587         yields scalar zero.  Fix spelling and capitalization typos.
87588
87589 2003-09-19  Karl Berry  <karl@gnu.org>
87590
87591         * lib/argp.h: update from libc.
87592
87593 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87594
87595         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87596         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87597         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87598
87599 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87600
87601         * gnulib-tool: Use "test -h", not "test -L", for portability
87602         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87603         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87604         (sed_extract_prog): Issue s commands one-by-one, rather than
87605         using \| in one s command.
87606
87607 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87608
87609         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87610         input error, instead of returning NULL the next time we are called
87611         (and therefore losing track of errno).
87612
87613 2003-09-16  Bruno Haible  <bruno@clisp.org>
87614
87615         * gnulib-tool (func_create_testdir): Warn about duplicated
87616         dependencies.
87617
87618 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87619
87620         * modules/argmatch, modules/fatal, modules/obstack,
87621         modules/xalloc, modules/xgethostname: Sort dependencies by
87622         importance, not alphabetically.
87623
87624 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87625
87626         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87627         fails, so that the caller gets the proper errno.
87628
87629         * lib/readutmp.c (read_utmp): Likewise.
87630         Check for fstat error.  Close stream and free storage
87631         when failing.
87632
87633 2003-09-14  Karl Berry  <karl@gnu.org>
87634
87635         * config/srclist.txt (strdup.c): disable for c89 changes.
87636
87637 2003-09-14  Jim Meyering  <jim@meyering.net>
87638
87639         * lib/getloadavg.c: Correct cpp indentation.
87640         * lib/strdup.c: Likewise.
87641         * lib/vasnprintf.c: Likewise.
87642
87643 2003-09-14  Bruno Haible  <bruno@clisp.org>
87644
87645         * modules/fwriteerror: New file.
87646         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87647
87648 2003-09-14  Bruno Haible  <bruno@clisp.org>
87649
87650         * lib/fwriteerror.h: New file.
87651         * lib/fwriteerror.c: New file.
87652
87653 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87654
87655         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87656         modules/xgethostname, modules/xalloc: Depend on exit.
87657
87658 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87659
87660         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87661
87662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87663         and AC_MINIX, too, so that their extensions are available.
87664
87665         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87666         This macro has been superseded by gl_BACKUPFILE.
87667
87668         More patches to assume C89 or better.
87669
87670         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87671
87672         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87673         unconditionally.
87674         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87675         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87676         Include <string.h>, <stdlib.h> unconditionally.
87677         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87678         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87679         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87680         headers or for string.h.
87681         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87682         or strtoul.
87683
87684         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87685         headers.
87686         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87687         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87688         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87689         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87690         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87691         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87692         memcpy, memset.
87693         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87694         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87695         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87696         strtol.
87697         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87698         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87700         strtoul.
87701
87702 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87703
87704         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87705         * lib/obstack.c [!defined _LIBC]: Likewise.
87706         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87707         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87708         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87709
87710         More changes to assume C89 or better.
87711
87712         * lib/error.c (error_tail): Assume vprintf.
87713
87714         * lib/argmatch.c (getenv): Remove decl.
87715         * lib/progreloc.c (get_full_program_name): Define via prototype.
87716         * lib/setenv.c (clearenv): Likewise.
87717         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87718         needed.
87719         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87720         (malloc, memcpy): Remove decls.
87721         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87722         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87723         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87724         (memcpy): Remove macro.
87725         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87726         (__P): Remove.  All uses removed.
87727         (PTR): Remove.  All uses changed to void *.
87728         (CHAR_BIT, NULL): Remove.
87729         (spaces, zeros, memset_space, memset_zero)
87730         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87731         Remove.
87732         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87733         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87734         Define with prototype.
87735         Remove now-unnecessary prototype decl.
87736         (extra_args_spec): Assume ANSI C.  All uses changed.
87737         (extra_args_spec_iso): Remove.
87738         (my_strftime, emacs_strftimeu): Define via prototype.
87739         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87740         unconditionally.
87741         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87742         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87743         (strtoul, strtol): Remove decls.
87744         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87745         LONG_MAX): Remove.
87746         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87747         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87748         (LOCALE_PARAM_PROTO): New macro.
87749         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87750         (INTERNAL (strtol), strtol): Define with a prototype.
87751         (PARAMS): Remove.  All uses removed.
87752         * lib/tempname.c: Include <string.h> unconditionally.
87753         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87754         * lib/xgethostname.c (main): Define with a prototype.
87755         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87756         Include <stdlib.h> unconditionally.
87757         (calloc, malloc, realloc, free): Remove decls.
87758         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87759         Include <stdlib.h> unconditionally.  Sort include file names.
87760         (strtod): Remove.
87761         (xstrtod): Define with a prototype.
87762         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87763         (strtol, strtoul): Remove decls.
87764
87765 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87766
87767         More patches to assume C89 or better.
87768         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87769         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87770         string.h, memchr, STDC_HEADERS.
87771
87772 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87773
87774         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87775         Include <stdlib.h>, <string.h> unconditionally.
87776         Remove now-unnecessary cast to char *.
87777         * lib/strnlen.c: Include <string.h> unconditionally.
87778         * lib/yesno.c (yesno): Define with a prototype.
87779
87780 2003-09-11  Bruno Haible  <bruno@clisp.org>
87781
87782         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87783
87784 2003-09-10  Jim Meyering  <jim@meyering.net>
87785
87786         * lib/error.c: Correct indentation of cpp directives.
87787
87788 2003-09-10  Bruno Haible  <bruno@clisp.org>
87789
87790         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87791         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87792         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87793         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87794         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87795         <stdlib.h> and <string.h> checks.
87796         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87797         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87798
87799 2003-09-10  Bruno Haible  <bruno@clisp.org>
87800
87801         * lib/strcspn.c: Include <string.h> unconditionally.
87802         * lib/strpbrk.c: Include <string.h> unconditionally.
87803         * lib/strstr.c: Include <string.h> unconditionally.
87804         * lib/unicodeio.c: Include <string.h> unconditionally.
87805         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87806         * lib/unsetenv.c: Likewise.
87807         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87808         * lib/yesno.c: Include <stdlib.h> unconditionally.
87809         (rpmatch): Add prototype.
87810
87811 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87812
87813         More patches to assume C89 or better.
87814         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87815         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87816         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87817         or for string.h.
87818         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87819         stdlib.h.
87820         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87821         C headers.
87822         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87823         string.h.
87824         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87825         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87826         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87827         or for string.h.
87828         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87829         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87830         C headers.
87831         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87832         memcpy.
87833         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87834         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87835         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87836         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87837         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87838         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87839         string.h, free.
87840         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87841         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87842         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87843         C headers, or for string.h.
87844         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87845         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87846         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87847         headers, memory.h, stdlib.h, string.h, strings.h.
87848         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87849         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87850         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87851         strchr.
87852         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87853         headers, memory.h, string.h.
87854         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87855         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87856         free.
87857         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87858         headers.
87859         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87860         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87861         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87862         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87863         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87864
87865 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87866
87867         More K&R removal.
87868
87869         * lib/acosl.c (main): Use a prototype.
87870         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87871         tanl.c: Likewise.
87872
87873         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87874
87875         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87876         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87877         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87878         with a prototype.
87879         * lib/getopt.c (const): Remove macro.
87880         Include <string.h> unconditionally.
87881         (my_index): Remove; all uses changed to strchr.
87882         (strlen): Remove decl.
87883         (exchange): Remove forward decl; no longer needed.
87884         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87885         Define with prototype.
87886         * lib/getopt1.c (const): Remove macro.
87887         (getopt_long, getopt_long_only, main): Define with prototype.
87888
87889         * lib/getugroups.c: Include <string.h> unconditionally.
87890
87891         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87892         (getusershell, setusershell, endusershell, readname, main):
87893         Define with prototypes.
87894
87895         * lib/group-member.c: Include group-member.h first.
87896         Include <stdlib.h> unconditionally.
87897
87898         * lib/hard-locale.c: Include hard-locale.h first.
87899         Include <stdlib.h>, <string.h> unconditionally.
87900
87901         * lib/hash.c (free, malloc): Remove decls.
87902         Include <stdlib.h> unconditionally.
87903
87904         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87905         (getenv): Do not declare.
87906
87907         * lib/idcache.c: Include <string.h> unconditionally.
87908
87909         * lib/long-options.c: Include long-options.h first, to test interface.
87910         Include <stdlib.h> unconditionally.
87911
87912         * lib/makepath.c: Include makepath.h first, to test interface.
87913         Include <stdlib.h> and <string.h> unconditionally.
87914
87915         * lib/linebuffer.c: Include <stdlib.h>.
87916         (free): Remove decl.
87917
87918         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87919         stddef.h. rpl_malloc returns void *, not char *.
87920         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87921         prototype.
87922
87923         * lib/md5.h: Include <limits.h> unconditionally.
87924         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87925         (__P): Remove; all uses removed.
87926         * lib/md5.c: Include "md5.h" first.
87927         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87928         md5_buffer, md5_process_bytes, md5_process_block):
87929         Define with prototypes.
87930         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87931         * lib/sha.c: Include "sha.h" first.
87932         Include <stdlib.h>, <string.h> unconditionally.
87933
87934         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87935         * lib/memcmp.c (__ptr_t): Likewise.
87936         * lib/memrchr.c (__ptr_t): Likewise.
87937         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87938         Include <string.h> unconditionally.
87939         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87940         * lib/memchr.c: Include <stdlib.h> unconditionally.
87941         * lib/memchr.c (LONG_MAX): Remove.
87942         * lib/memrchr.c (LONG_MAX): Likewise.
87943         * lib/memchr.c (__memchr): Define via a prototype.
87944         * lib/memrchr.c (__memrchr): Likewise.
87945         * lib/memcmp.c (__P): Remove, and remove all uses.
87946         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87947         Remove forward decls; no longer needed.
87948         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87949         Use types required by C89 in prototype.
87950
87951         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87952         * lib/savedir.c: Likewise.
87953         * lib/mkdir.c (free): Remove decl.
87954         * lib/rmdir.c (rmdir): Define with a prototype.
87955         * lib/savedir.c: Include savedir.h first, to test interface.
87956
87957         * lib/mktime.c (STDC_HEADERS): Remove.
87958         Include <stdlib.h>, <string.h> unconditionally.
87959
87960         * lib/modechange.c: Include <stdlib.h> unconditionally.
87961         (malloc): Remove decl.
87962
87963         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87964         (free): Remove decl.
87965
87966         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87967         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87968         (This type really should be intptr_t, but that's a C99ism.)
87969         (_obstack_memcpy): Remove: all uses changed to memcpy.
87970         Include <string.h> unconditionally.
87971         (struct obstack): Assume __STDC__ for types of members
87972         chunkfun, freefun, extra_arg.
87973         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87974         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87975         obstack_begin, obstack_specify_allocation,
87976         obstack_specify_allocation_with_arg, obstack_chunkfun,
87977         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87978         Remove unprototyped decls and the macros that use them.
87979         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87980         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87981         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87982         (defined __STDC__ && __STDC__)]:
87983         Remove nonprototyped code.
87984         Include <stdlib.h> unconditionally.
87985         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87986         _obstack_allocated_p, _obstack_free, obstack_free,
87987         _obstack_memory_used, print_and_abort):
87988         Define using prototypes.
87989         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87990         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87991         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87992         obstack_next_free, obstack_object_size, obstack_room) [0]:
87993         Remove unused, unprototyped code.
87994
87995         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87996
87997         * lib/physmem.c (physmem_total, physmem_available, main): Define
87998         with prototypes.
87999
88000         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88001         (main): Define with a prototype.
88002
88003         * lib/posixver.c (getenv): Remove decl.
88004
88005         * lib/putenv.c (malloc): Returns void *, not char *.
88006         Include <string.h> unconditionally.
88007         (strchr, memcpy, NULL): Do not define.
88008
88009         * lib/readtokens.c: Include readtokens.h first, to test interface.
88010         Include <stdlib.h>, <string.h> unconditionally.
88011         (init_tokenbuffer): Define with a prototype.
88012
88013         * lib/regex.c (PARAMS): Remove.  All uses removed.
88014         All uses of _RE_ARGS removed, too.
88015         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88016         unconditionally.
88017         (bzero): Assume memset exists.
88018         (memcmp, memcpy, NULL): Remove.
88019         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88020         char, or assignments to local vars of type signed char.
88021         (init_syntax_once, PREFIX(extract_number_and_incr),
88022         PREFIX(print_partial_compiled_pattern),
88023         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88024         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88025         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88026         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88027         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88028         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88029         wcs_compile_range, byte_compile_range, truncate_wchar,
88030         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88031         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88032         count_mbs_length, wcs_re_match_2_internal,
88033         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88034         PREFIX(alt_match_null_string_p),
88035         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88036         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88037         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88038         now-unnecessary declaration, if any.
88039         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88040         regcomp, regexec):
88041         Remove now-unnecessary casts among pointer types.
88042         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88043
88044         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88045         (free): Remove decl.
88046
88047         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88048
88049         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88050         (free): Remove decl.
88051
88052         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88053         * lib/xgetcwd.c: Likewise.
88054
88055         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88056         (free): Remove decl.
88057
88058         * lib/strchrnul.c (strchrnul): Define with a prototype.
88059         Fix bug: c_in was not converted to char before searching.
88060
88061         The following changes are not K&R related:
88062
88063         * lib/group-member.h: Include <sys/types.h>, so that this file is
88064         self-contained.
88065         * lib/makepath.h: Likewise.
88066
88067         * lib/getusershell.c (readname, default_index, line_size, readname):
88068         Use size_t, not int, for sizes.
88069         (readname): If the size overflows, report an error instead of
88070         looping forever.
88071
88072 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88073
88074         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88075         libc.
88076
88077 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88078
88079         * README: New section: portability guidelines.
88080
88081 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88082
88083         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88084         C89 spec.
88085
88086 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88087
88088         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88089
88090 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88091
88092         Assume C89 or better; remove K&R cruft.
88093         A few of these changes were first proposed by Derek Robert Price
88094         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88095
88096         * lib/addext.c: Include <string.h> unconditionally.
88097         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88098         Don't declare getenv or malloc.
88099
88100         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88101         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88102         (NULL): Remove.
88103         (find_stack_direction, alloca): Use prototypes.
88104
88105         * lib/atexit.c (atexit): Define using a prototype.
88106
88107         * lib/basename.c, dirname.c, stripslash.c:
88108         Include <string.h> unconditionally.
88109
88110         * lib/bcopy.c: Include <stddef.h>.
88111         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88112
88113         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88114
88115         * lib/error.h (error, error_at_line, error_print_progname)
88116         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88117         * lib/error.c: Include error.h first, to check interface.
88118         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88119         (VA_START): Remove; all uses changeed to va_start.
88120         (exit, strerror): Remove decls.
88121         (error_print_progname): Prototype uncondionally.
88122         Don't include <errno.h>; no longer needed.
88123         (private_strerror): Remove.
88124         (error_tail): Always define.
88125         (error, error_at_line): Assume C89 or better; always use prototypes.
88126         * lib/fatal.c: Include "fatal.h" first, to test interface.
88127         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88128         (VA_START): Remove; all uses changed to va_start.
88129         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88130         this case.
88131         (exit): Remove decl.
88132         (fatal): Prototype unconditionally.  Assume va_start works.
88133         Abort at end, to pacify gcc.
88134
88135         * lib/euidaccess.c (main): Define with a prototype.
88136
88137         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88138
88139         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88140
88141         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88142         prototypes.
88143         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88144         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88145         (getenv): Remove decl.
88146         (fnmatch): Define using a prototype.
88147         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88148         (FCT): Define using a prototype.
88149
88150         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88151
88152         * lib/gethostname.c: Include <stddef.h>.
88153         (gethostname): Define with prototype.  Length is size_t, not int.
88154
88155 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88156
88157         Assume C89 or better; remove K&R cruft.
88158         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88159         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88160         string.h, getenv, malloc.
88161         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88162         headers.
88163         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88164         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88165         do not check for strerror.
88166         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88167         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88168         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88169         do not check for doprnt or vprintf.
88170         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88171         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88172
88173 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88174
88175         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88176         getversion.c should have been removed then, but was accidentally
88177         preserved.
88178
88179         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88180         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88181
88182 2003-09-08  Karl Berry  <karl@gnu.org>
88183
88184         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88185                 config, forget about prep.
88186
88187         * config/depcomp, missing: update from automake.
88188
88189 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88190
88191         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88192         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88193
88194 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88195
88196         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88197         copy_tm_result.  Bug reported by Simon Josefsson in
88198         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88199
88200 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88201
88202         * m4/time_r.m4: New file.
88203         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88204         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88205         is. Check for timegm declaration.
88206         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88207         Do not check for gmtime_r.
88208         Replace mktime if __mktime_internal does not exist and if mktime
88209         hasn't been replaced already.
88210
88211 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88212
88213         * lib/time_r.c, lib/time_r.h: New files.
88214
88215         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88216         __localtime_r.
88217         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88218         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88219
88220         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88221         __gmtime_r.
88222         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88223         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88224         Include <time_r.h>.
88225
88226         * lib/timegm.c: Switch to glibc implementation, with the following
88227         changes:
88228         [defined HAVE_CONFIG_H]: Include <config.h>.
88229         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88230         (__mktime_internal) [!defined _LIBC]: New decl.
88231         (__gmtime_r) [!defined _LIBC]: New macro and function.
88232         (timegm): Use a prototype, since gnulib assumes C89.
88233         Do not bother declaring tmp to be const, as it's not really usefu.
88234         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88235         (timegm): Declare only if HAVE_DECL_TIMEGM.
88236
88237 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88238
88239         * MODULES.html.sh (func_all_modules): Add time_r.
88240         * modules/time_r: New file.
88241         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88242         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88243
88244 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88245
88246         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88247         Bug reported by Lute Kamstra in
88248         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88249
88250         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88251         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88252         course with correspondingly smaller numbers for tomorrow and
88253         yesterday.  From Tadayoshi Funaba.  Originally installed into
88254         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88255         coreutils merge?).
88256
88257 2003-08-31  Simon Josefsson  <jas@extundo.com>
88258
88259         * modules/timegm: New file.
88260         * MODULES.html.sh (func_all_modules): Add timegm.
88261
88262 2003-08-31  Simon Josefsson  <jas@extundo.com>
88263
88264         * m4/timegm.m4: New file.
88265
88266 2003-08-31  Simon Josefsson  <jas@extundo.com>
88267
88268         * lib/timegm.h: New file.
88269         * lib/timegm.c: New file.  Based on
88270         wget-1.8.2/src/http.c:mktime_from_utc.
88271
88272 2003-08-31  Karl Berry  <karl@gnu.org>
88273
88274         * lib/argp.h: update from libc.
88275
88276 2003-08-28  Bruno Haible  <bruno@clisp.org>
88277
88278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88279         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88280         followed by '#define fnmatch fnmatch_posix' gives an error.
88281
88282 2003-08-28  Bruno Haible  <bruno@clisp.org>
88283
88284         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88285         warning on QNX, which defines O_BINARY to 000000.
88286
88287 2003-08-27  Jim Meyering  <jim@meyering.net>
88288
88289         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88290         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88291         would fail after 32.  Reported by Danny Levinson.  Details here:
88292         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88293
88294 2003-08-24  Bruno Haible  <bruno@clisp.org>
88295
88296         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88297         MSVC7 <stdio.h> is included later.
88298
88299 2003-08-22  Simon Josefsson  <jas@extundo.com>
88300
88301         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88302
88303 2003-08-20  Karl Berry  <karl@gnu.org>
88304
88305         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88306
88307 2003-08-20  Bruno Haible  <bruno@clisp.org>
88308
88309         * modules/progname: New file.
88310         * MODULES.html.sh (func_all_modules): Add progname.
88311
88312 2003-08-20  Bruno Haible  <bruno@clisp.org>
88313
88314         * lib/progname.h: New file, from GNU gettext.
88315         * lib/progname.c: New file, from GNU gettext.
88316         * lib/progreloc.c: New file, from GNU gettext.
88317
88318 2003-08-19  Jim Meyering  <jim@meyering.net>
88319
88320         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88321         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88322
88323 2003-08-19  Bruno Haible  <bruno@clisp.org>
88324
88325         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88326         more.
88327
88328 2003-08-19  Bruno Haible  <bruno@clisp.org>
88329
88330         * lib/xstrdup.c: Assume <string.h> exists.
88331
88332 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88333
88334         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88335         in makefile rules.
88336
88337 2003-08-18  Jim Meyering  <jim@meyering.net>
88338
88339         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88340         * m4/lib-ld.m4: Likewise.
88341
88342 2003-08-18  Jim Meyering  <jim@meyering.net>
88343
88344         * lib/setenv.h: Indent nested cpp directive.
88345         * lib/vasnprintf.c: Remove trailing blanks.
88346
88347 2003-08-17  Simon Josefsson  <jas@extundo.com>
88348
88349         * modules/xstrndup: New file.
88350         * MODULES.html.sh (func_all_modules): Add xstrndup.
88351
88352 2003-08-17  Simon Josefsson  <jas@extundo.com>
88353
88354         * modules/argp: Fix autoconf macro name. Add more dependencies.
88355
88356 2003-08-17  Simon Josefsson  <jas@extundo.com>
88357
88358         * m4/xstrndup.m4: New file.
88359
88360 2003-08-17  Simon Josefsson  <jas@extundo.com>
88361
88362         * m4/argp.m4: New file.
88363
88364 2003-08-17  Simon Josefsson  <jas@extundo.com>
88365             Bruno Haible  <bruno@clisp.org>
88366
88367         * lib/xstrndup.h: New file.
88368         * lib/xstrndup.c: New file.
88369
88370 2003-08-17  Bruno Haible  <bruno@clisp.org>
88371
88372         * modules/strndup (Files, Include): Add lib/strndup.h.
88373
88374 2003-08-17  Bruno Haible  <bruno@clisp.org>
88375
88376         * modules/euidaccess (Files): Add lib/euidaccess.h.
88377
88378 2003-08-17  Bruno Haible  <bruno@clisp.org>
88379
88380         * lib/strndup.h: New file.
88381
88382 2003-08-17  Bruno Haible  <bruno@clisp.org>
88383
88384         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88385         like AC_GNU_SOURCE.
88386         * modules/extensions (configure.ac): Comment out the invocation of
88387         gl_USE_SYSTEM_EXTENSIONS.
88388
88389 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88390
88391         Merges from coreutils, etc.
88392         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88393         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88394         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88395         fixing a typo.
88396         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88397         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88398
88399 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88400
88401         Document merge from coreutils.
88402         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88403         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88404         * modules/utime: Add m4/utimes-null.m4.
88405
88406 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88407
88408         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88409         space, undoing this 2003-08-12 change:
88410         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88411
88412 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88413
88414         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88415         strtoul.c from libc, undoing this 2003-08-12 change:
88416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88417
88418 2003-08-16  Jim Meyering  <jim@meyering.net>
88419
88420         Merges from coreutils.
88421         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88422         prefix.  Adjust cache variables similarly.  Create 500 rather than
88423         just 300 files, to exercise bug on Darwin6.5, too.
88424         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88425         $missing_dir.
88426         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88427         AM_SYS_POSIX_TERMIOS.
88428         Reported by mkc@mathdogs.com.
88429         Also change use of $am_cv_sys_posix_termios
88430         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88431         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88432         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88433         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88434         in /proc/mounts until it finds one with matching device number.  This
88435         is unnecessary when the FILE argument *is* a mount point.  No stat call
88436         is necessary in that case.  So, disable the statvfs-testing code on
88437         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88438         as RedHat bug# 84846.
88439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88440         to 1MB, so as not to render systems with no stack size limit (e.g.,
88441         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88442         Include <unistd.h>.  On some systems,
88443         it is required for the definition of _SC_PAGESIZE.
88444
88445 2003-08-16  Jim Meyering  <jim@meyering.net>
88446
88447         Merge from coreutils.
88448         * lib/xstrtoimax.c: #else #if -> #elif.
88449         * lib/xstrtoumax.c: Likewise.
88450
88451 2003-08-16  Jim Meyering  <jim@meyering.net>
88452
88453         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88454         * m4/utimes.m4: Removed.
88455         * m4/utimes-null.m4: Renamed from utimes.m4.
88456
88457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88458         to 1MB, so as not to render systems with no stack size limit (e.g.,
88459         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88460         Include <unistd.h>.  On some systems,
88461         it is required for the definition of _SC_PAGESIZE.
88462
88463 2003-08-16  Jim Meyering  <jim@meyering.net>
88464         and Paul Eggert  <eggert@cs.ucla.edu>
88465
88466         Merges from coreutils, etc.
88467
88468         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88469         using the latest version from cvs.  This avoids problems with #line
88470         directives using a vendor (Sun) compiler.
88471         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88472         Don't set GETGROUPS_LIB here; now it's
88473         done via getgroups.m4's wrapper function.
88474         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88475         rather than just in sh-util/configure.in, so that the
88476         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88477         same.
88478         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88479         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88480         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88481         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88482         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88483         Remove code that is now done by the newly-required macros.
88484         Append $(EXEEXT) to DF_PROG.
88485         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88486         Do not invoke or require the following here,
88487         since prereq.m4 or some gnulib .m4 now does this for us:
88488         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88489         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88490         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88491         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88492         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88493         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88494         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88495         AC_FUNC_OBSTACK.
88496         Do not replace the following functions, as this is now the job
88497         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88498         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88499         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88500         atexit getpass, strdup, getpagesize.
88501         Replace 'raise'.
88502         Do not check for the following functions, as this is now the job
88503         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88504         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88505         setregid.
88506         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88507         Check for sys/sysctl.h.
88508         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88509         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88510         of checking for ssize_t ourselves.
88511
88512         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88513         Require every macro that gnulib/modules/* suggests for us.
88514         (jm_PREREQ_ADDEXT): New macro.
88515         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88516         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88517
88518         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88519         (gl_PHYSMEM): Use it.
88520         Also check for `table' function.
88521         Check for new headers and functions.
88522         Add check for sys/sysmp.h.
88523         With suggestions from Kaveh Ghazi.
88524         Ignore headers that are present but cannot be compiled.  This
88525         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88526         C 5.4.
88527
88528 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88529
88530         Document merge from coreutils.
88531         * modules/userspec: Depend on posixver.
88532         * modules/strftime: Depend on tzset.
88533
88534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88535
88536         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88537         rather than tab, after '#' in shell-script copyright notices.
88538         Suggested by Bruno Haible.
88539
88540 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88541
88542         * config/srclist-update: Use three spaces, rather than tab, after '#'
88543         in shell-script copyright notices.  Suggested by Bruno Haible.
88544         Remove unnecessary parenthesization in regular expression.
88545
88546 2003-08-15  Jim Meyering  <jim@meyering.net>
88547
88548         Merge from coreutils.
88549         * lib/xgethostname.c: Include <stdlib.h>.
88550         (xghostname): Don't exit for anything other than memory-related
88551         failure; just return NULL.
88552         * lib/userspec.c: Include "posixver.h".
88553         (parse_user_spec): Accept `.' as a separator only
88554         in pre-POSIX-200112 mode.
88555         * lib/strtoimax.c: Use #elif rather than #else #if.
88556         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88557         Remove function, now that we can rely on a working tzset function.
88558         [!_LIBC]: Ensure that the required autoconf test has been run.
88559         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88560         Use underlying_strftime for %r.
88561         * lib/sha.c: Merge in some clean-up and optimization changes from
88562         glibc.
88563         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88564         Ensure that it is a multiple of 64.
88565         Rearrange loop exit tests so as to avoid performing an
88566         additional fread after encountering an error or EOF.
88567         * lib/realloc.c: Update copyright date.
88568
88569 2003-08-15  Jim Meyering  <jim@meyering.net>
88570         and Paul Eggert  <eggert@twinsun.com>
88571
88572         Merge from coreutils.
88573         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88574         member but strut utmpx does not.  Needed for AIX 4.3.3.
88575         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88576
88577 2003-08-15  Jim Meyering  <jim@meyering.net>
88578         and Paul Eggert  <eggert@cs.ucla.edu>
88579
88580         Merges from coreutils, etc.
88581         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88582         Require gl_FUNC_TZSET_CLOBBER.
88583         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88584         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88585         members.
88586
88587 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88588
88589         Help the merge from coreutils.
88590         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88591         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88592         * m4/tzset.m4: Use it too.
88593
88594 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88595
88596         * modules/tzset: New file.
88597
88598 2003-08-14  Jim Meyering  <jim@meyering.net>
88599
88600         Merges from coreutils.
88601         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88602         variable names, rather than @FNMATCH_H@.
88603         * modules/alloca: Likewise for $(ALLOCA_H).
88604
88605         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88606         the three copies of the literal target, `fnmatch.h'.
88607         * modules/alloca (alloca.h): Likewise.
88608
88609 2003-08-14  Jim Meyering  <jim@meyering.net>
88610
88611         Merge from coreutils.
88612         * m4/tzset.m4: New file.
88613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88614         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88615         otherwise, AIX 5.1 systems would end up using the latter.
88616         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88617         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88618         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88619         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88620
88621 2003-08-14  Jim Meyering  <jim@meyering.net>
88622
88623         Merge from coreutils.
88624         * lib/obstack.h: Whitespace changes.
88625         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88626         and xcalloc return values.
88627         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88628         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88629         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88630         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88631         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88632         error from mntctl.
88633         Use mntctl's return value to drive the entry-processing loop, since
88634         we can't rely on the value of the vmt_length member in the last
88635         entry.  On some systems doing so could result in exhausting
88636         virtual memory.  Based in part on a patch from Mike Jetzer.
88637
88638 2003-08-14  Jim Meyering  <jim@meyering.net>
88639         and Paul Eggert  <eggert@twinsun.com>
88640
88641         Merges from coreutils, plus other fixes.
88642         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88643         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88644         for credits and details.  Thanks to Kaveh Ghazi for helping
88645         to keep these files in sync.
88646         (ARRAY_SIZE): Define it.
88647         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88648         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88649         (memcasecmp): Don't assume size_t fits in unsigned int.
88650         Remove casts and duplicate code.
88651         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88652         (memcpy): Remove definition.
88653         Merge in some clean-up and optimization changes from glibc.
88654         [BLOCKSIZE]: Move definition to top of file.
88655         Ensure that it is a multiple of 64.
88656         Rearrange loop exit tests so as to avoid performing an
88657         additional fread after encountering an error or EOF.
88658         * lib/md5.h (md5_uintptr): Define.
88659         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88660         return to the initial working directory.  Preserve errno
88661         for caller.
88662         * lib/idcache.c: Include "xalloc.h".
88663         (xmalloc, xrealloc): Remove decls.
88664         (getuser): Remove casts no longer required in C89.
88665         * lib/human.c: Include stdio.h, for sprintf.
88666         * lib/group-member.c: Include "xalloc.h".
88667         (xmalloc, xrealloc): Remove decls.
88668         (get_group_info): Remove casts no longer required in C89.
88669         * lib/getusershell.c (readname): Remove casts no longer required in
88670         C89.
88671         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88672         * lib/getline.c: Whitespace fix, from coreutils.
88673
88674 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88675
88676         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88677         Check for isascii.
88678
88679         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88680         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88681         Undo previous (whitespace-only) change.
88682
88683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88684
88685         * lib/exclude.c: Include <ctype.h>
88686         (IN_CTYPE_DOMAIN): New macro.
88687         (is_space): New fn.
88688         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88689         and empty lines.
88690
88691         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88692         Undo previous (whitespace-only) change.
88693
88694 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88695
88696         * config/srclist-update: Change update back to the old behavior,
88697         leaving whitespace alone.  Use one 'sed' command rather than a
88698         pipeline.
88699         (fixlicense): Now a variable, not a function.
88700         (remove_trailing_blanks): Remove.
88701         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88702         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88703         Undo previous (whitespace-only) change.
88704
88705 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88706
88707         Merge from coreutils.
88708         * modules/euidaccess: Add lib_SOURCES, include for new
88709         file euidaccess.h
88710
88711 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88712
88713         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88714         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88715         Normalize leading white space and remove trailing white space.
88716
88717         Merge from coreutils
88718         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88719
88720         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88721         0.12.1.  These files are now being upgraded automatically by
88722         ../config/srclist-update.
88723
88724 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88725
88726         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88727         Normalize leading white space and remove trailing white space.
88728         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88729         notice, as per ../config/srclist-update.
88730
88731         Merge from coreutils.
88732         * lib/euidaccess.h: New file.
88733         * lib/euidaccess.c: Include it.
88734         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88735         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88736         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88737
88738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88739
88740         * config/srclist-update: Add copyright notice.
88741         (remove_id_lines, remove_trailing_blanks): New constants.
88742         (fixfile): Use them to normalize spacing a bit in copied files.
88743         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88744         Normalize leading white space and remove trailing white space.
88745
88746         * config/texinfo.tex: Sync with texinfo.
88747
88748         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88749         strtoul.c from libc, to merge coreutils whitespace changes.
88750
88751         * config/srclist.txt: Get the following m4 files from gettext:
88752         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88753         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88754         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88755         wint_t.m4.
88756
88757 2003-08-12  Karl Berry  <karl@gnu.org>
88758
88759         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88760         been made.
88761
88762 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88763
88764         * modules/gnu-source, m4/gnu-source.m4:
88765         Remove; we're assuming Autoconf 2.54 or later now.
88766         Suggested by Bruno Haible.
88767         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88768
88769 2003-08-11  Bruno Haible  <bruno@clisp.org>
88770
88771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88772
88773 2003-08-11  Bruno Haible  <bruno@clisp.org>
88774
88775         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88776         (vasnprintf): Use it instead of wcslen.
88777
88778 2003-08-11  Bruno Haible  <bruno@clisp.org>
88779
88780         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88781         value to ensure that _Bool promotes to int. Use #define for _Bool when
88782         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88783
88784 2003-08-10  Karl Berry  <karl@gnu.org>
88785
88786         * lib/regex.h: update from libc (whitespace fix).
88787
88788 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88789
88790         Merge some files from coreutils.  These changes were
88791         originally made by Jim Meyering.
88792         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88793         many older Unixes require this.
88794         * lib/alloca.c (alloca): Remove cast to argument of free;
88795         no longer needed in C89.
88796         * lib/alloca_.h, regex.h: Fix white space to match
88797         what GNU indent does.
88798
88799 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88800
88801         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88802         apparently Emacs's Unicode mode got confused before my 2003-08-05
88803         checkin.
88804
88805 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88806
88807         * m4/extensions.m4: New file.
88808         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88809         Require gl_USE_SYSTEM_EXTENSIONS.
88810         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88811         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88812
88813 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88814
88815         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88816         * modules/extensions, modules/gnu-source: New files.
88817         * modules/timespec, modules/unlocked-io: Depend on extensions.
88818
88819 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88820
88821         * modules/restrict: New file.
88822         * MODULES.html.sh (func_all_modules): Add restrict.
88823         * modules/regex: Depend on restrict.
88824
88825 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88826
88827         * m4/restrict.m4: New file.
88828         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88829
88830 2003-08-07  Bruno Haible  <bruno@clisp.org>
88831
88832         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88833         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88834
88835 2003-08-07  Bruno Haible  <bruno@clisp.org>
88836
88837         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88838         makes the module 'getndelim2' compatible with the module 'getline'.
88839
88840 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88841
88842         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88843         byte with "\201" to avoid glitches when editing that source file
88844         with multi-gnome-terminal.
88845
88846 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88847
88848         * lib/bumpalloc.h: Remove.
88849
88850 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88851
88852         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88853         * modules/bumpalloc: Remove.
88854
88855 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88856
88857         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88858         GNU coding style.
88859
88860         Merge from coreutils.
88861         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88862         1. From glibc.
88863         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88864         from Karl Berry, implemented by Jim Meyering.
88865         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88866         from Dmitry V. Levin.
88867         Remove anachronistic cast of xrealloc.
88868         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88869         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88870         type. Otherwise, it wouldn't compile with at least /bin/cc on
88871         ymp-cray-unicos9.0.2.X.
88872         Combine two mostly-identical uses of alloca into one.
88873         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88874
88875 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88876
88877         [From Emacs.]
88878
88879         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88880         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88881         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88882         obsolete NLIST_NAME_UNION.
88883         [__GNU__]: Undef BSD and FSCALE.
88884         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88885
88886 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88887
88888         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88889         an enum type, so that it's guaranteed to promote to int.  See:
88890         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88891
88892 2003-08-03  Karl Berry  <karl@gnu.org>
88893
88894         * config/depcomp: update from automake.
88895
88896 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88897
88898         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88899         (strerror): Don't assume that a printable int fits in 14 bytes.
88900
88901 2003-07-31  Bruno Haible  <bruno@clisp.org>
88902
88903         * modules/getpass-gnu: New file.
88904         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88905
88906 2003-07-31  Bruno Haible  <bruno@clisp.org>
88907
88908         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88909
88910 2003-07-24  Karl Berry  <karl@gnu.org>
88911
88912         * config/missing: update from automake.
88913
88914 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88915             Bruno Haible  <bruno@clisp.org>
88916
88917         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88918         * lib/getline.c (getline, getdelim): Likewise.
88919         Remove _GNU_SOURCE define; now it's defined in config.h through
88920         m4/getline.m4.
88921
88922 2003-07-23  Karl Berry  <karl@gnu.org>
88923
88924         * config/config.sub: update from prep.
88925
88926 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88927
88928         * modules/xalloc (Depends-on): Add exitfail.
88929         * modules/xmemcoll: Likewise.
88930
88931 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88932
88933         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88934         over-parenthesization in macros.
88935
88936         Sync with coreutils.
88937
88938         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88939         required by C99.
88940
88941         Use `exit_failure' for xalloc and xmemcoll instead of their own
88942         private exit-failure variables.
88943         * lib/xalloc.h (xalloc_exit_failure): Remove.
88944         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88945         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88946         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88947         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88948         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88949
88950 2003-07-20  Jim Meyering  <jim@meyering.net>
88951
88952         * modules/closeout (Depends-on): Add exitfail.
88953         Suggestion from Bruno Haible.
88954
88955 2003-07-19  Karl Berry  <karl@gnu.org>
88956
88957         * config/config.sub: update from prep.
88958
88959 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88960
88961         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88962         Remove.
88963         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88964         to test that it can stand by itself.  Include "exitfail.h".
88965         Clients should set exit_failure instead.
88966         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88967
88968 2003-07-18  Bruno Haible  <bruno@clisp.org>
88969
88970         * modules/getndelim2: New file.
88971         * modules/getline: Share files with module getndelim2.
88972         * modules/getnline: Depend on getndelim2 instead of sharing files with
88973         it. Add getnline.c to lib_SOURCES.
88974         * MODULES.html.sh (func_all_modules): Add getndelim2.
88975
88976 2003-07-18  Bruno Haible  <bruno@clisp.org>
88977
88978         * m4/getndelim2.m4: New file.
88979         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88980         invoke gl_PREREQ_GETNDELIM2.
88981         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88982         gl_PREREQ_GETNDELIM2.
88983         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88984         gl_GETNDELIM2.
88985
88986 2003-07-18  Bruno Haible  <bruno@clisp.org>
88987
88988         * lib/getndelim2.h: New file.
88989         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88990         getndelim2.h.
88991         (getndelim2): Make non-static. Change return type to ssize_t.
88992         * lib/getline.h: Change argument names.
88993         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88994         * lib/getnline.c: Include getndelim2.h.
88995
88996 2003-07-18  Andreas Schwab  <schwab@suse.de>
88997
88998         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88999
89000 2003-07-17  Karl Berry  <karl@gnu.org>
89001
89002         * config/config.sub: update from prep.
89003
89004 2003-07-17  Bruno Haible  <bruno@clisp.org>
89005
89006         * modules/getnline: New file.
89007         * modules/getline: Add lib/getndelim2.c to source file list.
89008         * MODULES.html.sh (func_all_modules): Add getnline.
89009
89010 2003-07-17  Bruno Haible  <bruno@clisp.org>
89011
89012         * m4/getnline.m4: New file.
89013
89014 2003-07-17  Bruno Haible  <bruno@clisp.org>
89015
89016         * m4/Makefile.am.in: Remove file.
89017         * m4/Makefile.am: Remove file.
89018         * m4/Makefile.in: Remove file.
89019
89020 2003-07-17  Bruno Haible  <bruno@clisp.org>
89021
89022         * lib/getnline.h: New file.
89023         * lib/getnline.c: New file.
89024         * lib/getndelim2.c: New file, extracted from getline.c.
89025         (getndelim2): Renamed from getdelim2, with added nmax argument.
89026         * lib/getline.c: Include getndelim2.c.
89027         (getdelim2): Moved out to getndelim2.c.
89028         (getline, getdelim): Update.
89029
89030 2003-07-17  Bruno Haible  <bruno@clisp.org>
89031
89032         * lib/Makefile.am: Remove file.
89033         * lib/Makefile.in: Remove file.
89034
89035 2003-07-17  Bruno Haible  <bruno@clisp.org>
89036
89037         * configure.in: Remove file.
89038         * Makefile.in: Remove file.
89039
89040 2003-07-17  Bruno Haible  <bruno@clisp.org>
89041
89042         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89043
89044 2003-07-16  Karl Berry  <karl@gnu.org>
89045
89046         * config/srclist-update: was running fixlicense twice, which caused
89047                 texinfo.tex to be nullified for some reason.  Simplify,
89048                 $gplsrc is no longer needed as far as I can see?
89049
89050 2003-07-16  Jim Meyering  <jim@meyering.net>
89051
89052         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89053
89054 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89055
89056         * config/srclist.txt: Get the following files from gettext-runtime/intl
89057         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89058         ref-del.sin.  From Bruno Haible.
89059         * config/srclist-update (fixfile): Change grep pattern again, since the
89060         previous fix didn't work (there was another trailing $).  Use
89061         '[$]' to escape the $s.
89062
89063 2003-07-15  Karl Berry  <karl@gnu.org>
89064
89065         * lib/vasnprintf.c: update from gettext.
89066
89067 2003-07-15  Karl Berry  <karl@gnu.org>
89068
89069         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89070         gets expanded when surrounded by '$'.
89071
89072 2003-07-15  Jim Meyering  <jim@meyering.net>
89073
89074         * modules/save-cwd: Don't depend on error.  From Derek Price.
89075
89076 2003-07-15  Jim Meyering  <jim@meyering.net>
89077
89078         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89079
89080 2003-07-14  Simon Josefsson  <jas@extundo.com>
89081
89082         * modules/mempcpy: New file.
89083         * MODULES.html.sh (func_all_modules): Add mempcpy.
89084
89085 2003-07-14  Simon Josefsson  <jas@extundo.com>
89086
89087         * m4/mempcpy.m4: New file.
89088
89089 2003-07-14  Simon Josefsson  <jas@extundo.com>
89090
89091         * lib/mempcpy.h: New file.
89092         * lib/mempcpy.c: New file.
89093
89094 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89095
89096         * modules/getdate, modules/posixtm: Depend on mktime.
89097
89098 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89099
89100         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89101         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89102         unicodeio.c, unicodeio.h, unlocked-io.h:
89103         Switch from LGPL to GPL.
89104
89105 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89106
89107         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89108         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89109         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89110         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89111         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89112         updated automatically by ../config/srclist-update.  This changes
89113         their license from LPGL to GPL.
89114
89115 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89116
89117         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89118         assumed to refer to the root of the most recent stable gettext version.
89119         * config/srclistvars.sh: Add defaults for eggert.
89120         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89121         Match "This program" as well as "The program".  This is needed
89122         for gettext.
89123
89124 2003-07-14  Jim Meyering  <jim@meyering.net>
89125
89126         Don't emit diagnostics.  Let callers do that.
89127         * lib/save-cwd.c: Don't include "error.h".
89128         (save_cwd): Don't call error.  Ensure that errno is valid
89129         when returning nonzero.
89130
89131         * lib/save-cwd.h (restore_cwd): Update prototype.
89132         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89133         Simplify.  Don't call error upon failure.  Let callers do that.
89134         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89135         when auditing is enabled.  But don't bother updating the #if.
89136
89137 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89138
89139         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89140         it breaks C++ compilation.
89141         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89142
89143 2003-07-10  Simon Josefsson  <jas@extundo.com>
89144
89145         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89146
89147 2003-07-10  Jim Meyering  <jim@meyering.net>
89148
89149         * m4/clock_time.m4: Remove trailing blank.
89150         * m4/intmax_t.m4: Likewise.
89151
89152 2003-07-10  Jim Meyering  <jim@meyering.net>
89153
89154         * lib/vasnprintf.c: Remove trailing blanks.
89155         Make cpp indentation consistent.
89156
89157 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89158
89159         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89160         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89161         Switch from LGPL to GPL.
89162
89163 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89164
89165         * config/srclist.txt: Sort sublists.  Add
89166         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89167         that differ from gnulib for one reason or another; we'd like this list
89168         to be smaller but for now let's document what we have.
89169
89170 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89171
89172         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89173         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89174         and sweeter "eval x=$x".
89175         * config/srclist.txt: Get lib/argp* from glibc.
89176
89177 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89178
89179         * lib/mktime.c: Fix some boundary cases and remove need for floating
89180         point.
89181
89182         Issue a compile-time diagnostic if time_t is floating point, or if
89183         two's complement arithmetic is not in effect, or if arithmetic
89184         right shift does not propagate the sign.  These assumptions were
89185         all in the original code but they weren't checked.
89186
89187         (TIME_T_MIDPOINT, verify): New macros.
89188         (__isleap): Remove; it has integer overflow problems.
89189         (leapyear): New function, without those problems.
89190         (ydhms_tm_diff): Remove; splitting into two parts.
89191         (ydhms_diff): New function, containing the arithmetic part of
89192         the old ydhms_tm_diff function.  Issue a compile-time
89193         diagnostic if we are not using C99 integer division.
89194         Avoid casts when possible.
89195         (guess_time_tm): New function, containing the checking part of
89196         the old ydhms_tm_diff function.  Return the new value, rather than
89197         the difference between it and the old.  Accept a new argument T
89198         so that *T specifies the old value.  Check for overflow in the result.
89199
89200         (__mktime_internal): Use a time_t offset, not a long int offset.
89201         This undoes the 2003-06-04 change, which is no longer needed now
89202         that we have better overflow checking.
89203         (localtime_offset): Likewise.
89204
89205         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89206         and long are 64-bit but int is only 32-bit.
89207         (ydhms_diff): Use long int to store year1 and yday1.
89208         Issue a compile-time diagnostic if long int is not wide enough.
89209
89210         (__mktime_internal): Use long int to store adjusted year and yday.
89211         Use plain C rather than preprocessor commands, if that doesn't
89212         affect efficiency.
89213         Check for overflow (and try to repair) after each probe
89214         rather than checking only at the very end.  This avoids some bugs
89215         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89216         does not equal GMT offset at maximum time).
89217         Use integer to check for overflow rather than floating point; this
89218         is more portable to non-IEEE hosts, and is a tad faster.
89219         When we detect that we are oscillating between two values,
89220         don't check whether tm_isdst has the requested value, since
89221         we already know the answer.  When tm_isdst has the wrong value,
89222         use a different heuristic to find the right one, based on the
89223         extreme values actually observed in practice in tz2003a,
89224         rather than the (overly optimistic) "previous 3 calendar quarters".
89225
89226         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89227         "T const" to accommodate glibc style.
89228         (check_result): Use less-confusing report format.  "long" -> "long int.
89229         (main): Likewise.
89230         Don't loop if the iteration overflows time_t.
89231         Allow a negative step in the iteration.
89232
89233 2003-07-06  Karl Berry  <karl@gnu.org>
89234
89235         * config/depcomp: update from automake.
89236         * config/config.sub: update from prep.
89237
89238 2003-07-03  Karl Berry  <karl@gnu.org>
89239
89240         * config/config.guess: update from prep.
89241
89242 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89243
89244         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89245         xreadlink.c now includes it unconditionally.
89246
89247 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89248
89249         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89250         having it depend on HAVE_SYS_TYPES_H.
89251
89252 2003-07-01  Bruno Haible  <bruno@clisp.org>
89253
89254         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89255         <sys/types.h> should be sufficient.
89256         Reported by Paul Eggert.
89257
89258 2003-06-26  Karl Berry  <karl@gnu.org>
89259
89260         * config/depcomp: update from automake.
89261
89262 2003-06-26  Bruno Haible  <bruno@clisp.org>
89263
89264         * modules/human: Depend on module stdbool.
89265
89266 2003-06-25  Bruno Haible  <bruno@clisp.org>
89267
89268         * modules/readlink: New file.
89269         * modules/xreadlink: Depend on it.
89270         * MODULES.html.sh (func_all_modules): Add readlink.
89271
89272 2003-06-25  Bruno Haible  <bruno@clisp.org>
89273
89274         * m4/readlink.m4: New file.
89275
89276 2003-06-25  Bruno Haible  <bruno@clisp.org>
89277
89278         * lib/readlink.c: New file.
89279
89280 2003-06-22  Karl Berry  <karl@gnu.org>
89281
89282         * config/srclist.txt: update mkinstalldirs from automake.
89283         * config/mkinstalldirs: update.
89284
89285 2003-06-22  Bruno Haible  <bruno@clisp.org>
89286
89287         Portability to mingw32.
89288         * m4/ssize_t.m4: New file, from GNU gettext.
89289         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89290         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89291
89292 2003-06-22  Bruno Haible  <bruno@clisp.org>
89293
89294         * modules/safe-read: Add m4/ssize_t.m4.
89295         * modules/xreadlink: Add m4/ssize_t.m4.
89296
89297 2003-06-20  Bruno Haible  <bruno@clisp.org>
89298
89299         Assume C89, so PARAMS isn't needed.
89300         * lib/unicodeio.h (PARAMS): Remove.
89301         * lib/unicodeio.c: Don't use PARAMS.
89302
89303 2003-06-18  Karl Berry  <karl@gnu.org>
89304
89305         * config/config.{guess,sub}: update from prep.
89306
89307 2003-06-18  Jim Meyering  <jim@meyering.net>
89308
89309         Merge changes from coreutils.
89310         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89311         Remove explicit declarations of xmalloc and realloc.
89312         Include xalloc.h.
89313         (read_utmp): Remove anachronistic cast of xmalloc.
89314
89315 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89316
89317         Assume C89, so PARAMS isn't needed.
89318         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89319         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89320         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89321         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89322         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89323         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89324         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89325         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89326         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89327         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89328         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89329         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89330         no longer needed. Anyway, config.h should always be included before any
89331         other file.
89332
89333 2003-06-11  Simon Josefsson  <jas@extundo.com>
89334
89335         * modules/sysexits: New file.
89336         * MODULES.html.sh (func_all_modules): Add sysexits.
89337
89338 2003-06-11  Simon Josefsson  <jas@extundo.com>
89339
89340         * lib/sysexit_.h: New file.
89341
89342 2003-06-11  Derek Price  <derek@ximbiot.com>
89343
89344         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89345         necessary.
89346
89347 2003-06-11  Bruno Haible  <bruno@clisp.org>
89348
89349         * m4/sysexits.m4: New file.
89350
89351 2003-06-10  Simon Josefsson  <jas@extundo.com>
89352
89353         * lib/argp.h: New file, from glibc.
89354         * lib/argp-ba.c: New file, from glibc.
89355         * lib/argp-eexst.c: New file, from glibc.
89356         * lib/argp-fmtstream.c: New file, from glibc.
89357         * lib/argp-fmtstream.h: New file, from glibc.
89358         * lib/argp-fs-xinl.c: New file, from glibc.
89359         * lib/argp-help.c: New file, from glibc.
89360         * lib/argp-namefrob.h: New file, from glibc.
89361         * lib/argp-parse.c: New file, from glibc.
89362         * lib/argp-pv.c: New file, from glibc.
89363         * lib/argp-pvh.c: New file, from glibc.
89364         * lib/argp-xinl.c: New file, from glibc.
89365
89366 2003-06-10  Simon Josefsson  <jas@extundo.com>
89367
89368         * modules/strchrnul: New file.
89369
89370 2003-06-10  Simon Josefsson  <jas@extundo.com>
89371
89372         * modules/argp: New file.
89373
89374 2003-06-10  Simon Josefsson  <jas@extundo.com>
89375
89376         * m4/strchrnul.m4: New file.
89377
89378 2003-06-10  Simon Josefsson  <jas@extundo.com>
89379
89380         * lib/strchrnul.h: New file.
89381         * lib/strchrnul.c: New file.
89382
89383 2003-06-10  Bruno Haible  <bruno@clisp.org>
89384
89385         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89386
89387 2003-06-07  Karl Berry  <karl@gnu.org>
89388
89389         * config/config.{guess,sub}: update from prep.
89390
89391 2003-06-07  Jim Meyering  <jim@meyering.net>
89392
89393         * modules/strtod: Use $(...) notation, not @...@ for
89394         AC_REPLACE'd variables.
89395         * modules/localcharset: Likewise.
89396
89397 2003-06-07  Jim Meyering  <jim@meyering.net>
89398
89399         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89400         in place of my name in the copyright comment.
89401         Remove definition and uses of __P.
89402
89403         From coreutils.
89404         * lib/stat.c: Don't declare xmalloc explicitly.
89405         Instead, include "xalloc.h".
89406         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89407         xrealloc, and xcalloc return values.
89408         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89409         Improve comment.
89410         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89411
89412 2003-06-07  Bruno Haible  <bruno@clisp.org>
89413
89414         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89415         avoid AC_CONFIG_LINKS.
89416         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89417         fnmatch.h, to avoid AC_CONFIG_LINKS.
89418         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89419
89420 2003-06-07  Bruno Haible  <bruno@clisp.org>
89421
89422         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89423         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89424         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89425         directory.
89426         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89427         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89428         directory.
89429
89430 2003-06-06  Jim Meyering  <jim@meyering.net>
89431
89432         Merge from coreutils.
89433         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89434         Consolidate declarations and initializations of *_base* locals.
89435
89436         Merge from coreutils.
89437         This avoids a core dump on systems without GNU putenv,
89438         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89439         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89440         (unsetenv): New static function, from GNU libc.
89441         (rpl_putenv): Use it.
89442
89443         * lib/modechange.c: Remove trailing blanks.
89444
89445         Merge from coreutils.
89446         * lib/fsusage.c: Remove declaration of statfs.
89447         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89448
89449         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89450
89451 2003-06-06  Jim Meyering  <jim@meyering.net>
89452
89453         * lib/stdbool_.h: Renamed from stdbool.h.in.
89454
89455 2003-06-06  Jim Meyering  <jim@meyering.net>
89456             Bruno Haible  <bruno@clisp.org>
89457
89458         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89459         Adjust Makefile.am snippet not to redirect directly to target.
89460         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89461
89462 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89463
89464         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89465         mismatch, look in future quarters as well as past.  This fixes a
89466         bug when processing fall-backwards gaps immediately after a long
89467         period of daylight-saving time.
89468
89469         * lib/mktime.c: Assume freestanding C89 or better.
89470         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89471         (__P): Remove; not used.
89472         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89473         (mktime, not_equal_tm, print_tm, check_result,
89474         main): Use prototypes.  Use const * where appropriate.
89475         (main): Fix typo in testing code that uncovered by above changes.
89476         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89477
89478 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89479
89480         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89481         locale.h, localeconv.  This merges changes from coreutils.
89482
89483         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89484         It can be removed after the next Autoconf is released.
89485         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89486         needed.
89487
89488 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89489
89490         * lib/mktime.c: Fix Debian bug 177940
89491         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89492         (localtime_offset): Now long int, not time_t, because we want it
89493         to be guaranteed to be signed.  All uses changed.
89494         (__mktime_internal): If overflow would occur when adding offset,
89495         don't add it.
89496
89497         Merge 'human' changes from coreutils.  Rewrite to support
89498         locale-specific notations like thousands separators.
89499         * lib/human.c: Simplify authorship notice.
89500         Include human.h immediately after config.h.
89501         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89502         <limits.h>: Do not include, since human.h does.
89503         (SIZE_MAX, UINTMAX_MAX): New macros.
89504         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89505         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89506         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89507         (power_letter): Renamed from suffixes.
89508         (generate_suffix_backwards): Remove.
89509         (adjust_value): Now takes int style (because of human.h changes)
89510         and long double value (for greater precision on some platforms).
89511         (group_number): New function.
89512         (human_readable): Use it.  Use integer options, not enum.
89513         Put the options before the sizes in the arg list.
89514         Support all the new options.
89515         The old human_readable function has been removed;
89516         use inttostr.h instead.
89517         (human_readable, default_block_size, humblock):
89518         Use uintmax_t, not int, for block sizes.
89519         (human_readable_inexact, block_size_types): Remove.
89520         (block_size_opts): New constant.
89521         (human_options): Renamed from human_block_size, with new signature
89522         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89523         * lib/human.h: Add copyright and authorship notice.
89524         Include <limits.h> and <stdbool.h> unconditionally.
89525         (PARAMS): Remove.  All uses removed.
89526         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89527         (enum human_inexact_style): Remove tag; now a nameless enum.
89528         (human_floor, human_ceiling, human_round_to_even): Now have
89529         values 2, 0, 1 rather than -1, 1, 0.
89530         (human_group_digits, human_suppress_point_zero, human_autoscale,
89531         human_base_1024, human_SI, human_B): New constants.
89532         (human_readable_inexact, human_block_size): Remove.
89533         (human_readable): Size args are now uintmax_t, not int.
89534         (human_options): New decl.
89535
89536         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89537         unnecessary now that we assume C89 or better.  This change
89538         imported from coreutils.
89539
89540         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89541         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89542         in the 2003-05-30 sync from glibc.
89543
89544         .h files should stand alone, but we shouldn't include <sys/types.h>
89545         if we can get away with just <stddef.h>.
89546
89547         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89548         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89549         rather than <sys/types.h>, as we merely need size_t.
89550         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89551         to get size_t.
89552         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89553         Include <stdio.h>, to get FILE.
89554         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89555         memcasecmp.h has included <stddef.h> and all we need is size_t.
89556         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89557         our interface, instead of including <sys/types.h>
89558
89559 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89560
89561         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89562         now, as glibc mktime is buggy on non-glibc systems.
89563
89564 2003-06-03  Karl Berry  <karl@gnu.org>
89565
89566         * config/config.sub: update from prep.
89567
89568 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89569
89570         [from coreutils]
89571         Fix some minor time-related bugs with POSIX time arguments.
89572         Some valid time stamps were being rejected (notably -1, and
89573         time stamps before 1900 on 64-bit hosts).  And some invalid
89574         time stamps were being accepted, e.g. September 31.
89575
89576         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89577         that we can return (time_t) -1 successfully.
89578         * lib/posixtm.c: Likewise.
89579         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89580         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89581         (t): Remove static var.
89582         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89583         of static var.  All uses changed.
89584         (year): Do not reject years before 1900; they can occur with
89585         64-bit time_t.
89586         (posix_time_parse): Do not check for out-of-range components;
89587         that is now the caller's responsibility, since our checks were
89588         only approximations.
89589         (posixtime): Use mktime to check for out-of-range components,
89590         since it knows them exactly.
89591         If mktime returns (time_t) -1, check whether an error actually occurred
89592         by invoking localtime on -1.
89593         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89594         posixtime failures better.
89595         Improve the test data (in comments only).
89596
89597 2003-06-02  Karl Berry  <karl@gnu.org>
89598
89599         * config/mkinstalldirs (version): new variable.
89600         (--version): new option.
89601         (usage): improve message.
89602
89603 2003-05-30  Karl Berry  <karl@gnu.org>
89604
89605         * lib/mktime.c: update from libc.
89606
89607 2003-05-30  Bruno Haible  <bruno@clisp.org>
89608
89609         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89610         * config/config.rpath: Upgrade to gettext-0.12.1.
89611
89612 2003-05-30  Bruno Haible  <bruno@clisp.org>
89613
89614         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89615         * m4/nls.m4: New file, from gettext-0.12.1.
89616         * m4/po.m4: New file, from gettext-0.12.1.
89617         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89618
89619 2003-05-30  Bruno Haible  <bruno@clisp.org>
89620
89621         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89622         * lib/localcharset.h: Likewise.
89623         * lib/localcharset.c: Likewise.
89624
89625 2003-05-29  Karl Berry  <karl@gnu.org>
89626
89627         * config/config.rpath: update from gettext.
89628
89629 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89630
89631         Assume the headers required for C89 freestanding compilers.
89632         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89633         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89634         * m4/human.m4 (gl_HUMAN): Likewise.
89635         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89636         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89637         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89638         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89640         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89641
89642 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89643
89644         Assume the headers required for C89 freestanding compilers.
89645         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89646         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89647         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89648         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89649         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89650         define, since <limits.h> is guaranteed to do that.
89651         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89652         * lib/exclude.c: Include <stdbool.h> unconditionally.
89653         * lib/tempname.c: Include <stddef.h> unconditionally.
89654         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89655         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89656         <stddef.h> does that.
89657         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89658         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89659         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89660         needed.
89661         * lib/xstrtol.c: Likewise.
89662         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89663         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89664
89665         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89666         warnings on some platforms.
89667
89668         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89669         arbitrarily.
89670
89671 2003-05-26  Jim Meyering  <jim@meyering.net>
89672
89673         Merge in a change from coreutils:
89674         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89675         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89676         that condition, rather than `-1' which is slightly misleading.
89677         Change the name of the cache variable to have the gl_ prefix.
89678         Prompted by a patch from Richard Dawe for DJGPP.
89679
89680 2003-05-24  Karl Berry  <karl@gnu.org>
89681
89682         * config/config.guess: update from prep.
89683
89684 2003-05-22  Karl Berry  <karl@gnu.org>
89685
89686         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89687
89688 2003-05-20  Karl Berry  <karl@gnu.org>
89689
89690         * config/config.guess: update from prep.
89691
89692 2003-05-18  Karl Berry  <karl@gnu.org>
89693
89694         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89695         might actually be set by the user.
89696
89697         * config/depcomp, install-sh, mdate-sh: update from automake.
89698
89699 2003-05-17  Bruno Haible  <bruno@clisp.org>
89700
89701         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89702         invalid expansion for AC_EGREP_CPP.
89703         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89704         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89705         Suggested by Akim Demaille <akim@epita.fr> in
89706         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89707
89708 2003-05-12  Jim Meyering  <jim@meyering.net>
89709
89710         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89711         the space-padded-by-default conversion specifiers, %e, %k, %l.
89712
89713 2003-05-12  Bruno Haible  <bruno@clisp.org>
89714
89715         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89716         the string is longer than 4 KB.
89717
89718 2003-05-11  Karl Berry  <karl@gnu.org>
89719
89720         * config/config.{guess,sub}: update from prep.
89721
89722 2003-05-09  Bruno Haible  <bruno@clisp.org>
89723
89724         * modules/error: Add m4/strerror_r.m4 to file list.
89725
89726 2003-05-03  Bruno Haible  <bruno@clisp.org>
89727
89728         Upgrade to Unicode-4.0.
89729         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89730         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89731         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89732         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89733         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89734         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89735         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89736         Change width of U+E0100..U+E01EF from 1 to 0.
89737
89738 2003-04-25  Jim Meyering  <jim@meyering.net>
89739
89740         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89741         of type size_t, not int.
89742
89743 2003-04-25  Bruno Haible  <bruno@clisp.org>
89744
89745         * lib/copy-file.c: Include <stddef.h>, for size_t.
89746
89747 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89748
89749         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89750         code which expansion is under static control.  Patch imported from
89751         Akim Demaille's patch to Bison; see
89752         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89753
89754 2003-04-14  Bruno Haible  <bruno@clisp.org>
89755
89756         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89757
89758 2003-04-11  Jim Meyering  <jim@meyering.net>
89759
89760         Merge changes from Coreutils.
89761
89762         2003-03-22  Jim Meyering  <jim@meyering.net>
89763
89764         * lib/strftime.c (widen): Cast alloca return value to proper type.
89765
89766         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89767
89768         From GNU libc.
89769         * lib/strftime.c (my_strftime): Handle very large width
89770         specifications for numeric values correctly.  Improve checks for
89771         overflow.
89772
89773         2003-01-19  Jim Meyering  <jim@meyering.net>
89774
89775         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89776         definitions.
89777         (nl_get_alt_digit) [! defined my_strftime]: Define.
89778         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89779         _nl_get_alt_digit and _nl_get_walt_digit.
89780
89781         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89782         libc. These changes have no effect outside of _LIBC.
89783
89784 2003-04-10  Bruno Haible  <bruno@clisp.org>
89785
89786         * modules/findprog: New file.
89787         * MODULES.html.sh (func_all_modules): Add it.
89788
89789 2003-04-10  Bruno Haible  <bruno@clisp.org>
89790
89791         * m4/findprog.m4: New file.
89792         * m4/eaccess.m4: New file.
89793
89794 2003-04-10  Bruno Haible  <bruno@clisp.org>
89795
89796         * lib/findprog.h: New file, from GNU gettext.
89797         * lib/findprog.c: New file, from GNU gettext.
89798
89799 2003-04-05  Jim Meyering  <jim@meyering.net>
89800
89801         Merge changes from Coreutils.
89802
89803         * lib/exclude.h (PARAMS): Remove definition and uses.
89804         * lib/exclude.c: Remove uses of `PARAMS'.
89805
89806         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89807         Add test-cases for DOS filenames. Declare program_name.
89808         (main): Set up program_name.  Patch by Rich Dawe.
89809
89810         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89811         error from mntctl.
89812         Use mntctl's return value to drive the entry-processing loop, since
89813         we can't rely on the value of the vmt_length member in the last
89814         entry.  On some systems doing so could result in exhausting
89815         virtual memory.  Based in part on a patch from Mike Jetzer.
89816
89817 2003-04-04  Bruno Haible  <bruno@clisp.org>
89818
89819         * modules/linebreak: New file.
89820         * MODULES.html.sh (func_all_modules): Add it.
89821
89822 2003-04-04  Bruno Haible  <bruno@clisp.org>
89823
89824         * m4/linebreak.m4: New file.
89825
89826 2003-04-04  Bruno Haible  <bruno@clisp.org>
89827
89828         * lib/linebreak.h: New file, from GNU gettext.
89829         * lib/linebreak.c: New file, from GNU gettext with slight
89830         modifications.
89831         * lib/lbrkprop.h: New file, from GNU gettext.
89832
89833 2003-04-03  Bruno Haible  <bruno@clisp.org>
89834
89835         * modules/utf8-ucs4: New file.
89836         * modules/utf16-ucs4: New file.
89837         * modules/ucs4-utf8: New file.
89838         * modules/ucs4-utf16: New file.
89839         * MODULES.html.sh (func_all_modules): Add them.
89840
89841 2003-04-03  Bruno Haible  <bruno@clisp.org>
89842
89843         * m4/utf-ucs4.m4: New file.
89844         * m4/ucs4-utf.m4: New file.
89845
89846 2003-04-03  Bruno Haible  <bruno@clisp.org>
89847
89848         * lib/utf8-ucs4.h: New file, from GNU gettext.
89849         * lib/utf16-ucs4.h: New file, from GNU gettext.
89850         * lib/ucs4-utf8.h: New file, from GNU gettext.
89851         * lib/ucs4-utf16.h: New file, from GNU gettext.
89852
89853 2003-04-02  Bruno Haible  <bruno@clisp.org>
89854
89855         * modules/binary-io: New file.
89856         * MODULES.html.sh (func_all_modules): Add it.
89857
89858 2003-04-02  Bruno Haible  <bruno@clisp.org>
89859
89860         * lib/binary-io.h: New file, from GNU gettext.
89861
89862 2003-04-01  Bruno Haible  <bruno@clisp.org>
89863
89864         * modules/pathname: New file.
89865         * MODULES.html.sh (func_all_modules): Add it.
89866
89867 2003-04-01  Bruno Haible  <bruno@clisp.org>
89868
89869         * lib/pathname.h: New file, from GNU gettext.
89870         * lib/concatpath.c: New file, from GNU gettext.
89871
89872 2003-03-30  Bruno Haible  <bruno@clisp.org>
89873
89874         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89875
89876 2003-03-30  Bruno Haible  <bruno@clisp.org>
89877
89878         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89879         function chown() doesn't exist.
89880
89881 2003-03-28  Bruno Haible  <bruno@clisp.org>
89882
89883         * modules/copy-file: New file.
89884         * MODULES.html.sh (func_all_modules): Add it.
89885
89886 2003-03-28  Bruno Haible  <bruno@clisp.org>
89887
89888         * m4/copy-file.m4: New file.
89889
89890 2003-03-28  Bruno Haible  <bruno@clisp.org>
89891
89892         * lib/copy-file.h: New file, from GNU gettext.
89893         * lib/copy-file.c: New file, from GNU gettext.
89894
89895 2003-03-18  Jim Meyering  <jim@meyering.net>
89896
89897         * lib/quote.c (quote_n): Fix typo in comment.
89898
89899 2003-03-18  Bruno Haible  <bruno@clisp.org>
89900
89901         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89902         checking.
89903         * m4/onceonly_2_57.m4: Likewise.
89904
89905 2003-03-17  Bruno Haible  <bruno@clisp.org>
89906
89907         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89908         (m4_quote): Remove macro.
89909         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89910
89911 2003-03-14  Jim Meyering  <jim@meyering.net>
89912
89913         Merge changes from Coreutils.
89914         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89915         to be const, in order to avoid warnings.
89916         (obstack_room): Likewise.
89917         (obstack_empty_p): Likewise.
89918
89919 2003-03-14  Bruno Haible  <bruno@clisp.org>
89920
89921         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89922         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89923
89924 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89925
89926         Merge changes from Bison.
89927         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89928         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89929         when compiling Bison 1.875's `bitset bset = obstack_alloc
89930         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89931         * lib/hash.c: Include <stdbool.h> unconditionally.
89932
89933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89934
89935         * m4/onceonly.m4 (m4_quote): New macro.
89936         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89937         Quote AC_FOREACH variable-expansions properly.
89938
89939 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89940
89941         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89942
89943 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89944
89945         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89946         Reported by Bruce Becker; see:
89947         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89948
89949 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89950             Bruno Haible  <bruno@clisp.org>
89951
89952         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89953         Reported by John Hughes, see
89954         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89955
89956 2003-02-20  Bruno Haible  <bruno@clisp.org>
89957
89958         * MODULES.html.sh (func_all_modules): Add poll.
89959
89960 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89961
89962         * modules/poll: New file.
89963
89964 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89965
89966         * lib/poll_.h: New file.
89967         * lib/poll.c: New file.
89968
89969 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89970
89971         * m4/poll.m4: New file.
89972
89973 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89974
89975         * modules/mathl: New file.
89976
89977 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89978
89979         * lib/mathl.h: New file.
89980         * lib/acosl.c: New file.
89981         * lib/asinl.c: New file.
89982         * lib/atanl.c: New file.
89983         * lib/ceill.c: New file.
89984         * lib/cosl.c: New file.
89985         * lib/expl.c: New file.
89986         * lib/floorl.c: New file.
89987         * lib/frexpl.c: New file.
89988         * lib/ldexpl.c: New file.
89989         * lib/logl.c: New file.
89990         * lib/sincosl.c: New file.
89991         * lib/sinl.c: New file.
89992         * lib/sqrtl.c: New file.
89993         * lib/tanl.c: New file.
89994         * lib/trigl.c: New file.
89995         * lib/trigl.h: New file.
89996
89997 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89998
89999         * m4/mathl.m4: New file.
90000
90001 2003-02-18  Bruno Haible  <bruno@clisp.org>
90002
90003         * MODULES.html.sh (func_all_modules): Add mathl.
90004
90005 2003-02-17  Bruno Haible  <bruno@clisp.org>
90006
90007         * modules/mkdtemp: New module.
90008         * MODULES.html.sh (func_all_modules): Add it.
90009
90010 2003-02-17  Bruno Haible  <bruno@clisp.org>
90011
90012         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90013
90014 2003-02-17  Bruno Haible  <bruno@clisp.org>
90015
90016         * lib/mkdtemp.h: New file, from GNU gettext.
90017         * lib/mkdtemp.c: New file, from GNU gettext.
90018
90019 2003-02-02  Jim Meyering  <jim@meyering.net>
90020
90021         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90022         e.g. glibc-2.2.93.
90023
90024 2003-01-31  Bruno Haible  <bruno@clisp.org>
90025
90026         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90027         'rpl_rename'.
90028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90029         'rpl_strnlen'.
90030         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90031         'rpl_strtod'.
90032         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90033         'rpl_utime'.
90034
90035 2003-01-31  Bruno Haible  <bruno@clisp.org>
90036
90037         * lib/rename.c: #undef rename before defining rpl_rename.
90038         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90039
90040 2003-01-30  Bruno Haible  <bruno@clisp.org>
90041
90042         * modules/vasnprintf, modules/vasprintf: New modules.
90043         * MODULES.html.sh (func_all_modules): Add them.
90044
90045 2003-01-30  Bruno Haible  <bruno@clisp.org>
90046
90047         * m4/signed.m4: New file, from GNU gettext.
90048         * m4/longdouble.m4: New file, from GNU gettext.
90049         * m4/wchar_t.m4: New file, from GNU gettext.
90050         * m4/wint_t.m4: New file, from GNU gettext.
90051         * m4/vasnprintf.m4: New file.
90052         * m4/vasprintf.m4: New file.
90053
90054 2003-01-30  Bruno Haible  <bruno@clisp.org>
90055
90056         * lib/printf-args.h: New file, from GNU gettext.
90057         * lib/printf-args.c: New file, from GNU gettext.
90058         * lib/printf-parse.h: New file, from GNU gettext.
90059         * lib/printf-parse.c: New file, from GNU gettext.
90060         * lib/vasnprintf.h: New file, from GNU gettext.
90061         * lib/vasnprintf.c: New file, from GNU gettext.
90062         * lib/asnprintf.c: New file, from GNU gettext.
90063         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90064         * lib/vasprintf.c: New file, from GNU gettext.
90065         * lib/asprintf.c: New file, from GNU gettext.
90066
90067 2003-01-29  Bruno Haible  <bruno@clisp.org>
90068
90069         * modules/stpncpy: New module.
90070         * MODULES.html.sh (func_all_modules): Add it.
90071
90072 2003-01-29  Bruno Haible  <bruno@clisp.org>
90073
90074         * m4/stpncpy.m4: New file.
90075
90076 2003-01-29  Bruno Haible  <bruno@clisp.org>
90077
90078         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90079         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90080
90081 2003-01-28  Bruno Haible  <bruno@clisp.org>
90082
90083         * modules/c-ctype: New module.
90084         * MODULES.html.sh (func_all_modules): Add it.
90085
90086 2003-01-28  Bruno Haible  <bruno@clisp.org>
90087
90088         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90089         Paul Eggert.
90090         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90091         Paul Eggert.
90092
90093 2003-01-27  Bruno Haible  <bruno@clisp.org>
90094
90095         * modules/xsetenv: New module.
90096         * MODULES.html.sh (func_all_modules): Add it.
90097
90098 2003-01-27  Bruno Haible  <bruno@clisp.org>
90099
90100         * lib/xsetenv.h: New file, from GNU gettext.
90101         * lib/xsetenv.c: New file, from GNU gettext.
90102
90103 2003-01-23  Jim Meyering  <jim@meyering.net>
90104
90105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90106         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90107
90108 2003-01-23  Bruno Haible  <bruno@clisp.org>
90109
90110         * modules/minmax: New module.
90111         * MODULES.html.sh (func_all_modules): Add it.
90112
90113 2003-01-23  Bruno Haible  <bruno@clisp.org>
90114
90115         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90116         Eggert.
90117
90118 2003-01-22  Bruno Haible  <bruno@clisp.org>
90119
90120         * modules/exit: New module.
90121         * MODULES.html.sh (func_all_modules): Add it.
90122
90123 2003-01-22  Bruno Haible  <bruno@clisp.org>
90124
90125         * lib/exit.h: New file, from GNU gettext.
90126
90127 2003-01-19  Bruno Haible  <bruno@clisp.org>
90128
90129         * gnulib-tool: Recognize option --extract-maintainer.
90130         (func_get_maintainer): New function.
90131         * modules/*: Add Maintainer entry.
90132
90133 2003-01-16  Jim Meyering  <jim@meyering.net>
90134
90135         * m4/regex.m4: The `regex' struct is both input and output.
90136         Initialize it before each use.  Patch by Tim Waugh.
90137
90138 2003-01-16  Bruno Haible  <bruno@clisp.org>
90139
90140         * MODULES.html.sh: Add a table of contents. Add the module name as
90141         leftmost column. Add hyperlinks.
90142
90143 2003-01-15  Bruno Haible  <bruno@clisp.org>
90144
90145         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90146
90147 2003-01-15  Bruno Haible  <bruno@clisp.org>
90148
90149         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90150         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90151         suffix.
90152
90153 2003-01-15  Bruno Haible  <bruno@clisp.org>
90154
90155         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90156
90157 2003-01-15  Bruno Haible  <bruno@clisp.org>
90158
90159         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90160         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90161
90162 2003-01-14  Jim Meyering  <jim@meyering.net>
90163
90164         * lib/same.c (same_name): Tweak a comment.
90165
90166 2003-01-14  Bruno Haible  <bruno@clisp.org>
90167
90168         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90169         when a string comparison is sufficient.
90170
90171 2003-01-14  Bruno Haible  <bruno@clisp.org>
90172
90173         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90174         'unsigned int'.
90175
90176 2003-01-14  Bruno Haible  <bruno@clisp.org>
90177
90178         * lib/hash-pjw.c: Add comment about low quality of this function.
90179
90180 2003-01-13  Bruno Haible  <bruno@clisp.org>
90181
90182         * modules/stpcpy: Distribute lib/stpcpy.h.
90183         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90184
90185 2003-01-13  Bruno Haible  <bruno@clisp.org>
90186
90187         * modules/*: Add a description.
90188         * modules/strpbrk: Fix Makefile.am snippet.
90189         * modules/strtoimax: Fix dependencies.
90190         * modules/strtoumax: Likewise.
90191
90192 2003-01-13  Bruno Haible  <bruno@clisp.org>
90193
90194         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90195         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90196         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90197
90198 2003-01-13  Bruno Haible  <bruno@clisp.org>
90199
90200         * gnulib-tool (func_create_testdir): Store config/* files in the main
90201         directory.
90202         * config.rpath: Move to ...
90203         * config/config.rpath: ... here.
90204         * modules/gettext: Contains config/config.rpath, not config.rpath.
90205         * modules/iconv: Likewise.
90206
90207 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90208
90209         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90210         to avoid collisions with libcurses and libreadline.
90211
90212         * m4/getstr.m4: Remove.
90213         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90214
90215 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90216
90217         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90218         to avoid collisions with libcurses and libreadline.
90219
90220         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90221         * lib/getstr.h, getstr.c: Remove.
90222         * lib/getline.c: Include "getline.h", to check interface.
90223         Move body of old getstr.c here: this defines MIN_CHUNK and
90224         declares getdelim2, which is renamed from getstr.
90225         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90226
90227         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90228         All uses changed.
90229         * lib/linebuffer.h: Likewise.
90230         (readline): Remove backward-compatibility macro.
90231
90232 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90233
90234         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90235         to avoid collisions with libcurses and libreadline.
90236         * getstr: Remove.
90237         * MODULES.html.sh: Remove getstr.
90238         * modules/getline: Depend on unlocked-io, not getstr.
90239
90240 2003-01-12  Jim Meyering  <jim@meyering.net>
90241
90242         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90243
90244 2003-01-10  Bruno Haible  <bruno@clisp.org>
90245
90246         * modules/alloca: Change Makefile.am requirements. Simplify Include
90247         requirements. Add lib/alloca_.h to file list.
90248
90249 2003-01-10  Bruno Haible  <bruno@clisp.org>
90250
90251         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90252
90253 2003-01-10  Bruno Haible  <bruno@clisp.org>
90254
90255         * lib/alloca_.h: New file.
90256         * lib/getdate.y: Unconditionally include alloca.h.
90257         * lib/makepath.c: Likewise.
90258         * lib/setenv.c: Likewise.
90259         * lib/userspec.c: Likewise.
90260
90261 2003-01-09  Karl Berry  <karl@gnu.org>
90262
90263         * MODULES.html.sh: include `dirname $0` in PATH, to find
90264         gnulib-tool.
90265
90266 2003-01-09  Bruno Haible  <bruno@clisp.org>
90267
90268         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90269         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90270
90271 2003-01-09  Bruno Haible  <bruno@clisp.org>
90272
90273         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90274
90275 2003-01-09  Bruno Haible  <bruno@clisp.org>
90276
90277         * lib/stdbool.h.in: New file.
90278
90279 2003-01-09  Bruno Haible  <bruno@clisp.org>
90280
90281         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90282         * MODULES.html.sh: Likewise.
90283
90284 2003-01-08  Jim Meyering  <jim@meyering.net>
90285
90286         * lib/full-write.c: Undefine and define-away `const' after inclusion
90287         of errno.h, not before.  Suggestion from Bruno Haible.
90288
90289 2003-01-08  Bruno Haible  <bruno@clisp.org>
90290
90291         * modules/full-read: Depend on full-write.
90292
90293 2003-01-08  Bruno Haible  <bruno@clisp.org>
90294
90295         * lib/safe-read.c: Include specification header first, to ensure its
90296         selfcontainedness.
90297         * lib/full-write.c: Likewise.
90298
90299 2003-01-07  Jim Meyering  <jim@meyering.net>
90300
90301         * lib/full-write.c: Rework so that it may serve to define full_read,
90302         too.
90303         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90304
90305 2003-01-07  Bruno Haible  <bruno@clisp.org>
90306
90307         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90308         <inttypes.h>.
90309         * lib/xstrtol.h: Likewise.
90310         * lib/xstrtoimax.c: Likewise.
90311         * lib/xstrtoumax.c: Likewise.
90312         * lib/human.h: Likewise.
90313
90314         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90315         on systems that have <inttypes.h> but not <stdint.h>.
90316
90317 2003-01-07  Bruno Haible  <bruno@clisp.org>
90318
90319         * MODULES.html.sh: Add copyright notice.
90320         (missed_files): Omit CVS directory entries.
90321         (func_module): Make it work with sed-3.02.
90322         * MODULES.txt: Remove file.
90323
90324 2003-01-06  Jim Meyering  <jim@meyering.net>
90325
90326         * lib/version-etc.c: Update year in translatable copyright string.
90327
90328 2003-01-03  Karl Berry  <karl@gnu.org>
90329
90330         * config/config.{guess,sub}: update from prep.
90331
90332 2003-01-02  Karl Berry  <karl@gnu.org>
90333
90334         * doc/COPYING.DOC: belatedly updated to 1.2.
90335
90336 2003-01-01  Karl Berry  <karl@gnu.org>
90337
90338         * gnulib-tool (func_verify_module): report module name $module in
90339         error message, not $1.
90340         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90341         be created, only if it doesn't exist.
90342         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90343
90344 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90345
90346         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90347
90348 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90349
90350         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90351         memcmp if strcoll doesn't work.
90352
90353 2002-12-31  Bruno Haible  <bruno@clisp.org>
90354
90355         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90356         nonempty.
90357
90358 2002-12-31  Bruno Haible  <bruno@clisp.org>
90359
90360         * lib/memcoll.c (STRCOLL): New macro.
90361         (memcoll): Use it.
90362
90363 2002-12-31  Bruno Haible  <bruno@clisp.org>
90364
90365         * lib/localcharset.h: New file.
90366         * lib/localcharset.c: Include it.
90367         * lib/unicodeio.c: Likewise.
90368
90369 2002-12-31  Bruno Haible  <bruno@clisp.org>
90370
90371         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90372         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90373
90374 2002-12-31  Bruno Haible  <bruno@clisp.org>
90375
90376         * lib/getline.h: Include <stddef.h>, for size_t.
90377
90378         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90379         * lib/unicodeio.c: Don't include <stddef.h>.
90380
90381 2002-12-31  Bruno Haible  <bruno@clisp.org>
90382
90383         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90384         HAVE_TM_ZONE.
90385
90386 2002-12-24  Karl Berry  <karl@gnu.org>
90387
90388         * config/config.guess: update from prep.
90389
90390 2002-12-24  Bruno Haible  <bruno@clisp.org>
90391
90392         General infrasructure.
90393         * m4/README: Rewritten.
90394         * m4/onceonly.m4: New file.
90395         * m4/onceonly_2_57.m4: New file.
90396
90397         Module atexit.
90398         * m4/atexit.m4: New file.
90399
90400         Module strtod.
90401         * m4/strtod.m4: New file.
90402
90403         Module strtol.
90404         * m4/strtol.m4: New file.
90405
90406         Module strtoul.
90407         * m4/strtoul.m4: New file.
90408
90409         Module memchr.
90410         * m4/memchr.m4: New file.
90411
90412         Module memcmp.
90413         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90414         (jm_FUNC_MEMCMP): Invoke it.
90415
90416         Module memcpy.
90417         * m4/memcpy.m4: New file.
90418
90419         Module memmove.
90420         * m4/memmove.m4: New file.
90421
90422         Module memset.
90423         * m4/memset.m4: New file.
90424
90425         Module strcspn.
90426         * m4/strcspn.m4: New file.
90427
90428         Module strpbrk.
90429         * m4/strpbrk.m4: New file.
90430
90431         Module strstr.
90432         * m4/strstr.m4: New file.
90433
90434         Module strerror.
90435         * m4/strerror.m4: New file.
90436
90437         Module mktime.
90438         * m4/mktime.m4: Renamed from jm-mktime.m4.
90439         (gl_PREREQ_MKTIME): New macro.
90440         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90441
90442         Module malloc.
90443         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90444         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90445         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90446
90447         Module realloc.
90448         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90449         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90450         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90451
90452         Module strftime.
90453         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90454         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90455         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90456         gl_TM_GMTOFF.
90457         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90458
90459         Module xalloc.
90460         * m4/xalloc.m4: New file.
90461
90462         Module alloca.
90463         * m4/alloca.m4: New file.
90464
90465         Module putenv.
90466         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90467         (jm_FUNC_PUTENV): Invoke it.
90468
90469         Module setenv.
90470         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90471         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90472         when invoked twice.
90473         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90474         gt_FUNC_SETENV.
90475
90476         Module memrchr.
90477         * m4/memrchr.m4: New file.
90478
90479         Module stpcpy.
90480         * m4/stpcpy.m4: New file.
90481
90482         Module strcase.
90483         * m4/strcase.m4: New file.
90484
90485         Module strdup.
90486         * m4/strdup.m4: New file.
90487
90488         Module strnlen.
90489         * m4/strnlen.m4: New file.
90490
90491         Module strndup.
90492         * m4/strndup.m4: New file.
90493
90494         Module xstrtod.
90495         * m4/xstrtod.m4: New file.
90496
90497         Module xstrtol.
90498         * m4/xstrtol.m4: New file.
90499
90500         Module getdate.
90501         * m4/getdate.m4: New file.
90502
90503         Module unlocked-io.
90504         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90505         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90506         * m4/jm-glibc-io.m4n: Remove file.
90507
90508         Module long-options.
90509         * m4/long-options.m4: New file.
90510
90511         Module md5.
90512         * m4/md5.m4: New file.
90513
90514         Module sha.
90515         * m4/sha.m4: New file.
90516
90517         Module getstr.
90518         * m4/getstr.m4: New file.
90519
90520         Module getline.
90521         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90522         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90523         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90524         simply getline. Infoke gl_PREREQ_GETLINE.
90525
90526         Module obstack.
90527         * m4/obstack.m4: New file.
90528
90529         Module hash.
90530         * m4/hash.m4: New file.
90531
90532         Module readtokens.
90533         * m4/readtokens.m4: New file.
90534
90535         Module strverscmp.
90536         * m4/strverscmp.m4: New file.
90537
90538         Module stdbool.
90539         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90540         OSF/1.
90541
90542         Module strtoll.
90543         * m4/strtoll.m4: New file.
90544
90545         Module strtoull.
90546         * m4/strtoull.m4: New file.
90547
90548         Module strtoimax.
90549         * m4/strtoimax.m4: New file.
90550
90551         Module strtoumax.
90552         * m4/strtoumax.m4: New file.
90553
90554         Module xstrtoimax.
90555         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90556         jm_AC_PREREQ_XSTRTOIMAX.
90557         Moved the strtol prerequisites to strtol.m4.
90558         Moved the strtoll prerequisites to strtoll.m4.
90559         Moved the strtoimax prerequisites to strtoimax.m4.
90560
90561         Module xstrtoumax.
90562         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90563         jm_AC_PREREQ_XSTRTOUMAX.
90564         Moved the strtoul prerequisites to strtoul.m4.
90565         Moved the strtoull prerequisites to strtoull.m4.
90566         Moved the strtoumax prerequisites to strtoumax.m4.
90567
90568         Module chown.
90569         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90570         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90571
90572         Module dup2.
90573         * m4/dup2.m4: New file.
90574
90575         Module ftruncate.
90576         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90577         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90578
90579         Module getgroups.
90580         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90581         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90582
90583         Module gettimeofday.
90584         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90585         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90586         gl_PREREQ_GETTIMEOFDAY.
90587
90588         Module mkdir.
90589         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90590         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90591
90592         Module mkstemp.
90593         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90594         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90595         jm_AC_TYPE_UINTMAX_T.
90596         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90597
90598         Module stat.
90599         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90600         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90601
90602         Module lstat.
90603         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90604         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90605
90606         Module timespec.
90607         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90608         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90609         * m4/st_mtim.m4: Indentation.
90610
90611         Module nanosleep.
90612         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90613         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90614         gl_PREREQ_NANOSLEEP.
90615
90616         Module regex.
90617         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90618         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90619         (gl_REGEX): New macro.
90620
90621         Module rename.
90622         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90623         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90624
90625         Module rmdir.
90626         * m4/rmdir.m4: New file.
90627
90628         Module utime.
90629         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90630         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90631         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90632
90633         Module dirname.
90634         * m4/dirname.m4: New file.
90635
90636         Module getopt.
90637         * m4/getopt.m4: New file.
90638
90639         Module unistd-safer.
90640         * m4/unistd-safer.m4: New file.
90641
90642         Module fnmatch.
90643         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90644         declaration.
90645         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90646         (gl_FUNC_FNMATCH_POSIX): New macro.
90647         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90648         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90649         simply fnmatch.
90650
90651         Module exclude.
90652         * m4/exclude.m4: New file.
90653
90654         Module human.
90655         * m4/human.m4: New file.
90656
90657         Module acl.
90658         * m4/acl.m4: Nop.
90659
90660         Module backupfile.
90661         * m4/backupfile.m4: New file.
90662         * m4/d-ino.m4: Indentation.
90663
90664         Module fsusage.
90665         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90666         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90667         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90668
90669         Module dirfd.
90670         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90671         requirements.
90672
90673         Module euidaccess.
90674         * m4/euidaccess.m4: New file.
90675
90676         Module file-type.
90677         * m4/file-type.m4: New file.
90678
90679         Module fileblocks.
90680         * m4/fileblocks.m4: New file.
90681
90682         Module filemode.
90683         * m4/filemode.m4: New file.
90684
90685         Module isdir.
90686         * m4/isdir.m4: New file.
90687
90688         Module lchown.
90689         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90690         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90691
90692         Module makepath.
90693         * m4/makepath.m4: New file.
90694
90695         Module modechange.
90696         * m4/modechange.m4: New file.
90697
90698         Module mountlist.
90699         * m4/mountlist.m4: New file.
90700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90701         Indentation.
90702
90703         Module path-concat.
90704         * m4/path-concat.m4: New file.
90705
90706         Module pathmax.
90707         * m4/pathmax.m4: New file.
90708
90709         Module same.
90710         * m4/same.m4: New file.
90711
90712         Module save-cwd.
90713         * m4/save-cwd.m4: New file.
90714
90715         Module savedir.
90716         * m4/savedir.m4: New file.
90717
90718         Module xgetcwd.
90719         * m4/xgetcwd.m4: New file.
90720         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90721
90722         Module xreadlink.
90723         * m4/xreadlink.m4: New file.
90724
90725         Module safe-read.
90726         * m4/safe-read.m4: New file.
90727
90728         Module safe-write.
90729         * m4/safe-write.m4: New file.
90730
90731         Module closeout.
90732         * m4/closeout.m4: New file.
90733
90734         Module stdio-safer.
90735         * m4/stdio-safer.m4: New file.
90736
90737         Module getpass.
90738         * m4/getpass.m4: New file.
90739
90740         Module getugroups.
90741         * m4/getugroups.m4: New file.
90742
90743         Module group-member.
90744         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90745         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90746
90747         Module idcache.
90748         * m4/idcache.m4: New file.
90749
90750         Module userspec.
90751         * m4/userspec.m4: New file.
90752
90753         Module gettime.
90754         * m4/clock_time.m4: New file.
90755         * m4/gettime.m4: New file.
90756
90757         Module settime.
90758         * m4/settime.m4: New file.
90759
90760         Module posixtm.
90761         * m4/posixtm.m4: New file.
90762
90763         Module gethostname.
90764         * m4/gethostname.m4: New file.
90765
90766         Module canon-host.
90767         * m4/canon-host.m4: New file.
90768
90769         Module gettext.
90770         * m4/codeset.m4: New file, from gettext-0.11.5.
90771         * m4/gettext.m4: New file, from gettext-0.11.5.
90772         * m4/glibc21.m4: New file, from gettext-0.11.5.
90773         * m4/iconv.m4: New file, from gettext-0.11.5.
90774         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90775         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90776         * m4/inttypes.m4: New file, from gettext-0.11.5.
90777         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90778         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90779         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90780         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90781         * m4/lib-link.m4: New file, from gettext-0.11.5.
90782         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90783         * m4/progtest.m4: New file, from gettext-0.11.5.
90784         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90785         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90786         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90787
90788         Module localcharset.
90789         * m4/localcharset.m4: New file.
90790
90791         Module hard-locale.
90792         * m4/hard-locale.m4: New file.
90793
90794         Module mbswidth.
90795         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90796         onceonly macros.
90797         * m4/mbrtowc.m4: Add comment.
90798
90799         Module memcasecmp.
90800         * m4/memcasecmp.m4: New file.
90801
90802         Module memcoll.
90803         * m4/memcoll.m4: New file.
90804
90805         Module unicodeio.
90806         * m4/unicodeio.m4: New file.
90807
90808         Module rpmatch.
90809         * m4/rpmatch.m4: New file.
90810
90811         Module yesno.
90812         * m4/yesno.m4: New file.
90813
90814         Module exitfail.
90815         * m4/exitfail.m4: New file.
90816
90817         Module c-stack.
90818         * m4/c-stack.m4 (gl_C_STACK): New macro.
90819         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90820
90821         Module error.
90822         * m4/error.m4 (gl_ERROR): New macro.
90823         (jm_PREREQ_ERROR): Use onceonly macros.
90824
90825         Module fatal.
90826         * m4/fatal.m4: New file.
90827
90828         Module getloadavg.
90829         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90830         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90831
90832         Module getpagesize.
90833         * m4/getpagesize.m4: New file.
90834
90835         Module getusershell.
90836         * m4/getusershell.m4: New file.
90837
90838         Module physmem.
90839         * m4/physmem.m4: New file.
90840
90841         Module posixver.
90842         * m4/posixver.m4: New file.
90843
90844         Module quotearg.
90845         * m4/quotearg.m4: New file.
90846
90847         Module quote.
90848         * m4/quote.m4: New file.
90849
90850         Module readutmp.
90851         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90852
90853         Module sig2str.
90854         * m4/sig2str.m4: New file.
90855
90856         Other.
90857         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90858         ulonglong.m4.
90859         * m4/intmax_t.m4: New file.
90860         * m4/d-type.m4: Indentation.
90861         * m4/jm-macros.m4: Update.
90862         * m4/prereq.m4 (jm_PREREQ): Update.
90863         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90864         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90865         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90866         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90867         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90868         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90869         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90870         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90871         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90872         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90873         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90874         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90875         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90876         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90877         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90878         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90879         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90880         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90881         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90882
90883 2002-12-24  Bruno Haible  <bruno@clisp.org>
90884
90885         * MODULES.txt: Update according to m4/ changes.
90886
90887         Module gettext.
90888         * config.rpath: New file, from gettext-0.11.5.
90889
90890         * modules/*: New module descriptions.
90891         * gnulib-tool: New file.
90892         * MODULES.html.sh: New file.
90893
90894 2002-12-21  Karl Berry  <karl@gnu.org>
90895
90896         * doc/fdl.texi: update to version 1.2.
90897
90898 2002-12-19  Karl Berry  <karl@gnu.org>
90899
90900         * config/config.guess: update from prep.
90901
90902 2002-12-18  Bruno Haible  <bruno@clisp.org>
90903
90904         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90905         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90906
90907 2002-12-17  Bruno Haible  <bruno@clisp.org>
90908
90909         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90910         stdlib.h, string.h.
90911
90912 2002-12-17  Bruno Haible  <bruno@clisp.org>
90913
90914         * lib/canon-host.c (strdup): Remove unused declaration.
90915
90916         * lib/fsusage.c: Include full_read.h.
90917         (get_fs_usage): Use full_read instead of safe_read.
90918
90919         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90920
90921 2002-12-12  Karl Berry  <karl@gnu.org>
90922
90923         * config/config.guess: update from prep.
90924
90925 2002-12-11  Bruno Haible  <bruno@clisp.org>
90926
90927         * m4/setenv.m4: New file, from gettext-0.11.5.
90928
90929 2002-12-11  Bruno Haible  <bruno@clisp.org>
90930
90931         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90932         not unsetenv().
90933         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90934         modifications:
90935
90936         2002-12-11  Bruno Haible  <bruno@clisp.org>
90937
90938                 * setenv.c (alloca): Fall back to malloc.
90939                 (freea): New macro.
90940                 (setenv): Use freea() to free memory allocated with alloca().
90941
90942         2002-11-13  Bruno Haible  <bruno@clisp.org>
90943
90944                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90945                 function declarations.
90946                 * unsetenv.c (unsetenv): Likewise.
90947
90948         2002-03-04  Bruno Haible  <bruno@clisp.org>
90949
90950                 Portability to AIX 4.3.3.
90951                 * unsetenv.c: New file, extracted from setenv.c.
90952                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90953
90954         2001-12-20  Bruno Haible  <bruno@clisp.org>
90955
90956                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90957                 use malloc instead. For SunOS 4.
90958
90959         2001-12-11  Bruno Haible  <bruno@clisp.org>
90960
90961                 * setenv.c: Declare alloca.
90962                 (compar_fn_t): New typedef.
90963                 (KNOWN_VALUE, STORE_VALUE): Use it.
90964
90965         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90966         setenv.h.
90967
90968 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90969
90970         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90971         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90972         Choose values that are less likely to collide with system fnmatch
90973         options.
90974         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90975         defined (e.g., a pure POSIX system).
90976         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90977         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90978
90979 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90980
90981         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90982         a pain in practice to deal with generated m4 files.  This change
90983         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90984
90985         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90986         and jm-glibc-io.m4, as they are no longer a special case.
90987         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90988         kludge and the auto-generation stuff.  Check only whether the
90989         functions are declared, not whether they exist, since older hosts
90990         that don't declare the functions can't use the optimization anyway.
90991
90992 2002-12-06  Jim Meyering  <jim@meyering.net>
90993
90994         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90995
90996         Merge in changes from libc's misc/error.c, in preparation
90997         for the merge of gnulib's changes back into libc.
90998
90999         * lib/error.c (_): Define only if not already defined.
91000         Move definition to follow all #include directives.
91001         Include unlocked-io.h only if !_LIBC.
91002         [_LIBC]: Include <libio/libioP.h>.
91003         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91004         (fflush): Tweak definition to use INTUSE.
91005         (putc): Define.
91006
91007 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91008
91009         * lib/alloca.c [defined emacs]: Include "lisp.h".
91010         (xalloc_die) [defined emacs]: New macro.
91011         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91012         [! defined emacs]: Include <xalloc.h>.
91013         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91014         (pointer): Typedef to POINTER_TYPE *.
91015         (malloc): Remove decl; we now always use xmalloc.
91016         (alloca): Use old-style definition, since Emacs needs this.
91017         Check for arithmetic overflow when computing combined size.
91018
91019 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91020
91021         Do not generate unlocked-io.h automatically, since it's easier to
91022         maintain it by hand.
91023
91024         * lib/unlocked-io.h: New file, from GNU diffutils,
91025         but with proper copyright notice and attribution.
91026         * lib/gen-uio: Remove.
91027         * lib/Makefile.am: Add copyright notice.
91028         (libfetish_a_SOURCES): Add unlocked-io.h.
91029         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91030         (DISTCLEANFILES, io_functions): Remove macros.
91031         (EXTRA_DIST): Remove gen_uio.
91032         (unlocked-io.h): Remove rule.
91033
91034 2002-12-04  Jim Meyering  <jim@meyering.net>
91035
91036         Reflect the fact that stat.c and lstat.c are no longer generated.
91037         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91038         (DISTCLEANFILES): Likewise.
91039         (EXTRA_DIST): Likewise.
91040         (all_local): Don't depend on stat.c or lstat.c.
91041         (stat.c, lstat.c): Remove rules.
91042         (EXTRA_DIST): Remove xstat.in.
91043
91044         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91045         * lib/stat.c: New file.  Contents mostly from xstat.in.
91046         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91047         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91048
91049         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91050         too.
91051         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91052
91053 2002-12-03  Jim Meyering  <jim@meyering.net>
91054
91055         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91056         but not semantics, to minimize the differences between these two files.
91057         (safe_read): Change comment to mention SAFE_READ_ERROR.
91058
91059         * lib/safe-read.c (IS_EINTR): Define.
91060         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91061
91062 2002-12-02  Jim Meyering  <jim@meyering.net>
91063
91064         * lib/safe-read.c (EINTR): Define.
91065         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91066         (INT_MAX): Provide fallback.
91067         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91068
91069         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91070
91071 2002-12-02  Bruno Haible  <bruno@clisp.org>
91072
91073         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91074         Define, taken from safe-read.c.
91075         (INT_MAX): Provide fallback.
91076         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91077         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91078
91079         * lib/safe-read.c (EINTR): Remove definition.
91080         (safe_read): Don't use EINTR if it is absent.
91081
91082 2002-12-01  Jim Meyering  <jim@meyering.net>
91083
91084         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91085         zero.
91086         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91087
91088 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91089
91090         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91091         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91092         with `if (! (value < limit)) abort ();', for readability.
91093
91094 2002-11-26  Karl Berry  <karl@gnu.org>
91095
91096         * lib/strdup.c: copy from libc again, with jim's ok.
91097         * lib/.cppi-disable: re-add strdup.c
91098
91099 2002-11-25  Karl Berry  <karl@gnu.org>
91100
91101         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91102         instead of "strtol.c".
91103
91104 2002-11-25  Karl Berry  <karl@gnu.org>
91105
91106         * config/install-sh: update from automake for variable quoting, $0 in
91107         error msgs, etc.
91108
91109         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91110         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91111         entry.
91112
91113 2002-11-25  Jim Meyering  <jim@meyering.net>
91114
91115         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91116
91117 2002-11-24  Karl Berry  <karl@gnu.org>
91118
91119         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91120         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91121
91122 2002-11-24  Jim Meyering  <jim@meyering.net>
91123
91124         Update from coreutils:
91125
91126         * lib/mktime.c: Merge in changes from libc.
91127
91128         Avoid a link-time failure on some Linux systems.
91129         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91130         (otherwise).
91131         (__mon_yday): Declare with the STATIC attribute.
91132         (__mktime_internal): Likewise.
91133         Based on a report from Greg Schafer.
91134
91135 2002-11-23  Jim Meyering  <jim@meyering.net>
91136
91137         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91138         Use `unsigned', not `int', as type of index.
91139
91140         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91141
91142         * lib/fsusage.c: Remove unneeded parentheses around operands of
91143         `defined'.
91144
91145 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91146
91147         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91148         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91149         so that we can be included first.
91150         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91151         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91152         No need to include stddef.h or sys/types.h any more.
91153         Surround local include files with "", not "<>".
91154         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91155         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91156         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91157         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91158         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91159         (ISPRINT): Remove; no longer needed now that we assume C89.
91160
91161         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91162         Preserve errno.
91163
91164         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91165         quotearg_char): Use SIZE_MAX rather than
91166         (size_t) -1 when we are talking about "infinity".
91167
91168         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91169
91170 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91171
91172         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91173         hint that one should use `if (! x) abort ();' rather than `assert
91174         (x);', and anyway it's one less thing to worry about configuring.
91175         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91176         hash_rehash, hash_insert): Use abort rather than assert.
91177
91178 2002-11-22  Bruno Haible  <bruno@clisp.org>
91179
91180         * lib/safe-read.h: Assume C89. Add comments.
91181         (safe_read): Change return type to size_t.
91182         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91183         byte counts > SSIZE_MAX correctly.
91184         * lib/safe-write.h: New file.
91185         * lib/safe-write.c: New file.
91186         * lib/full-read.h: New file.
91187         * lib/full-read.c: New file.
91188         * lib/full-write.h: Assume C89. Add comments.
91189         * lib/full-write.c: Include safe-write.h.
91190         (full_write): Rewritten to use safe_write.
91191         Suggested by Jim Meyering and Paul Eggert.
91192
91193 2002-11-21  Jim Meyering  <jim@meyering.net>
91194
91195         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91196
91197         Merge in changes from the coreutils.
91198
91199         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91200         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91201         <stdint.h>.
91202         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91203         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91204         int.  Work more efficiently if X is the same width as uintmax_t.
91205         Do not compare X to -1, to avoid bogus compiler warning.
91206         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91207         Don't assume that f_frsize and f_bsize are the same type.
91208
91209         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91210         warning on FreeBSD.
91211
91212         * lib/makepath.c (make_path): Restore umask *before* creating the final
91213         component.
91214         (make_path): Minor reformatting.
91215
91216         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91217         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91218         HAVE_MALLOC/HAVE_REALLOC.
91219
91220         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91221         dummy ones.  At least on GNU/Linux systems, `auto' means something
91222         else.
91223         From Michael Stone.
91224
91225 2002-11-21  Bruno Haible  <bruno@clisp.org>
91226
91227         Remove case insensitive option matching.
91228         * lib/argmatch.h (argcasematch): Remove declaration.
91229         (ARGCASEMATCH): Remove macro.
91230         (__xargmatch_internal): Remove case_sensitive argument.
91231         (XARGMATCH): Update.
91232         (XARGCASEMATCH): Remove macro.
91233         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91234         case_sensitive argument.
91235         (argcasematch): Remove function.
91236         (__xargmatch_internal): Remove case_sensitive argument.
91237         (main): Use XARGMATCH instead of XARGCASEMATCH.
91238
91239         * lib/xmalloc.c: Change compile-time error message. Add comment about
91240         required autoconf version.
91241
91242 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91243
91244         Merge argmatch cleanups from Bison.  Assume C89.
91245
91246         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91247         Include stdlib.h, for EXIT_FAILURE.
91248         Always include <string.h>, since we assume C89.
91249         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91250         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91251         Include <stddef.h> instead, since it's all we need for size_t.
91252         (PARAMS): Remove.  All uses removed.
91253         (ARRAY_CARDINALITY): Do not bother to #undef.
91254         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91255         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91256         Remove unnecessary parentheses.
91257         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91258         Insert necessary parentheses.
91259         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91260         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91261
91262 2002-11-19  Bruno Haible  <bruno@clisp.org>
91263
91264         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91265         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91266
91267         * lib/mbswidth.h (PARAMS): Remove macro.
91268         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91269         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91270
91271         * lib/gcd.h (PARAMS): Remove macro.
91272         (gcd): Use ANSI C function declarations.
91273         * lib/gcd.c (gcd): Likewise.
91274
91275 2002-11-15  Bruno Haible  <bruno@clisp.org>
91276
91277         * lib/strcspn.c: Include <stddef.h>.
91278         (strcspn): Use ANSI C function declaration. Change return type to
91279         size_t. Use NULL.
91280         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91281         (strpbrk): Use NULL.
91282         * lib/strpbrk.h (PARAMS): Remove macro.
91283         (strpbrk): Use ANSI C function declaration.
91284         * lib/strstr.c: Don't include <sys/types.h>.
91285         * lib/strstr.h (PARAMS): Remove macro.
91286         (strstr): Use ANSI C function declarations.
91287
91288 2002-11-14  Karl Berry  <karl@gnu.org>
91289
91290         * config/mkinstalldirs: `do' on separate line, instead of
91291         `for var; do'.
91292
91293 2002-11-06  Bruno Haible  <bruno@clisp.org>
91294
91295         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91296         * lib/gcd.c (gcd): Likewise.
91297
91298 2002-11-05  Bruno Haible  <bruno@clisp.org>
91299
91300         * lib/gcd.h: New file, from gettext-0.11.5.
91301         * lib/gcd.c: New file, from gettext-0.11.5.
91302
91303 2002-11-05  Bruno Haible  <bruno@clisp.org>
91304
91305         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91306         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91307         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91308         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91309
91310         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91311         <libintl.h>.
91312         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91313         <libintl.h>.
91314
91315         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91316         * lib/human.c: Include gettext.h instead of <libintl.h>.
91317         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91318         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91319         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91320         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91321         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91322         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91323         (textdomain): Remove definition.
91324         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91325
91326         * lib/long-options.c: Remove include of <libintl.h> and definition of
91327         _.
91328         * lib/same.c: Remove include of <libintl.h> and definition of _.
91329
91330 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91331
91332         * lib/config.charset: A few additions for Solaris.
91333
91334 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91335
91336         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91337         * lib/localcharset.c (locale_charset): Declare as extern "C".
91338
91339 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91340
91341         * lib/config.charset: msdos in uk_UA uses CP1125.
91342
91343 2002-11-04  Bruno Haible  <bruno@clisp.org>
91344
91345         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91346         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91347         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91348         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91349         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91350
91351 2002-11-04  Bruno Haible  <bruno@clisp.org>
91352
91353         * lib/localcharset.c (locale_charset): Don't return an empty string.
91354
91355 2002-11-04  Bruno Haible  <bruno@clisp.org>
91356
91357         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91358         aliases.
91359
91360 2002-11-04  Bruno Haible  <bruno@clisp.org>
91361
91362         * lib/config.charset: Update for newest glibc. Add canonical names
91363         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91364
91365 2002-11-04  Bruno Haible  <bruno@clisp.org>
91366
91367         * lib/config.charset: Add support for NetBSD.
91368
91369 2002-11-04  Bruno Haible  <bruno@clisp.org>
91370
91371         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91372
91373 2002-11-01  Bruno Haible  <bruno@clisp.org>
91374
91375         * configure.in: Add AC_CONFIG_AUX_DIR call.
91376         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91377         test/Makefile.
91378         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91379
91380 2002-09-28  Karl Berry  <karl@gnu.org>
91381
91382         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91383         installed automake until the next release, since changes have been
91384         made.
91385
91386 2002-09-25  Karl Berry  <karl@gnu.org>
91387
91388         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91389         * lib/getopt*: copy from libc/posix.
91390         * lib/gettext.h: copy from gettext.
91391         * lib/.cppi-disable: add strdup.c, gettext.h.
91392
91393 2002-09-25  Karl Berry  <karl@gnu.org>
91394
91395         * config/srclist.txt: enable gettext.h check.
91396         * config/config.{guess,sub}: update from prep.
91397         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91398                 from automake 1.6.3.
91399         See srclist*.
91400
91401 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91402
91403         * regex.c (PATFETCH): Remove the translating fetch.
91404         (PATFETCH_RAW): Rename to PATFETCH.
91405         (set_image_of_range): New fun.
91406         (SET_RANGE_TABLE_WORK_AREA): Use it.
91407         (regex_compile): Don't translate the pattern chars so eagerly.
91408         Only do it when inserting an `exactn' bytecode or when handling
91409         a char-range.
91410         (mutually_exclusive_p): Avoid empty statement.
91411
91412 2002-07-06  Jim Meyering  <meyering@lucent.com>
91413
91414         * m4/README: Don't mention Makefile.am.in.
91415         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91416
91417 2002-07-01  Jim Meyering  <meyering@lucent.com>
91418
91419         * lib/c-stack.c: Include sys/time.h.
91420         From Volker Borchert.
91421
91422 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91423
91424         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91425
91426 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91427
91428         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91429         New macro.  Use it uniformly instead of
91430         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91431         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91432         reported by Vin Shelton.
91433
91434 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91435
91436         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91437         Do not assume SA_SIGINFO behavior.
91438         Bug reported by Jim Meyering on NetBSD 1.5.2.
91439
91440 2002-06-22  Jim Meyering  <meyering@lucent.com>
91441
91442         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91443         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91444
91445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91446         now that configure.ac uses AC_GNU_SOURCE.
91447         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91448         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91449
91450         Update to latest tools.  Suggestions from Paul Eggert.
91451         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91452         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91453         * m4/fnmatch.m4: Likewise.
91454         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91455         to AC_HEADER_STDBOOL
91456
91457 2002-06-22  Jim Meyering  <meyering@lucent.com>
91458
91459         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91460         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91461
91462 2002-06-22  Jim Meyering  <meyering@lucent.com>
91463
91464         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91465
91466         * lib/exitfail.c, exitfail.h: Likewise.
91467         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91468
91469         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91470         of fnmatch.h.
91471         (EXTRA_DIST): Add fnmatch_loop.c.
91472         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91473
91474         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91475         * lib/fnmatch.c: Update from diffutils-2.8.2.
91476         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91477         * lib/fnmatch.h: Remove file.
91478
91479 2002-06-21  Jim Meyering  <meyering@lucent.com>
91480
91481         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91482         * m4/mbrtowc.m4: Likewise.
91483
91484         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91485         * m4/mbswidth.m4: Reflect name change:
91486         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91487         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91488
91489         * m4/lib-link.m4: Update from gettext-0.11.2.
91490         * m4/gettext.m4: Likewise.
91491
91492         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91493         From Alfred M. Szmidt.
91494
91495 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91496
91497         * lib/file-type.h: Report an error if neither S_ISREG nor
91498         S_IFREG is defined, instead of using a test specific to glibc
91499         2.2.  This should be safe, since POSIX requires S_ISREG and
91500         Unix Version 7 had S_IFREG.  We don't need to check for
91501         <sys/types.h> since we don't use any symbols that it defines.
91502
91503 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91504
91505         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91506         $@-t, so that each temporary file name is unique and valid in the first
91507         8 characters, for operation under DOS.
91508
91509 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91510
91511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91512
91513 2002-06-15  Jim Meyering  <meyering@lucent.com>
91514
91515         Work even with DJGPP 2.03, which lacks support for symlinks.
91516         From Richard Dawe.
91517         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91518         is defined.
91519         * lib/lchown.c (S_ISLNK): Likewise.
91520
91521 2002-06-15  Jim Meyering  <meyering@lucent.com>
91522
91523         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91524         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91525         have been included before this file.
91526
91527 2002-06-14  Jim Meyering  <meyering@lucent.com>
91528
91529         * lib/file-type.h: Use the version from diffutils-2.8.2.
91530         * lib/file-type.c: Likewise.
91531
91532 2002-06-07  Jim Meyering  <meyering@lucent.com>
91533
91534         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91535         They're needed at least for NetBSD 1.5.2.
91536         ($statxfs_includes): Include those same headers.
91537         ($statxfs_includes): Include sys/vfs.h if available.
91538         ($statxfs_includes): Likewise for sys/statvfs.h.
91539         Check for the following members in both structs statfs and statvfs:
91540         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91541
91542 2002-06-01  Jim Meyering  <meyering@lucent.com>
91543
91544         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91545         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91546
91547 2002-05-28  Jim Meyering  <meyering@lucent.com>
91548
91549         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91550         Reported by Volker Borchert.
91551
91552 2002-05-27  Jim Meyering  <meyering@lucent.com>
91553
91554         Fix a problem seen only on nonconforming systems whereby ls.c's
91555         use of localtime, and then of gettimeofday would cause trouble:
91556         the localtime call used to initialize rpl_gettimeofday's save
91557         mechanism would clobber ls's current local time information so
91558         that in any long listing the first file would always be listed
91559         with date 1970-01-01.  Analysis by Volker Borchert.
91560
91561         * lib/gettimeofday.c (localtime): Undefine.
91562         (rpl_localtime): New function.
91563
91564 2002-05-27  Jim Meyering  <meyering@lucent.com>
91565
91566         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91567         localtime.
91568
91569         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91570         use the replacement function; it wouldn't resolve at link time.
91571         Reported by Volker Borchert.
91572
91573 2002-05-22  Jim Meyering  <meyering@lucent.com>
91574
91575         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91576         file-type.h.
91577         * lib/file-type.h: New file.
91578         * lib/file-type.c (file_type): New file/function.  Extracted from
91579         diffutils.
91580
91581 2002-04-30  Jim Meyering  <meyering@lucent.com>
91582
91583         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91584
91585 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91586
91587         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91588
91589 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91590
91591         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91592         Do not check for alloca.h (no longer used) or stdbool.h (was never
91593         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91594
91595 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91596
91597         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91598
91599 2002-04-29  Jim Meyering  <meyering@lucent.com>
91600
91601         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91602         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91603         Use AC_FUNC_STRNLEN here instead.
91604
91605         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91606         With autoconf-2.53a, it's part of AC_PROG_CC.
91607
91608 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91609
91610         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91612
91613 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91614
91615         * lib/sig2str.h, lib/sig2str.c: New files.
91616         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91617
91618 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91619
91620         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91621         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91622         of 127, since 64 is the largest conceivable number for ancient
91623         nonstandard hosts.
91624         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91625
91626 2002-04-28  Jim Meyering  <meyering@lucent.com>
91627
91628         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91629
91630 2002-04-24  Jim Meyering  <meyering@lucent.com>
91631
91632         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91633         (jm_PREREQ): Use it.
91634
91635         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91636         mach/mach.h fcntl.h.
91637         Check for this function: setlocale.
91638
91639 2002-04-24  Jim Meyering  <meyering@lucent.com>
91640
91641         * lib/gettext.h: New file, from Gettext.
91642         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91643         (libfetish_a_SOURCES): Add gettext.h.
91644
91645 2002-04-16  Jim Meyering  <meyering@lucent.com>
91646
91647         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91648         ut_pid, ut_id, ut_exit.
91649
91650 2002-04-16  Jim Meyering  <meyering@lucent.com>
91651
91652         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91653         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91654         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91655
91656 2002-04-12  Jim Meyering  <meyering@lucent.com>
91657
91658         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91659         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91660         existence of the getmntinfo function.  Needed for Darwin 5.3.
91661
91662         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91663         This is necessary at least on Darwin 5.3.
91664
91665         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91666         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91667         strnlen.o in the library, and that makes some versions of ranlib
91668         object.
91669
91670 2002-04-12  Jim Meyering  <meyering@lucent.com>
91671
91672         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91673
91674 2002-04-09  Jim Meyering  <meyering@lucent.com>
91675
91676         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91677         to be more precise.  Rather than saying we're checking whether the
91678         function `works', say what we're testing.
91679         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91680         Reported by Bruno Haible.
91681
91682 2002-03-10  Jim Meyering  <meyering@lucent.com>
91683
91684         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91685         Suggestion from Santiago Vila.
91686
91687 2002-03-08  Jim Meyering  <meyering@lucent.com>
91688
91689         * lib/rename.c: Mention that this wrapper is needed also on
91690         mips-dec-ultrix4.4 systems.
91691
91692 2002-03-02  Jim Meyering  <meyering@lucent.com>
91693
91694         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91695         not HAVE_CLOCK_SETTIME.
91696
91697 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91698
91699         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91700         Check for clock_settime.
91701
91702 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91703
91704         * lib/nanosleep.h: Rename to....
91705         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91706
91707         * lib/gettime.c: New file.
91708         * lib/settime.c: New file.
91709         * lib/stime.c: Remove.
91710
91711         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91712         timespec.h.  Remove nanosleep.h.
91713
91714 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91715
91716         * m4/acl.m4: New file.
91717         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91718         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91719
91720 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91721
91722         * lib/acl.c, lib/acl.h: New files.
91723         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91724
91725 2002-02-24  Jim Meyering  <meyering@lucent.com>
91726
91727         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91728         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91729         cause trouble.  Reported by Nelson Beebe.
91730
91731 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91732
91733         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91734         compilers that don't know that xalloc_die never returns.
91735
91736 2002-02-20  Jim Meyering  <meyering@lucent.com>
91737
91738         * lib/getdate.c: Regenerate using bison-1.33.
91739
91740 2002-02-17  Jim Meyering  <meyering@lucent.com>
91741
91742         * config/config.guess (main): Don't use `head -1'; it's no longer
91743         portable. Use `sed 1q' instead.
91744
91745 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91746
91747         * m4/codeset.m4: Upgrade to gettext-0.11.
91748         * m4/gettext.m4: Upgrade to gettext-0.11.
91749         * m4/glibc21.m4: Upgrade to gettext-0.11.
91750         * m4/iconv.m4: Upgrade to gettext-0.11.
91751         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91752         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91753         * m4/lib-ld.m4: New file, from gettext-0.11.
91754         * m4/lib-link.m4: New file, from gettext-0.11.
91755         * m4/lib-prefix.m4: New file, from gettext-0.11.
91756         * m4/progtest.m4: Upgrade to gettext-0.11.
91757
91758 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91759
91760         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91761         (jm_PREREQ): Use it.
91762
91763 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91764
91765         * lib/posixver.c, lib/posixver.h: New files.
91766         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91767
91768 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91769             Bruno Haible  <bruno@clisp.org>
91770
91771         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91772         (fwrite_success_callback): New declaration.
91773         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91774         print_unicode_char. Call failure callback instead of error.
91775         (fwrite_success_callback): New function.
91776         (exit_failure_callback): New function.
91777         (fallback_failure_callback): New function.
91778         (print_unicode_char): Call unicode_to_mb.
91779
91780 2002-01-26  Jim Meyering  <meyering@lucent.com>
91781
91782         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91783         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91784
91785 2002-01-26  Jim Meyering  <meyering@lucent.com>
91786
91787         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91788
91789 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91790
91791         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91792
91793 2002-01-22  Jim Meyering  <meyering@lucent.com>
91794
91795         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91796         Otherwise, some versions of automake would omit the rule that makes
91797         Makefile from Makefile.in.
91798
91799 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91800
91801         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91802         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91803         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91804         (memcoll): Set errno to zero if there is no error.
91805
91806         * lib/quotearg.c (quotearg_buffer_restyled):
91807         Fix bug with quoting buffers containing NUL when backslashing escapes.
91808         This bug was exposed by the other changes in this patch.
91809         (quotearg_n_options): New arg ARGSIZE.
91810         All callers changed.
91811         (quoting_options_from_style): New function.
91812         (quotearg_n_style): Use it.
91813         (quotearg_n_style_mem): New function.
91814
91815         * lib/quotearg.h (quotearg_n_style_mem): New function.
91816
91817 2002-01-19  Jim Meyering  <meyering@lucent.com>
91818
91819         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91820         Remove useless quotes: DF_PROG="df".
91821         * m4/strnlen.m4: New file.
91822
91823 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91824
91825         * lib/backupfile.c (ISDIGIT): Comment fix.
91826         * lib/getdate.y (ISDIGIT): Likewise.
91827         * lib/posixtm.c (ISDIGIT, year): Likewise.
91828         * lib/strverscmp.c (ISDIGIT): Likewise.
91829         * lib/userspec.c (ISDIGIT): Likewise.
91830
91831 2002-01-16  Jim Meyering  <meyering@lucent.com>
91832
91833         * lib/getdate.y: Add three semicolons, each just before a closing
91834         brace. Bison (as of version 1.31) no longer papers over that mistake.
91835
91836 2002-01-05  Jim Meyering  <meyering@lucent.com>
91837
91838         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91839
91840 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91841
91842         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91843         not silently exit merely because the output buffer happens to
91844         have nothing pending.
91845
91846 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91847
91848         See the big note in ../ChangeLog.
91849         * lib/human.c (suffixes): Prefer K to k for 1024.
91850         (generate_suffix_backwards): New function.
91851         (human_readable_inexact): Use it.
91852         * lib/xstrtol.c (__xstrtol): If there is no number but there
91853         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91854         Accept 'K' as well as 'k'.
91855
91856 2001-12-15  Jim Meyering  <meyering@lucent.com>
91857
91858         * lib/regex.h (__restrict_arr): Update from libc.
91859
91860         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91861         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91862         (STREQ): Define.
91863
91864 2001-12-14  Jim Meyering  <meyering@lucent.com>
91865
91866         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91867         Suggestion from Bruno Haible.
91868
91869 2001-12-10  Jim Meyering  <meyering@lucent.com>
91870
91871         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91872         xrealloc, Instead, include "xalloc.h".
91873         (initbuffer): Don't cast xmalloc return value to char*.
91874         (readline): Reword comment.
91875         Don't cast xrealloc return value to char*
91876         Return NULL, not 0.
91877
91878 2001-12-09  Jim Meyering  <meyering@lucent.com>
91879
91880         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91881         about `signed and unsigned type in conditional expression'.
91882         * lib/posixtm.c (posix_time_parse): Likewise.
91883
91884         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91885
91886         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91887         to avoid a pedantic warning.
91888
91889         * lib/getstr.c: Don't include assert.h.
91890         (getstr): Remove warning-evoking assertions.
91891         Return -1 if offset parameter is out of bounds.
91892         Change the type of a local from int to size_t.
91893
91894         * lib/strftime.c (my_strftime_localtime_r): Include this function
91895         definition in the `#if ! HAVE_TM_GMTOFF' block.
91896
91897         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91898         Include xalloc.h instead.
91899
91900 2001-12-02  Jim Meyering  <meyering@lucent.com>
91901
91902         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91903         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91904         included.
91905
91906         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91907         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91908
91909 2001-11-30  Akim Demaille  <akim@epita.fr>
91910
91911         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91912         before being defined.
91913
91914 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91915
91916         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91917         First arg is int, not unsigned.
91918         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91919         (SIZE_MAX, UINT_MAX): New macros.
91920         (quotearg_n_options): Abort if N is negative.
91921         Avoid overflow check on hosts where size_t is 64 bits and int
91922         is 32 bits, as overflow is impossible there.
91923         Fix off-by-one typo that caused unnecessary reallocation.
91924
91925 2001-11-27  Jim Meyering  <meyering@lucent.com>
91926
91927         * lib/tempname.c: Merge with version from libc.
91928         * lib/regex.c: Likewise.
91929
91930         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91931         systems for which STDC_HEADERS is 0, it was not included, resulting in
91932         a warning about an integer-to-pointer conversion problem with getenv.
91933         Reported by Volker Borchert.
91934
91935 2001-11-26  Jim Meyering  <meyering@lucent.com>
91936
91937         * lib/gtod.h: Remove file.
91938         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91939         * lib/gettimeofday.c: Don't include gtod.h.
91940         (GTOD_init): Remove function.
91941         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91942         Suggestion from Volker Borchert.
91943
91944 2001-11-23  Jim Meyering  <meyering@lucent.com>
91945
91946         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91947         it.
91948         * lib/hash.c (struct hash_table): Define it here instead.
91949
91950 2001-11-22  Jim Meyering  <meyering@lucent.com>
91951
91952         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91953
91954 2001-11-20  Jim Meyering  <meyering@lucent.com>
91955
91956         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91957         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91958
91959 2001-11-19  Jim Meyering  <meyering@lucent.com>
91960
91961         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91962         directory.  Use "conftestXXXXXX" as the template.
91963         Suggestion from Paul Eggert.
91964
91965         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91966         immediately, so the test doesn't mistakenly hit the max-open-files
91967         limit.
91968
91969 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91970
91971         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91972         (TEMPORARIES): New macro.
91973         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91974         removes an artificial limitation (e.g. HP-UX 10.20, where
91975         TMP_MAX is 17576).
91976
91977 2001-11-18  Jim Meyering  <meyering@lucent.com>
91978
91979         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91980
91981 2001-11-18  Jim Meyering  <meyering@lucent.com>
91982
91983         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91984         on SunOS 4.
91985
91986         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91987         files will be created before anything else.
91988
91989 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91990
91991         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91992         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91993
91994 2001-11-17  Jim Meyering  <meyering@lucent.com>
91995
91996         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91997         Prompted by a report from Bob Proulx.
91998
91999         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92000         Instead, require UTILS_FUNC_MKSTEMP.
92001
92002 2001-11-17  Jim Meyering  <meyering@lucent.com>
92003
92004         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92005         Now, that's done as part of AC_FUNC_STRTOD.
92006
92007 2001-11-17  Jim Meyering  <meyering@lucent.com>
92008
92009         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92010         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92011         rather than group writable.  Patch by Juan F. Codagnone.
92012
92013         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92014         xrealloc, Instead, include "xalloc.h".
92015
92016         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92017         Remove explicit declarations of xmalloc, xrealloc,
92018         and xstrdup.  Instead, include "xalloc.h".
92019
92020         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92021         unlocked-io.h.
92022         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92023         Likewise.
92024         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92025
92026         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92027         Reported by Padraig Brady.
92028
92029         * lib/mkstemp.c: #undef mkstemp.
92030         Include config.h.
92031         (rpl_mkstemp): Rename from mkstemp.
92032         Protoize.
92033
92034 2001-11-16  Jim Meyering  <meyering@lucent.com>
92035
92036         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92037         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92038         determine the amount of total physical memory, use pstat_getstatic.
92039         HPUX-11 doesn't define _SC_PHYS_PAGES.
92040         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92041         If sysconf couldn't be used to determine the amount of available
92042         physical memory, use both pstat_getstatic and pstat_getdynamic.
92043         Based on a patch from Bob Proulx.
92044
92045 2001-11-10  Jim Meyering  <meyering@lucent.com>
92046
92047         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92048         (jm_PREREQ): Use it.
92049
92050 2001-11-09  Jim Meyering  <meyering@lucent.com>
92051
92052         * m4/jm-macros.m4: Require autoconf-2.52f.
92053         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92054         Use these AC_-prefixed names, not the AM_-prefixed ones.
92055
92056         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92057
92058 2001-11-05  Jim Meyering  <meyering@lucent.com>
92059
92060         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92061
92062 2001-11-04  Jim Meyering  <meyering@lucent.com>
92063
92064         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92065         $DEFS.
92066
92067 2001-11-03  Jim Meyering  <meyering@lucent.com>
92068
92069         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92070         of AC_DEFUN.
92071
92072         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92073         know the name of the variable in the macro definition.
92074
92075 2001-11-03  Jim Meyering  <meyering@lucent.com>
92076
92077         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92078         in argmatch_to_argument call.
92079
92080         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92081         argument.
92082
92083         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92084         e.g., a fault due to an attempt to free a NULL pointer.
92085
92086 2001-11-01  Jim Meyering  <meyering@lucent.com>
92087
92088         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92089         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92090
92091 2001-11-01  Jim Meyering  <meyering@lucent.com>
92092
92093         * lib/dirfd.c, lib/dirfd.h: New files.
92094         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92095
92096         * lib/hash.c (hash_print) [TESTING]: Clean up.
92097
92098 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92099
92100         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92101         to avoid a warning if -Wall.
92102
92103 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92104
92105         * README: New file
92106         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92107         (per RMS's instructions, this is now the canonical source)
92108         * lgpl/, gpl/: New directories.
92109
92110 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92111
92112         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92113
92114 2001-10-21  Jim Meyering  <meyering@lucent.com>
92115
92116         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92117         this code would end up calling gettext even in packages built
92118         with --disable-nls.
92119         * lib/getopt.c (_): Likewise.
92120         * lib/regex.c (_): Likewise.
92121
92122 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92123
92124         * m4/error.m4 (jm_PREREQ_ERROR):
92125         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92126         AC_FUNC_STRERROR_R does that.
92127         Check for strerror declaration.
92128
92129         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92130         are supposed to have them these days.
92131         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92132         Merge changes from latest Autoconf CVS.
92133         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92134         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92135         POSIX decided to standardize on the int flavor of strerror_r.
92136
92137 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92138
92139         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92140         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92141         Use strerror_r that is only a macro, even if it is not a function.
92142         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92143         (private_strerror): Use prototypes, not old-style function definition.
92144         (print_errno_message): New function.
92145         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92146         char*-flavored one.
92147         (error_tail, error, error_at_line): Use it.
92148
92149 2001-10-11  Jim Meyering  <meyering@lucent.com>
92150
92151         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92152         and quote_n (1, ... to avoid clobbering a buffer.
92153
92154 2001-10-05  Jim Meyering  <meyering@lucent.com>
92155
92156         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92157         hash-pjw.h.
92158         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92159         * lib/hash-pjw.h: New file.
92160
92161 2001-09-30  Jim Meyering  <meyering@lucent.com>
92162
92163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92164         `struct fsstat' has the `f_fstypename' member.
92165         Use that to define FS_TYPE, which is now used to make
92166         the getfsstat link test tighter.
92167
92168 2001-09-30  Jim Meyering  <meyering@lucent.com>
92169
92170         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92171         Include <sys/ucred.h>, for Apple Darwin.
92172         Include sys/mount.h and sys/fs_types.h only if available.
92173         (FS_TYPE): Define.
92174         (read_filesystem_list): Use FS_TYPE.
92175
92176 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92177
92178         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92179         a boolean context.
92180
92181 2001-09-29  Jim Meyering  <meyering@lucent.com>
92182
92183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92184         [one-argument getmntent function]): Include stdio.h before mntent.h.
92185         SunOS 4.1.x needs it for the declaration of `FILE'.
92186         Patch by Volker Borchert.
92187
92188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92189         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92190         sys/fs_types.h, and make the link-test for getfsstat guard #include
92191         directives with appropriate #if HAVE_*_H tests so that we can
92192         detect getfsstat on Apple Darwin1.3.7 systems.
92193         Reported by Nelson Beebe.
92194         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92195
92196 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92197
92198         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92199         #defines strtoimax.  Also treat the other strto* functions
92200         like strtoimax.
92201
92202         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92203         Check for strtoul and strtoumax,
92204         as those declarations are made even in the signed case.
92205         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92206         Likewise, for strtol and strtoimax.
92207
92208 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92209
92210         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92211         #defines strtoimax.  Also treat the other strto* functions
92212         like strtoimax.
92213
92214         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92215         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92216         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92217
92218 2001-09-26  Jim Meyering  <meyering@lucent.com>
92219
92220         Most macros in unlocked-io.h had the wrong number of arguments.
92221         * lib/gen-uio: New script.
92222         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92223         * lib/unlocked-io.hin: Remove file.
92224         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92225         rather than trying to embed it here.
92226         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92227         Reported by Padraig Brady.
92228
92229 2001-09-25  Volker Borchert  <bt@teknon.de>
92230
92231         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92232         `result'.
92233
92234 2001-09-24  Jim Meyering  <meyering@lucent.com>
92235
92236         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92237
92238 2001-09-23  Jim Meyering  <meyering@lucent.com>
92239
92240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92241         instead of the mere test for existence of mntent.h.  The latter
92242         would get a false-positive on AIX 3.4 systems.
92243         In the outer getmntent if-block, don't die if neither of the getmntent
92244         tests succeeds.  Instead, just fall through and continue with the
92245         remaining tests.
92246
92247 2001-09-23  Jim Meyering  <meyering@lucent.com>
92248
92249         * lib/mountlist.c: Remove useless parentheses in #if directives.
92250         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92251         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92252
92253 2001-09-22  Jim Meyering  <meyering@lucent.com>
92254
92255         * m4/gettext.m4: New file.  From gettext.
92256         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92257         * m4/progtest.m4: Likewise
92258         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92259         * m4/glibc21.m4: Likewise.
92260
92261         * m4/libintl.m4: Remove.  No longer used.
92262
92263 2001-09-22  Jim Meyering  <meyering@lucent.com>
92264
92265         * lib/localcharset.c: Update from latest gettext.
92266         * lib/config.charset: Likewise.
92267
92268 2001-09-20  Jim Meyering  <meyering@lucent.com>
92269
92270         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92271         strtoimax.
92272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92273         strtoumax.
92274
92275 2001-09-20  Jim Meyering  <meyering@lucent.com>
92276
92277         * lib/xstrtol.c (strtoimax): Guard declaration with
92278         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92279         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92280         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92281         (strtoumax): Likewise, for completeness (it wasn't necessary).
92282
92283 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92284
92285         * lib/strtoimax.c (HAVE_LONG_LONG):
92286         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92287         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92288         to work around bug in IBM C compiler.
92289
92290 2001-09-17  Jim Meyering  <meyering@lucent.com>
92291
92292         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92293         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92294         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92295         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92296         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92297         whenever the right hand side need not be expanded by the shell.
92298
92299 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92300
92301         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92302         library.  It's not correct, as some older glibcs are buggy.
92303         fnmatch wasn't fixed until glibc 2.2.
92304
92305         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92306         special shell magic here.
92307
92308 2001-09-16  Jim Meyering  <meyering@lucent.com>
92309
92310         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92311         * m4/jm-macros.m4: Require it.
92312
92313 2001-09-16  Jim Meyering  <meyering@lucent.com>
92314
92315         * lib/mkdir.c: New file.
92316
92317 2001-09-15  Jim Meyering  <meyering@lucent.com>
92318
92319         * m4/jm-macros.m4: Check for help2man.
92320
92321 2001-09-11  Jim Meyering  <meyering@lucent.com>
92322
92323         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92324         The body, by Paul Eggert, was moved here from configure.in.
92325         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92326
92327 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92328
92329         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92330         (jm_PREREQ): Use it.
92331
92332 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92333
92334         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92335         Use ssize_t, not int, to store result of readlink.
92336         Check for ssize_t overflow as well as size_t overflow,
92337         as POSIX says the result of readlink is implementation-defined
92338         when ssize_t overflows.
92339         Remove unnecessary cast to char*.
92340         Use free+malloc instead of realloc, as the storage doesn't need
92341         to be preserved and it's clearer and can be more efficient that way.
92342         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92343         * lib/xreadlink.h (xreadlink): Update prototype.
92344
92345 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92346
92347         * lib/xgetcwd.c: Revert some of the previous change; intead,
92348         fix the HAVE_GETCWD_NULL code to behave more like the
92349         !HAVE_GETCWD_NULL code used to.
92350
92351         Include "xalloc.h".
92352         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92353         invoke xalloc_die.
92354
92355 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92356
92357         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92358         sys/param.h, as pathmax.h includes them.
92359
92360 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92361
92362         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92363         (jm_PREREQ_XGETCWD): New macro.
92364
92365         * m4/getcwd.m4: New file.
92366
92367 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92368
92369         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92370         like the HAVE_GETCWD_NULL code.
92371         Include pathmax.h if not HAVE_GETCWD.
92372         Do not include xalloc.h.
92373         (INITIAL_BUFFER_SIZE): New symbol.
92374         Do not use xmalloc / xrealloc, since the caller is responsible for
92375         handling errors.  Preserve errno around `free' during failure.
92376         Do not overrun buffer when using getwd.
92377
92378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92379
92380         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92381         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92382         getcwd (NULL, 0).
92383
92384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92385
92386         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92387         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92388         spotted by Jim Meyering.
92389
92390 2001-09-03  Jim Meyering  <meyering@lucent.com>
92391
92392         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92393         failure.
92394
92395 2001-09-02  Jim Meyering  <meyering@lucent.com>
92396
92397         * lib/error.c: Update from GNU libc.
92398
92399 2001-09-01  Jim Meyering  <meyering@lucent.com>
92400
92401         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92402         Used by df.
92403
92404 2001-09-01  Jim Meyering  <meyering@lucent.com>
92405
92406         * lib/xreadlink.c: New file.
92407         * lib/xreadlink.h: New file.
92408         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92409         xreadlink.h.
92410
92411         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92412         doesn't conflict with sparc Solaris 7's definition in
92413         /usr/include/sys/int_types.h.
92414
92415         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92416         files.
92417         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92418         and strncasecmp as r-values.  Unixware didn't have declarations.
92419
92420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92421
92422         * lib/xstrtol.h: Add copyright notice.
92423         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92424         LONGINT_INVALID_SUFFIX_CHAR.
92425
92426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92427
92428         * lib/xstrtol.c (strtoimax): New decl.
92429
92430 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92431
92432         * lib/xgetcwd.c: Don't include pathmax.h.
92433         Include stdlib.h and unistd.h if available.
92434         Include xalloc.h.
92435         (xmalloc, xstrdup, free): Remove decls.
92436         (xgetcwd): Don't assume sizes fit in unsigned.
92437         Check for overflow when computing sizes.
92438         Simplify reallocation code.
92439
92440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92441
92442         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92443         a directory's st_size can have an arbitrary value, so the old
92444         usage could waste an arbitrary amount of memory.  All uses
92445         changed.
92446         * lib/savedir.h: Update prototype.
92447
92448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92449
92450         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92451
92452         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92453         old strtoimax.c.
92454
92455         Also, make the following further changes to make this file's
92456         configuration more similar to that of strtol.c:
92457         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92458         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92459         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92460         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92461         changed to signed values.
92462
92463         And make the following changes as well:
92464         Fix copyright notice, as 1999 was missing.
92465         (verify): New macro.
92466         (strtoimax): Check sizes at compile-time, not run-time.
92467         Prefer strtol to strtoll if both work.
92468         (main): Remove; it was not that useful and was a pain to maintain.
92469
92470         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92471
92472 2001-08-31  Jim Meyering  <meyering@lucent.com>
92473
92474         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92475         Use an initial, malloc'd, buffer of length 128 rather than
92476         a statically allocated one of length 1024.
92477
92478 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92479
92480         Simplify code, partly by assuming autoconf 2.52 semantics.
92481
92482         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92483
92484         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92485         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92486         All uses removed.
92487         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92488         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92489         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92490         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92491         jm_AC_HEADER_INTTYPES_H.
92492         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92493
92494         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92495
92496         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92497         Quote first arg of AC_DEFUN.
92498         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92499         since they are needed to parse the include file even if we need
92500         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92502         but with opposite signedness.
92503
92504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92505
92506         Merge 'exclude' changes from tar 1.13.22.
92507         This fixes one or two unlikely storage allocation overflow bugs,
92508         but doesn't change user-visible behavior otherwise.
92509
92510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92511
92512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92513         (jm_PREREQ_EXCLUDE): New macro.
92514
92515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92516
92517         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92518         tm to be declared.
92519
92520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92521
92522         * lib/hash.c: Remove '2001' from copyright notice.
92523
92524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92525
92526         * lib/full-write.h: New file.
92527         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92528         * lib/full-write.c: Correct credits, as cccp.c no longer
92529         exists and anyway it was so heavily changed from the old cccp
92530         code as to be unrecognizable.  Include full-write.h.
92531         (full_write): Return size_t, with short writes meaning failure.
92532         All callers changed.  This fixes a bug with large buffers
92533         on 64-bit hosts.
92534         * lib/utime.c: Include full-write.h.
92535
92536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92537
92538         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92539         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92540         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92541         Include if available.
92542         (<xalloc.h>): Include
92543         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92544         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92545         collide with FNM macros.
92546         (struct patopts): New struct.
92547         (struct exclude): Use it, as exclude patterns now come with options.
92548         (new_exclude): Support above changes.
92549         (new_exclude, add_exclude_file):
92550         Initial size must now be a power of two to simplify overflow checking.
92551         (free_exclude, fnmatch_no_wildcards): New function.
92552         (excluded_filename): No longer requires options arg, as the options
92553         are determined by add_exclude.  Now returns bool, not int.
92554         (excluded_filename, add_exclude):
92555         Add support for the fancy new exclusion options.
92556         (add_exclude, add_exclude_file): Now takes int options arg.
92557         Check for arithmetic overflow when computing sizes.
92558         (add_exclude_file): xrealloc might modify errno, so don't
92559         realloc until after errno might be used.
92560
92561         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92562         New macros.
92563         (free_exclude): New decl.
92564         (add_exclude, add_exclude_file): Now takes int options arg.
92565         (excluded_filename): No longer requires options arg, as the options
92566         are determined by add_exclude.  Now returns bool, not int.
92567
92568 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92569
92570         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92571
92572 2001-08-27  Jim Meyering  <meyering@lucent.com>
92573
92574         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92575
92576         * lib/version-etc.c (N_): Remove definition.
92577         Revert most of last change.
92578         Instead, simply don't mark the `Copyright...' string for translation.
92579         Based on advice from Paul Eggert.
92580
92581         * lib/strtoxmax.c: Tweak comment.
92582
92583 2001-08-26  Jim Meyering  <meyering@lucent.com>
92584
92585         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92586
92587         * m4/xstrtoimax.m4: New file.
92588         * m4/xstrtoumax.m4: Add comments explaining why we
92589         AC_REPLACE_FUNCS(strtol).
92590
92591 2001-08-26  Jim Meyering  <meyering@lucent.com>
92592
92593         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92594         of copyright with `%s' so translators don't get an untranslated
92595         message in 2002.
92596         (COPYRIGHT_YEAR): Define.
92597         (version_etc): Use fprintf rather than fputs.
92598         Suggestion from Ulrich Drepper.
92599
92600         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92601
92602         * lib/strtoll.c: New file, from GNU libc.
92603         * lib/xstrtoimax.c: New file.
92604
92605         * lib/xstrtol.h: Add xstrtoimax.
92606         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92607         * lib/strtoimax.c: New file.  Likewise, but first define
92608         STRTOUXMAX_SIGNED.
92609
92610         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92611         ...
92612         * lib/strtoxmax.c: ... then renamed to this.
92613
92614 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92615
92616         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92617         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92618         (jm_AC_TYPE_INTMAX_T): New macro.
92619         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92620
92621         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92622
92623         * m4/longlong.m4: Renamed from ulonglong.m4.
92624         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92625         * m4/uintmax_t.m4: Removed.
92626
92627 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92628
92629         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92630         Port to Solaris 8, where 'sed' requires a space after the 'r'
92631         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92632         Redirect output to $tmp just once.
92633
92634 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92635
92636         * lib/addext.c (<errno.h>): Include.
92637         (errno): Declare if not defined.
92638         (addext): Work correctly when pathconf returns -1 and leaves
92639         errno alone because there is no limit.  Also, work even if
92640         pathconf returns a value greater than SIZE_MAX.
92641
92642 2001-08-12  Jim Meyering  <meyering@lucent.com>
92643
92644         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92645         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92646         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92647         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92648         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92649         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92650         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92651         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92652         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92653         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92654         utime.m4, utimes.m4, xstrtoumax.m4:
92655         Quote the first argument in each use of AC_DEFUN.
92656
92657 2001-08-12  Jim Meyering  <meyering@lucent.com>
92658
92659         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92660         Simply `return getcwd (NULL, 0);'.
92661         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92662         Use 1300 as initial value for length, not PATH_MAX.
92663
92664         * lib/pathmax.h: Clean up cpp syntax.
92665
92666 2001-08-12  Jim Meyering  <meyering@lucent.com>
92667
92668         * lib/gettimeofday.c: New file.
92669         * lib/gtod.h: New file.
92670         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92671
92672 2001-08-05  Jim Meyering  <meyering@lucent.com>
92673
92674         * m4/jm-macros.m4: Require autoconf-2.52.
92675
92676 2001-08-04  Jim Meyering  <meyering@lucent.com>
92677
92678         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92679         stmt, to get in sync with glibc.
92680
92681 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92682
92683         The following changes are from gettext 0.10.39 as maintained by
92684         Bruno Haible.
92685
92686         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92687         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92688         with inverted sense.  All uses changed.
92689
92690         * lib/mbswidth.c: Don't include <limits.h>.
92691         Include <stdlib.h> and <string.h> unconditionally.
92692         (iswcntrl, mbsinit, ISCNTRL): New macros.
92693         (mbsnwidth): Use K&R style function declarations.
92694         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92695         can optimize it when MB_CUR_MAX == 1.
92696         The width of control characters is zero, not 1.
92697
92698 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92699
92700         The following changes are from gettext 0.10.39 as maintained by
92701         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92702
92703         * m4/codeset.m4: Upgrade to serial AM1.
92704         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92705         all uses changed.  Quote first arg of AC_DEFUN.
92706         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92707
92708         * m4/iconv.m4: Upgrade to serial AM2.
92709         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92710         Add --with-libconv-prefix.
92711         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92712         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92713         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92714         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92715         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92716
92717         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92718         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92719         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92720         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92721         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92722         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92723         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92724         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92725         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92726
92727         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92728         string.h any more.
92729
92730         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92731         not the default value.
92732
92733         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92734         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92735         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92736         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92737         Also check for iswcntrl, used for wcwidth fallback.
92738         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92739         to Autoconf 2.13.
92740
92741 2001-08-03  Jim Meyering  <meyering@lucent.com>
92742
92743         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92744         as it was in the original.  Reported by Paul Eggert.
92745
92746 2001-07-16  Jim Meyering  <meyering@lucent.com>
92747
92748         * m4/gettimeofday.m4: New file.
92749         Prompted by a report from Bernhard Baehr.
92750
92751 2001-07-15  Jim Meyering  <meyering@lucent.com>
92752
92753         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92754         stuff. Now it's in ../Makefile.cfg.
92755
92756 2001-07-15  Jim Meyering  <meyering@lucent.com>
92757
92758         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92759         (BUILT_SOURCES): Add unlocked-io.h.
92760         (io_functions): Define.
92761         (unlocked-io.h): New rule.
92762         (DISTCLEANFILES): Add unlocked-io.h.
92763         (all-local): Depend on unlocked-io.h, to ensure it is created.
92764
92765         * lib/unlocked-io.hin: New file
92766
92767         * lib/regex.c: Update from glibc.
92768
92769 2001-07-05  Jim Meyering  <meyering@lucent.com>
92770
92771         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92772         recommendation.
92773         (libfetish_a_SOURCES): Put all .h files here instead.
92774         Remove a thus-exposed (better checks in automake) duplicate and
92775         two unnecessary .h files.
92776
92777 2001-07-04  Jim Meyering  <meyering@lucent.com>
92778
92779         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92780         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92781         distcheck failure.
92782
92783 2001-07-02  Jim Meyering  <meyering@lucent.com>
92784
92785         The following changes were prompted by suggestions from Bruno Haible.
92786
92787         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92788         is now generated.
92789         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92790         definition of EXTRA_DIST.
92791         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92792         ensure that the generated file is created/updated whenever the list
92793         of $(unlocked_functions) is changed.
92794         (jm-glibc-io.m4): New rule.
92795         (unlocked-io.h): New rule -- currently unused.
92796
92797 2001-06-24  Jim Meyering  <meyering@lucent.com>
92798
92799         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92800         unmatched right bracket, rather than kludging it with an extra,
92801         falsely-matching quote in a comment.  Patch by Akim Demaille.
92802
92803 2001-06-11  Jim Meyering  <meyering@lucent.com>
92804
92805         * lib/regex.c: Update from GNU libc.
92806
92807 2001-05-27  Jim Meyering  <meyering@lucent.com>
92808
92809         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92810         Check for ut_type in struct utmp.
92811
92812 2001-05-27  Jim Meyering  <meyering@lucent.com>
92813
92814         * lib/readutmp.h (UT_TYPE): Define.
92815
92816 2001-05-24  Jim Meyering  <meyering@lucent.com>
92817
92818         * lib/argmatch.c: Include "quote.h".
92819         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92820         quote function.  Reported by Göran Uddeborg.
92821
92822 2001-05-22  Jim Meyering  <meyering@lucent.com>
92823
92824         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92825         now that we use the package-supplied version unconditionally.
92826         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92827
92828 2001-05-21  Jim Meyering  <meyering@lucent.com>
92829
92830         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92831         shell syntax errors.
92832
92833 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92834
92835         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92836
92837 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92838
92839         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92840         Don't bother to check library strftime, since
92841         we'll be using our own my_strftime function anyway.
92842         Define my_strftime instead of strftime.
92843
92844 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92845
92846         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92847         which is not yet declared.
92848
92849 2001-05-15  Jim Meyering  <meyering@lucent.com>
92850
92851         * m4/regex.m4: Use proper quoting so brackets appear in the test
92852         program.
92853         Reported by, and with help from, Bruno Haible.
92854
92855 2001-05-13  Jim Meyering  <meyering@lucent.com>
92856
92857         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92858         undefined.
92859
92860 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92861
92862         dirname code cleanup.  base_name now behaves more compatibly
92863         with POSIX basename when given file names that have trailing
92864         slashes, and similarly for dir_name.  Add new primitives
92865         base_len and dir_len.  Put the directory-name-related decls
92866         into dirname.h.
92867
92868         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92869         * lib/backupfile.c (base_name): Likewise.
92870         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92871         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92872         * lib/makepath.c (strip_trailing_slashes): Likewise.
92873         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92874         ISSLASH): Likewise.
92875         * lib/rename.c (strip_trailing_slashes): Likewise.
92876         * lib/same.c (base_name): Likewise.
92877         * lib/stripslash.c (ISSLASH): Likewise.
92878
92879         * lib/addext.c: Include <dirname.h> after size_t is defined.
92880         * lib/backupfile.c: Likewise.
92881
92882         * lib/addext.c (addext): Use base_len to trim redundant
92883         trailing slashes instead of doing it ourselves.
92884         But do not trim the last slash if it is not redundant.
92885
92886         * lib/backupfile.c (find_backup_file_name,
92887         max_backup_version): Use base_len instead of rolling it ourselves.
92888         Handle the case of "" and (on DOS) "C:" correctly.
92889
92890         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92891         needed. Include <string.h>, <dirname.h>.
92892         (base_name): Allow file names ending in slashes, other than names
92893         that are all slashes.  In this case, return the basename followed
92894         by the slashes.  This is more general, and can be used in places
92895         where the original base_name purposely had an assertion failure.
92896         (base_len): New function.
92897
92898         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92899         Do not include <assert.h>; no longer needed.
92900         Include xalloc.h.
92901         (memrchr): Remove decl.
92902         (dir_name_r): Remove.
92903         (dir_len): Renamed from dirlen.  All callers changed.
92904         Rewrite in terms of base_name, for simplicity and consistency.
92905         (dir_name): Never return NULL.  All callers changed.
92906         Do not include <stdlib.h> in test program; no longer needed.
92907         return 0; is fine for test program.
92908
92909         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92910         New macros.
92911         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92912
92913         * lib/path-concat.c (path_concat): Use base_len to compute
92914         base length, not strlen; this means we cannot rely on memcpy
92915         to null-terminate.
92916
92917         * lib/same.c (STREQ): Remove.
92918         (same_name): Handle the case where the basename ends in trailing '/'.
92919
92920         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92921         a slash was stripped.  Do not strip the last slash after a
92922         file system prefix.
92923
92924 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92925
92926         * lib/Makefile.am (libfetish_a_SOURCES):
92927         Add strftime.c, since we now compile it on all hosts.
92928
92929         * lib/strftime.c (my_strftime):
92930         Define to nstrftime if emacs, but only if my_strftime is not defined.
92931         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92932         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92933         Add one more extra argument: a nanoseconds value.
92934         All uses changed.
92935         (ns): New macro.
92936         (my_strftime function): Add %N format.
92937         (emacs_strftimeu): Renamed from emacs_strftime,
92938         with extra ut argument.
92939
92940 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92941
92942         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92943
92944 2001-04-21  Jim Meyering  <meyering@lucent.com>
92945
92946         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92947         doesn't interfere.
92948
92949 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92950
92951         * m4/ftruncate.m4: Check for chsize.
92952         Link with ftruncate.o unconditionally if ftruncate is missing.
92953         This was required when cross-compiling to i586-mingw32msvc.
92954
92955 2001-04-08  Jim Meyering  <meyering@lucent.com>
92956
92957         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92958         recomputed; that's necessary when the offset spans a DST transition.
92959         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92960
92961 2001-04-02  Jim Meyering  <meyering@lucent.com>
92962
92963         * lib/regex.h, regex.c: Update from GNU libc.
92964
92965 2001-03-24  Jim Meyering  <meyering@lucent.com>
92966
92967         * m4/jm-macros.m4: Require autoconf-2.49d.
92968
92969 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92970
92971         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92972
92973 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92974
92975         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92976
92977 2001-03-17  Jim Meyering  <meyering@lucent.com>
92978
92979         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92980         now that the version in autoconf is equivalent.
92981         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92982
92983         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92984         Suggestion from Akim Demaille.
92985
92986         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92987         (jm_PREREQ_TEMPNAME): New function.
92988
92989 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92990
92991         * lib/tempname.c (uint64_t): Define to uintmax_t if
92992         not defined, and if UINT64_MAX is not defined.
92993         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92994         Reported by John David Anglin.
92995
92996 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92997
92998         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92999         resolve alias if codeset is empty.
93000         * lib/config.charset (BeOS): Use wildcard syntax.
93001
93002 2001-03-13  Jim Meyering  <meyering@lucent.com>
93003
93004         * lib/path-concat.c (path_concat)
93005         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93006         concatenating e.g., `C:' and `foo'.
93007         From Bruno Haible.
93008
93009 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93010
93011         * lib/localcharset.c (locale_charset): Don't use
93012         setlocale(LC_CTYPE,NULL). Don't return NULL.
93013         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93014
93015 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93016
93017         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93018         support for DOS/DJGPP.
93019
93020 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93021
93022         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93023         lacks mkstemp.  Compile our own tempname.c if we compile our own
93024         mkstemp.c, as mkstemp relies on tempname.
93025
93026 2001-03-01  Jim Meyering  <meyering@lucent.com>
93027
93028         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93029         AH_VERBATIM really does output its argument verbatim.
93030
93031 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93032
93033         * lib/Makefile.am (libfetish_a_SOURCES):
93034         Add dup-safer.c, fopen-safer.c.
93035         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93036
93037         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93038         * lib/unistd-safer.h: New files.
93039
93040 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93041
93042         The mkstemp replacement is taken from glibc 2.2.2, with some
93043         portability fixes for use outside glibc, as follows:
93044
93045         * lib/tempname.c (struct_stat64): New macro.
93046         (direxists, __gen_tempname): Use it.
93047         This avoids a portability problem with Solaris 8.
93048
93049         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93050         (<stddef.h>, <stdint.h>, <string.h>):
93051         Include only if STDC_HEADERS || _LIBC.
93052         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93053         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93054         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93055         (__set_errno): Define this macro if <errno.h> doesn't.
93056         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93057         Define these macros if <stdio.h> doesn't.
93058         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93059         Define these macros if <sys/stat.h>
93060         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93061         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93062         __xstat64): Define if not _LIBC.
93063         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93064         (__gen_tempname): Invoke gettimeofday only if
93065         HAVE_GETTIMEOFDAY || _LIBC;
93066         otherwise, fall back on plain "time".
93067         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93068
93069         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93070
93071         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93072
93073 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93074
93075         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93076
93077 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93078
93079         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93081         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93082         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93083
93084 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93085
93086         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93087         Remove workaround macros for hosts that have mbrtowc but not
93088         mbstate_t, as we now insist on proper declarations for both
93089         before using mbrtowc.
93090
93091 2001-02-17  Jim Meyering  <meyering@lucent.com>
93092
93093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93094         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93095         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93096         UnixWare 7.1.1.
93097
93098         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93099         rather than AC_CACHE_VAL.
93100
93101 2001-02-17  Jim Meyering  <meyering@lucent.com>
93102
93103         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93104         around included file name.
93105
93106         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93107
93108         * lib/strftime.c: Update from GNU libc (the only changes were to
93109         comments).
93110
93111 2001-02-17  Jim Meyering  <meyering@lucent.com>
93112
93113         * lib/regex.c: Update from libc.
93114
93115 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93116
93117         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93118         clash.
93119
93120 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93121
93122         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93123         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93124         Reported by Mark Hounschell via Paul Eggert.
93125
93126 2001-02-07  Jim Meyering  <meyering@lucent.com>
93127
93128         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93129
93130 2001-02-05  Jim Meyering  <meyering@lucent.com>
93131
93132         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93133         it includes the patch required for `large file' support with at least
93134         HP-UX's 10.20 /bin/cc.
93135
93136 2001-02-03  Jim Meyering  <meyering@lucent.com>
93137
93138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93139         AS_IF, now that it works once again (mysteriously).
93140         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93141
93142 2001-01-30  Jim Meyering  <meyering@lucent.com>
93143
93144         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93145         * m4/chown.m4: Rename conftestchown to conftest.chown.
93146         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93147         s/conftestdir2/conftest.d2/.
93148         * m4/utimes.m4: s/conftestdata/conftest.data/
93149         Inspired by Pavel Roskin's change in autoconf.
93150
93151 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93152
93153         * lib/config.charset: Update for FreeBSD 4.2.
93154
93155 2001-01-27  Jim Meyering  <meyering@lucent.com>
93156
93157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93158         a use of AS_IF.
93159         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93160
93161 2001-01-26  Jim Meyering  <meyering@lucent.com>
93162
93163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93164         quotearg.c includes it.
93165
93166 2001-01-26  Jim Meyering  <meyering@lucent.com>
93167
93168         * lib/quotearg.c: Include stddef.h.
93169         * lib/quote.c: Include stddef.h.
93170         Reported by Axel Kittenberger.
93171
93172         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93173         line in double quotes so that it evokes a better diagnostic.
93174         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93175         Reported by Axel Kittenberger.
93176
93177 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93178
93179         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93180         as if it was a `charset'.
93181
93182 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93183
93184         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93185         has const.
93186
93187 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93188
93189         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93190         to avoid a warning.  Add back 'const' to inptr.
93191
93192 2001-01-20  Jim Meyering  <meyering@lucent.com>
93193
93194         Be sure that headers are checked before used in code compiled
93195         for the type checks.
93196         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93197         In place of that, invoke jm_CHECK_ALL_TYPES.
93198         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93199         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93200         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93201         The check for ssize_t was mistakenly run before the test for unistd.h.
93202
93203         The configure-time check for stdbool.h was missing.
93204         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93205         (jm_PREREQ_HASH): New function.
93206
93207 2001-01-17  Jim Meyering  <meyering@lucent.com>
93208
93209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93210         for autoconf-2.49c.
93211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93212
93213 2001-01-16  Jim Meyering  <meyering@lucent.com>
93214
93215         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93216         From Bruno Haible.
93217
93218 2001-01-14  Jim Meyering  <meyering@lucent.com>
93219
93220         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93221         foo and bar.  Create conftestdir/ in the script, not in the C code.
93222         Remove directories in the script, not in the C code.
93223         Remove conftestdir{,2} before trying to create the directory.
93224         Make the entire configure script fail if the mkdir fails.
93225
93226 2001-01-14  Jim Meyering  <meyering@lucent.com>
93227
93228         * lib/rename.c: New file.  From Volker Borchert.
93229         Include stdlib.h, string.h or strings.h, and xalloc.h.
93230         Use strip_trailing_slashes rather than open-coding it.
93231
93232 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93233
93234         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93235
93236 2001-01-03  Jim Meyering  <meyering@lucent.com>
93237
93238         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93239         of local `inptr' to avoid warning with some system declarations of
93240         iconv.
93241
93242 2001-01-02  Volker Borchert  <bt@teknon.de>
93243
93244         * m4/rename.m4: New file.
93245         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93246
93247 2001-01-01  Jim Meyering  <meyering@lucent.com>
93248
93249         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93250         even on systems with utmpx.h.  It's necessary for the declaration of
93251         utmp's ut_user member.  Reported by Andreas Jaeger.
93252
93253         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93254         available. They are required for the declarations of getgrgid and
93255         getpwuid resp.
93256         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93257         Reported by Andreas Jaeger.
93258
93259 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93260
93261         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93262         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93263         so `make install' also works in VPATH builds.
93264
93265 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93266
93267         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93268         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93269         can be used in subdirectories.
93270
93271 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93272
93273         * lib/modechange.c: Do not assume that mode_t uses the
93274         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93275         the other-execute bit of FOO even if S_IXOTH != 1.
93276
93277         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93278         WOTH, XOTH, ALLM): New macros.
93279         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93280          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93281         Use them.
93282         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93283         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93284         (mode_compile):
93285         No need to use uintmax_t; unsigned long is long enough.
93286         Don't bother to get suffix since we don't use it.
93287
93288 2000-12-26  Jim Meyering  <meyering@lucent.com>
93289
93290         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93291         better with autoheader.
93292
93293 2000-12-24  Jim Meyering  <meyering@lucent.com>
93294
93295         * lib/hash.c (is_prime): Return explicit boolean values.
93296         (hash_get_first): Return NULL to appease Irix5.6's 89.
93297         Reported by Nelson Beebe.
93298
93299 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93300
93301         * lib/localcharset.c (locale_charset): Add support for Win32.
93302
93303 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93304
93305         * lib/physmem.h, lib/physmem.c: New files.
93306
93307         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93308         (noinst_HEADERS): Add physmem.h.
93309
93310         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93311         't' for compatibility with Solaris 8 sort.
93312
93313 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93314
93315         * lib/config.charset: Add support for BeOS.
93316
93317 2000-12-17  Jim Meyering  <meyering@lucent.com>
93318
93319         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93320         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93321
93322 2000-12-16  Jim Meyering  <meyering@lucent.com>
93323
93324         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93325         N and M) would have treated it like `chown N:N FILE'.
93326
93327         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93328
93329 2000-12-16  Jim Meyering  <meyering@lucent.com>
93330
93331         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93332         SHELLS_FILE to a file name that's useful on djgpp systems.
93333         Include stdlib.h.
93334         (ADDITIONAL_DEFAULT_SHELLS): Define.
93335         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93336         Based mostly on a patch from Prashant TR.
93337
93338 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93339
93340         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93341         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93342         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93343
93344 2000-12-08  Andreas Schwab  <schwab@suse.de>
93345
93346         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93347         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93348
93349 2000-12-07  Jim Meyering  <meyering@lucent.com>
93350
93351         * lib/stripslash.c (ISSLASH): Define.
93352         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93353         `/'.
93354         From Prashant TR.
93355
93356         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93357         (dir_name_r): Declare this function as static.
93358         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93359         manifest itself on a name containing a mix of slashes and
93360         backslashes.
93361         Make this function work with names starting with a DOS-style
93362         drive letter and colon prefix.
93363         (dir_name): Append `.' if necessary.
93364         Based mostly on patches from Prashant TR and Eli Zaretskii.
93365
93366         * lib/dirname.h (dir_name_r): Remove prototype.
93367
93368 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93369
93370         * m4/off_t-format.m4: Remove this file.
93371         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93372
93373 2000-12-06  Jim Meyering  <meyering@lucent.com>
93374
93375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93376         replacement strtoull, we may well need the replacement strtoul, too.
93377         Check for declarations of strtoul and strtoull.
93378         Check for strtol.  Mainly as a cue to cause automake to include
93379         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93380         Check for limits.h -- strtol.c needs it.
93381
93382 2000-12-05  Jim Meyering  <meyering@lucent.com>
93383
93384         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93385
93386 2000-12-04  Jim Meyering  <meyering@lucent.com>
93387
93388         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93389         Also include memory.h, stdlib.h, unistd.h if appropriate.
93390         Reported by Andreas Jaeger (conflicting declaration of malloc).
93391
93392 2000-12-02  Jim Meyering  <meyering@lucent.com>
93393
93394         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93395         * m4/jm-macros.m4 (jm_MACROS): require it.
93396
93397 2000-12-02  Jim Meyering  <meyering@lucent.com>
93398
93399         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93400
93401 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93402
93403         * lib/memrchr.c: Include <config.h> before any system include file.
93404
93405 2000-11-30  Jim Meyering  <meyering@lucent.com>
93406
93407         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93408
93409 2000-11-30  Jim Meyering  <meyering@lucent.com>
93410
93411         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93412
93413 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93414
93415         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93416
93417 2000-11-26  Jim Meyering  <meyering@lucent.com>
93418
93419         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93420
93421 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93422
93423         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93424         size of (size_t) -1; it's not portable.
93425
93426 2000-11-17  Jim Meyering  <meyering@lucent.com>
93427
93428         * lib/strstr.c: Update from GNU libc.
93429
93430 2000-11-17  Akim Demaille  <akim@epita.fr>
93431
93432         * lib/obstack.h: Formatting changes.
93433         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93434         prevent type checking.
93435         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93436         cast the value to (void *): assigning a `foo *' to a `void *'
93437         variable is valid.
93438         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93439
93440 2000-11-16  Jim Meyering  <meyering@lucent.com>
93441
93442         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93443
93444 2000-11-11  Jim Meyering  <meyering@lucent.com>
93445
93446         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93447
93448 2000-11-10  Jim Meyering  <meyering@lucent.com>
93449
93450         * lib/obstack.h: Update from GNU libc.
93451         * lib/obstack.c: Likewise.
93452
93453 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93454
93455         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93456
93457 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93458
93459         * lib/getusershell.c (setusershell): Use rewind rather than
93460         fseek/fseeko, to avoid configuration hassles with fseeko.
93461         Don't bother opening SHELLS_FILE if shellstream is NULL;
93462         it's not necessary.
93463
93464 2000-11-05  Jim Meyering  <meyering@lucent.com>
93465
93466         * lib/makepath.h (make_dir): Declare.
93467         * lib/makepath.c (make_dir): Remove `static' attribute.
93468         Tweak a comment.
93469
93470 2000-11-04  Jim Meyering  <meyering@lucent.com>
93471
93472         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93473
93474 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93475
93476         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93477         last one in a bucket, advance to the next bucket.
93478
93479 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93480
93481         * lib/fnmatch.c: Do not comment out all the code if we are using
93482         the GNU C library, because in some cases we are replacing buggy
93483         code in the GNU C library itself.
93484
93485 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93486
93487         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93488         (regex_compile): Catch bogus \(\1\).
93489
93490 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93491
93492         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93493         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93494         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93495
93496 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93497
93498         * lib/error.h, getline.h, modechange.h:
93499         Remove "2000" from Copyright line, as the file hasn't been
93500         changed this year other than in the copyright notice.
93501
93502         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93503         was changed this year.
93504
93505 2000-10-29  Jim Meyering  <meyering@lucent.com>
93506
93507         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93508         renaming.
93509         * m4/ls-mntd-fs.m4: Likewise
93510
93511 2000-10-29  Jim Meyering  <meyering@lucent.com>
93512
93513         * lib/xstat.in: Fix grammar in comment.
93514
93515 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93516
93517         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93518         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93519         doesn't define __restrict_arr.
93520
93521 2000-10-28  Jim Meyering  <meyering@lucent.com>
93522
93523         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93524         (jm_PREREQ_MEMCHR): New function.
93525
93526 2000-10-28  Jim Meyering  <meyering@lucent.com>
93527
93528         * lib/memchr.c: Update from libc.
93529         Adjust for portability:
93530         [HAVE_STDLIB_H]: Include stdlib.h.
93531         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93532         Undef __memchr, too.
93533         [!weak_alias]: Define __memchr to memchr.
93534
93535         * lib/regex.c: Update from libc.
93536         * lib/regex.h: Likewise.
93537         * lib/getopt1.c: Likewise.
93538         * lib/memcmp.c: Likewise.
93539
93540         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93541         Avoid using fseek, when possible -- it's broken by design.
93542         Patch by Ulrich Drepper.
93543
93544 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93545
93546         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93547         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93548         Giving in to popular pressure to shut up the compiler with casts.
93549
93550 2000-10-26  Jim Meyering  <meyering@lucent.com>
93551
93552         * lib/strftime.c: Update from libc.
93553
93554 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93555
93556         * regex.c: More `unsigned char' -> `re_char' changes.
93557         Also change several `int' into `re_wchar_t'.
93558         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93559         (PUSH_FAILURE_POINTER): Don't cast any more.
93560         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93561         We want GCC to complain, since this piece of code makes
93562         re_match non-reentrant, which *should* be fixed.
93563         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93564         (EXTEND_BUFFER): Use RETALLOC.
93565         (SET_LIST_BIT): Don't cast.
93566         (re_wchar_t): New type.
93567         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93568         that those two functions will always properly return.
93569         (IMMEDIATE_QUIT_CHECK): Cast to void.
93570         (analyse_first): Use recursion rather than an explicit stack.
93571         (re_compile_fastmap): Can't fail anymore.
93572         (re_search_2): Don't check re_compile_fastmap for failure.
93573         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93574         Now also sets the new value (passed in a new argument).
93575         (re_match_2_internal): Use it.
93576         Also, use a new var `reg' of type size_t when looping through regs
93577         rather than reuse the inappropriate `mcnt'.
93578
93579 2000-10-25  Jim Meyering  <meyering@lucent.com>
93580
93581         * lib/obstack.c: Update from libc.
93582
93583 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93584
93585         * regex.c (regex_compile): Change the way of handling a range from
93586         a char less than 256 to a char not less than 256.
93587
93588 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93589
93590         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93591         NT-Emacs only.
93592         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93593         so that re_search functions only quit when callers expect them to.
93594
93595 2000-10-23  Jim Meyering  <meyering@lucent.com>
93596
93597         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93598         wrong.  That set_locale call must not have any side effects.
93599         From Paul Eggert.
93600
93601 2000-10-22  Jim Meyering  <meyering@lucent.com>
93602
93603         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93604         [CYCLIC]: Remove now-unused definition.
93605
93606         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93607         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93608         Suggestion from Ulrich Drepper.
93609
93610 2000-10-21  Jim Meyering  <meyering@lucent.com>
93611
93612         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93613         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93614         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93615
93616 2000-10-21  Jim Meyering  <meyering@lucent.com>
93617
93618         * lib/dirname.c (memrchr): Declare if necessary.
93619         (dir_name): Remove the restriction that there be no
93620         trailing slashes.  Now, this code skips past them, effectively
93621         ignoring them.
93622         [TEST_DIRNAME] (main): New unit tests.
93623
93624         * lib/memrchr.c: New file from GNU libc.
93625         Undef __memrchr, too.
93626         [!weak_alias]: Define __memrchr to memrchr.
93627         Guard weak_alias use with `#ifdef weak_alias'.
93628
93629 2000-10-21  Jim Meyering  <meyering@lucent.com>
93630
93631         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93632         (dir_name): Use dir_name_r.
93633         * lib/dirname.h (dir_name_r): Declare it.
93634
93635 2000-10-17  Jim Meyering  <meyering@lucent.com>
93636
93637         * lib/quote.h (PARAMS): Define and use.
93638         Reported by Akim Demaille.
93639
93640         * lib/getopt.c: Update from libc.
93641
93642 2000-10-16  Jim Meyering  <meyering@lucent.com>
93643
93644         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93645         setlocale.
93646         From Jan Fedak.
93647
93648 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93649
93650         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93651
93652 2000-09-25  Jim Meyering  <meyering@lucent.com>
93653
93654         * lib/md5.h (rol): Define (from GnuPG).
93655
93656         * lib/sha.c: Give credit (GnuPG) where due.
93657         (M): Use rol rather than open-coding it.
93658         Add a FIXME comment.
93659
93660 2000-09-21  Jim Meyering  <meyering@lucent.com>
93661
93662         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93663         Reported by Michael Stone.
93664
93665 2000-09-20  Jim Meyering  <meyering@lucent.com>
93666
93667         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93668         (noinst_HEADERS): Add sha.h.
93669         Based on code from Scott G. Miller and from GnuPG.
93670
93671 2000-09-18  Jim Meyering  <meyering@lucent.com>
93672
93673         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93674         LIBS. Otherwise, everyone ends up linking with -lelf for some
93675         configurations.
93676         Reported by Mike Stone.
93677
93678 2000-09-15  Jim Meyering  <meyering@lucent.com>
93679
93680         * lib/regex.c: Update from libc.
93681
93682 2000-09-10  Jim Meyering  <meyering@lucent.com>
93683
93684         * lib/getopt.c (_getopt_internal): Update from glibc.
93685
93686 2000-09-09  Jim Meyering  <meyering@lucent.com>
93687
93688         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93689         think it should be used as a general replacement for isascii.
93690         * lib/fnmatch.c: Likewise.
93691         * lib/mbswidth.c: Likewise
93692         * lib/regex.c: Likewise.
93693
93694         Don't use atoi.
93695         * lib/userspec.c: Include sys/param.h and limits.h.
93696         Include xstrtol.h.
93697         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93698         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93699         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93700         UID, GID.  Check range.
93701
93702 2000-09-06  Jim Meyering  <meyering@lucent.com>
93703
93704         * lib/getopt.c (_getopt_internal): Update from glibc.
93705
93706 2000-08-30  Jim Meyering  <meyering@lucent.com>
93707
93708         * lib/strftime.c: Merge in changes from GNU libc.
93709
93710 2000-08-26  Jim Meyering  <meyering@lucent.com>
93711
93712         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93713         * m4/fpending.m4: New file.
93714
93715 2000-08-26  Jim Meyering  <meyering@lucent.com>
93716
93717         * lib/closeout.c: Include "__fpending.h".
93718         (close_stdout_status): Return right away if there's nothing to flush.
93719
93720         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93721         * lib/__fpending.c: New file.
93722         * lib/__fpending.h: New file.
93723
93724 2000-08-20  Jim Meyering  <meyering@lucent.com>
93725
93726         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93727         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93728         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93729
93730 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93731
93732         Improve fileutils installation on systems where running
93733         programs (like install) can't be unlinked.
93734         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93735         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93736
93737 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93738
93739         Standardize on "memory exhausted" instead of "Memory exhausted"
93740         or "virtual memory exhausted".
93741         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93742         "virtual memory exhausted".
93743         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93744         our own message.
93745         * lib/userspec.c (parse_user_spec): Likewise.
93746         * lib/bumpalloc.h: comment fix
93747         * lib/same.c, userspec.c: Include xalloc.h.
93748
93749         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93750         not char *const and pointing to a constant array.
93751         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93752         (xrealloc): Comment fix.
93753
93754         * lib/userspec.c (parse_user_spec):
93755         Don't translate a message until just before returning,
93756         to avoid unnecessary translation.
93757
93758 2000-08-07  Jim Meyering  <meyering@lucent.com>
93759
93760         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93761         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93762         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93763         getgroups.c, gethostname.c, getopt.h, group-member.c,
93764         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93765         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93766         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93767         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93768         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93769         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93770         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93771         yesno.c: Back out Copyright date changes for each file with no change
93772         this year.  This eases coordination with other programs using the same
93773         source code modules.  From Paul Eggert.
93774
93775 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93776
93777         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93778         not char, for compatibility with glibc 2.1.3 strftime.c.
93779
93780 2000-08-03  Greg McGary  <greg@mcgary.org>
93781
93782         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93783         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93784         (EXTEND_BUFFER): Use them.
93785
93786 2000-08-01  Jim Meyering  <meyering@lucent.com>
93787
93788         * lib/dirname.c (ISSLASH): Define.
93789         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93790         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93791         both `\' and `/' may be use as path separators.
93792         Based on a patch from Prashant TR.
93793
93794 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93795
93796         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93797         slot vector a constant, since it might get modified.
93798
93799 2000-07-31  Jim Meyering  <meyering@lucent.com>
93800
93801         * lib/xmalloc.c: Use `virtual memory exhausted', not
93802         `Memory exhausted'.
93803         * lib/obstack.c (print_and_abort): Likewise.
93804
93805 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93806
93807         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93808         buffer, so that the caller can always quote one small
93809         component of a "memory exhausted" message in slot 0.
93810         From a suggestion by Jim Meyering.
93811
93812 2000-07-30  Jim Meyering  <meyering@lucent.com>
93813
93814         * lib/makepath.c (make_path): Quote the other instance, too.
93815
93816         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93817         (STATIC_BUF_SIZE): Define.
93818         (quotearg_n_options): Use only statically allocated storage when
93819         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93820         than STATIC_BUF_SIZE.
93821
93822 2000-07-29  Jim Meyering  <meyering@lucent.com>
93823
93824         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93825         * lib/dirname.c (dir_name): Likewise.
93826
93827         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93828         `/'.
93829
93830         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93831         (dir_name): Assert that there are no trailing slashes.
93832
93833 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93834
93835         * lib/mbswidth.h (mbswidth): Add a flags argument.
93836         (mbswidth): New declaration.
93837         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93838         * lib/mbswidth.c (mbswidth): Add a flags argument.
93839         (mbsnwidth): New function.
93840
93841 2000-07-24  Jim Meyering  <meyering@lucent.com>
93842
93843         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93844
93845 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93846
93847         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93848
93849 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93850
93851         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93852         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93853         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93854         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93855         invoke multibyte primitives.
93856
93857 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93858
93859         * lib/quotearg.c:
93860         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93861         so that mbstate_t is always defined.
93862
93863         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93864         be 1 in at least one GCC installation, and this configuration
93865         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93866         performance on hosts that have mbrtowc but have only unibyte
93867         locales, but I assume these hosts are rare.
93868
93869 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93870
93871         * lib/mbswidth.c (_XOPEN_SOURCE):
93872         Don't define; this causes problems on Solaris 7.
93873         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93874
93875 2000-07-23  Jim Meyering  <meyering@lucent.com>
93876
93877         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93878         too: getgrgid, getpwuid, getuid.
93879
93880 2000-07-23  Jim Meyering  <meyering@lucent.com>
93881
93882         * lib/basename.c (base_name): Add an assertion.
93883
93884 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93885
93886         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93887         shadow its mbsinit function.
93888
93889 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93890
93891         * lib/mbswidth.h: New file.
93892         * lib/mbswidth.c: New file.
93893         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93894         (noinst_HEADERS): Add mbswidth.h.
93895
93896 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93897
93898         * lib/config.charset: Add support for FreeBSD. Improve support for
93899         HP-UX and IRIX 6.
93900
93901 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93902
93903         * m4/mbswidth.m4: New file.
93904         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93905
93906 2000-07-15  Jim Meyering  <meyering@lucent.com>
93907
93908         * lib/makepath.c: Include quote.h.
93909         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93910         corresponding argument in a `quote (...)' call.
93911         Give better diagnostics.
93912
93913         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93914         (noinst_HEADERS): Add quote.h.
93915
93916         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93917         from tar's src/misc.c.
93918         * lib/quote.h: New file.  Prototypes for same.
93919
93920 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93921
93922         From a suggestion by Bruno Haible.
93923         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93924         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93925         to decide whether to define the BeOS workaround macro;
93926         this adjusts to the change to AC_MBSTATE_T.
93927
93928 2000-07-14  Jim Meyering  <meyering@lucent.com>
93929
93930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93931         jm_AC_TYPE_UINTMAX_T.
93932
93933 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93934
93935         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93936
93937         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93938         quotearg_buffer_restyled): Add support for
93939         clocale_quoting_style.  Undo previous change to
93940         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93941         and "{RIGHT QUOTATION MARK}" msgids.
93942
93943 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93944
93945         From a suggestion by Bruno Haible.
93946         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93947         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93948         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93949         and mbstate_t, to a single-part test that simply defines mbstate_t.
93950         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93951         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93952
93953 2000-07-10  Jim Meyering  <meyering@lucent.com>
93954
93955         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93956
93957         * m4/gnu-source.m4: Output to confdefs.h directly.
93958         Suggestion from Akim Demaille.
93959
93960 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93961
93962         The old behavior of quoting `like this' doesn't look good with
93963         newer, ISO-style fonts.  See:
93964         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93965
93966         Instead, quote "like this" by default.  Let the translator
93967         tailor the locale-specific quoting behavior by providing
93968         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93969
93970         * lib/quotearg.c (N_): New macro.
93971         (gettext_default): New function.
93972         (quotearg_buffer_restyled): Use
93973         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93974         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93975
93976 2000-07-09  Jim Meyering  <meyering@lucent.com>
93977
93978         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93979         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93980
93981         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93983
93984 2000-07-09  Jim Meyering  <meyering@lucent.com>
93985
93986         * lib/Most files: Update copyright dates to include 2000.
93987
93988 2000-07-08  Jim Meyering  <meyering@lucent.com>
93989
93990         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93991         if not defined.
93992         (xgethostname): Remove now-unnecessary #ifdef.
93993         Move declaration of `err' into loop where it's used.
93994
93995 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93996         and Bruno Haible  <haible@clisp.cons.org>
93997
93998         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93999         only if the test for an object-type mbstate_t fails.  This
94000         prevents us from mistakenly reporting that mbstate_t is a
94001         system object type after we "#define mbstate_t int" to work
94002         around its lack.
94003
94004 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94005         and Bruno Haible  <haible@clisp.cons.org>
94006
94007         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94008
94009 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94010
94011         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94012         to strerror_r.
94013         Include <ctype.h> for use of isalpha.
94014
94015 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94016
94017         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94018         by allocating a larger buffer. Test the gethostname return value for
94019         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94020         returns an error and ENAMETOOLONG isn't defined.
94021
94022 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94023
94024         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94025         dimension.
94026
94027 2000-07-04  Jim Meyering  <meyering@lucent.com>
94028
94029         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94030         of the deprecated AC_CHECKING.
94031
94032 2000-07-04  Jim Meyering  <meyering@lucent.com>
94033
94034         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94035         Reported by Bruno Haible.
94036
94037 2000-07-04  Jim Meyering  <meyering@lucent.com>
94038
94039         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94040         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94041         lacks mbrtowc.
94042
94043 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94044
94045         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94046         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94047
94048 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94049         and Bruno Haible  <haible@clisp.cons.org>
94050
94051         * lib/quotearg.c (mbrtowc):
94052         Assign to *pwc, and return 1 only if result is nonzero.
94053         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94054
94055 2000-07-03  Jim Meyering  <meyering@lucent.com>
94056
94057         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94058
94059 2000-07-03  Jim Meyering  <meyering@lucent.com>
94060
94061         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94062         This is necessary to get a definition of e.g., UTMP_FILE on
94063         HP-UX 10.20.
94064         From Bob Proulx.
94065
94066 2000-07-02  Jim Meyering  <meyering@lucent.com>
94067
94068         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94069
94070         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94071         AC_LIBOBJ(function_name).
94072         * m4/chown.m4: Likewise.
94073         * m4/fnmatch.m4: Likewise.
94074         * m4/ftruncate.m4: Likewise.
94075         * m4/getgroups.m4: Likewise.
94076         * m4/getline.m4: Likewise.
94077         * m4/group-member.m4: Likewise.
94078         * m4/jm-macros.m4: Likewise.
94079         * m4/lstat.m4: Likewise.
94080         * m4/malloc.m4: Likewise.
94081         * m4/memcmp.m4: Likewise.
94082         * m4/nanosleep.m4: Likewise.
94083         * m4/putenv.m4: Likewise.
94084         * m4/realloc.m4: Likewise.
94085         * m4/regex.m4: Likewise.
94086         * m4/stat.m4: Likewise.
94087         * m4/strftime.m4: Likewise.
94088
94089 2000-07-02  Jim Meyering  <meyering@lucent.com>
94090
94091         * lib/quotearg.c (mbstate_t): Don't define here.
94092
94093 2000-07-02  Jim Meyering  <meyering@lucent.com>
94094
94095         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94096
94097 2000-07-01  Jim Meyering  <meyering@lucent.com>
94098
94099         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94100
94101 2000-07-01  Jim Meyering  <meyering@lucent.com>
94102
94103         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94104         problem.
94105
94106 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94107
94108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94109         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94110
94111 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94112
94113         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94114         per change in ../m4/ls-mntd-fs.m4.
94115         (read_filesystem_list): Ignore symbolic links.
94116
94117 2000-06-29  Jim Meyering  <meyering@lucent.com>
94118
94119         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94120         for declaration of strcmp.
94121
94122         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94123
94124         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94125         Avoid warning by casting result to `char *' to remove `const'.
94126
94127 2000-06-28  Jim Meyering  <meyering@lucent.com>
94128
94129         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94130         included by quotearg.c, for which we perform this test.  From
94131         Bruno Haible.
94132
94133 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94134
94135         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94136         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94137         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94138
94139 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94140
94141         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94142
94143 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94144
94145         savedir now sets errno on failure and invokes xmalloc to get memory.
94146         Fix a couple of other minor bugs while we're at it.
94147
94148         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94149         (NAMLEN): Remove macro.
94150         (malloc, realloc): Remove decls.
94151         (stpcpy): Likewise.
94152         ("xalloc.h"): Include.
94153         (NAME_SIZE_DEFAULT): New macro.
94154         (savedir): Use xmalloc / xrealloc to allocate memory.
94155         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94156         Skip "" directory entries.
94157         Use strlen to calculate directory entry length, since the old method
94158         is rarely used these days and isn't worth supporting.
94159         Don't use a pointer after freeing it.
94160         Check for integer overflow when calculating allocation size.
94161         Use memcpy to copy entries, instead of stpcpy.
94162         Set errno properly when returning NULL.
94163         Check for readdir error.
94164
94165 2000-06-26  Jim Meyering  <meyering@lucent.com>
94166
94167         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94168
94169 2000-06-25  Jim Meyering  <meyering@lucent.com>
94170
94171         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94172         Linux header bug when _XOPEN_SOURCE is defined to 500.
94173
94174 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94175
94176         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94177         deficiency.
94178
94179 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94180
94181         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94182         Include xalloc.h.
94183         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94184
94185 2000-06-24  Jim Meyering  <meyering@lucent.com>
94186
94187         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94188         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94189         for which strerror does return char*, but which lacks a conveniently
94190         accessible declaration of the function.  If the compile-test says
94191         strerror_r doesn't work, then resort to a `run'-test that works on
94192         BeOS and segfaults on DEC Unix.
94193
94194 2000-06-24  Jim Meyering  <meyering@lucent.com>
94195
94196         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94197
94198 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94199
94200         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94201         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94202
94203 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94204
94205         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94206         (mbrtowc, mbstate_t): Define substitutes if
94207         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94208         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94209         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94210
94211 2000-06-23  Jim Meyering  <meyering@lucent.com>
94212
94213         * m4/afs.m4: Add missing AC_MSG_RESULT.
94214         Reported by Bruno Haible.
94215
94216         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94217         Suggestion from Bruno Haible.
94218
94219 2000-06-23  Jim Meyering  <meyering@lucent.com>
94220
94221         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94222
94223 2000-06-21  Jim Meyering  <meyering@lucent.com>
94224
94225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94226
94227 2000-06-21  Jim Meyering  <meyering@lucent.com>
94228
94229         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94230         (noinst_HEADERS): Add getstr.h.
94231
94232         * lib/getline.c (getstr): Move into a separate file.
94233         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94234         the following changes: new parameter, delim2; both delim[12]
94235         parameters have type `int', not `char'.  The latter would lose
94236         with 8-bit delimiters.
94237         * lib/getstr.h: New file.
94238
94239 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94240
94241         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94242         than 1024, return a memory chunk of least possible size, instead
94243         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94244         Use free/xmalloc instead of xrealloc to avoid copying for very long
94245         paths.
94246
94247 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94248
94249         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94250         the empty string.
94251
94252 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94253
94254         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94255         address, not strdup.  Include <stdlib.h> and don't declare free().
94256
94257 2000-06-19  Jim Meyering  <meyering@lucent.com>
94258
94259         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94260
94261 2000-06-18  Jim Meyering  <meyering@lucent.com>
94262
94263         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94264
94265         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94266         `checking whether...' message to be consistent with that of the
94267         lstat test.
94268
94269 2000-06-18  Jim Meyering  <meyering@lucent.com>
94270
94271         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94272         Besides, these days every porting target provides a mkdir function.
94273
94274         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94275         needed. (this snippet comes from src/system.h).
94276
94277 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94278
94279         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94280
94281 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94282
94283         * lib/human.c (adjust_value): New function.
94284         (human_readable_inexact): Apply rounding style even when
94285         printing approximate values.
94286
94287 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94288
94289         * lib/human.c (human_readable_inexact): Allow an input block
94290         size that is not a multiple of the output block size, and vice versa.
94291         Reported by Piergiorgio Sartor.
94292
94293 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94294
94295         * lib/getdate.y (get_date): Apply relative times after time
94296         zone indicator, not before.  Reported by Todd A. Jacobs.
94297
94298 2000-06-13  Jim Meyering  <meyering@lucent.com>
94299
94300         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94301
94302         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94303
94304 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94305
94306         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94307
94308 2000-06-12  Jim Meyering  <meyering@lucent.com>
94309
94310         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94311         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94312         optional argument.
94313         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94314         the optional argument, `lib'.
94315
94316 2000-06-08  Jim Meyering  <meyering@lucent.com>
94317
94318         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94319
94320 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94321
94322         Rewrite largefile configuration so that we don't need to run
94323         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94324         AC_CANONICAL_HOST in configure.in -- jmm]
94325
94326         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94327         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94328         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94329         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94330         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94331         All uses changed.
94332         Instead of inspecting the output of getconf, try to compile the
94333         test program without and with the macro definition.
94334         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94335         for getconf.  Instead, check for the needed flags by compiling
94336         test programs.
94337
94338 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94339
94340         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94341
94342 2000-06-04  Jim Meyering  <meyering@lucent.com>
94343
94344         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94345         SunOS 4.1.4 for which gid_t is an unsigned type.
94346
94347 2000-06-03  Jim Meyering  <meyering@lucent.com>
94348
94349         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94350         now that autoconf requires that.
94351
94352         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94353         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94354         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94355
94356 2000-06-03  Jim Meyering  <meyering@lucent.com>
94357
94358         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94359
94360 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94361
94362         * m4/glibc21.m4: New file.
94363         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94364
94365 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94366
94367         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94368         newer, don't install charset.alias.
94369         * lib/config.charset: Change the Linux/glibc rules so they become empty
94370         on glibc-2.1 or newer.
94371
94372 2000-06-02  Jim Meyering  <meyering@lucent.com>
94373
94374         * lib/mountlist.c: Back out last change.  Instead, do this...
94375         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94376         me_dummy member using the same `ignore'-testing code.
94377         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94378         fs_type strings.
94379         From Mark D. Roth.
94380
94381 2000-05-29  Jim Meyering  <meyering@lucent.com>
94382
94383         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94384         mounts with the `ignore' attribute.  Based on a patch from
94385         Mark D. Roth.
94386
94387 2000-05-28  Jim Meyering  <meyering@lucent.com>
94388
94389         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94390         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94391         * m4/stat.m4: Likewise.
94392         * m4/lstat.m4: Likewise.
94393         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94394
94395         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94396         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94397
94398 2000-05-26  Jim Meyering  <meyering@lucent.com>
94399
94400         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94401
94402 2000-05-24  Jim Meyering  <meyering@lucent.com>
94403
94404         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94405         autoconf requires that.
94406         * m4/lib-check.m4: Likewise.
94407         * m4/jm-macros.m4: Likewise.
94408         * m4/strftime.m4: Likewise.
94409
94410         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94411         AC_CHECK_DECLS, now that autoconf requires that.
94412
94413 2000-05-22  Jim Meyering  <meyering@lucent.com>
94414
94415         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94416         * m4/lstat.m4: Likewise.
94417
94418 2000-05-22  Jim Meyering  <meyering@lucent.com>
94419
94420         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94421
94422 2000-05-20  Jim Meyering  <meyering@lucent.com>
94423
94424         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94425         (jm_PREREQ): Use it.
94426
94427 2000-05-18  Jim Meyering  <meyering@lucent.com>
94428
94429         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94430         back, too, since it may have been modified by allocate_entry.
94431         (hash_delete): Rewrite to use neither the assignment operator
94432         nor the comma operator in an if-expression.
94433
94434 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94435
94436         * lib/closeout.c:
94437         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94438         Remove; no longer needed.
94439         "quotearg.h": Add include.
94440         (file_name): Do not bother to explicitly initialize to NULL; it's less
94441         efficient on some hosts.
94442         (close_stdout_status): Remove test as to whether stdout was already
94443         closed; it breaks for the case "echo x | sort >&-".
94444         Quote file name colons.
94445         Do not assume that _("write error") lacks format strings.
94446
94447 2000-05-15  Jim Meyering  <meyering@lucent.com>
94448
94449         * lib/version-etc.c (version_etc_copyright): Update the copyright
94450         string used in all --version output.
94451
94452 2000-05-14  Jim Meyering  <meyering@lucent.com>
94453
94454         * lib/closeout.c (close_stdout_set_file_name): New function.
94455         (close_stdout_status): Use new file-scoped global.
94456         Return right away if fstat says the stdout file descriptor is invalid.
94457         * lib/closeout.h (close_stdout_set_file_name): Declare.
94458
94459 2000-05-10  Jim Meyering  <meyering@lucent.com>
94460
94461         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94462         (close_stdout_set_status): New function.
94463         * lib/closeout.h (close_stdout_set_status): Declare.
94464
94465 2000-05-09  Jim Meyering  <meyering@lucent.com>
94466
94467         * m4/gettext.m4: Rename this...
94468         * m4/libintl.m4: ...to this.
94469
94470 2000-05-08  Jim Meyering  <meyering@lucent.com>
94471
94472         * lib/long-options.c: Don't include closeout.h.
94473         (parse_long_options): Don't call close_stdout for --version.
94474
94475 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94476
94477         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94478         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94479         2.1.3 bug.  This avoids a clash when files like regex.c define
94480         _GNU_SOURCE.
94481
94482 2000-05-06  Jim Meyering  <meyering@lucent.com>
94483
94484         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94485         (AC_REPLACE_FUNCS): Add strnlen.
94486
94487         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94488         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94489
94490         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94491         AC_SEARCH_LIBS call for nanosleep.
94492         (LIB_NANOSLEEP): Set and AC_SUBST.
94493
94494 2000-05-06  Jim Meyering  <meyering@lucent.com>
94495
94496         * lib/strnlen.c: Undefine __strnlen and strnlen.
94497         [!weak_alias]: Define __strnlen to strnlen.
94498
94499         * lib/atexit.c: New file, from libiberty.
94500
94501 2000-05-06  Jim Meyering  <meyering@lucent.com>
94502
94503         * lib/closeout.c (close_stdout_status): Also check for errors on the
94504         stderr stream.
94505
94506 2000-05-05  Jim Meyering  <meyering@lucent.com>
94507
94508         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94509         AC_SEARCH_LIBS call for clock_gettime.
94510         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94511
94512         * m4/search-libs.m4: Update from autoconf.
94513
94514         su doesn't work on Solaris 2.6.
94515         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94516         <shadow.h>.  Reported by Dragos Harabor.
94517
94518 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94519
94520         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94521         memcpy instead of xmalloc, xrealloc, path_concat.
94522         (locale_charset): Treat empty environment variables as absent.
94523         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94524
94525 2000-05-04  Jim Meyering  <meyering@lucent.com>
94526
94527         * lib/getopt.c: Update from glibc.
94528         * lib/obstack.c: Likewise.
94529         * lib/obstack.h: Likewise.
94530         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94531         file
94532
94533         * lib/regex.h: Likewise.
94534         * lib/strndup.c: Likewise.
94535         * lib/strnlen.c: New file, from glibc.
94536
94537 2000-05-03  Jim Meyering  <meyering@lucent.com>
94538
94539         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94540
94541 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94542
94543         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94544         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94545         compile-time test, rather than inspecting host and OS, to
94546         decide whether to define _LARGEFILE_SOURCE.
94547
94548 2000-05-01  Jim Meyering  <meyering@lucent.com>
94549
94550         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94551
94552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94553         Based on a patch from Bruno Haible.
94554
94555 2000-05-01  Jim Meyering  <meyering@lucent.com>
94556
94557         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94558
94559 2000-04-29  Jim Meyering  <meyering@lucent.com>
94560
94561         * lib/path-concat.c: Declare strdup only if it's not defined.
94562         * lib/canon-host.c: Likewise.
94563
94564 2000-04-28  Jim Meyering  <meyering@lucent.com>
94565
94566         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94567         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94568         is included first, then limits.h is included by locale.h by libintl.h.
94569         From John David Anglin.
94570
94571 2000-04-25  Jim Meyering  <meyering@lucent.com>
94572
94573         * lib/makepath.c (S_IRWXUGO): Define.
94574         (make_path): Always perform explicit chmod if MODE specifies any
94575         of the `special' permission bits.  Prompted by a bug report against
94576         install from Mate Wierdl and Joost van Baal.
94577
94578 2000-04-18  Jim Meyering  <meyering@lucent.com>
94579
94580         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94581         (jm_PREREQ): Use it.
94582
94583 2000-04-18  Jim Meyering  <meyering@lucent.com>
94584
94585         * lib/README: New file.
94586
94587         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94588         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94589
94590 2000-04-17  Jim Meyering  <meyering@lucent.com>
94591
94592         Get it right :-)
94593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94594         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94595         Suggestion from Akim Demaille.
94596
94597 2000-04-17  Jim Meyering  <meyering@lucent.com>
94598
94599         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94600         the definition of it to rpl_strftime also defined-away the system's
94601         declaration.
94602
94603 2000-04-15  Jim Meyering  <meyering@lucent.com>
94604
94605         Use `C' to denote so-called `contiguous' files, the same way
94606         that tar does.
94607         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94608         (ftypelet): Use S_ISCTG.
94609         From Michael Deutschmann.
94610
94611 2000-04-14  Jim Meyering  <meyering@lucent.com>
94612
94613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94614         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94615         clobbered.
94616
94617 2000-04-14  Jim Meyering  <meyering@lucent.com>
94618
94619         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94620
94621 2000-04-13  Jim Meyering  <meyering@lucent.com>
94622
94623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94624         AH_VERBATIM to insert required #ifndef into config.h.in.
94625         Suggestion from Akim Demaille.
94626
94627 2000-04-12  Jim Meyering  <meyering@lucent.com>
94628
94629         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94630         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94631         Christian Krackowizer.
94632
94633         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94634         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94635         (AC_SYS_LARGEFILE): Require.
94636         (AM_C_PROTOTYPES): Require.
94637
94638 2000-04-08  Jim Meyering  <meyering@lucent.com>
94639
94640         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94641         names don't conflict.  Reported by Eli Zaretskii.
94642
94643 2000-04-07  Jim Meyering  <meyering@lucent.com>
94644
94645         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94646         sys/types.h, to work around system header problems on AIX 3.2.5.
94647         From Bruno Haible.
94648
94649 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94650
94651         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94652         bug.  Deal with the different error behavior of Irix iconv.
94653
94654 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94655
94656         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94657         IRIX if the installer said otherwise.
94658
94659 2000-04-05  Jim Meyering  <meyering@lucent.com>
94660
94661         Portability tweaks required for ultrix4.3.
94662         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94663         (jm_CHECK_DECLS): Add getutent to the list of functions.
94664         (_jm_DECL_HEADERS): Add utmpx.h.
94665         From John David Anglin.
94666
94667         * m4/strftime.m4: Back out the 2000-04-02 change.
94668         Instead of that change, simply undefine putenv in the test program.
94669
94670 2000-04-05  Jim Meyering  <meyering@lucent.com>
94671
94672         Portability tweaks required for ultrix4.3.
94673         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94674         getutent.
94675         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94676         * lib/canon-host.c: Declare strdup.
94677         * lib/path-concat.c: Likewise.
94678         From John David Anglin.
94679
94680 2000-04-04  Jim Meyering  <meyering@lucent.com>
94681
94682         Be more DOS 8.3-friendly.
94683         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94684         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94685         * lib/Makefile.am: Reflect renaming.
94686         Reported by Eli Zaretskii.
94687
94688         Use a temporary file name that won't clash with `charset.alias'
94689         in the DOS 8.3 name space.
94690         * lib/Makefile.am (charset_tmp): Define.
94691         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94692         (uninstall-local): Likewise.
94693         Reported by Eli Zaretskii.
94694
94695 2000-04-03  Jim Meyering  <meyering@lucent.com>
94696
94697         * m4/gettext.m4: Fix typo in comment.
94698
94699         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94700         textutils/configure.in).  Suggestion from Paul Eggert.
94701         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94702
94703 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94704
94705         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94706         variable in the shell rather than using putenv, which isn't
94707         portable.  This avoids the configure-time inter-test dependency
94708         on the potentially-renamed putenv function.
94709
94710 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94711
94712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94713         before checking struct stat.st_blksize, so that
94714         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94715
94716 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94717
94718         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94719         since strftime.c uses HAVE_STRFTIME to decide whether to use
94720         the underlying strftime.
94721
94722 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94723
94724         * lib/time/strftime.c (my_strftime): Make sure we call the system
94725         strftime, not ourselves, when invoking the underlying strftime.
94726
94727 2000-03-24  Jim Meyering  <meyering@lucent.com>
94728
94729         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94730         (charset_alias): Define.
94731         (install-exec-local): Factor out common code.
94732         (uninstall-local): Split lines longer than 80.
94733         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94734         (SUFFIXES): Define.
94735         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94736         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94737
94738 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94739
94740         * lib/config.charset: Output a line containing "Packages using this
94741         file".
94742         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94743         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94744         ref-del.sed): New rules.
94745
94746 2000-03-17  Jim Meyering  <meyering@lucent.com>
94747
94748         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94749         Otherwise, include <strings.h>
94750
94751 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94752
94753         * lib/unicodeio.c (utf8_wctomb): New function.
94754         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94755         format instead of in UCS-4 with platform dependent endianness.
94756
94757 2000-03-10  Jim Meyering  <meyering@lucent.com>
94758
94759         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94760         From Marco Franzen.
94761
94762 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94763
94764         * lib/savedir.c (savedir): Work even if directory size is
94765         negative; this can happen with some screwy NFS configurations.
94766
94767 2000-03-06  Jim Meyering  <meyering@lucent.com>
94768
94769         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94770         if it's NULL (because we ran out of memory).  From Bruno Haible.
94771
94772 2000-03-05  Jim Meyering  <meyering@lucent.com>
94773
94774         * lib/localcharset.c ("path-concat.h"): Include.
94775         (get_charset_aliases): Use path_concat instead of ANSI string
94776         concatenation.
94777
94778         * lib/unicodeio.h (PARAMS): Define.
94779         Use it to guard prototype.
94780
94781 2000-03-04  Jim Meyering  <meyering@lucent.com>
94782
94783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94784         for lib/localcharset.c.
94785
94786 2000-03-04  Jim Meyering  <meyering@lucent.com>
94787
94788         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94789         installing into it.
94790         (uninstall-local): Uncomment this rule so `make distcheck' works
94791         once again.
94792
94793         * lib/unicodeio.c (<errno.h>): Include it.
94794         (errno): Declare if not defined.
94795
94796         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94797
94798         * lib/config.charset: New version, incorporating remarks from a linux
94799         i18n mailing list.  From Bruno Haible.
94800
94801 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94802
94803         * m4/codeset.m4: New file.
94804         * m4/iconv.m4: New file.
94805         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94806
94807 2000-03-03  Jim Meyering  <meyering@lucent.com>
94808
94809         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94810
94811 2000-03-02  Jim Meyering  <meyering@lucent.com>
94812
94813         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94814         the messages come out on separate lines.
94815
94816         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94817         rather than jm_CHECK_DECLARATIONS.
94818         * m4/decl.m4: Remove now-unused file.
94819
94820         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94821         geteuid.
94822
94823 2000-03-02  Jim Meyering  <meyering@lucent.com>
94824
94825         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94826
94827 2000-03-01  Jim Meyering  <meyering@lucent.com>
94828
94829         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94830         * lib/unicodeio.c: Likewise.
94831
94832 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94833
94834         * lib/config.charset: New file.
94835         * lib/localcharset.c: New file.
94836         * lib/unicodeio.h, lib/unicodeio.c: New files.
94837         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94838         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94839         (noinst_HEADERS): Add unicodeio.h.
94840         (all-local, install-exec-local, charset.alias): New targets.
94841
94842 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94843
94844         * lib/quotearg.c (ALERT_CHAR): New macro.
94845         (quotearg_buffer_restyled): Use it.
94846
94847 2000-02-27  Jim Meyering  <meyering@lucent.com>
94848
94849         * m4/check-decl.m4: Add getenv to the list.
94850
94851 2000-02-27  Jim Meyering  <meyering@lucent.com>
94852
94853         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94854         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94855
94856         * lib/backupfile.c: Guard inclusion of stdlib.h with
94857         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94858         Declare malloc if needed.
94859
94860         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94861         `#ifndef HAVE_DECL..'
94862         now that autoconf always defines the HAVE_DECL_ symbols.
94863         * lib/human.c: Likewise.
94864         * lib/same.c: Likewise.
94865         * lib/strtoumax.c: Likewise.
94866
94867         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94868         declaration check was not run.
94869         * lib/hash.c: Likewise.
94870         * lib/human.c: Likewise.
94871         * lib/same.c: Likewise.
94872         * lib/strtoumax.c: Likewise.
94873
94874         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94875         `.', then first look up the entire `.'-containing string as a login
94876         name.
94877
94878 2000-02-23  Jim Meyering  <meyering@lucent.com>
94879
94880         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94881         in place of my hack.
94882
94883 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94884
94885         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94886         (textint): New typedef.
94887         (parser_control): Member year changed from int to textint.
94888         All uses changed.
94889         (YYSTYPE): Removed; replaced by %union with int and textint members.
94890         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94891         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94892         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94893         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94894         (date, number, to_year): Use width of number in digits, not its value,
94895         to determine whether it's a 2-digit year, or a 2-digit time.
94896         (yylex): Store number of digits of numeric tokens.
94897         Reported by John Kendall.
94898
94899         (parser_control): Changed from struct parser_control to typedef (for
94900         consistency).  All uses changed.
94901
94902         (tID): Removed; not used.
94903         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94904
94905 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94906
94907         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94908         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94909
94910 2000-02-12  Jim Meyering  <meyering@lucent.com>
94911
94912         * lib/userspec.c (ISDIGIT): Define it.
94913         (isdigit): Remove definition.
94914         (is_number): Use ISDIGIT, not isdigit.
94915         <libintl.h>: Include.
94916         (_ and N_): Define.
94917         (parse_user_spec): Mark translatable strings.
94918
94919 2000-02-10  Jim Meyering  <meyering@lucent.com>
94920
94921         With these changes, nanosleep.[ch] are finally enough like the other
94922         lib/* replacement files to compile on a few more losing systems.
94923
94924         * lib/nanosleep.h: Don't include config.h.
94925         Remove prototype from declaration of nanosleep.
94926         (PARAMS): Remove now-unneeded definition.
94927         * lib/nanosleep.c: #undef nanosleep.
94928         (rpl_nanosleep): Rename from nanosleep.
94929
94930 2000-02-10  Jim Meyering  <meyering@lucent.com>
94931
94932         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94933         gnu_nanosleep to rpl_nanosleep.
94934
94935 2000-02-09  Jim Meyering  <meyering@lucent.com>
94936
94937         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94938         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94939
94940 2000-02-08  Akim Demaille  <akim@epita.fr>
94941
94942         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94943         `[' and `]' and remove uses of `changequote'.
94944         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94945         (AC_SYS_LARGEFILE): Likewise.
94946         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94947         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94948         of changequote.
94949         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94950         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94951         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94952         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94953
94954 2000-02-05  Jim Meyering  <meyering@lucent.com>
94955
94956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94957         Remove explicit use of AC_HEADER_TIME.  It is required by
94958         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94959         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94960         in autoconf whereby the expansion of the latter ended up preceding
94961         the expansion of its prerequisite, AC_HEADER_TIME.
94962         Reported by Volker Borchert.
94963
94964 2000-02-03  Jim Meyering  <meyering@lucent.com>
94965
94966         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94967
94968 2000-02-03  Jim Meyering  <meyering@lucent.com>
94969
94970         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94971         rather than with `#if HAVE_UTMPNAME'.
94972
94973 2000-02-02  Jim Meyering  <meyering@lucent.com>
94974
94975         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94976         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94977         Reported by Eli Zaretskii.
94978
94979 2000-02-01  Jim Meyering  <meyering@lucent.com>
94980
94981         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94982
94983 2000-01-31  Jim Meyering  <meyering@lucent.com>
94984
94985         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94986         functions.  Add the time.h and sys/time.h headers along with the
94987         AC_REQUIRE'ment of AC_HEADER_TIME.
94988
94989 2000-01-31  Jim Meyering  <meyering@lucent.com>
94990
94991         * lib/nanosleep.h (nanosleep): Guard declaration with
94992         `#if ! HAVE_DECL_NANOSLEEP'.
94993         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94994         the declaration in that vendor's sys/timers.h.
94995         Reported by Christian Krackowizer.
94996
94997         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94998         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94999         (ISPRINT): Likewise.
95000         Reported by Tom Tromey.
95001
95002 2000-01-30  Jim Meyering  <meyering@lucent.com>
95003
95004         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95005
95006         * m4/prereq.m4 (utmp_includes): Define.
95007         Check for ut_user and ut_name members in both struct utmpx
95008         and struct utmp.
95009
95010 2000-01-30  Jim Meyering  <meyering@lucent.com>
95011
95012         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95013         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95014         header files where only utmpx.ut_user is declared.
95015
95016         * lib/readutmp.h (UT_USER): Define.
95017
95018 2000-01-29  Jim Meyering  <meyering@lucent.com>
95019
95020         * m4/lib-check.m4: New file containing library-related checks from
95021         fileutils and sh-utils (textutils had none).
95022
95023 2000-01-28  Jim Meyering  <meyering@lucent.com>
95024
95025         * m4/perl.m4: Change format of warning message to look more like that
95026         from the missing script.  Suggestion from François Pinard.
95027
95028 2000-01-25  Jim Meyering  <meyering@lucent.com>
95029
95030         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95031         well as time.h in the compile check.
95032         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95033         Fix typo in cross-compiling case: s/yes/no/.
95034
95035 2000-01-23  Jim Meyering  <meyering@lucent.com>
95036
95037         * m4/jm-macros.m4: Move df-related tests here from
95038         fileutils/configure.in
95039
95040         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95041         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95042
95043         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95044         s/space/ac_fsusage_space/.
95045         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95046
95047         * m4/ftruncate.m4: New file (derived from part of
95048         fileutils/configure.in).
95049         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95050         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95051
95052         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95053         AC_SUBST these here, rather than just in sh-util/configure.in, so
95054         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95055         all the same.
95056         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95057         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95058         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95059         (AC_SUBST(POW_LIBM)): Likewise.
95060         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95061
95062 2000-01-23  Jim Meyering  <meyering@lucent.com>
95063
95064         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95065         obstack.c.
95066
95067 2000-01-22  Jim Meyering  <meyering@lucent.com>
95068
95069         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95070
95071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95072
95073         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95074         configure.in
95075         (AC_CHECK_HEADERS): Likewise for sh-utils.
95076         (AC_CHECK_HEADERS): Likewise for textutils.
95077         Merge the three lists of headers.
95078
95079         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95080         from fileutils' configure.in.
95081
95082         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95083         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95084         check-decl.m4.
95085
95086         * m4/check-decl.m4: Use #if rather than #ifdef.
95087         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95088         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95089         (_jm_DECL_HEADERS): Define new function.
95090         (jm_CHECK_DECLARATIONS): Require it.
95091
95092 2000-01-22  Jim Meyering  <meyering@lucent.com>
95093
95094         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95095         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95096         Required for some AIX systems.  Reported by Christian Krackowizer.
95097         [TESTING] (main): New function.
95098
95099         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95100         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95101         letters.
95102
95103         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95104         iswprint.
95105
95106         * lib/strverscmp.c (ISDIGIT): Define.
95107         (strverscmp): Use ISDIGIT, not isdigit.
95108
95109 2000-01-19  Jim Meyering  <meyering@lucent.com>
95110
95111         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95112         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95113         defines `struct timespec' in <sys/time.h>
95114
95115         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95116         Thanks to Akim for explaining.
95117
95118 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95119
95120         * lib/nanosleep.c (nanosleep):
95121         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95122         POSIX.1 doesn't require SA_INTERRUPT and some systems
95123         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95124         it's been part of POSIX.1 since day 1 (in 1988).
95125
95126 2000-01-17  Jim Meyering  <meyering@lucent.com>
95127
95128         * lib/interlock: Remove unused file.  Reported by François Pinard.
95129
95130 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95131
95132         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95133         alert, backslash, formfeed, and vertical tab unnecessarily in
95134         shell quoting style.
95135
95136 2000-01-16  Jim Meyering  <meyering@lucent.com>
95137
95138         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95139         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95140         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95141         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95142
95143 2000-01-16  Jim Meyering  <meyering@lucent.com>
95144
95145         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95146         because the latter didn't work.
95147
95148 2000-01-15  Jim Meyering  <meyering@lucent.com>
95149
95150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95151         (AC_REPLACE_FUNCS): Add memcpy and memset.
95152         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95153         Add strpbrk.
95154         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95155
95156 2000-01-12  Jim Meyering  <meyering@lucent.com>
95157
95158         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95159         (jm_PREREQ): Use it.
95160         (jm_PREREQ_READUTMP): New macro.
95161         (jm_PREREQ): Use it.
95162
95163 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95164
95165         Quote multibyte characters correctly.
95166         * m4/c-bs-a.m4: New file.
95167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95168         (jm_PREREQ): Use it.
95169
95170 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95171
95172         * m4/uintmax_t.m4: Port to autoconf 2.13.
95173
95174 2000-01-08  Jim Meyering  <meyering@ascend.com>
95175
95176         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95177         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95178
95179 2000-01-04  Jim Meyering  <meyering@ascend.com>
95180
95181         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95182         jm_STRUCT_DIRENT_D_TYPE.
95183         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95184         jm_STRUCT_DIRENT_D_INO.
95185         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95186         jm_STRUCT_UTIMBUF.
95187         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95188         renamings.
95189         * m4/utime.m4: Likewise.
95190
95191         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95192         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95193
95194 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95195
95196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95197         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95198
95199 2000-01-02  Jim Meyering  <meyering@ascend.com>
95200
95201         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95202         remember if this is necessary.
95203
95204 1999-12-26  Jim Meyering  <meyering@ascend.com>
95205
95206         * m4/jm-macros.m4: Use it here.
95207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95208
95209 1999-12-23  Jim Meyering  <meyering@ascend.com>
95210
95211         * m4/jm-macros.m4: Check for clock_gettime (moved from
95212         fileutils/configure.in)
95213         Check for gettimeofday.
95214
95215 1999-12-20  Jim Meyering  <meyering@ascend.com>
95216
95217         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95218         autoconf-2.14a-1999-12-20.
95219
95220 1999-12-19  Jim Meyering  <meyering@ascend.com>
95221
95222         * m4/lstat-slash.m4: New file.
95223         * m4/jm-macros.m4: Use the new macro:
95224         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95225
95226 1999-12-07  Jim Meyering  <meyering@ascend.com>
95227
95228         * m4/perl.m4: Require that File::Compare be available, too.
95229         Too many systems seem to lack it.
95230
95231         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95232         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95233
95234 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95235
95236         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95237         problem with the QNX 4.25 shell, which doesn't propagate exit
95238         status of failed commands inside shell assignments.
95239
95240 1999-11-17  Jim Meyering  <meyering@ascend.com>
95241
95242         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95243
95244 1999-11-07  Jim Meyering  <meyering@ascend.com>
95245
95246         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95247
95248 1999-11-06  Jim Meyering  <meyering@ascend.com>
95249
95250         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95251         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95252
95253 1999-11-05  Jim Meyering  <meyering@ascend.com>
95254
95255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95256         configure.in of textutils, fileutils, and sh-utils into this one
95257         (shared between those packages) file.
95258         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95259         AC_STRUCT_ST_BLKSIZE.
95260
95261 1999-11-03  Jim Meyering  <meyering@ascend.com>
95262
95263         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95264         of AC_CHECK_TYPE checks includes unistd.h.
95265         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95266         Suggestion from Akim Demaille.
95267
95268 1999-10-30  Jim Meyering  <meyering@ascend.com>
95269
95270         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95271         m4-quoted string.
95272         * m4/ls-mntd-fs.m4: Likewise.
95273         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95274         * m4/jm-winsz1.m4: Likewise.
95275
95276         * m4/const.m4: Remove file, since the fix made it into the experimental
95277         version of autoconf.
95278         * m4/mktime.m4: Likewise.
95279
95280         * m4/check-type.m4: Remove file, now that the latest version of
95281         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95282
95283         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95284         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95285         AC_CHECK_TYPE.
95286
95287 1999-10-04  Jim Meyering  <meyering@ascend.com>
95288
95289         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95290
95291 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95292
95293         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95294         2.95.1 bug with HP-UX 10.20.
95295
95296 1999-09-17  Jim Meyering  <meyering@ascend.com>
95297
95298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95299         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95300         due to missing strdup (against sh-utils-2.0).
95301
95302 1999-08-29  Jim Meyering  <meyering@ascend.com>
95303
95304         * m4/jm-macros.m4: Require jm_BISON.
95305         * m4/bison.m4: New file.
95306
95307 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95308
95309         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95310         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95311
95312 1999-08-05  Jim Meyering  <meyering@ascend.com>
95313
95314         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95315         to avoid conflicts with `conftest' on 8+3 filesystems.
95316         Suggestion from Eli Zaretskii.
95317
95318 1999-08-04  Jim Meyering  <meyering@ascend.com>
95319
95320         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95321         fileutils and sh-utils (textutils's getline test was inadequate).
95322         (AM_FUNC_GETLINE): Run this test.
95323         (AC_CHECK_FUNCS): Check for getdelim.
95324         Reported by Bob Proulx.
95325
95326 1999-08-02  Jim Meyering  <meyering@ascend.com>
95327
95328         * m4/jm-macros.m4: Add a comment.
95329
95330 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95331
95332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95333         <inttypes.h> defines strtoumax as a macro (and not as a
95334         function).
95335
95336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95337
95338         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95339         that we can shift, multiply and divide unsigned long long
95340         values; Ultrix cc can't do it.
95341
95342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95343
95344         * m4/mktime.m4: New file, which is a preview of what should appear
95345         in the next public autoconf release.
95346
95347 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95348
95349         * m4/lfs.m4: Remove this file.
95350         * m4/largefile.m4: New file.  It contains the old contents of
95351         lfs.m4, except that all names with prefix AC_LFS have been
95352         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95353         compatible with future autoconf versions.  Also, some minor m4
95354         quoting problems have been fixed.
95355
95356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95357
95358         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95359         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95360         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95361         and simplify the shell code.
95362
95363 1999-08-01  Jim Meyering  <meyering@ascend.com>
95364
95365         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95366         m4.
95367
95368 1999-07-20  Jim Meyering  <meyering@ascend.com>
95369
95370         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95371
95372 1999-07-15  Jim Meyering  <meyering@ascend.com>
95373
95374         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95375
95376 1999-05-22  Jim Meyering  <meyering@ascend.com>
95377
95378         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95379
95380 1999-05-20  Jim Meyering  <meyering@ascend.com>
95381
95382         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95383         Add a colon after each `then' in case $4 is empty.
95384
95385 1999-05-16  Jim Meyering  <meyering@ascend.com>
95386
95387         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95388
95389 1999-05-10  Jim Meyering  <meyering@ascend.com>
95390
95391         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95392
95393         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95394         AC_FUNC_MKTIME.
95395
95396 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95397
95398         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95399
95400 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95401
95402         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95403         not CPPFLAGS, so that linking works correctly in IRIX.
95404
95405 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95406
95407         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95408
95409 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95410
95411         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95412         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95414         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95415         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95416
95417         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95418
95419 1999-04-20  Jim Meyering  <meyering@ascend.com>
95420
95421         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95422         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95423         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95424
95425 1999-04-18  Jim Meyering  <meyering@ascend.com>
95426
95427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95428         * m4/jm-macros.m4: Use it.
95429
95430 1999-04-06  Jim Meyering  <meyering@ascend.com>
95431
95432         * m4/strftime.m4: Remove test for %f.
95433
95434 1999-03-29  Jim Meyering  <meyering@ascend.com>
95435
95436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95437         superset of the AC_TYPE_* checks in the textutils, fileutils,
95438         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95439         AC_TYPE_PID_T.
95440
95441 1999-03-28  Jim Meyering  <meyering@ascend.com>
95442
95443         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95444         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95445         replaced e.g., in the *.sh files of the sh-utils.
95446
95447 1999-03-20  Jim Meyering  <meyering@ascend.com>
95448
95449         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95450         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95451         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95452
95453 1999-03-19  Jim Meyering  <meyering@ascend.com>
95454
95455         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95456
95457 1999-03-12  Jim Meyering  <meyering@ascend.com>
95458
95459         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95460
95461 1999-03-07  Jim Meyering  <meyering@ascend.com>
95462
95463         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95464         declared.
95465
95466 1999-02-17  Jim Meyering  <meyering@ascend.com>
95467
95468         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95469         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95470
95471 1999-02-07  Jim Meyering  <meyering@ascend.com>
95472
95473         * m4/group-member.m4: New file -- extracted from sh-utils'
95474         configure.in.
95475
95476         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95477         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95478
95479 1999-02-06  Jim Meyering  <meyering@ascend.com>
95480
95481         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95482         * m4/fnmatch.m4: Likewise.
95483         * m4/getgroups.m4: Likewise.
95484         * m4/lstat.m4: Likewise.
95485         * m4/malloc.m4: Likewise.
95486         * m4/putenv.m4: Likewise.
95487         * m4/realloc.m4: Likewise.
95488         * m4/regex.m4: Likewise.
95489         * m4/stat.m4: Likewise.
95490         * m4/strftime.m4: Likewise.
95491         Suggestion from Alain Magloire.
95492
95493         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95494         * m4/fnmatch.m4: Likewise.
95495         * m4/getgroups.m4: Likewise.
95496         * m4/getline.m4: Likewise.
95497         * m4/lstat.m4: Likewise.
95498         * m4/malloc.m4: Likewise.
95499         * m4/memcmp.m4: Likewise.
95500         * m4/putenv.m4: Likewise.
95501         * m4/realloc.m4: Likewise.
95502         * m4/regex.m4: Likewise.
95503         * m4/stat.m4: Likewise.
95504         * m4/strftime.m4: Likewise.
95505         Suggestion from Alain Magloire.
95506
95507         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95508         an argument.
95509
95510         * m4/regex.m4: Add a run-time Test for proper operation of
95511         re_compile_pattern.
95512
95513 1999-01-31  Jim Meyering  <meyering@ascend.com>
95514
95515         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95516
95517 1999-01-30  Jim Meyering  <meyering@ascend.com>
95518
95519         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95520
95521         * m4/jm-mktime.m4: Make this a wrapper around the official
95522         AM_FUNC_MKTIME rather than my private copy, now that the official one
95523         is up to date.
95524         * m4/mktime.m4: Remove file.
95525
95526         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95527         * m4/uptime.m4: Likewise.
95528         * m4/uintmax_t.m4: Likewise.
95529
95530 1999-01-28  Jim Meyering  <meyering@ascend.com>
95531
95532         * m4/jm-macros.m4: Use jm_AFS.
95533         * m4/afs.m4: New file (from fileutils' configure.in).
95534
95535         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95536         * m4/chown.m4: Likewise.
95537         * m4/d-ino.m4: Likewise.
95538         * m4/d-type.m4: Likewise.
95539         * m4/fnmatch.m4: Likewise.
95540         * m4/getgroups.m4: Likewise.
95541         * m4/gettext.m4: Likewise.
95542         * m4/jm-mktime.m4: Likewise.
95543         * m4/jm-winsz2.m4: Likewise.
95544         * m4/lcmessage.m4: Likewise.
95545         * m4/ls-mntd-fs.m4: Likewise.
95546         * m4/malloc.m4: Likewise.
95547         * m4/memcmp.m4: Likewise.
95548         * m4/putenv.m4: Likewise.
95549         * m4/realloc.m4: Likewise.
95550         * m4/st_mtim.m4: Likewise.
95551         * m4/strftime.m4: Likewise.
95552
95553 1999-01-16  Jim Meyering  <meyering@ascend.com>
95554
95555         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95556         (ARGMATCH_DIE_DECL): Define.
95557
95558 1999-01-12  Jim Meyering  <meyering@ascend.com>
95559
95560         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95561         Reported by Lars Hecking.
95562
95563 1999-01-10  Jim Meyering  <meyering@ascend.com>
95564
95565         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95566         gross kludge.
95567         * m4/inttypes_h.m4: Likewise.
95568         * m4/lstat.m4: Likewise.
95569         * m4/malloc.m4: Likewise.
95570         * m4/readdir.m4: Likewise.
95571         * m4/realloc.m4: Likewise.
95572         * m4/st_dm_mode.m4: Likewise.
95573         * m4/stat.m4: Likewise.
95574         * m4/utimbuf.m4: Likewise.
95575         * m4/utimes.m4: Likewise.
95576
95577         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95578         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95579         comments in config.h.in are meaningful.
95580
95581         * m4/jm-macros.m4: Require autoconf-2.13 here.
95582
95583         * m4/regex.m4: By default, don't use the included regex.c on systems
95584         with glibc 2.  Suggestion from Uli Drepper.
95585
95586 1999-01-02  Jim Meyering  <meyering@ascend.com>
95587
95588         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95589
95590 1998-12-18  Jim Meyering  <meyering@ascend.com>
95591
95592         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95593         Based on a suggestion from Lars Hecking.
95594
95595 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95596
95597         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95598
95599 1998-11-16  Jim Meyering  <meyering@ascend.com>
95600
95601         * m4/lfs.m4: Double-quote the `uname...` expression.
95602
95603 1998-11-14  Jim Meyering  <meyering@ascend.com>
95604
95605         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95606         * m4/stat.m4: Likewise.
95607
95608 1998-11-03  Jim Meyering  <meyering@ascend.com>
95609
95610         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95611         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95612
95613 1998-10-18  Jim Meyering  <meyering@ascend.com>
95614
95615         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95616
95617 1998-10-17  Jim Meyering  <meyering@ascend.com>
95618
95619         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95620         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95621         calls for those previously hard-coded headers.  Instead, take a new
95622         parameter.
95623         (jm_CHECK_DECLARATIONS): Reflect interface change.
95624         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95625         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95626
95627         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95628
95629 1998-10-14  Jim Meyering  <meyering@ascend.com>
95630
95631         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95632         instead of "TZ=America/Vancouver".  From Paul Eggert.
95633
95634 1998-10-11  Jim Meyering  <meyering@ascend.com>
95635
95636         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95637         This adds a test for a recently added compatibility fix for mktime.c.
95638         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95639
95640 1998-09-27  Jim Meyering  <meyering@ascend.com>
95641
95642         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95643
95644         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95645         ../configure.in, including a change from Gordon Matzigkeit to allow
95646         cross-compiling for the Hurd.
95647
95648         * m4/glibc.m4: New file/macro to test for the GNU C Library
95649         versions 1 and 2.  From Gordon Matzigkeit.
95650         Indent.
95651
95652 1998-09-21  Jim Meyering  <meyering@ascend.com>
95653
95654         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95655
95656 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95657
95658         Port nanosecond-resolution times to UnixWare 2.1.2 and
95659         pedantic Solaris 2.6.
95660
95661         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95662         AC_STRUCT_ST_MTIM.
95663         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95664         Generate name of ns member, instead of just 1 or undef.
95665         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95666
95667 1998-08-15  Jim Meyering  <meyering@ascend.com>
95668
95669         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95670         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95671         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95672         instead of jm_TYPE_SSIZE_T.
95673
95674 1998-08-12  Jim Meyering  <meyering@ascend.com>
95675
95676         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95677
95678 1998-08-02  Jim Meyering  <meyering@ascend.com>
95679
95680         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95681         in acconfig.h manually.
95682
95683 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95684
95685         * m4/st_mtim.m4: New file.
95686
95687 1998-07-28  Jim Meyering  <meyering@ascend.com>
95688
95689         * m4/utimes.m4: Undef stat.
95690
95691 1998-07-25  Jim Meyering  <meyering@ascend.com>
95692
95693         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95694         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95695
95696 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95697
95698         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95699         uid and gid actually remain unchanged.
95700
95701 1998-07-07  Jim Meyering  <meyering@ascend.com>
95702
95703         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95704
95705 1998-07-04  Jim Meyering  <meyering@ascend.com>
95706
95707         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95708         to prove that this macro can be used in packages without regex.c.
95709
95710 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95711
95712         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95713         is to be used.
95714
95715 1998-07-03  Jim Meyering  <meyering@ascend.com>
95716
95717         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95718
95719         * m4/gettext.m4: New file -- from gettext-0.10.35.
95720         * m4/lcmessage.m4: Likewise.
95721         * m4/progtest.m4: Likewise.
95722
95723         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95724         * m4/jm-macros.m4: Require the new macro.
95725
95726 1998-06-29  Jim Meyering  <meyering@ascend.com>
95727
95728         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95729         for the definition of NGROUPS (used in a system header included
95730         by sys/mount.h).
95731
95732 1998-06-28  Jim Meyering  <meyering@ascend.com>
95733
95734         * m4/ls-mntd-fs.m4: New file.
95735         * m4/fstypename.m4: New file.
95736
95737         * m4/jm-macros.m4: Require the new macro.
95738         * m4/jm-glibc-io.m4: New file.
95739
95740 1998-05-19  Jim Meyering  <meyering@ascend.com>
95741
95742         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95743         * m4/lchown.m4: New file.
95744
95745         * m4/Makefile.am.in: New file.
95746         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95747
95748 1998-05-14  Jim Meyering  <meyering@ascend.com>
95749
95750         * m4/Makefile.am (EXTRA_DIST): Add them.
95751         * m4/jm-macros.m4: New file.
95752         * m4/utimbuf.m4: New file.
95753
95754 1998-05-12  Jim Meyering  <meyering@ascend.com>
95755
95756         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95757
95758 1998-05-11  Jim Meyering  <meyering@ascend.com>
95759
95760         * m4/isc-posix.m4: New file.
95761
95762 1998-05-10  Jim Meyering  <meyering@ascend.com>
95763
95764         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95765
95766 1998-05-09  Jim Meyering  <meyering@ascend.com>
95767
95768         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95769         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95770         with automake.
95771
95772         * m4/ssize_t.m4: New file.
95773         * m4/mktime.m4: Remove file -- the new automake has this now.
95774
95775 1998-04-26  Jim Meyering  <meyering@ascend.com>
95776
95777         * m4/assert.m4: New file.
95778         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95779
95780 1998-04-05  Jim Meyering  <meyering@ascend.com>
95781
95782         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95783         (jm_PREREQ): Use it here.
95784
95785 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95786
95787         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95788         in acconfig.h.
95789
95790 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95791
95792         * m4/prereq.m4: New file.
95793         * m4/error.m4: New file.
95794         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95795
95796 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95797
95798         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95799         cache-check for the same variable -- that defeated the purpose of
95800         the test; the test program was never run.  This was a problem only
95801         on systems with losing getline functions -- HP-UX 10.20 is one.
95802         Reported by Bjorn Helgaas.
95803
95804 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95805
95806         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95807
95808 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95809
95810         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95811
95812         * m4/const.m4: New file.  Use an initializer in this declaration
95813         typedef int charset[2]; const charset x;
95814         Reported by Bob Glickstein.
95815
95816 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95817
95818         * m4/chown.m4: Fix reversed types on -1 args to chown.
95819         From Kaveh Ghazi.
95820
95821 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95822
95823         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95824         Add lseek and memchr.
95825
95826         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95827         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95828         have a 20-character limit on names.
95829
95830 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95831
95832         * m4/inttypes_h.m4: New file.
95833         * m4/uintmax_t.m4: New file.
95834         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95835
95836
95837         -----
95838
95839         Local Variables:
95840         coding: utf-8
95841         End:
95842
95843         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95844
95845         Copying and distribution of this file, with or without
95846         modification, are permitted provided the copyright notice
95847         and this notice are preserved.